Mercurial > emacs
comparison lisp/window.el @ 61764:0d3c33403da5
(window-size-fixed): New defvar.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 23 Apr 2005 16:38:41 +0000 |
parents | f7f0c6eb075b |
children | bf8ebb1d0b0b 08185296b491 |
comparison
equal
deleted
inserted
replaced
61763:ce71dc9ea46f | 61764:0d3c33403da5 |
---|---|
26 ;;; Commentary: | 26 ;;; Commentary: |
27 | 27 |
28 ;; Window tree functions. | 28 ;; Window tree functions. |
29 | 29 |
30 ;;; Code: | 30 ;;; Code: |
31 | |
32 (defvar window-size-fixed nil | |
33 "*Non-nil in a buffer means windows displaying the buffer are fixed-size. | |
34 If the value is`height', then only the window's height is fixed. | |
35 If the value is `width', then only the window's width is fixed. | |
36 Any other non-nil value fixes both the width and the height. | |
37 Emacs won't change the size of any window displaying that buffer, | |
38 unless you explicitly change the size, or Emacs has no other choice.") | |
39 (make-variable-buffer-local 'window-size-fixed) | |
31 | 40 |
32 (defmacro save-selected-window (&rest body) | 41 (defmacro save-selected-window (&rest body) |
33 "Execute BODY, then select the window that was selected before BODY. | 42 "Execute BODY, then select the window that was selected before BODY. |
34 Also restore the selected window of each frame as it was at the start | 43 Also restore the selected window of each frame as it was at the start |
35 of this construct. | 44 of this construct. |