Re: Manual hunk edit mode + emacs + ^G == garbage
- From
Matt McClure <matthewlmcclure@gmail.com>
- Date
- Feb 22, 2012, 21:43 UTC
- Message-ID
- <loom.20120222T222339-97@post.gmane.org>
- In-Reply-To
- <EDCC7CB3-4DFF-45B8-9E23-E12045CC29D7@sb.org>
Kevin Ballard <kevin <at> sb.org> writes:
Show 6 quoted lines
> 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