From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38384: (next|previous)-buffer silent about not switching Date: Tue, 26 Nov 2019 20:03:04 +0200 Message-ID: <83blsyseg7.fsf@gnu.org> References: <83lfs2sky2.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="194953"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38384@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 19:04:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZfCH-000oZk-V8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 19:04:22 +0100 Original-Received: from localhost ([::1]:57780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZfCG-0004PL-RX for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 13:04:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51755) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZfBz-0004Om-8X for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 13:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZfBy-00017a-BW for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 13:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZfBy-00017V-7z for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 13:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZfBy-0006ZG-2t for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 13:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 18:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38384 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 38384-submit@debbugs.gnu.org id=B38384.157479138625186 (code B ref 38384); Tue, 26 Nov 2019 18:04:02 +0000 Original-Received: (at 38384) by debbugs.gnu.org; 26 Nov 2019 18:03:06 +0000 Original-Received: from localhost ([127.0.0.1]:52882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZfB4-0006YA-58 for submit@debbugs.gnu.org; Tue, 26 Nov 2019 13:03:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZfB2-0006Xf-AO for 38384@debbugs.gnu.org; Tue, 26 Nov 2019 13:03:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iZfAw-0000k3-Nz; Tue, 26 Nov 2019 13:02:59 -0500 Original-Received: from [176.228.60.248] (port=1462 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iZfAv-0005dt-RG; Tue, 26 Nov 2019 13:02:58 -0500 In-reply-to: (message from Juanma Barranquero on Tue, 26 Nov 2019 16:54:56 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172460 Archived-At: > From: Juanma Barranquero > Date: Tue, 26 Nov 2019 16:54:56 +0100 > Cc: 38384@debbugs.gnu.org > > > Could that disrupt noninteractive calls? > > Yes, that's why added the notice in NEWS in the "Incompatible Lisp Changes". Then how about signaling user-error only in interactive calls? > But, on one hand, programs should perhaps be using switch-to-(prev|next)-buffer. AFAICS, next-buffer and > previous-buffer aren't even documented in the Elisp manual (they are briefly mentioned in the Emacs > manual). > > And on the other, if code is using (next|prev)-buffer, silently getting the same buffer is likely a subtle bug > anyway. At least now they get notice. IMO, if we can improve the diagnostics only in interactive invocations, we have all the advantages without any disadvantages (and can move this out of the "incompatible changes" section).