diff options
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/w32fns.c | 13 | ||||
| -rw-r--r-- | src/xfns.c | 11 |
3 files changed, 19 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bb9fabfaa8e..0f1a0bdc666 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-07-06 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * w32fns.c (Fx_window_property): Accept the same arguments as the | ||
| 4 | X Windows version. Doc fix. | ||
| 5 | * xfns.c (Fx_window_property): Doc fix. (Bug#11870) | ||
| 6 | |||
| 1 | 2012-07-06 Juanma Barranquero <lekktu@gmail.com> | 7 | 2012-07-06 Juanma Barranquero <lekktu@gmail.com> |
| 2 | Eli Zaretskii <eliz@gnu.org> | 8 | Eli Zaretskii <eliz@gnu.org> |
| 3 | 9 | ||
diff --git a/src/w32fns.c b/src/w32fns.c index 99eca5c77b5..babc1e76cfc 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -4944,23 +4944,24 @@ FRAME nil or omitted means use the selected frame. Value is PROP. */) | |||
| 4944 | 4944 | ||
| 4945 | 4945 | ||
| 4946 | DEFUN ("x-window-property", Fx_window_property, Sx_window_property, | 4946 | DEFUN ("x-window-property", Fx_window_property, Sx_window_property, |
| 4947 | 1, 2, 0, | 4947 | 1, 6, 0, |
| 4948 | doc: /* Value is the value of window property PROP on FRAME. | 4948 | doc: /* Value is the value of window property PROP on FRAME. |
| 4949 | If FRAME is nil or omitted, use the selected frame. | 4949 | If FRAME is nil or omitted, use the selected frame. |
| 4950 | 4950 | ||
| 4951 | On MS Windows, this function only accepts the PROP and FRAME arguments. | ||
| 4952 | |||
| 4953 | On X Windows, the following optional arguments are also accepted: | 4951 | On X Windows, the following optional arguments are also accepted: |
| 4954 | If TYPE is nil or omitted, get the property as a string. | 4952 | If TYPE is nil or omitted, get the property as a string. |
| 4955 | Otherwise TYPE is the name of the atom that denotes the type expected. | 4953 | Otherwise TYPE is the name of the atom that denotes the type expected. |
| 4956 | If SOURCE is non-nil, get the property on that window instead of from | 4954 | If SOURCE is non-nil, get the property on that window instead of from |
| 4957 | FRAME. The number 0 denotes the root window. | 4955 | FRAME. The number 0 denotes the root window. |
| 4958 | If DELETE_P is non-nil, delete the property after retrieving it. | 4956 | If DELETE-P is non-nil, delete the property after retrieving it. |
| 4959 | If VECTOR_RET_P is non-nil, don't return a string but a vector of values. | 4957 | If VECTOR-RET-P is non-nil, don't return a string but a vector of values. |
| 4958 | |||
| 4959 | On MS Windows, this function accepts but ignores those optional arguments. | ||
| 4960 | 4960 | ||
| 4961 | Value is nil if FRAME hasn't a property with name PROP or if PROP has | 4961 | Value is nil if FRAME hasn't a property with name PROP or if PROP has |
| 4962 | no value of TYPE (always string in the MS Windows case). */) | 4962 | no value of TYPE (always string in the MS Windows case). */) |
| 4963 | (Lisp_Object prop, Lisp_Object frame) | 4963 | (Lisp_Object prop, Lisp_Object frame, Lisp_Object type, |
| 4964 | Lisp_Object source, Lisp_Object delete_p, Lisp_Object vector_ret_p) | ||
| 4964 | { | 4965 | { |
| 4965 | struct frame *f = check_x_frame (frame); | 4966 | struct frame *f = check_x_frame (frame); |
| 4966 | Atom prop_atom; | 4967 | Atom prop_atom; |
diff --git a/src/xfns.c b/src/xfns.c index ec729fab566..01ff62fcc48 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -4292,19 +4292,20 @@ DEFUN ("x-window-property", Fx_window_property, Sx_window_property, | |||
| 4292 | doc: /* Value is the value of window property PROP on FRAME. | 4292 | doc: /* Value is the value of window property PROP on FRAME. |
| 4293 | If FRAME is nil or omitted, use the selected frame. | 4293 | If FRAME is nil or omitted, use the selected frame. |
| 4294 | 4294 | ||
| 4295 | On MS Windows, this function only accepts the PROP and FRAME arguments. | ||
| 4296 | |||
| 4297 | On X Windows, the following optional arguments are also accepted: | 4295 | On X Windows, the following optional arguments are also accepted: |
| 4298 | If TYPE is nil or omitted, get the property as a string. | 4296 | If TYPE is nil or omitted, get the property as a string. |
| 4299 | Otherwise TYPE is the name of the atom that denotes the type expected. | 4297 | Otherwise TYPE is the name of the atom that denotes the type expected. |
| 4300 | If SOURCE is non-nil, get the property on that window instead of from | 4298 | If SOURCE is non-nil, get the property on that window instead of from |
| 4301 | FRAME. The number 0 denotes the root window. | 4299 | FRAME. The number 0 denotes the root window. |
| 4302 | If DELETE_P is non-nil, delete the property after retrieving it. | 4300 | If DELETE-P is non-nil, delete the property after retrieving it. |
| 4303 | If VECTOR_RET_P is non-nil, don't return a string but a vector of values. | 4301 | If VECTOR-RET-P is non-nil, don't return a string but a vector of values. |
| 4302 | |||
| 4303 | On MS Windows, this function accepts but ignores those optional arguments. | ||
| 4304 | 4304 | ||
| 4305 | Value is nil if FRAME hasn't a property with name PROP or if PROP has | 4305 | Value is nil if FRAME hasn't a property with name PROP or if PROP has |
| 4306 | no value of TYPE (always string in the MS Windows case). */) | 4306 | no value of TYPE (always string in the MS Windows case). */) |
| 4307 | (Lisp_Object prop, Lisp_Object frame, Lisp_Object type, Lisp_Object source, Lisp_Object delete_p, Lisp_Object vector_ret_p) | 4307 | (Lisp_Object prop, Lisp_Object frame, Lisp_Object type, |
| 4308 | Lisp_Object source, Lisp_Object delete_p, Lisp_Object vector_ret_p) | ||
| 4308 | { | 4309 | { |
| 4309 | struct frame *f = check_x_frame (frame); | 4310 | struct frame *f = check_x_frame (frame); |
| 4310 | Atom prop_atom; | 4311 | Atom prop_atom; |