From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: select-window and select-frame Date: Sat, 26 Oct 2002 16:14:13 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200210242348.g9ONmVr17119@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1035663468 12462 80.91.224.249 (26 Oct 2002 20:17:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Oct 2002 20:17:48 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 185XNT-0003Es-00 for ; Sat, 26 Oct 2002 22:17:47 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 185XQl-0001yQ-00 for ; Sat, 26 Oct 2002 22:21:12 +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 185XMw-0006LB-00; Sat, 26 Oct 2002 16:17:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 185XKD-00054j-00 for emacs-devel@gnu.org; Sat, 26 Oct 2002 16:14:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 185XK2-0004m0-00 for emacs-devel@gnu.org; Sat, 26 Oct 2002 16:14:23 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 185XK1-0004l0-00 for emacs-devel@gnu.org; Sat, 26 Oct 2002 16:14:13 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 185XK1-0002FB-00; Sat, 26 Oct 2002 16:14:13 -0400 Original-To: monnier+gnu/emacs@rum.cs.yale.edu In-reply-to: <200210242348.g9ONmVr17119@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) 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:8812 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8812 I think this change of behavior in select-window is bad and should be reverted. It is incompatible and does break existing code. The solution I implemented seems to be bad, but it is not clear what a good solution is. The original problem is that (save-selected-window (select-window ...) ..) can permanently alter the frame-selected-window of a frame. I tried solving it by making select-window not alter the frame-selected-window of a frame that isn't selected. If we don't solve it that way, we need to solve it some other way, but what? One idea is that save-selected-window could also save and restore the frame-selected-window of every frame. Another idea is to have two different kinds of window-selection, one temporary and one "for real". Both of these changes would have major ramifications, and so does the solution I implemented. It is not clear what to do.