# HG changeset patch # User Richard M. Stallman # Date 1114274321 0 # Node ID 0d3c33403da5c058a0ef4ee239414a2d148bb825 # Parent ce71dc9ea46fffaddc0a9bf85cdd21b222f0deac (window-size-fixed): New defvar. diff -r ce71dc9ea46f -r 0d3c33403da5 lisp/window.el --- a/lisp/window.el Sat Apr 23 16:38:03 2005 +0000 +++ b/lisp/window.el Sat Apr 23 16:38:41 2005 +0000 @@ -29,6 +29,15 @@ ;;; Code: +(defvar window-size-fixed nil + "*Non-nil in a buffer means windows displaying the buffer are fixed-size. +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. +Emacs won't change the size of any window displaying that buffer, +unless you explicitly change the size, or Emacs has no other choice.") +(make-variable-buffer-local 'window-size-fixed) + (defmacro save-selected-window (&rest body) "Execute BODY, then select the window that was selected before BODY. Also restore the selected window of each frame as it was at the start