summaryrefslogtreecommitdiff
path: root/lisp/window.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-04-23 16:38:41 +0000
committerRichard M. Stallman <rms@gnu.org>2005-04-23 16:38:41 +0000
commit64da8b20e26c39968dc1be651257119337a3826c (patch)
treeedf0e4599a5e38124fd9e159f76d53f3d5201062 /lisp/window.el
parent25e73e0cdb9f15ecf687a957f12184aa009e557a (diff)
downloademacs-64da8b20e26c39968dc1be651257119337a3826c.tar.gz
(window-size-fixed): New defvar.
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/window.el b/lisp/window.el
index b4fd664a43c..8c46addf444 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -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