all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Annoying change in "other window" behavior
@ 2011-08-23  6:55 MBR
  2011-08-23  8:26 ` suvayu ali
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: MBR @ 2011-08-23  6:55 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 7339 bytes --]

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?


[-- Attachment #2: Type: text/html, Size: 8090 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-24 16:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-23  6:55 Annoying change in "other window" behavior MBR
2011-08-23  8:26 ` suvayu ali
2011-08-23 16:14   ` MBR
2011-08-23  8:30 ` suvayu ali
2011-08-23 11:34 ` Bernardo
2011-08-23 16:34   ` MBR
     [not found]   ` <mailman.1818.1314117273.939.help-gnu-emacs@gnu.org>
2011-08-24  5:51     ` Jason Rumney
2011-08-24 16:11       ` MBR

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.