all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#38370: 26.2; Confusing message 'Hunk already applied' in diff-mode
@ 2019-11-25 13:11 ndame
  2020-08-20 14:54 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: ndame @ 2019-11-25 13:11 UTC (permalink / raw)
  To: 38370

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]


Recently I turned on next-error-follow-minor-mode in diff buffers, so
the source context is shown automatically as I move around in the diff
buffer.

It works well, but after a while I noticed there is always a 'Hunk
already applied' message in the echo area.

I investigated and turns out the message comes from here:

    next-error
    next-error-function
    diff-next-error
    diff-goto-source
    diff-hunk-status-msg


So goto source prints this message every time, even if one just
presses RET in a diff buffer.

I found it confusing, because I was just moving around, I didn't try
to apply anything, so this message wasn't really informative, it
stopped my flow with its unwanted appearance and reference to an other
operation.

Shouldn't this 'Hunk already applied' message appear only if the user
actually tries to apply something?

[-- Attachment #2: Type: text/html, Size: 1078 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-20 23:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-25 13:11 bug#38370: 26.2; Confusing message 'Hunk already applied' in diff-mode ndame
2020-08-20 14:54 ` Lars Ingebrigtsen
2020-08-20 15:29   ` Stefan Monnier
2020-08-20 15:43     ` Lars Ingebrigtsen
2020-08-20 23:32       ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.