display-buffer normally splits a window into to to display the new buffer. that's great. i want the new buffer visible in the top window while the old sits a the bottom. the default behaviour is viceversa the new one sits at the bottom.
how do i customze this behavioiur? i gould find anything in the customizegroup "windows".
On Oct 28, 3:47 pm, halloolli <halloo...@hailmail.net> wrote:
> hi there
> display-buffer normally splits a window into to to display the new > buffer. that's great. i want the new buffer visible in the top window > while the old sits a the bottom. the default behaviour is viceversa > the new one sits at the bottom.
> how do i customze this behavioiur? i gould find anything in the > customizegroup "windows".
> thanks, olli
no suggestion from anyone? i have to assume then this behaviour of emacs is very deep down hard-wired...
halloolli <halloo...@hailmail.net> writes: > On Oct 28, 3:47 pm, halloolli <halloo...@hailmail.net> wrote: >> hi there
>> display-buffer normally splits a window into to to display the new >> buffer. that's great. i want the new buffer visible in the top window >> while the old sits a the bottom. the default behaviour is viceversa >> the new one sits at the bottom.
>> how do i customze this behavioiur? i gould find anything in the >> customizegroup "windows".
>> thanks, olli
> no suggestion from anyone? i have to assume then this behaviour of > emacs is very deep down hard-wired...
Sorry - can't solve that one, but here are some functions whch will allow you to swap the windows over quickly!
>> display-buffer normally splits a window into to to display the new >> buffer. that's great. i want the new buffer visible in the top window >> while the old sits a the bottom. the default behaviour is viceversa >> the new one sits at the bottom.
>> how do i customze this behavioiur? i gould find anything in the >> customizegroup "windows".
> no suggestion from anyone? i have to assume then this behaviour of > emacs is very deep down hard-wired...
There's the variable
,----[ C-h v display-buffer-function RET ] | display-buffer-function is a variable defined in `window.el'. | Its value is nil | | This variable is potentially risky when used as a file local variable. | | Documentation: | If non-nil, function to call to handle `display-buffer'. | It will receive two args, the buffer and a flag which if non-nil | means that the currently selected window is not acceptable. It | should choose or create a window, display the specified buffer in | it, and return the window. | | Commands such as `switch-to-buffer-other-window' and | `find-file-other-window' work using this function. `----
So you could copy the definition of `display-buffer' to `olli-display-buffer' and apply your changes to that function (or write your completely new function), and then set `display-buffer-function' to your new function. But `display-buffer' is quite complicated, so it's your decision if it's worth the effort.
> halloolli <halloo...@hailmail.net> writes: > > On Oct 28, 3:47 pm, halloolli <halloo...@hailmail.net> wrote: > >> hi there
> >> display-buffer normally splits a window into to to display the new > >> buffer. that's great. i want the new buffer visible in the top window > >> while the old sits a the bottom. the default behaviour is viceversa > >> the new one sits at the bottom.
> >> how do i customze this behavioiur? i gould find anything in the > >> customizegroup "windows".
> >> thanks, olli
> > no suggestion from anyone? i have to assume then this behaviour of > > emacs is very deep down hard-wired...
> Sorry - can't solve that one, but here are some functions whch will allow > you to swap the windows over quickly!
On Nov 2, 7:42 pm, Tassilo Horn <tass...@member.fsf.org> wrote:
> So you could copy the definition of `display-buffer' to > `olli-display-buffer' and apply your changes to that function (or write > your completely new function), and then set `display-buffer-function' to > your new function. But `display-buffer' is quite complicated, so it's > your decision if it's worth the effort.
well, in my emacs (GNU Emacs 22.3.1) display-buffer has no elisp definition which i could copy and modify... :-(
halloolli <halloo...@hailmail.net> writes: >> So you could copy the definition of `display-buffer' to >> `olli-display-buffer' and apply your changes to that function (or >> write your completely new function), and then set >> `display-buffer-function' to your new function. But `display-buffer' >> is quite complicated, so it's your decision if it's worth the effort.
> well, in my emacs (GNU Emacs 22.3.1) display-buffer has no elisp > definition which i could copy and modify... :-(
Time to update to 23.1. There it has an elisp definition, and the overall splitting mechanics are much better. For example, it'll split horizontally if the window is wide enough, so that you have two side by side windows afterwards.
> halloolli <halloo...@hailmail.net> writes: > >> So you could copy the definition of `display-buffer' to > >> `olli-display-buffer' and apply your changes to that function (or > >> write your completely new function), and then set > >> `display-buffer-function' to your new function. But `display-buffer' > >> is quite complicated, so it's your decision if it's worth the effort.
> > well, in my emacs (GNU Emacs 22.3.1) display-buffer has no elisp > > definition which i could copy and modify... :-(
> Time to update to 23.1. There it has an elisp definition, and the > overall splitting mechanics are much better. For example, it'll split > horizontally if the window is wide enough, so that you have two side by > side windows afterwards.