From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: other-window: say there is none if none Date: Tue, 14 Nov 2006 07:26:58 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1163507285 10846 80.91.229.2 (14 Nov 2006 12:28:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 12:28:05 +0000 (UTC) Cc: ihs_4664@yahoo.com, bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 14 13:28:02 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjxOO-00017y-QF for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2006 13:27:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjxON-0001gr-Pm for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 Nov 2006 07:27:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GjxNT-00014f-PU for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2006 07:26:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GjxNS-000144-VF for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2006 07:26:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjxNS-00013r-Je for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2006 07:26:58 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GjxNT-0004Co-1c for bug-gnu-emacs@gnu.org; Tue, 14 Nov 2006 07:26:59 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GjxNS-00044P-5j; Tue, 14 Nov 2006 07:26:58 -0500 Original-To: "Juanma Barranquero" In-reply-to: (lekktu@gmail.com) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15417 Archived-At: - Fselect_window (window, Qnil); + if (!EQ (window, old)) + Fselect_window (window, Qnil); + else if (Finteractive_p () && EQ (window, Fnext_window (window, Qnil, Qnil))) + error ("No other windows"); I am not sure this is a good idea. Displaying a message can't hurt when the command is called interactively, but this change would cause programs that call other-window to get errors where they didn't get errors before. This doesn't need to be changed now, so please leave it alone.