From: Matt McClure Date: Wed, 22 Feb 2012 21:43:34 GMT Subject: Re: Manual hunk edit mode + emacs + ^G == garbage Message-ID: In-Reply-To: Kevin Ballard 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