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

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

Re: Is there a function for display-buffer-in-biggest-window?


From: Alex Bennee
Subject: Re: Is there a function for display-buffer-in-biggest-window?
Date: Fri, 6 Jul 2012 16:36:10 +0100

On 6 July 2012 15:34, Leo <sdl.web@gmail.com> wrote:
> On 2012-07-06 20:19 +0800, Alex Bennee wrote:
>> My work station has a fairly wide monitor on it now so my main work
>> frame has been split thusly:
> <snip>
>
> (set-window-buffer (get-largest-window) <YOUR BUFFER>)

Thanks. I figured emacs must have this somewhere. I was getting lost
in a list of apropos results all subtly different.

Follow-up question. Is there a "proper" way to use this function for
general buffer focus operations or do you need to rely on modes
having customisable buffer switch functions like magit's
magit-status-buffer-switch-function? At the moment I'm looking at
compilation-mode's goto error code and it's less than obvious to me
how the eventual switch happens.

-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk



reply via email to

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