all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: ndame <emacsuser@freemail.hu>
Cc: 38370@debbugs.gnu.org
Subject: bug#38370: 26.2; Confusing message 'Hunk already applied' in diff-mode
Date: Thu, 20 Aug 2020 16:54:51 +0200	[thread overview]
Message-ID: <871rk1tlj8.fsf@gnus.org> (raw)
In-Reply-To: <AyDtbg.hEmTnourIu.FtDKvvSKLrHkCQM9QIcy@freemail.hu> (ndame's message of "Mon, 25 Nov 2019 14:11:30 +0100 (CET)")

ndame <emacsuser@freemail.hu> writes:

> 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 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?

Yeah, I've always found that messaging to be confusing and worrisome, as
if I had entered a command to change the source code instead of just
moving around in it.

I've now removed it.

Looking at the code in diff-mode, as far as I can see, the actual
"apply" functions will still output the hunk status.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2020-08-20 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2020-08-20 15:29   ` Stefan Monnier
2020-08-20 15:43     ` Lars Ingebrigtsen
2020-08-20 23:32       ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rk1tlj8.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=38370@debbugs.gnu.org \
    --cc=emacsuser@freemail.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.