From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: select-window and select-frame Date: Thu, 24 Oct 2002 19:48:31 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210242348.g9ONmVr17119@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035504328 26843 80.91.224.249 (25 Oct 2002 00:05:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 25 Oct 2002 00:05:28 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184ryg-0006yd-00 for ; Fri, 25 Oct 2002 02:05:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 184s16-0002vb-00 for ; Fri, 25 Oct 2002 02:07:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184rj2-0003H8-00; Thu, 24 Oct 2002 19:49:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184riM-00028a-00 for emacs-devel@gnu.org; Thu, 24 Oct 2002 19:48:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184riK-00028O-00 for emacs-devel@gnu.org; Thu, 24 Oct 2002 19:48:33 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 184riK-00028K-00 for emacs-devel@gnu.org; Thu, 24 Oct 2002 19:48:32 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9ONmVr17119; Thu, 24 Oct 2002 19:48:31 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8753 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8753 As some people have noticed, the behavior of select-window was recently changed so that it doesn't automatically select the window's frame as well, so that we can now have the situation where the selected-window is not on the same frame as the selected-frame. I think this change of behavior in select-window is bad and should be reverted. It is incompatible and does break existing code. Worse yet, when it introduces a bug, it might not be straightforward to figure out where the bug is, you just end up with strange window layouts. Having the ability to distinguish between (selected-frame) and (window-frame (selected-window)) is OK, but changing the behavior of select-window is not. I suggest we either introduce a new function that changes the selected window without changing the selected frame, or add an argument to select-window to control the behavior (with the default being to behave like Emacs-21.1 and before did). Stefan PS: IIRC the reason why the behavior was changed is because it is otherwise impossible to cycle through all the visible windows (and selecting them one after the other) without changing the active windows of other frames (the active window of the current frame can be preserved by using save-window-configuration but this only applies to the current frame).