Commit a8c729af authored by Martin Rudalics's avatar Martin Rudalics

Window parameter functions again accept any window as argument (Bug#12452).

* window.c (Fwindow_parameter, Fset_window_parameter): Accept
any window as argument (Bug#12452).
parent c077c059
2012-09-16 Martin Rudalics <rudalics@gmx.at>
* window.c (Fwindow_parameter, Fset_window_parameter): Accept
any window as argument (Bug#12452).
2012-09-16 Jan Djärv <jan.h.d@swipnet.se>
* nsfns.m (Fx_open_connection): Move initialization of ns_*_types
......
......@@ -1855,23 +1855,23 @@ return value is a list of elements of the form (PARAMETER . VALUE). */)
DEFUN ("window-parameter", Fwindow_parameter, Swindow_parameter,
2, 2, 0,
doc: /* Return WINDOW's value for PARAMETER.
WINDOW must be a valid window and defaults to the selected one. */)
WINDOW can be any window and defaults to the selected one. */)
(Lisp_Object window, Lisp_Object parameter)
{
Lisp_Object result;
result = Fassq (parameter, decode_valid_window (window)->window_parameters);
result = Fassq (parameter, decode_any_window (window)->window_parameters);
return CDR_SAFE (result);
}
DEFUN ("set-window-parameter", Fset_window_parameter,
Sset_window_parameter, 3, 3, 0,
doc: /* Set WINDOW's value of PARAMETER to VALUE.
WINDOW must be a valid window and defaults to the selected one.
WINDOW can be any window and defaults to the selected one.
Return VALUE. */)
(Lisp_Object window, Lisp_Object parameter, Lisp_Object value)
{
register struct window *w = decode_valid_window (window);
register struct window *w = decode_any_window (window);
Lisp_Object old_alist_elt;
old_alist_elt = Fassq (parameter, w->window_parameters);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment