Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
how do i customize the window splitting in display-buffer
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
halloolli  
View profile  
 More options Oct 28, 12:47 am
Newsgroups: comp.emacs
From: halloolli <halloo...@hailmail.net>
Date: Tue, 27 Oct 2009 21:47:04 -0700 (PDT)
Local: Wed, Oct 28 2009 12:47 am
Subject: how do i customize the window splitting in display-buffer
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
halloolli  
View profile  
 More options Nov 1, 8:52 pm
Newsgroups: comp.emacs
From: halloolli <halloo...@hailmail.net>
Date: Sun, 1 Nov 2009 17:52:35 -0800 (PST)
Local: Sun, Nov 1 2009 8:52 pm
Subject: Re: how do i customize the window splitting in display-buffer
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...

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Glyn Millington  
View profile  
 More options Nov 2, 3:05 am
Newsgroups: comp.emacs
From: Glyn Millington <wistansw...@linuxmail.org>
Date: Mon, 02 Nov 2009 08:05:37 +0000
Local: Mon, Nov 2 2009 3:05 am
Subject: Re: how do i customize the window splitting in display-buffer

Sorry - can't solve that one, but here are some functions whch will allow
you to swap the windows over quickly!

http://www.emacswiki.org/emacs/TransposeWindows

atb

Glyn


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Nov 2, 3:42 am
Newsgroups: comp.emacs
From: Tassilo Horn <tass...@member.fsf.org>
Date: Mon, 02 Nov 2009 09:42:44 +0100
Local: Mon, Nov 2 2009 3:42 am
Subject: Re: how do i customize the window splitting in display-buffer

halloolli <halloo...@hailmail.net> writes:

Hi Olli!

>> 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.

Bye,
Tassilo


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
halloolli  
View profile  
 More options Nov 3, 1:45 am
Newsgroups: comp.emacs
From: halloolli <halloo...@hailmail.net>
Date: Mon, 2 Nov 2009 22:45:33 -0800 (PST)
Local: Tues, Nov 3 2009 1:45 am
Subject: Re: how do i customize the window splitting in display-buffer
On Nov 2, 7:05 pm, Glyn Millington <wistansw...@linuxmail.org> wrote:

thanks glyn. that's the work around i'm using at the moment.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
halloolli  
View profile  
 More options Nov 3, 1:48 am
Newsgroups: comp.emacs
From: halloolli <halloo...@hailmail.net>
Date: Mon, 2 Nov 2009 22:48:17 -0800 (PST)
Local: Tues, Nov 3 2009 1:48 am
Subject: Re: how do i customize the window splitting in display-buffer
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... :-(

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tassilo Horn  
View profile  
 More options Nov 3, 3:57 am
Newsgroups: comp.emacs
From: Tassilo Horn <tass...@member.fsf.org>
Date: Tue, 03 Nov 2009 09:57:50 +0100
Local: Tues, Nov 3 2009 3:57 am
Subject: Re: how do i customize the window splitting in display-buffer

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.

Bye,
Tassilo


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
halloolli  
View profile  
 More options Nov 4, 5:30 pm
Newsgroups: comp.emacs
From: halloolli <halloo...@hailmail.net>
Date: Wed, 4 Nov 2009 14:30:33 -0800 (PST)
Local: Wed, Nov 4 2009 5:30 pm
Subject: Re: how do i customize the window splitting in display-buffer
On Nov 3, 7:57 pm, Tassilo Horn <tass...@member.fsf.org> wrote:

cool, thanks for the hint! will upgarde soon!

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google