diff options
| author | Dmitry Antipov | 2013-03-24 09:29:35 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-03-24 09:29:35 +0400 |
| commit | 2bf7d27acd741bf870d6ca0c74dbed7b7260b5ad (patch) | |
| tree | 0e3e159e7474be687afb16caad35ae07fa863715 /src | |
| parent | a9ebfa0b3eb23056f523742e53ce79279cae1bd0 (diff) | |
| download | emacs-2bf7d27acd741bf870d6ca0c74dbed7b7260b5ad.tar.gz emacs-2bf7d27acd741bf870d6ca0c74dbed7b7260b5ad.zip | |
* xfaces.c (Finternal_face_x_get_resource): Allow 3rd (frame) argument
to be optional or nil. Adjust comment and convert it to docstring.
* xselect.c (Fx_send_client_event): Rename to Fx_send_client_message.
* frame.c (display_x_get_resource, Fx_get_resource): Break long line.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/frame.c | 7 | ||||
| -rw-r--r-- | src/xfaces.c | 17 | ||||
| -rw-r--r-- | src/xselect.c | 2 |
4 files changed, 22 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 16e70324af2..fb1c4fdc64c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-03-24 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * xfaces.c (Finternal_face_x_get_resource): Allow 3rd (frame) argument | ||
| 4 | to be optional or nil. Adjust comment and convert it to docstring. | ||
| 5 | * xselect.c (Fx_send_client_event): Rename to Fx_send_client_message. | ||
| 6 | * frame.c (display_x_get_resource, Fx_get_resource): Break long line. | ||
| 7 | |||
| 1 | 2013-03-24 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2013-03-24 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Static checking by GCC 4.8-20130319. | 10 | Static checking by GCC 4.8-20130319. |
diff --git a/src/frame.c b/src/frame.c index 615b31c978d..5360c1c701d 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3495,7 +3495,8 @@ The optional arguments COMPONENT and SUBCLASS add to the key and the | |||
| 3495 | class, respectively. You must specify both of them or neither. | 3495 | class, respectively. You must specify both of them or neither. |
| 3496 | If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE' | 3496 | If you specify them, the key is `INSTANCE.COMPONENT.ATTRIBUTE' |
| 3497 | and the class is `Emacs.CLASS.SUBCLASS'. */) | 3497 | and the class is `Emacs.CLASS.SUBCLASS'. */) |
| 3498 | (Lisp_Object attribute, Lisp_Object class, Lisp_Object component, Lisp_Object subclass) | 3498 | (Lisp_Object attribute, Lisp_Object class, Lisp_Object component, |
| 3499 | Lisp_Object subclass) | ||
| 3499 | { | 3500 | { |
| 3500 | #ifdef HAVE_X_WINDOWS | 3501 | #ifdef HAVE_X_WINDOWS |
| 3501 | check_x (); | 3502 | check_x (); |
| @@ -3508,7 +3509,9 @@ and the class is `Emacs.CLASS.SUBCLASS'. */) | |||
| 3508 | /* Get an X resource, like Fx_get_resource, but for display DPYINFO. */ | 3509 | /* Get an X resource, like Fx_get_resource, but for display DPYINFO. */ |
| 3509 | 3510 | ||
| 3510 | Lisp_Object | 3511 | Lisp_Object |
| 3511 | display_x_get_resource (Display_Info *dpyinfo, Lisp_Object attribute, Lisp_Object class, Lisp_Object component, Lisp_Object subclass) | 3512 | display_x_get_resource (Display_Info *dpyinfo, Lisp_Object attribute, |
| 3513 | Lisp_Object class, Lisp_Object component, | ||
| 3514 | Lisp_Object subclass) | ||
| 3512 | { | 3515 | { |
| 3513 | return xrdb_get_resource (dpyinfo->xrdb, | 3516 | return xrdb_get_resource (dpyinfo->xrdb, |
| 3514 | attribute, class, component, subclass); | 3517 | attribute, class, component, subclass); |
diff --git a/src/xfaces.c b/src/xfaces.c index eb33a38a491..6db6ac7683f 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -3395,21 +3395,22 @@ set_font_frame_param (Lisp_Object frame, Lisp_Object lface) | |||
| 3395 | } | 3395 | } |
| 3396 | } | 3396 | } |
| 3397 | 3397 | ||
| 3398 | |||
| 3399 | /* Get the value of X resource RESOURCE, class CLASS for the display | ||
| 3400 | of frame FRAME. This is here because ordinary `x-get-resource' | ||
| 3401 | doesn't take a frame argument. */ | ||
| 3402 | |||
| 3403 | DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, | 3398 | DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, |
| 3404 | Sinternal_face_x_get_resource, 3, 3, 0, doc: /* */) | 3399 | Sinternal_face_x_get_resource, 2, 3, 0, |
| 3400 | doc: /* Get the value of X resource RESOURCE, class CLASS. | ||
| 3401 | Returned value is for the display of frame FRAME. If FRAME is not | ||
| 3402 | specified or nil, use selected frame. This function exists because | ||
| 3403 | ordinary `x-get-resource' doesn't take a frame argument. */) | ||
| 3405 | (Lisp_Object resource, Lisp_Object class, Lisp_Object frame) | 3404 | (Lisp_Object resource, Lisp_Object class, Lisp_Object frame) |
| 3406 | { | 3405 | { |
| 3407 | Lisp_Object value = Qnil; | 3406 | Lisp_Object value = Qnil; |
| 3407 | struct frame *f; | ||
| 3408 | |||
| 3408 | CHECK_STRING (resource); | 3409 | CHECK_STRING (resource); |
| 3409 | CHECK_STRING (class); | 3410 | CHECK_STRING (class); |
| 3410 | CHECK_LIVE_FRAME (frame); | 3411 | f = decode_live_frame (frame); |
| 3411 | block_input (); | 3412 | block_input (); |
| 3412 | value = display_x_get_resource (FRAME_X_DISPLAY_INFO (XFRAME (frame)), | 3413 | value = display_x_get_resource (FRAME_X_DISPLAY_INFO (f), |
| 3413 | resource, class, Qnil, Qnil); | 3414 | resource, class, Qnil, Qnil); |
| 3414 | unblock_input (); | 3415 | unblock_input (); |
| 3415 | return value; | 3416 | return value; |
diff --git a/src/xselect.c b/src/xselect.c index 5b90d7def22..e9a8e2107db 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -2571,7 +2571,7 @@ x_handle_dnd_message (struct frame *f, XClientMessageEvent *event, | |||
| 2571 | return 1; | 2571 | return 1; |
| 2572 | } | 2572 | } |
| 2573 | 2573 | ||
| 2574 | DEFUN ("x-send-client-message", Fx_send_client_event, | 2574 | DEFUN ("x-send-client-message", Fx_send_client_message, |
| 2575 | Sx_send_client_message, 6, 6, 0, | 2575 | Sx_send_client_message, 6, 6, 0, |
| 2576 | doc: /* Send a client message of MESSAGE-TYPE to window DEST on DISPLAY. | 2576 | doc: /* Send a client message of MESSAGE-TYPE to window DEST on DISPLAY. |
| 2577 | 2577 | ||