bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: want user option for pop-to-buffer to split window horizontally not


From: Walter Gillett
Subject: Re: want user option for pop-to-buffer to split window horizontally not vertical
Date: Fri, 16 Dec 2005 18:02:42 +0000

No, I hadn't heard of iswitchb -- thanks. Certainly useful but doesn't address the problem I'm thinking about, namely the ability to globally set the window splitting behavior when a command needs to split the window to show a buffer. A specific example I'm thinking of is the SVN front-end, psvn.el (see http://www.xsteve.at/prg/emacs/). When you run svn-diff via this utility, it always splits the window vertically, because it calls the built-in function pop-to-buffer, and that's what pop-to-buffer always does (today). I was able to work around this by hacking psvn.el locally & replacing the call to pop-to-buffer with code that splits horizontally, but clearly it would be more convenient, elegant, and broadly useful if the behavior of pop-to-buffer could be configurable.

-Walter

From: Sebastian Tennant <sebyte@smolny.plus.com>
To: "Walter Gillett" <walter_gillett@hotmail.com>
CC: juri@jurta.org,  bug-gnu-emacs@gnu.org
Subject: Re: want user option for pop-to-buffer to split window horizontally not vertical
Date: 15 Dec 2005 22:01:30 +0000

"Walter Gillett" <walter_gillett@hotmail.com> writes:

> Juri-
>
> That would be great, thanks!
>
> -Walter

Just in case... have you heard of iswitchb?

Forgive me if you have.

Just add

  (iswitchb-mode 1)

somewhere in your ~/.emacs and observe the changed behaviour.

(list-buffers) is mapped to `C-x C-b', so you can still use it, and `C-x b' is now mapped to (iswitchb-buffer). Cycle forward and back through buffers in the echo area using C-s and C-r. Select them with <RET>, kill them with C-k. Add
patterns to iswtich-buffer-ignore if they needn't be listed.

It's far less disruptive and just as functional in my opinion.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963





reply via email to

[Prev in Thread] Current Thread [Next in Thread]