emacs-devel
[Top][All Lists]
Advanced

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

Re: Window configurations


From: grischka
Subject: Re: Window configurations
Date: Tue, 11 May 2010 15:54:14 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Maybe a matter of taste but I would not count on more conclusive behavior
from even more new options that allow packages to do what you want in case
anyone bothers to understand the complex specifications.  Instead it might
be much more effective to implement conclusive behavior in a simple algorithm
and remove any options for packages to circumvent it.

For instance, one could have a buffer stack for each window, such that each
buffer displayed is added on top of the window's buffer stack.  If a buffer is
killed or hidden, then the window's next buffer is displayed.  If there is
no "next", then the window is deleted (including the frame if it's the last
window).

--- grischka

From: martin rudalics
   The `quit-restore' parameter tells how to proceed with a window when
the user "quits" it by invoking `quit-restore-window', see *Note
Displaying Buffers::.  The following non-`nil' values of this parameter
have a special meaning.

`t'
     This means to delete the associated window.  By default, `t' is
     used for a "temporary" window that was obtained by splitting an
     existing window.

`frame'
     This means to delete the associated window's frame.  This value
     indicates that the associated windows was obtained by popping up a
     new frame showing just this window.  If the window is no more
     needed, it should be deleted together with the containing frame.

A list
     This option is useful when the associated window was borrowed to
     temporarily display some buffer and quitting shall "restore" the
     previous contents of the window.  The first three elements of the
     list must specify a buffer, a window start position, and a window
     point.  Quitting the window will then try to display the indicated
     buffer with the given start position and point in that window.

     The fourth element, if non-`nil', must denote a live buffer.  If
     specified, quitting will restore the previous window contents if
     and only if the buffer shown in the window is the buffer named by
     this element.

     The fifth element, if non-`nil', should specify the desired height
     of the window when its buffer is restored.  This value is applied
     if the buffer temporarily shown in the window was in
     `temp-buffer-resize-mode' to restore the original height of the
     window.




reply via email to

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