[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resizing windows after display-buffer
From: |
Juanma Barranquero |
Subject: |
Re: Resizing windows after display-buffer |
Date: |
Mon, 25 Apr 2011 02:09:58 +0200 |
On Mon, Apr 25, 2011 at 01:45, Chong Yidong <address@hidden> wrote:
> Not long ago, we discussed generalizing temp-buffer-resize-mode so that
> it isn't just for Help buffers. I propose doing this not with a minor
> mode, but by adding a defcustom, display-buffer-fit-window-to-buffer.
In my everyday use, I display the buffer I'm working on (code, a text
file, whatever) in a full window; the only time that the window is
split is for temporary or secondary uses; for example, help windows,
occur output, ielm, an inferior mode (python, lisp, etc.), re-builder,
bs-show, etc; and I make sure that the "secondary" buffer goes always
to the bottom window and that window is resized to fit the buffer or
have a height limit (typically about a third of the frame height). If
I switch to the bottom window and do something that would cause the
top window to display another buffer (multi-occur, for example, or
selecting a new buffer from bs-show), I *don't* want the top window to
be resized.
So, in my case, a setting that would make every display-buffer to try
to fit is much worse than a minor mode that I can call from whatever
mode hook I like.
Juanma