git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Matt McClure <matthewlmcclure@gmail.com>
To: git@vger.kernel.org
Subject: Re: Manual hunk edit mode + emacs + ^G == garbage
Date: Wed, 22 Feb 2012 21:43:34 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120222T222339-97@post.gmane.org> (raw)
In-Reply-To: EDCC7CB3-4DFF-45B8-9E23-E12045CC29D7@sb.org

Kevin Ballard <kevin <at> sb.org> writes:

> I'm still very much interested in finding a solution to why ^G kills
> emacs when it's invoked by git. As I said earlier, it appears that emacs
> shares the same process group with the perl process that called it, even
> though Andreas Schwab says it puts itself into its own process group and
> invoking emacs from the shell does just that. Does anyone know why this
> might be happening?

Kevin,

I was having the same problem you described on Mac OS X Lion and found this
old thread. A workaround that works for me is:

~/bin/emacs.sh:

#!/bin/bash -i

emacs "$@"

-- cut --

git config --global core.editor ~/bin/emacs.sh

Matt

      reply	other threads:[~2012-02-22 23:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13 21:37 Manual hunk edit mode + emacs + ^G == garbage Kevin Ballard
2010-10-13 21:48 ` Drew Northup
2010-10-13 21:53   ` Kevin Ballard
2010-10-13 22:40     ` Andreas Schwab
2010-10-13 22:49       ` Kevin Ballard
2010-10-14  9:37 ` Ævar Arnfjörð Bjarmason
2010-10-14  9:47   ` Kevin Ballard
2010-10-14  9:51   ` Miles Bader
2010-10-15  9:13     ` Kevin Ballard
2012-02-22 21:43       ` Matt McClure [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20120222T222339-97@post.gmane.org \
    --to=matthewlmcclure@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).