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: Fri, 24 Oct 2008 14:28:04 +0200 Message-ID: <4901BF54.6020908@gmx.at> References: <20081024102730.972E2B43B34@mt-computer.local> 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-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224852636 5429 80.91.229.12 (24 Oct 2008 12:50:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2008 12:50:36 +0000 (UTC) Cc: 1237@emacsbugs.donarmstrong.com To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 14:51:37 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 1KtM8O-00057I-L0 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2008 14:51:20 +0200 Original-Received: from localhost ([127.0.0.1]:48775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtM7I-0004Yl-9S for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Oct 2008 08:50:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KtM7E-0004YW-Lb for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 08:50:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KtM7D-0004Xw-9w for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 08:50:08 -0400 Original-Received: from [199.232.76.173] (port=50557 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KtM7D-0004Xt-29 for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 08:50:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55841) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KtM7C-00073z-Kz for bug-gnu-emacs@gnu.org; Fri, 24 Oct 2008 08:50:06 -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 m9OCo2td028389; Fri, 24 Oct 2008 05:50:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9OCZ3eZ024831; Fri, 24 Oct 2008 05:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 24 Oct 2008 12:35: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.122485137723610 (code B ref 1237); Fri, 24 Oct 2008 12:35:03 +0000 Original-Received: (at 1237) by emacsbugs.donarmstrong.com; 24 Oct 2008 12:29:37 +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 m9OCTXUi023603 for <1237@emacsbugs.donarmstrong.com>; Fri, 24 Oct 2008 05:29:35 -0700 Original-Received: (qmail invoked by alias); 24 Oct 2008 12:29:27 -0000 Original-Received: from 62-47-36-89.adsl.highway.telekom.at (EHLO [62.47.36.89]) [62.47.36.89] by mail.gmx.net (mp059) with SMTP; 24 Oct 2008 14:29:27 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+KMtIE8kyKotrqQMSp9VWmTFqEYIDjvHs9uPbMz7 SiUVofWDI3ry0H User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <20081024102730.972E2B43B34@mt-computer.local> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 24 Oct 2008 08:50:08 -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:21864 Archived-At: > When you do: > > $ emacs -Q -f linum-mode > > and then: > > C-x 2 > > you obtain one frame with two windows, the one on top being selected. > > When you then do: > > M-: (switch-to-buffer-other-window "test") RET > > the selected window is unexpectedly reused to display the new buffer. FWIW, the problem seems that `linum-mode' indirectly changes the value of windows' use_time so the value returned by `get-lru-window' is messy. use_time is updated by `select-window', hence a potential culprit is `walk-windows' which is used by `linum-mode'. Could you try to find out whether my guess is correct and/or where and how use_time is set when `linum-mode' is active? Thanks, martin