aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorJoakim Verona2012-01-23 15:10:06 +0100
committerJoakim Verona2012-01-23 15:10:06 +0100
commit0322b140eead7c94de7f0f6d19a90bd15690b4eb (patch)
tree950c011783cc896d0450084cb5155e54548bfe5b /src/window.c
parentd5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (diff)
parentcb5850f27c1b4d26957d58e2da2314dd12498671 (diff)
downloademacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.tar.gz
emacs-0322b140eead7c94de7f0f6d19a90bd15690b4eb.zip
upstream
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c36
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;
59static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically; 59static Lisp_Object Qwindow_resize_root_window, Qwindow_resize_root_window_vertically;
60static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command; 60static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command;
61static Lisp_Object Qsafe, Qabove, Qbelow; 61static Lisp_Object Qsafe, Qabove, Qbelow;
62static Lisp_Object Qauto_buffer_name, Qclone_of, Qstate; 62static Lisp_Object Qauto_buffer_name, Qclone_of;
63 63
64static int displayed_window_lines (struct window *); 64static int displayed_window_lines (struct window *);
65static struct window *decode_window (Lisp_Object); 65static 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
5971point and mark. An exception is made for point in the current buffer: 5970point and mark. An exception is made for point in the current buffer:
5972its value is -not- saved. 5971its value is -not- saved.
5973This also records the currently selected frame, and FRAME's focus 5972This also records the currently selected frame, and FRAME's focus
5974redirection (see `redirect-frame-focus'). */) 5973redirection (see `redirect-frame-focus'). The variable
5974`window-persistent-parameters' specifies which window parameters are
5975saved 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.
6624Parameters in this list are saved by `current-window-configuration' and 6624This 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'. 6626restored to their previous values by `set-window-configuration' and
6627`window-state-put'.
6627 6628
6628The car of each entry of this alist is the symbol specifying the 6629The car of each entry of this alist is the symbol specifying the
6629parameter. The cdr is one of the following: 6630parameter. The cdr is one of the following:
6630 6631
6631The symbol `state' means the parameter is saved by `window-state-get' 6632nil means the parameter is neither saved by `window-state-get' nor by
6632provided its IGNORE argument is nil. `current-window-configuration' 6633`current-window-configuration'.
6633does not save this parameter.
6634 6634
6635nil means the parameter is saved by `current-window-configuration' and, 6635t means the parameter is saved by `current-window-configuration' and,
6636provided its IGNORE argument is nil, by `window-state-get'. 6636provided its WRITABLE argument is nil, by `window-state-get'.
6637 6637
6638t means the parameter is saved unconditionally by both 6638The symbol `writable' means the parameter is saved unconditionally by
6639`current-window-configuration' and `window-state-get'. Parameters 6639both `current-window-configuration' and `window-state-get'. Do not use
6640without read syntax (like windows or frames) should not use that. 6640this value for parameters without read syntax (like windows or frames).
6641 6641
6642Parameters not saved by `current-window-configuration' or 6642Parameters 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'
6644respectively are not installed by `window-state-put'. */); 6644respectively 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);