From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MBR Newsgroups: gmane.emacs.help Subject: Annoying change in "other window" behavior Date: Tue, 23 Aug 2011 02:55:22 -0400 Message-ID: <4E534EDA.3040103@arlsoft.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------010802060200060006010600" X-Trace: dough.gmane.org 1314082568 28983 80.91.229.12 (23 Aug 2011 06:56:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2011 06:56:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 23 08:55:59 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qvkty-0007nQ-I9 for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 08:55:59 +0200 Original-Received: from localhost ([::1]:43779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvktn-000375-Ma for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Aug 2011 02:55:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvkti-00036z-C1 for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 02:55:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qvkth-00017G-0b for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 02:55:42 -0400 Original-Received: from cario.hostforweb.net ([66.225.230.82]:50693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvktg-000179-Pa for help-gnu-emacs@gnu.org; Tue, 23 Aug 2011 02:55:40 -0400 Original-Received: from c-24-61-86-182.hsd1.ma.comcast.net ([24.61.86.182]:2204 helo=[127.0.0.1]) by cario.hostforweb.net with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.69) (envelope-from ) id 1Qvktb-0004PZ-Dg; Tue, 23 Aug 2011 01:55:36 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cario.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - arlsoft.com X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: Linux 2.6? (barebone, rare!) X-Received-From: 66.225.230.82 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82023 Archived-At: This is a multi-part message in MIME format. --------------010802060200060006010600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I've been using Emacs 21.3.1 for a long time and never got around to upgrading. I just installed Ubuntu (Natty Narwahl) on another system and when I installed Emacs on it, version 23.2.1 got installed. The new Emacs implements a "feature" that I'm finding very inconvenient, but I haven't found any way to turn it off. There are certain commands that operate on the "other window". For example: 1. C-x b brings up the *Buffer List* buffer in the other window, 2. C-x 4 f opens up a file in the other window, and 3. In a dired buffer you can position the cursor on a file or directory and type "o", and it will open that file or directory in the other window. Note that I'm using the Emacs meaning of "window". I don't mean what the GUI (e.g. X11) calls a "window", which Emacs calls a "frame". I mean a subdivision of a top-level GUI window. Emacs windows are tiled either side-by-side or directly above and below other Emacs windows. Anyway, I can split a window horizontally (i.e. turn it into two side-by-side windows) with C-x 3. +--------------------+--------------------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +--------------------+--------------------+ Or I can split a window vertically (i.e. turn it into two windows, one directly below the other) with C-x 2. +-----------------------------------------+ | | | | | | | | | | | | +-----------------------------------------+ | | | | | | | | | | | | +-----------------------------------------+ In the older version of Emacs, when I used a command that operates on the other window, it always chose the other window from the set of windows I'd already created. If I'd previously created two vertically-stacked windows with C-x 2 or two side-by-side windows with C-x 3, it would put the data in whatever window the cursor was not in. Only when I had just one Emacs window, would it create a second window. In version 23.2.1, that's all changed. The rule now seems to be that it will reuse a side-by-side window, but won't reuse a vertically-stacked window. So, if I've previously split my screen into side-by-side windows with C-x 3, the behavior is like it used to be. If my screen starts out looking like: +--------------------+--------------------+ | Dired buffer | | | ...>file #1 | | | ... file #2 | | | ... file #3 | | | ... file #4 | | | | | | | | | | | | | | | | | | | | | | | | | | +--------------------+--------------------+ Note: ">" represents the cursor position. after I type "o" (which runs dired-find-file-other-window), it looks just like it used to in the older version: +--------------------+--------------------+ | Dired buffer | This window now | | ...>file #1 | displays the | | ... file #2 | contents of | | ... file #3 | file #1. | | ... file #4 | | | | | | | | | | | | | | | | | | | | | | | | | | +--------------------+--------------------+ BUT if I've previously split my screen into vertically-stacked windows with C-x 2, it now splits my current window into two side-by-side windows, leaving me with three windows. So, if my screen starts out looking like: +-----------------------------------------+ | Dired buffer | | ...>file #1 | | ... file #2 | | ... file #3 | | ... file #4 | | | +-----------------------------------------+ | | | | | | | | | | | | +-----------------------------------------+ After I type "o" it used to look like: +-----------------------------------------+ | Dired buffer | | ...>file #1 | | ... file #2 | | ... file #3 | | ... file #4 | | | +-----------------------------------------+ | This window now displays the contents | | of file #1. | | | | | | | | | +-----------------------------------------+ BUT NOW it looks like: +--------------------+--------------------+ | Dired buffer | This window now | | ...>file #1 | displays the | | ... file #2 | contents of | | ... file #3 | file #1. | | ... file #4 | | | | | +--------------------+--------------------+ | | | | | | | | | | | | +-----------------------------------------+ I'm finding this very inconvenient. Does anyone know if there's a variable I can set in my .emacs to change back to the old behavior? Or if not, is there anyone who's familiar with the Lisp code that implements this who can point me to where in the code I should look to figure out how to change this? --------------010802060200060006010600 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

I've been using Emacs 21.3.1 for a long time and never got around to upgrading. I just installed Ubuntu (Natty Narwahl) on another system and when I installed Emacs on it, version 23.2.1 got installed. The new Emacs implements a "feature" that I'm finding very inconvenient, but I haven't found any way to turn it off.

There are certain commands that operate on the "other window". For example:

  1. C-x b brings up the *Buffer List* buffer in the other window,
  2. C-x 4 f opens up a file in the other window, and
  3. In a dired buffer you can position the cursor on a file or directory and type "o", and it will open that file or directory in the other window.

Note that I'm using the Emacs meaning of "window". I don't mean what the GUI (e.g. X11) calls a "window", which Emacs calls a "frame". I mean a subdivision of a top-level GUI window. Emacs windows are tiled either side-by-side or directly above and below other Emacs windows.

Anyway, I can split a window horizontally (i.e. turn it into two side-by-side windows) with C-x 3.

	+--------------------+--------------------+
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	+--------------------+--------------------+

Or I can split a window vertically (i.e. turn it into two windows, one directly below the other) with C-x 2.

	+-----------------------------------------+
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	+-----------------------------------------+
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	+-----------------------------------------+

In the older version of Emacs, when I used a command that operates on the other window, it always chose the other window from the set of windows I'd already created. If I'd previously created two vertically-stacked windows with C-x 2 or two side-by-side windows with C-x 3, it would put the data in whatever window the cursor was not in. Only when I had just one Emacs window, would it create a second window.

In version 23.2.1, that's all changed. The rule now seems to be that it will reuse a side-by-side window, but won't reuse a vertically-stacked window. So, if I've previously split my screen into side-by-side windows with C-x 3, the behavior is like it used to be. If my screen starts out looking like:

	+--------------------+--------------------+
	|  Dired buffer      |                    |
	|  ... >file #1      |                    |
	|  ... file #2       |                    |
	|  ... file #3       |                    |
	|  ... file #4 	     |                    |
	| 	      	     |                    |
	| 	      	     |                    |
	| 	      	     |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	+--------------------+--------------------+

	Note: ">" represents the cursor position.

after I type "o" (which runs dired-find-file-other-window), it looks just like it used to in the older version:

	+--------------------+--------------------+
	|  Dired buffer      |  This window now   |
	|  ... >file #1      |  displays the      |
	|  ... file #2       |  contents of       |
	|  ... file #3       |  file #1.          |
	|  ... file #4 	     |                    |
	| 	      	     |                    |
	| 	      	     |                    |
	| 	      	     |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	|                    |                    |
	+--------------------+--------------------+

BUT if I've previously split my screen into vertically-stacked windows with C-x 2, it now splits my current window into two side-by-side windows, leaving me with three windows. So, if my screen starts out looking like:

	+-----------------------------------------+
	|  Dired buffer                           |
	|  ... >file #1                           |
	|  ... file #2                            |
	|  ... file #3                            |
	|  ... file #4                            |
	|                                         |
	+-----------------------------------------+
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	+-----------------------------------------+

After I type "o" it used to look like:

	+-----------------------------------------+
	|  Dired buffer                           |
	|  ... >file #1                           |
	|  ... file #2                            |
	|  ... file #3                            |
	|  ... file #4                            |
	|                                         |
	+-----------------------------------------+
	|  This window now displays the contents  |
	|  of file #1.                            |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	+-----------------------------------------+

BUT NOW it looks like:

	+--------------------+--------------------+
	|  Dired buffer      |  This window now   |
	|  ... >file #1      |  displays the      |
	|  ... file #2       |  contents of       |
	|  ... file #3       |  file #1.          |
	|  ... file #4 	     |                    |
	| 	      	     |                    |
	+--------------------+--------------------+
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	|                                         |
	+-----------------------------------------+

I'm finding this very inconvenient. Does anyone know if there's a variable I can set in my .emacs to change back to the old behavior? Or if not, is there anyone who's familiar with the Lisp code that implements this who can point me to where in the code I should look to figure out how to change this?

--------------010802060200060006010600--