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

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

From
Kevin Ballard <kevin@sb.org>
Date
Oct 15, 2010, 09:13 UTC
Message-ID
<EDCC7CB3-4DFF-45B8-9E23-E12045CC29D7@sb.org>
In-Reply-To
<buomxqhayqc.fsf@dhlpc061.dev.necel.com>
On Oct 14, 2010, at 2:51 AM, Miles Bader wrote:
Show 8 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>>> I've been having a rather strange problem using manual hunk edit mode (`git add -p`, e)
>> 
>> Aside from this bug you might want to check out magit.el, it's a much
>> nicer hunk edit more for Emacs than running git add -p in an Emacs
>> terminal is.
> 
> Yup, for that particular problem, magit is, well, like magic :)
I tested out magit, and didn't particularly like it. First off, it seems to be throwing an error when I invoke magit-status, at least if there's no changes. I don't know if this is related to the fact that my emacs is only 22.1, but magit itself doesn't document any required version of emacs. Secondly, when there is a change, the coloration is really hard to read, and the navigation is quite poor as well (and I didn't find anything to make it better in the cheatsheet). And it's far slower than just using `git add -p` and only dropping into emacs occasionally for manual hunk edits.
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 Ballard
Previous: Miles BaderNext: Matt McClure
Message 9 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.