From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#1237: 23.0.60; `switch-to-buffer-other-window' sometimes uses selected window Date: Sat, 01 Nov 2008 19:06:08 +0100 Message-ID: <490C9A90.40407@gmx.at> References: <20081024102730.972E2B43B34@mt-computer.local> <4901BF54.6020908@gmx.at> <4901DFA1.2010503@gmx.at> Reply-To: martin rudalics , 1237@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225564224 14095 80.91.229.12 (1 Nov 2008 18:30:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Nov 2008 18:30:24 +0000 (UTC) To: 1237@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 01 19:31:26 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KwLFt-0006VM-GG for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Nov 2008 19:31:25 +0100 Original-Received: from localhost ([127.0.0.1]:60639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwLEm-00059G-DV for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Nov 2008 14:30:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KwLEi-00058z-64 for bug-gnu-emacs@gnu.org; Sat, 01 Nov 2008 14:30:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KwLEf-00058X-NQ for bug-gnu-emacs@gnu.org; Sat, 01 Nov 2008 14:30:10 -0400 Original-Received: from [199.232.76.173] (port=43096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KwLEf-00058U-FC for bug-gnu-emacs@gnu.org; Sat, 01 Nov 2008 14:30:09 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50987) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KwLEe-0006T3-QJ for bug-gnu-emacs@gnu.org; Sat, 01 Nov 2008 14:30:09 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mA1IU4m2014593; Sat, 1 Nov 2008 11:30:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mA1IF3Bv010872; Sat, 1 Nov 2008 11:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 01 Nov 2008 18:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1237 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1237-submit@emacsbugs.donarmstrong.com id=B1237.12255629029594 (code B ref 1237); Sat, 01 Nov 2008 18:15:03 +0000 Original-Received: (at 1237) by emacsbugs.donarmstrong.com; 1 Nov 2008 18:08:22 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id mA1I8Hnm009588 for <1237@emacsbugs.donarmstrong.com>; Sat, 1 Nov 2008 11:08:19 -0700 Original-Received: (qmail invoked by alias); 01 Nov 2008 18:08:10 -0000 Original-Received: from 62-47-62-142.adsl.highway.telekom.at (EHLO [62.47.62.142]) [62.47.62.142] by mail.gmx.net (mp035) with SMTP; 01 Nov 2008 19:08:11 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18oC9lxptoow2B7f9qFU+WOHoJjrwKcu0csf93VrN oXERcN313oFTnv User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.76 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 01 Nov 2008 14:30:10 -0400 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:22079 Archived-At: I've been looking into this and found out that in order to fix problems in this area we need an optional "norecord" argument for `select-frame' and `set-frame-selected-window'. Both of these may (indirectly) call `select-window' and thus mess with the order of recently selected windows (and probably also the buffer list). As a rule, the norecord argument would be set by `with-selected-window' and `with-selected-frame' in addition to `walk-windows'. Personally, I'd set it in `save-selected-window' too, but this might break applications that rely on the implicit selection provided by the current mechanism. The changes are trivial and not very interesting to post. So please tell me whether you want them installed. martin