Subject: bug#1237 closed by martin rudalics <[email-masked]> (Re: bug#1237: 23.0.60; `switch-to-buffer-other-window' sometimes uses selected window)

From: [email-masked] (Emacs bug Tracking System)

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#1237: 23.0.60; `switch-to-buffer-other-window' sometimes uses selected window

It has been closed by martin rudalics <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact martin rudalics <[email-masked]> by
replying to this email.

-- 
1237: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=1237
Emacs Bug Tracking System
Contact [email-masked] with problems
>From [email-masked] Sun Nov  2 03:15:28 2008
Date: Sun, 02 Nov 2008 12:14:05 +0100
From: martin rudalics <[email-masked]>
To: [email-masked]
CC: Markus Triska <[email-masked]>
Subject: Re: bug#1237: 23.0.60;	`switch-to-buffer-other-window' sometimes
 uses selected window

Fixed as

2008-11-02  Martin Rudalics  <[email-masked]>

	* window.el (save-selected-window-norecord): New macro
	(walk-windows): Use save-selected-window-norecord and call
	select-window with NORECORD set.  (Bug#1237)

Thanks for the report, martin

>From [email-masked] Fri Oct 24 03:28:22 2008
From: Markus Triska <[email-masked]>
To: [email-masked]
Subject: 23.0.60; `switch-to-buffer-other-window' sometimes uses selected window
Date: Fri, 24 Oct 2008 12:27:30 +0200 (CEST)

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.

In GNU Emacs 23.0.60.11 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2008-10-14 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t