unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 38384@debbugs.gnu.org
Subject: bug#38384: (next|previous)-buffer silent about not switching
Date: Tue, 26 Nov 2019 20:56:42 +0100	[thread overview]
Message-ID: <CAAeL0SQWbL4wO7qE8OfyZDXEPiDC3hT3Rs6+txhW6=VbAO2AkQ@mail.gmail.com> (raw)
In-Reply-To: <83y2w2qvj5.fsf@gnu.org>

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

On Tue, Nov 26, 2019 at 8:36 PM Eli Zaretskii <eliz@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.

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

  reply	other threads:[~2019-11-26 19:56 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 12:08 bug#38384: (next|previous)-buffer silent about not switching Juanma Barranquero
2019-11-26 13:42 ` martin rudalics
2019-11-26 14:05   ` Juanma Barranquero
2019-11-26 15:42 ` Eli Zaretskii
2019-11-26 15:54   ` Juanma Barranquero
2019-11-26 16:00     ` Juanma Barranquero
2019-11-26 17:00       ` martin rudalics
2019-11-26 18:04       ` Eli Zaretskii
2019-11-26 18:23         ` Juanma Barranquero
2019-11-26 18:44           ` Eli Zaretskii
2019-11-26 18:51             ` Juanma Barranquero
2019-11-26 19:37               ` Eli Zaretskii
2019-11-26 19:56                 ` Juanma Barranquero [this message]
2019-11-26 20:07                   ` Eli Zaretskii
2019-11-26 17:00     ` martin rudalics
2019-11-26 18:03     ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CAAeL0SQWbL4wO7qE8OfyZDXEPiDC3hT3Rs6+txhW6=VbAO2AkQ@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=38384@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).