Mercurial > emacs
comparison src/xfns.c @ 83442:db27bb9f0d2f
Cosmetic fixes in xfns.c.
* src/xfns.c (Fx_close_connection, Fx_synchronize): Unify argument names
with the rest of the DEFUNs.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-482
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 01 Jan 2006 17:11:05 +0000 |
parents | 76396de7f50a |
children | 9b150bc96d33 |
comparison
equal
deleted
inserted
replaced
83441:67d4394387a7 | 83442:db27bb9f0d2f |
---|---|
4062 return Qnil; | 4062 return Qnil; |
4063 } | 4063 } |
4064 | 4064 |
4065 DEFUN ("x-close-connection", Fx_close_connection, | 4065 DEFUN ("x-close-connection", Fx_close_connection, |
4066 Sx_close_connection, 1, 1, 0, | 4066 Sx_close_connection, 1, 1, 0, |
4067 doc: /* Close the connection to DISPLAY's X server. | 4067 doc: /* Close the connection to TERMINAL's X server. |
4068 For DISPLAY, specify either a frame or a display name (a string). | 4068 For TERMINAL, specify a terminal id, a frame or a display name (a |
4069 If DISPLAY is nil, that stands for the selected frame's display. */) | 4069 string). If TERMINAL is nil, that stands for the selected frame's |
4070 (display) | 4070 terminal. */) |
4071 Lisp_Object display; | 4071 (terminal) |
4072 { | 4072 Lisp_Object terminal; |
4073 struct x_display_info *dpyinfo = check_x_display_info (display); | 4073 { |
4074 struct x_display_info *dpyinfo = check_x_display_info (terminal); | |
4074 | 4075 |
4075 if (dpyinfo->reference_count > 0) | 4076 if (dpyinfo->reference_count > 0) |
4076 error ("Display still has frames on it"); | 4077 error ("Display still has frames on it"); |
4077 | 4078 |
4078 x_delete_terminal (dpyinfo->terminal); | 4079 x_delete_terminal (dpyinfo->terminal); |
4097 doc: /* If ON is non-nil, report X errors as soon as the erring request is made. | 4098 doc: /* If ON is non-nil, report X errors as soon as the erring request is made. |
4098 If ON is nil, allow buffering of requests. | 4099 If ON is nil, allow buffering of requests. |
4099 Turning on synchronization prohibits the Xlib routines from buffering | 4100 Turning on synchronization prohibits the Xlib routines from buffering |
4100 requests and seriously degrades performance, but makes debugging much | 4101 requests and seriously degrades performance, but makes debugging much |
4101 easier. | 4102 easier. |
4102 The optional second argument DISPLAY specifies which display to act on. | 4103 The optional second argument TERMINAL specifies which display to act on. |
4103 DISPLAY should be either a frame or a display name (a string). | 4104 TERMINAL should be a terminal id, a frame or a display name (a string). |
4104 If DISPLAY is omitted or nil, that stands for the selected frame's display. */) | 4105 If TERMINAL is omitted or nil, that stands for the selected frame's display. */) |
4105 (on, display) | 4106 (on, terminal) |
4106 Lisp_Object display, on; | 4107 Lisp_Object terminal, on; |
4107 { | 4108 { |
4108 struct x_display_info *dpyinfo = check_x_display_info (display); | 4109 struct x_display_info *dpyinfo = check_x_display_info (terminal); |
4109 | 4110 |
4110 XSynchronize (dpyinfo->display, !EQ (on, Qnil)); | 4111 XSynchronize (dpyinfo->display, !EQ (on, Qnil)); |
4111 | 4112 |
4112 return Qnil; | 4113 return Qnil; |
4113 } | 4114 } |