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

Re: Manual hunk edit mode + emacs + ^G == garbage

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Oct 13, 2010, 22:40 UTC
Message-ID
<m27hhld8d9.fsf@igel.home>
In-Reply-To
<24AC771D-07A7-49D7-8824-28E6156C90B4@sb.org>
Kevin Ballard <kevin@sb.org> writes:
> I've been investigating this on the emacs side as well. At the moment, my suspicion is that ^G causes emacs to trigger (keyboard-quit), but at the same time the surrounding environment (e.g. git) is sending a SIGINT to emacs, which normally acts like ^G but in this case may be triggering the emergency exit mode of emacs. Is there some reason that the interactive add would be sending SIGINT to emacs when I type ^G?

If you are using text mode (-nw) then Emacs redefines the INTR character of the terminal to ^G. On the other hand it should also put itself into its own process group, so the parent should not receive the terminal signals. And this is what happens here when I try it.

Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Kevin BallardNext: Kevin Ballard
Message 4 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.