aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2006-01-26 17:48:52 +0000
committerRichard M. Stallman2006-01-26 17:48:52 +0000
commitd00368cf268ab3e020f6e85121781ff069068057 (patch)
tree0e391b0203df3737885dc996fd3fca8803e04299 /src
parente477bb0420e5bbb734ddce2d09c6d91f720a0b33 (diff)
downloademacs-d00368cf268ab3e020f6e85121781ff069068057.tar.gz
emacs-d00368cf268ab3e020f6e85121781ff069068057.zip
(x_get_arg): "Clear out" the parm in ALIST if found there.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index 9060f7b47c5..630961d0b41 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3519,8 +3519,21 @@ x_get_arg (dpyinfo, alist, param, attribute, class, type)
3519 register Lisp_Object tem; 3519 register Lisp_Object tem;
3520 3520
3521 tem = Fassq (param, alist); 3521 tem = Fassq (param, alist);
3522 if (EQ (tem, Qnil)) 3522
3523 if (!NILP (tem))
3524 {
3525 /* If we find this parm in ALIST, clear it out
3526 so that it won't be "left over" at the end. */
3527#ifdef HAVE_X_WINDOWS /* macfns.c and w32fns.c have not yet
3528 been changed to cope with this. */
3529 XSETCAR (tem, Qnil);
3530#endif
3531 }
3532 else
3523 tem = Fassq (param, Vdefault_frame_alist); 3533 tem = Fassq (param, Vdefault_frame_alist);
3534
3535 /* If it wasn't specified in ALIST or the Lisp-level defaults,
3536 look in the X resources. */
3524 if (EQ (tem, Qnil)) 3537 if (EQ (tem, Qnil))
3525 { 3538 {
3526 if (attribute) 3539 if (attribute)