diff options
| author | Joakim Verona | 2012-01-23 15:10:06 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-01-23 15:10:06 +0100 |
| commit | 0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch) | |
| tree | 950c011783cc896d0450084cb5155e54548bfe5b /src/window.c | |
| parent | d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff) | |
| parent | cb5850f27c1b4d26957d58e2da2314dd12498671 (diff) | |
| download | emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip | |
upstream
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/window.c b/src/window.c index 3ee731e60bf..a3b58d648a1 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -59,7 +59,7 @@ static Lisp_Object Qreplace_buffer_in_windows, Qget_mru_window; | |||
| 59 | static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; | 59 | static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; |
| 60 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; | 60 | static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; |
| 61 | static Lisp_Object Qsafe, Qabove, Qbelow; | 61 | static Lisp_Object Qsafe, Qabove, Qbelow; |
| 62 | static Lisp_Object Qauto_buffer_name, Qclone_of, Qstate; | 62 | static Lisp_Object Qauto_buffer_name, Qclone_of; |
| 63 | 63 | ||
| 64 | static int displayed_window_lines (struct window *); | 64 | static int displayed_window_lines (struct window *); |
| 65 | static struct window *decode_window (Lisp_Object); | 65 | static struct window *decode_window (Lisp_Object); |
| @@ -5894,9 +5894,8 @@ save_window_save (Lisp_Object window, struct Lisp_Vector *vector, int i) | |||
| 5894 | tem = XCDR (tem)) | 5894 | tem = XCDR (tem)) |
| 5895 | { | 5895 | { |
| 5896 | pers = XCAR (tem); | 5896 | pers = XCAR (tem); |
| 5897 | /* Save values for persistent window parameters whose cdr | 5897 | /* Save values for persistent window parameters. */ |
| 5898 | is either nil or t. */ | 5898 | if (CONSP (pers) && !NILP (XCDR (pers))) |
| 5899 | if (CONSP (pers) && (NILP (XCDR (pers)) || EQ (XCDR (pers), Qt))) | ||
| 5900 | { | 5899 | { |
| 5901 | par = Fassq (XCAR (pers), w->window_parameters); | 5900 | par = Fassq (XCAR (pers), w->window_parameters); |
| 5902 | if (NILP (par)) | 5901 | if (NILP (par)) |
| @@ -5971,7 +5970,9 @@ and for each displayed buffer, where display starts, and the positions of | |||
| 5971 | point and mark. An exception is made for point in the current buffer: | 5970 | point and mark. An exception is made for point in the current buffer: |
| 5972 | its value is -not- saved. | 5971 | its value is -not- saved. |
| 5973 | This also records the currently selected frame, and FRAME's focus | 5972 | This also records the currently selected frame, and FRAME's focus |
| 5974 | redirection (see `redirect-frame-focus'). */) | 5973 | redirection (see `redirect-frame-focus'). The variable |
| 5974 | `window-persistent-parameters' specifies which window parameters are | ||
| 5975 | saved by this function. */) | ||
| 5975 | (Lisp_Object frame) | 5976 | (Lisp_Object frame) |
| 5976 | { | 5977 | { |
| 5977 | register Lisp_Object tem; | 5978 | register Lisp_Object tem; |
| @@ -6509,7 +6510,6 @@ syms_of_window (void) | |||
| 6509 | DEFSYM (Qbelow, "below"); | 6510 | DEFSYM (Qbelow, "below"); |
| 6510 | DEFSYM (Qauto_buffer_name, "auto-buffer-name"); | 6511 | DEFSYM (Qauto_buffer_name, "auto-buffer-name"); |
| 6511 | DEFSYM (Qclone_of, "clone-of"); | 6512 | DEFSYM (Qclone_of, "clone-of"); |
| 6512 | DEFSYM (Qstate, "state"); | ||
| 6513 | 6513 | ||
| 6514 | staticpro (&Vwindow_list); | 6514 | staticpro (&Vwindow_list); |
| 6515 | 6515 | ||
| @@ -6621,28 +6621,28 @@ function `set-window-combination-limit'. */); | |||
| 6621 | 6621 | ||
| 6622 | DEFVAR_LISP ("window-persistent-parameters", Vwindow_persistent_parameters, | 6622 | DEFVAR_LISP ("window-persistent-parameters", Vwindow_persistent_parameters, |
| 6623 | doc: /* Alist of persistent window parameters. | 6623 | doc: /* Alist of persistent window parameters. |
| 6624 | Parameters in this list are saved by `current-window-configuration' and | 6624 | This alist specifies which window parameters shall get saved by |
| 6625 | `window-state-get' and subsequently restored to their previous values by | 6625 | `current-window-configuration' and `window-state-get' and subsequently |
| 6626 | `set-window-configuration' and `window-state-put'. | 6626 | restored to their previous values by `set-window-configuration' and |
| 6627 | `window-state-put'. | ||
| 6627 | 6628 | ||
| 6628 | The car of each entry of this alist is the symbol specifying the | 6629 | The car of each entry of this alist is the symbol specifying the |
| 6629 | parameter. The cdr is one of the following: | 6630 | parameter. The cdr is one of the following: |
| 6630 | 6631 | ||
| 6631 | The symbol `state' means the parameter is saved by `window-state-get' | 6632 | nil means the parameter is neither saved by `window-state-get' nor by |
| 6632 | provided its IGNORE argument is nil. `current-window-configuration' | 6633 | `current-window-configuration'. |
| 6633 | does not save this parameter. | ||
| 6634 | 6634 | ||
| 6635 | nil means the parameter is saved by `current-window-configuration' and, | 6635 | t means the parameter is saved by `current-window-configuration' and, |
| 6636 | provided its IGNORE argument is nil, by `window-state-get'. | 6636 | provided its WRITABLE argument is nil, by `window-state-get'. |
| 6637 | 6637 | ||
| 6638 | t means the parameter is saved unconditionally by both | 6638 | The symbol `writable' means the parameter is saved unconditionally by |
| 6639 | `current-window-configuration' and `window-state-get'. Parameters | 6639 | both `current-window-configuration' and `window-state-get'. Do not use |
| 6640 | without read syntax (like windows or frames) should not use that. | 6640 | this value for parameters without read syntax (like windows or frames). |
| 6641 | 6641 | ||
| 6642 | Parameters not saved by `current-window-configuration' or | 6642 | Parameters not saved by `current-window-configuration' or |
| 6643 | `window-state-get' are left alone by `set-window-configuration' | 6643 | `window-state-get' are left alone by `set-window-configuration' |
| 6644 | respectively are not installed by `window-state-put'. */); | 6644 | respectively are not installed by `window-state-put'. */); |
| 6645 | Vwindow_persistent_parameters = list1 (Fcons (Qclone_of, Qstate)); | 6645 | Vwindow_persistent_parameters = list1 (Fcons (Qclone_of, Qt)); |
| 6646 | 6646 | ||
| 6647 | defsubr (&Sselected_window); | 6647 | defsubr (&Sselected_window); |
| 6648 | defsubr (&Sminibuffer_window); | 6648 | defsubr (&Sminibuffer_window); |