GNU bug report logs -
#38384
(next|previous)-buffer silent about not switching
Previous Next
Reported by: Juanma Barranquero <lekktu <at> gmail.com>
Date: Tue, 26 Nov 2019 12:09:02 UTC
Severity: minor
Tags: patch
Done: Juanma Barranquero <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #49 received at 38384 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Tue, Nov 26, 2019 at 8:36 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> We previously signaled user-error in situations where we couldn't
> continue at all. Your addition is in a situation where nothing
> particularly bad happened, so from the POV of a caller, we are now
> signaling a user-error gratuitously. I'm bothered only by the change
> whereby we signal a user-error with the purpose of attracting the
> user's attention, not because we cannot continue.
I don't really see much difference.
In the two cases that already signal user-error, "continuing" would mean
doing nothing; there would be no other bad consequence. In the case I've
changed, continuing means the same: doing nothing. In all three cases,
signaling, instead of continuing, is purely to attract the user's attention.
In my opinion, such code should call switch-to-(prev|next)-buffer instead.
Anyway, there's no point in arguing this; if you feel strongly that the
last case should depend on called-interactively-p, I'll change it. But I
think we should instead leave it as it is and educate code writers to use
the documented calls instead of the user-level commands.
[Message part 2 (text/html, inline)]
This bug report was last modified 5 years and 181 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.