* window-size-fixed
@ 2003-02-21 17:51 Klaus Berndl
0 siblings, 0 replies; only message in thread
From: Klaus Berndl @ 2003-02-21 17:51 UTC (permalink / raw)
In the elisp-info-manual there is the following description:
- Variable: window-size-fixed
If this variable is non-`nil', in any given buffer, then the size
of any window displaying the buffer remains fixed unless you
explicitly change it or Emacs has no other choice. (This feature
is new in Emacs 21.)
If the value is `height', then only the window's height is fixed;
if the value is `width', then only the window's width is fixed.
Any other non-`nil' value fixes both the width and the height.
The usual way to use this variable is to give it a buffer-local
value in a particular buffer. That way, the windows (but usually
there is only one) displaying that buffer have fixed size.
Explicit size-change functions such as `enlarge-window' get an
error if they would have to change a window size which is fixed.
Therefore, when you want to change the size of such a window, you
should bind `window-size-fixed' to `nil', like this:
(let ((window-size-fixed nil))
(enlarge-window 10))
Note that changing the frame size will change the size of a
fixed-size window, if there is no other alternative.
C-h v displays:
Documentation:
Non-nil in a buffer means windows displaying the buffer are fixed-size.
Emacs won't change the size of any window displaying that buffer,
unless you explicitly change the size, or Emacs has no other choice.
This variable automatically becomes buffer-local when set.
Regardless which not nil value i set in a buffer there seems always be set t.
Example:
(setq window-size-fixed 'width)
After that doing C-h v window-size-fixed RET in that buffer returns t as
value.
Is the distinction between 'width, 'height and t like described in the
info-manual not implemented now??
Thanks a lot,
Klaus
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-21 17:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-21 17:51 window-size-fixed Klaus Berndl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).