aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-18 13:46:46 +0000
committerGerd Moellmann2001-01-18 13:46:46 +0000
commitb0b7ed0e41fc0df49cef34211f2ed69e676e1adc (patch)
tree935f300929824e9d7bf485b35f8f09ba71711bf5
parent06bccf8e72074e260935af63e05079c7f53ff5f3 (diff)
downloademacs-b0b7ed0e41fc0df49cef34211f2ed69e676e1adc.tar.gz
emacs-b0b7ed0e41fc0df49cef34211f2ed69e676e1adc.zip
(window_size_fixed): New variable.
(syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for the doc string.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/window.c14
2 files changed, 17 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index affd55502de..f3f088a9b28 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-01-18 Gerd Moellmann <gerd@gnu.org> 12001-01-18 Gerd Moellmann <gerd@gnu.org>
2 2
3 * window.c (window_size_fixed): New variable.
4 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5 the doc string.
6
3 * eval.c (specbind): If binding a per-buffer variable which 7 * eval.c (specbind): If binding a per-buffer variable which
4 doesn't have a buffer-local value in the current buffer, change 8 doesn't have a buffer-local value in the current buffer, change
5 the global value by changing the value of the symbol bound in all 9 the global value by changing the value of the symbol bound in all
diff --git a/src/window.c b/src/window.c
index baa55a53969..fe899c84265 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1,6 +1,6 @@
1/* Window creation, deletion and examination for GNU Emacs. 1/* Window creation, deletion and examination for GNU Emacs.
2 Does not include redisplay. 2 Does not include redisplay.
3 Copyright (C) 1985,86,87,93,94,95,96,97,1998,2000 3 Copyright (C) 1985,86,87,93,94,95,96,97,1998,2000, 2001
4 Free Software Foundation, Inc. 4 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
@@ -82,6 +82,10 @@ static int foreach_window_1 P_ ((struct window *,
82 void *)); 82 void *));
83static Lisp_Object window_list_1 P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); 83static Lisp_Object window_list_1 P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
84 84
85/* The value of `window-size-fixed'. */
86
87int window_size_fixed;
88
85/* This is the window in which the terminal's cursor should 89/* This is the window in which the terminal's cursor should
86 be left when nothing is being done with it. This must 90 be left when nothing is being done with it. This must
87 always be a leaf window, and its buffer is selected by 91 always be a leaf window, and its buffer is selected by
@@ -5806,6 +5810,14 @@ If there is only one window, it is split regardless of this value.");
5806The selected frame is the one whose configuration has changed."); 5810The selected frame is the one whose configuration has changed.");
5807 Vwindow_configuration_change_hook = Qnil; 5811 Vwindow_configuration_change_hook = Qnil;
5808 5812
5813 DEFVAR_BOOL ("window-size-fixed", &window_size_fixed,
5814 "Non-nil in a buffer means windows displaying the buffer are fixed-size.\n\
5815Emacs won't change the size of any window displaying that buffer,\n\
5816unless you explicitly change the size, or Emacs has no other choice.\n\
5817This variable automatically becomes buffer-local when set.");
5818 Fmake_variable_buffer_local (Qwindow_size_fixed);
5819 window_size_fixed = 0;
5820
5809 defsubr (&Sselected_window); 5821 defsubr (&Sselected_window);
5810 defsubr (&Sminibuffer_window); 5822 defsubr (&Sminibuffer_window);
5811 defsubr (&Swindow_minibuffer_p); 5823 defsubr (&Swindow_minibuffer_p);