Mercurial > emacs
comparison lispref/commands.texi @ 12067:73dc8205d259
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 05 Jun 1995 12:23:13 +0000 |
parents | e79e5c9e7722 |
children | a6eb5f12b0f3 |
comparison
equal
deleted
inserted
replaced
12066:b9b0b3f96dc2 | 12067:73dc8205d259 |
---|---|
367 maps. The key sequence argument is represented as a string or vector. | 367 maps. The key sequence argument is represented as a string or vector. |
368 The cursor does not move into the echo area. Prompt. | 368 The cursor does not move into the echo area. Prompt. |
369 | 369 |
370 This kind of input is used by commands such as @code{describe-key} and | 370 This kind of input is used by commands such as @code{describe-key} and |
371 @code{global-set-key}. | 371 @code{global-set-key}. |
372 | |
373 @item K | |
374 A key sequence, whose definition you intend to change. This works like | |
375 @samp{k}, except that it suppresses, for the last input event in the key | |
376 sequence, the conversions that are normally used (when necessary) to | |
377 convert an undefined key into a defined one. | |
372 | 378 |
373 @item m | 379 @item m |
374 @cindex marker argument | 380 @cindex marker argument |
375 The position of the mark, as an integer. No I/O. | 381 The position of the mark, as an integer. No I/O. |
376 | 382 |
764 * Drag Events:: Moving the mouse before releasing the button. | 770 * Drag Events:: Moving the mouse before releasing the button. |
765 * Button-Down Events:: A button was pushed and not yet released. | 771 * Button-Down Events:: A button was pushed and not yet released. |
766 * Repeat Events:: Double and triple click (or drag, or down). | 772 * Repeat Events:: Double and triple click (or drag, or down). |
767 * Motion Events:: Just moving the mouse, not pushing a button. | 773 * Motion Events:: Just moving the mouse, not pushing a button. |
768 * Focus Events:: Moving the mouse between frames. | 774 * Focus Events:: Moving the mouse between frames. |
775 * Misc Events:: Other events window systems can generate. | |
769 * Event Examples:: Examples of the lists for mouse events. | 776 * Event Examples:: Examples of the lists for mouse events. |
770 * Classifying Events:: Finding the modifier keys in an event symbol. | 777 * Classifying Events:: Finding the modifier keys in an event symbol. |
771 Event types. | 778 Event types. |
772 * Accessing Events:: Functions to extract info from events. | 779 * Accessing Events:: Functions to extract info from events. |
773 * Strings of Events:: Special considerations for putting | 780 * Strings of Events:: Special considerations for putting |
1220 sequence. So Emacs never generates a focus event in the middle of a key | 1227 sequence. So Emacs never generates a focus event in the middle of a key |
1221 sequence. If the user changes focus in the middle of a key | 1228 sequence. If the user changes focus in the middle of a key |
1222 sequence---that is, after a prefix key---then Emacs reorders the events | 1229 sequence---that is, after a prefix key---then Emacs reorders the events |
1223 so that the focus event comes either before or after the multi-event key | 1230 so that the focus event comes either before or after the multi-event key |
1224 sequence, and not within it. | 1231 sequence, and not within it. |
1232 | |
1233 @node Misc Events | |
1234 @subsection Miscellaneous Window System Events | |
1235 | |
1236 A few other event types represent occurrences within the window system. | |
1237 | |
1238 @table @code | |
1239 @cindex @code{delete-frame} event | |
1240 @item (delete-frame (@var{frame})) | |
1241 This kind of event indicates that the user gave the window manager | |
1242 a command to delete a particular window, which happens to be an Emacs frame. | |
1243 | |
1244 The standard definition of the @code{delete-frame} event is to delete @var{frame}. | |
1245 | |
1246 @cindex @code{iconify-frame} event | |
1247 @item (iconify-frame (@var{frame})) | |
1248 This kind of event indicates that the user iconified @var{frame} using | |
1249 the window manager. Its standard definition is @code{ignore}; since | |
1250 the frame has already been iconified, Emacs has no work to do. | |
1251 The purpose of this event type is so that you can keep track of such | |
1252 events if you want to. | |
1253 | |
1254 @cindex @code{deiconify-frame} event | |
1255 @item (deiconify-frame (@var{frame})) | |
1256 This kind of event indicates that the user deiconified @var{frame} using | |
1257 the window manager. Its standard definition is @code{ignore}; since the | |
1258 frame has already been iconified, Emacs has no work to do. | |
1259 @end table | |
1225 | 1260 |
1226 @node Event Examples | 1261 @node Event Examples |
1227 @subsection Event Examples | 1262 @subsection Event Examples |
1228 | 1263 |
1229 If the user presses and releases the left mouse button over the same | 1264 If the user presses and releases the left mouse button over the same |
1833 | 1868 |
1834 If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not | 1869 If @var{nodisp} is non-@code{nil}, then @code{sit-for} does not |
1835 redisplay, but it still returns as soon as input is available (or when | 1870 redisplay, but it still returns as soon as input is available (or when |
1836 the timeout elapses). | 1871 the timeout elapses). |
1837 | 1872 |
1873 Iconifying or deiconifying a frame makes @code{sit-for} return, because | |
1874 that generates an event. @xref{Misc Events}. | |
1875 | |
1838 The usual purpose of @code{sit-for} is to give the user time to read | 1876 The usual purpose of @code{sit-for} is to give the user time to read |
1839 text that you display. | 1877 text that you display. |
1840 @end defun | 1878 @end defun |
1841 | 1879 |
1842 @defun sleep-for seconds &optional millisec | 1880 @defun sleep-for seconds &optional millisec |
2337 @end defun | 2375 @end defun |
2338 | 2376 |
2339 @defvar last-kbd-macro | 2377 @defvar last-kbd-macro |
2340 This variable is the definition of the most recently defined keyboard | 2378 This variable is the definition of the most recently defined keyboard |
2341 macro. Its value is a string or vector, or @code{nil}. | 2379 macro. Its value is a string or vector, or @code{nil}. |
2380 | |
2381 The variable is always local to the current X terminal and cannot be | |
2382 buffer-local. @xref{Multiple Displays}. | |
2342 @end defvar | 2383 @end defvar |
2343 | 2384 |
2344 @defvar executing-macro | 2385 @defvar executing-macro |
2345 This variable contains the string or vector that defines the keyboard | 2386 This variable contains the string or vector that defines the keyboard |
2346 macro that is currently executing. It is @code{nil} if no macro is | 2387 macro that is currently executing. It is @code{nil} if no macro is |
2352 @defvar defining-kbd-macro | 2393 @defvar defining-kbd-macro |
2353 This variable indicates whether a keyboard macro is being defined. A | 2394 This variable indicates whether a keyboard macro is being defined. A |
2354 command can test this variable to behave differently while a macro is | 2395 command can test this variable to behave differently while a macro is |
2355 being defined. The commands @code{start-kbd-macro} and | 2396 being defined. The commands @code{start-kbd-macro} and |
2356 @code{end-kbd-macro} set this variable---do not set it yourself. | 2397 @code{end-kbd-macro} set this variable---do not set it yourself. |
2398 | |
2399 The variable is always local to the current X terminal and cannot be | |
2400 buffer-local. @xref{Multiple Displays}. | |
2357 @end defvar | 2401 @end defvar |
2358 | 2402 |