emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110046: Window parameter functions a


From: martin rudalics
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110046: Window parameter functions again accept any window as argument (Bug#12452).
Date: Sun, 16 Sep 2012 12:25:24 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110046
committer: martin rudalics <address@hidden>
branch nick: trunk
timestamp: Sun 2012-09-16 12:25:24 +0200
message:
  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).
modified:
  src/ChangeLog
  src/window.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-09-16 09:11:50 +0000
+++ b/src/ChangeLog     2012-09-16 10:25:24 +0000
@@ -1,3 +1,8 @@
+2012-09-16  Martin Rudalics  <address@hidden>
+
+       * window.c (Fwindow_parameter, Fset_window_parameter): Accept
+       any window as argument (Bug#12452).
+
 2012-09-16  Jan Djärv  <address@hidden>
 
        * nsfns.m (Fx_open_connection): Move initialization of ns_*_types

=== modified file 'src/window.c'
--- a/src/window.c      2012-09-15 07:06:56 +0000
+++ b/src/window.c      2012-09-16 10:25:24 +0000
@@ -1855,23 +1855,23 @@
 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);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]