git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Kevin Ballard
Message 10 of 10 in “Manual hunk edit mode + emacs + ^G == garbage”
  1. Kevin BallardOct 13, 2010
  2. Drew NorthupOct 13, 2010
  3. Kevin BallardOct 13, 2010
  4. Andreas SchwabOct 13, 2010
  5. Kevin BallardOct 13, 2010
  6. Ævar Arnfjörð BjarmasonOct 14, 2010
  7. Kevin BallardOct 14, 2010
  8. Miles BaderOct 14, 2010
  9. Kevin BallardOct 15, 2010
  10. Matt McClureFeb 22, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.