summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2013-07-30 08:35:44 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2013-07-30 08:35:44 +0400
commitec3058af9654df71cce93629f3eab32dcbb6b946 (patch)
treef308ca6f6fcfd9c5ea54624f7856f4d4f4dcbb3c /src/frame.c
parent5c09de04ca053874f37281e22ea5556590875be2 (diff)
* frame.c (Fmodify_frame_parameters): Always check 2nd arg with
CHECK_LIST. Rewrite the loop to avoid useless local variable.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c
index 95f5356956..f8b7201e98 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2253,7 +2253,9 @@ use is not recommended. Explicitly check for a frame-parameter instead. */)
(Lisp_Object frame, Lisp_Object alist)
{
struct frame *f = decode_live_frame (frame);
- register Lisp_Object tail, prop, val;
+ register Lisp_Object prop, val;
+
+ CHECK_LIST (alist);
/* I think this should be done with a hook. */
#ifdef HAVE_WINDOW_SYSTEM
@@ -2278,12 +2280,11 @@ use is not recommended. Explicitly check for a frame-parameter instead. */)
/* Extract parm names and values into those vectors. */
- i = 0;
- for (tail = alist; CONSP (tail); tail = XCDR (tail))
+ for (i = 0; CONSP (alist); alist = XCDR (alist))
{
Lisp_Object elt;
- elt = XCAR (tail);
+ elt = XCAR (alist);
parms[i] = Fcar (elt);
values[i] = Fcdr (elt);
i++;