+2008-06-05 Juanma Barranquero <lekktu@gmail.com>
+
+ * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
+ (Fwindow_parameters): Return copy of parameter alist. Doc fix.
+ (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
+
2008-06-04 Juanma Barranquero <lekktu@gmail.com>
* window.c (Fset_window_parameter): Doc fix.
0, 1, 0,
doc: /* Return the parameters-alist of window WINDOW.
It is a list of elements of the form (PARAMETER . VALUE).
-The meaningful PARAMETERs depend on the kind of window.
If WINDOW is omitted, return information on the currently selected window. */)
(window)
Lisp_Object window;
{
- return decode_window (window)->window_parameters;
+ return Fcopy_alist (decode_window (window)->window_parameters);
}
DEFUN ("window-parameter", Fwindow_parameter, Swindow_parameter,
(window, parameter)
Lisp_Object window, parameter;
{
- return Fassq (parameter, decode_window (window)->window_parameters);
+ Lisp_Object result;
+
+ result = Fassq (parameter, decode_window (window)->window_parameters);
+ return CDR_SAFE (result);
}
Sset_window_parameter, 3, 3, 0,
doc: /* Set window parameter PARAMETER to VALUE on WINDOW.
If WINDOW is nil, use the currently selected window.
-Return the parameters-alist of WINDOW. */)
+Return VALUE. */)
(window, parameter, value)
Lisp_Object window, parameter, value;
{
w->window_parameters = Fcons (Fcons (parameter, value), w->window_parameters);
else
Fsetcdr (old_alist_elt, value);
- return w->window_parameters;
+ return value;
}