diff options
| author | Miles Bader | 2005-05-05 00:04:55 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-05-05 00:04:55 +0000 |
| commit | cca4e3b099ec4c3f4a36fd0cb865c618a5589069 (patch) | |
| tree | 711e73e53dbe1ab3a59b53fb56a10836e777b43e /src/window.c | |
| parent | d469f5c370dbb6fac0e8d6687b47ccfcf96a13a5 (diff) | |
| parent | d68a5392cafedbe0ee6c3eca0444fce4a58b6cdf (diff) | |
| download | emacs-cca4e3b099ec4c3f4a36fd0cb865c618a5589069.tar.gz emacs-cca4e3b099ec4c3f4a36fd0cb865c618a5589069.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-44
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 272-288)
- src/xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 67)
- Update from CVS
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/src/window.c b/src/window.c index 0cfd4162fd7..454d712726c 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -79,10 +79,6 @@ static int foreach_window_1 P_ ((struct window *, | |||
| 79 | void *)); | 79 | void *)); |
| 80 | static Lisp_Object window_list_1 P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); | 80 | static Lisp_Object window_list_1 P_ ((Lisp_Object, Lisp_Object, Lisp_Object)); |
| 81 | 81 | ||
| 82 | /* The value of `window-size-fixed'. */ | ||
| 83 | |||
| 84 | int window_size_fixed; | ||
| 85 | |||
| 86 | /* This is the window in which the terminal's cursor should | 82 | /* This is the window in which the terminal's cursor should |
| 87 | be left when nothing is being done with it. This must | 83 | be left when nothing is being done with it. This must |
| 88 | always be a leaf window, and its buffer is selected by | 84 | always be a leaf window, and its buffer is selected by |
| @@ -3267,9 +3263,10 @@ display_buffer_1 (window) | |||
| 3267 | 3263 | ||
| 3268 | DEFUN ("special-display-p", Fspecial_display_p, Sspecial_display_p, 1, 1, 0, | 3264 | DEFUN ("special-display-p", Fspecial_display_p, Sspecial_display_p, 1, 1, 0, |
| 3269 | doc: /* Returns non-nil if a buffer named BUFFER-NAME gets a special frame. | 3265 | doc: /* Returns non-nil if a buffer named BUFFER-NAME gets a special frame. |
| 3270 | If the value is t, a frame would be created for that buffer | 3266 | If the value is t, `display-buffer' or `pop-to-buffer' would create a |
| 3271 | using the default frame parameters. If the value is a list, | 3267 | special frame for that buffer using the default frame parameters. |
| 3272 | it is a list of frame parameters that would be used | 3268 | |
| 3269 | If the value is a list, it is a list of frame parameters that would be used | ||
| 3273 | to make a frame for that buffer. | 3270 | to make a frame for that buffer. |
| 3274 | The variables `special-display-buffer-names' | 3271 | The variables `special-display-buffer-names' |
| 3275 | and `special-display-regexps' control this. */) | 3272 | and `special-display-regexps' control this. */) |
| @@ -3303,7 +3300,9 @@ and `special-display-regexps' control this. */) | |||
| 3303 | } | 3300 | } |
| 3304 | 3301 | ||
| 3305 | DEFUN ("same-window-p", Fsame_window_p, Ssame_window_p, 1, 1, 0, | 3302 | DEFUN ("same-window-p", Fsame_window_p, Ssame_window_p, 1, 1, 0, |
| 3306 | doc: /* Returns non-nil if a new buffer named BUFFER-NAME would use the same window. | 3303 | doc: /* Returns non-nil if a buffer named BUFFER-NAME would use the same window. |
| 3304 | More precisely, if `display-buffer' or `pop-to-buffer' would display | ||
| 3305 | that buffer in the selected window rather than (as usual) in some other window. | ||
| 3307 | See `same-window-buffer-names' and `same-window-regexps'. */) | 3306 | See `same-window-buffer-names' and `same-window-regexps'. */) |
| 3308 | (buffer_name) | 3307 | (buffer_name) |
| 3309 | Lisp_Object buffer_name; | 3308 | Lisp_Object buffer_name; |
| @@ -6669,6 +6668,7 @@ syms_of_window () | |||
| 6669 | { | 6668 | { |
| 6670 | Qwindow_size_fixed = intern ("window-size-fixed"); | 6669 | Qwindow_size_fixed = intern ("window-size-fixed"); |
| 6671 | staticpro (&Qwindow_size_fixed); | 6670 | staticpro (&Qwindow_size_fixed); |
| 6671 | Fset (Qwindow_size_fixed, Qnil); | ||
| 6672 | 6672 | ||
| 6673 | staticpro (&Qwindow_configuration_change_hook); | 6673 | staticpro (&Qwindow_configuration_change_hook); |
| 6674 | Qwindow_configuration_change_hook | 6674 | Qwindow_configuration_change_hook |
| @@ -6751,7 +6751,8 @@ where `pop-up-frame-alist' would hold the default frame parameters. */); | |||
| 6751 | 6751 | ||
| 6752 | DEFVAR_LISP ("special-display-buffer-names", &Vspecial_display_buffer_names, | 6752 | DEFVAR_LISP ("special-display-buffer-names", &Vspecial_display_buffer_names, |
| 6753 | doc: /* *List of buffer names that should have their own special frames. | 6753 | doc: /* *List of buffer names that should have their own special frames. |
| 6754 | Displaying a buffer whose name is in this list makes a special frame for it | 6754 | Displaying a buffer with `display-buffer' or `pop-to-buffer', |
| 6755 | if its name is in this list, makes a special frame for it | ||
| 6755 | using `special-display-function'. See also `special-display-regexps'. | 6756 | using `special-display-function'. See also `special-display-regexps'. |
| 6756 | 6757 | ||
| 6757 | An element of the list can be a list instead of just a string. | 6758 | An element of the list can be a list instead of just a string. |
| @@ -6776,9 +6777,9 @@ Those variables take precedence over this one. */); | |||
| 6776 | 6777 | ||
| 6777 | DEFVAR_LISP ("special-display-regexps", &Vspecial_display_regexps, | 6778 | DEFVAR_LISP ("special-display-regexps", &Vspecial_display_regexps, |
| 6778 | doc: /* *List of regexps saying which buffers should have their own special frames. | 6779 | doc: /* *List of regexps saying which buffers should have their own special frames. |
| 6779 | If a buffer name matches one of these regexps, it gets its own frame. | 6780 | When displaying a buffer with `display-buffer' or `pop-to-buffer', |
| 6780 | Displaying a buffer whose name is in this list makes a special frame for it | 6781 | if any regexp in this list matches the buffer name, it makes a |
| 6781 | using `special-display-function'. | 6782 | special frame for the buffer by calling `special-display-function'. |
| 6782 | 6783 | ||
| 6783 | An element of the list can be a list instead of just a string. | 6784 | An element of the list can be a list instead of just a string. |
| 6784 | There are two ways to use a list as an element: | 6785 | There are two ways to use a list as an element: |
| @@ -6877,16 +6878,6 @@ scroll as specified. */); | |||
| 6877 | The selected frame is the one whose configuration has changed. */); | 6878 | The selected frame is the one whose configuration has changed. */); |
| 6878 | Vwindow_configuration_change_hook = Qnil; | 6879 | Vwindow_configuration_change_hook = Qnil; |
| 6879 | 6880 | ||
| 6880 | DEFVAR_BOOL ("window-size-fixed", &window_size_fixed, | ||
| 6881 | doc: /* Non-nil in a buffer means windows displaying the buffer are fixed-size. | ||
| 6882 | If the value is`height', then only the window's height is fixed. | ||
| 6883 | If the value is `width', then only the window's width is fixed. | ||
| 6884 | Any other non-nil value fixes both the width and the height. | ||
| 6885 | Emacs won't change the size of any window displaying that buffer, | ||
| 6886 | unless you explicitly change the size, or Emacs has no other choice. */); | ||
| 6887 | Fmake_variable_buffer_local (Qwindow_size_fixed); | ||
| 6888 | window_size_fixed = 0; | ||
| 6889 | |||
| 6890 | defsubr (&Sselected_window); | 6881 | defsubr (&Sselected_window); |
| 6891 | defsubr (&Sminibuffer_window); | 6882 | defsubr (&Sminibuffer_window); |
| 6892 | defsubr (&Swindow_minibuffer_p); | 6883 | defsubr (&Swindow_minibuffer_p); |