Mercurial > hg > xemacs-beta
comparison man/lispref/x-windows.texi @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 3ecd8885ac67 |
children | 576fb035e263 |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
16 general console and device functions. @xref{Consoles and Devices}. | 16 general console and device functions. @xref{Consoles and Devices}. |
17 However, there are some features of the X Window System that do not | 17 However, there are some features of the X Window System that do not |
18 generalize well, and they are covered specially here. | 18 generalize well, and they are covered specially here. |
19 | 19 |
20 @menu | 20 @menu |
21 * X Selections:: Transferring text to and from other X clients. | 21 * X Selections:: Transferring text to and from other X clients. |
22 * X Server:: Information about the X server connected to | 22 * X Server:: Information about the X server connected to |
23 a particular device. | 23 a particular device. |
24 * X Miscellaneous:: Other X-specific functions and variables. | 24 * X Miscellaneous:: Other X-specific functions and variables. |
25 @end menu | 25 @end menu |
26 | 26 |
27 @node X Selections | 27 @node X Selections |
28 @section X Selections | 28 @section X Selections |
84 | 84 |
85 This section describes how to access and change the overall status of | 85 This section describes how to access and change the overall status of |
86 the X server XEmacs is using. | 86 the X server XEmacs is using. |
87 | 87 |
88 @menu | 88 @menu |
89 * Resources:: Getting resource values from the server. | 89 * Resources:: Getting resource values from the server. |
90 * Server Data:: Getting info about the X server. | 90 * Server Data:: Getting info about the X server. |
91 * Grabs:: Restricting access to the server by other apps. | 91 * Grabs:: Restricting access to the server by other apps. |
92 @end menu | 92 @end menu |
93 | 93 |
94 @node Resources | 94 @node Resources |
95 @subsection Resources | 95 @subsection Resources |
96 | 96 |
159 | 159 |
160 is an interface to a C call something like | 160 is an interface to a C call something like |
161 | 161 |
162 @example | 162 @example |
163 @code{XrmGetResource (db, "xemacs.buffer.@var{buffer-name}.foreground", | 163 @code{XrmGetResource (db, "xemacs.buffer.@var{buffer-name}.foreground", |
164 "Emacs.EmacsLocaleType.EmacsBuffer.Foreground", | 164 "Emacs.EmacsLocaleType.EmacsBuffer.Foreground", |
165 "String");} | 165 "String");} |
166 @end example | 166 @end example |
167 | 167 |
168 @item | 168 @item |
169 If @var{locale} is a frame, a call | 169 If @var{locale} is a frame, a call |
170 | 170 |
174 | 174 |
175 is an interface to a C call something like | 175 is an interface to a C call something like |
176 @example | 176 @example |
177 | 177 |
178 @code{XrmGetResource (db, "xemacs.frame.@var{frame-name}.foreground", | 178 @code{XrmGetResource (db, "xemacs.frame.@var{frame-name}.foreground", |
179 "Emacs.EmacsLocaleType.EmacsFrame.Foreground", | 179 "Emacs.EmacsLocaleType.EmacsFrame.Foreground", |
180 "String");} | 180 "String");} |
181 @end example | 181 @end example |
182 | 182 |
183 @item | 183 @item |
184 If @var{locale} is a device, a call | 184 If @var{locale} is a device, a call |
185 | 185 |
189 | 189 |
190 is an interface to a C call something like | 190 is an interface to a C call something like |
191 | 191 |
192 @example | 192 @example |
193 @code{XrmGetResource (db, "xemacs.device.@var{device-name}.foreground", | 193 @code{XrmGetResource (db, "xemacs.device.@var{device-name}.foreground", |
194 "Emacs.EmacsLocaleType.EmacsDevice.Foreground", | 194 "Emacs.EmacsLocaleType.EmacsDevice.Foreground", |
195 "String");} | 195 "String");} |
196 @end example | 196 @end example |
197 | 197 |
198 @item | 198 @item |
199 If @var{locale} is the symbol @code{global}, a call | 199 If @var{locale} is the symbol @code{global}, a call |
200 | 200 |
204 | 204 |
205 is an interface to a C call something like | 205 is an interface to a C call something like |
206 | 206 |
207 @example | 207 @example |
208 @code{XrmGetResource (db, "xemacs.foreground", | 208 @code{XrmGetResource (db, "xemacs.foreground", |
209 "Emacs.Foreground", | 209 "Emacs.Foreground", |
210 "String");} | 210 "String");} |
211 @end example | 211 @end example |
212 @end enumerate | 212 @end enumerate |
213 | 213 |
214 Note that for @code{global}, no prefix is added other than that of the | 214 Note that for @code{global}, no prefix is added other than that of the |
215 application itself; thus, you can use this locale to retrieve arbitrary | 215 application itself; thus, you can use this locale to retrieve arbitrary |
276 @subsection Restricting Access to the Server by Other Apps | 276 @subsection Restricting Access to the Server by Other Apps |
277 | 277 |
278 @defun x-grab-keyboard &optional device | 278 @defun x-grab-keyboard &optional device |
279 This function grabs the keyboard on the given device (defaulting to the | 279 This function grabs the keyboard on the given device (defaulting to the |
280 selected one). So long as the keyboard is grabbed, all keyboard events | 280 selected one). So long as the keyboard is grabbed, all keyboard events |
281 will be delivered to XEmacs -- it is not possible for other X clients to | 281 will be delivered to XEmacs---it is not possible for other X clients to |
282 eavesdrop on them. Ungrab the keyboard with @code{x-ungrab-keyboard} | 282 eavesdrop on them. Ungrab the keyboard with @code{x-ungrab-keyboard} |
283 (use an @code{unwind-protect}). Returns @code{t} if the grab was | 283 (use an @code{unwind-protect}). Returns @code{t} if the grab was |
284 successful; @code{nil} otherwise. | 284 successful; @code{nil} otherwise. |
285 @end defun | 285 @end defun |
286 | 286 |