+2013-07-30 Dmitry Antipov <dmantipov@yandex.ru>
+
+ * frame.c (Fmodify_frame_parameters): Always check 2nd arg with
+ CHECK_LIST. Rewrite the loop to avoid useless local variable.
+
2013-07-29 Dmitry Antipov <dmantipov@yandex.ru>
* fns.c (toplevel): Remove comment before Fsafe_length because
(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
/* 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++;