comparison doc/lispref/commands.texi @ 109267:71353caf35e3

Untabify doc/lispref/*.texi. * abbrevs.texi, commands.texi, compile.texi, debugging.texi: * display.texi, edebug.texi, elisp.texi, eval.texi, files.texi: * frames.texi, functions.texi, internals.texi, keymaps.texi: * loading.texi, minibuf.texi, numbers.texi, os.texi, processes.texi: * searching.texi, sequences.texi, strings.texi, syntax.texi: * text.texi, tips.texi, vol1.texi, vol2.texi, windows.texi: Untabify Texinfo files.
author Glenn Morris <rgm@gnu.org>
date Tue, 22 Jun 2010 20:36:56 -0700
parents 7da3761e3cdf
children a85c2c80290c
comparison
equal deleted inserted replaced
109266:9df40307a957 109267:71353caf35e3
1 @c -*-texinfo-*- 1 @c -*-texinfo-*-
2 @c This is part of the GNU Emacs Lisp Reference Manual. 2 @c This is part of the GNU Emacs Lisp Reference Manual.
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001, 2002, 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2001, 2002,
4 @c 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4 @c 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5 @c Free Software Foundation, Inc.
5 @c See the file elisp.texi for copying conditions. 6 @c See the file elisp.texi for copying conditions.
6 @setfilename ../../info/commands 7 @setfilename ../../info/commands
7 @node Command Loop, Keymaps, Minibuffers, Top 8 @node Command Loop, Keymaps, Minibuffers, Top
8 @chapter Command Loop 9 @chapter Command Loop
9 @cindex editor command loop 10 @cindex editor command loop
19 * Defining Commands:: Specifying how a function should read arguments. 20 * Defining Commands:: Specifying how a function should read arguments.
20 * Interactive Call:: Calling a command, so that it will read arguments. 21 * Interactive Call:: Calling a command, so that it will read arguments.
21 * Distinguish Interactive:: Making a command distinguish interactive calls. 22 * Distinguish Interactive:: Making a command distinguish interactive calls.
22 * Command Loop Info:: Variables set by the command loop for you to examine. 23 * Command Loop Info:: Variables set by the command loop for you to examine.
23 * Adjusting Point:: Adjustment of point after a command. 24 * Adjusting Point:: Adjustment of point after a command.
24 * Input Events:: What input looks like when you read it. 25 * Input Events:: What input looks like when you read it.
25 * Reading Input:: How to read input events from the keyboard or mouse. 26 * Reading Input:: How to read input events from the keyboard or mouse.
26 * Special Events:: Events processed immediately and individually. 27 * Special Events:: Events processed immediately and individually.
27 * Waiting:: Waiting for user input or elapsed time. 28 * Waiting:: Waiting for user input or elapsed time.
28 * Quitting:: How @kbd{C-g} works. How to catch or defer quitting. 29 * Quitting:: How @kbd{C-g} works. How to catch or defer quitting.
29 * Prefix Command Arguments:: How the commands to set prefix args work. 30 * Prefix Command Arguments:: How the commands to set prefix args work.
966 the current Emacs session. If a symbol has not yet been so used, 967 the current Emacs session. If a symbol has not yet been so used,
967 @code{eventp} returns @code{nil}. 968 @code{eventp} returns @code{nil}.
968 @end defun 969 @end defun
969 970
970 @menu 971 @menu
971 * Keyboard Events:: Ordinary characters--keys with symbols on them. 972 * Keyboard Events:: Ordinary characters--keys with symbols on them.
972 * Function Keys:: Function keys--keys with names, not symbols. 973 * Function Keys:: Function keys--keys with names, not symbols.
973 * Mouse Events:: Overview of mouse events. 974 * Mouse Events:: Overview of mouse events.
974 * Click Events:: Pushing and releasing a mouse button. 975 * Click Events:: Pushing and releasing a mouse button.
975 * Drag Events:: Moving the mouse before releasing the button. 976 * Drag Events:: Moving the mouse before releasing the button.
976 * Button-Down Events:: A button was pushed and not yet released. 977 * Button-Down Events:: A button was pushed and not yet released.
977 * Repeat Events:: Double and triple click (or drag, or down). 978 * Repeat Events:: Double and triple click (or drag, or down).
978 * Motion Events:: Just moving the mouse, not pushing a button. 979 * Motion Events:: Just moving the mouse, not pushing a button.
979 * Focus Events:: Moving the mouse between frames. 980 * Focus Events:: Moving the mouse between frames.
980 * Misc Events:: Other events the system can generate. 981 * Misc Events:: Other events the system can generate.
981 * Event Examples:: Examples of the lists for mouse events. 982 * Event Examples:: Examples of the lists for mouse events.
982 * Classifying Events:: Finding the modifier keys in an event symbol. 983 * Classifying Events:: Finding the modifier keys in an event symbol.
983 Event types. 984 Event types.
984 * Accessing Mouse:: Functions to extract info from mouse events. 985 * Accessing Mouse:: Functions to extract info from mouse events.
985 * Accessing Scroll:: Functions to get info from scroll bar events. 986 * Accessing Scroll:: Functions to get info from scroll bar events.
986 * Strings of Events:: Special considerations for putting 987 * Strings of Events:: Special considerations for putting
987 keyboard character events in a string. 988 keyboard character events in a string.
988 @end menu 989 @end menu
989 990
990 @node Keyboard Events 991 @node Keyboard Events
991 @subsection Keyboard Events 992 @subsection Keyboard Events
992 @cindex keyboard events 993 @cindex keyboard events
2156 debugging terminal input. 2157 debugging terminal input.
2157 2158
2158 For higher-level input facilities, see @ref{Minibuffers}. 2159 For higher-level input facilities, see @ref{Minibuffers}.
2159 2160
2160 @menu 2161 @menu
2161 * Key Sequence Input:: How to read one key sequence. 2162 * Key Sequence Input:: How to read one key sequence.
2162 * Reading One Event:: How to read just one event. 2163 * Reading One Event:: How to read just one event.
2163 * Event Mod:: How Emacs modifies events as they are read. 2164 * Event Mod:: How Emacs modifies events as they are read.
2164 * Invoking the Input Method:: How reading an event uses the input method. 2165 * Invoking the Input Method:: How reading an event uses the input method.
2165 * Quoted Character Input:: Asking the user to specify a character. 2166 * Quoted Character Input:: Asking the user to specify a character.
2166 * Event Input Misc:: How to reread or throw away input events. 2167 * Event Input Misc:: How to reread or throw away input events.
2167 @end menu 2168 @end menu
2168 2169
2169 @node Key Sequence Input 2170 @node Key Sequence Input
2170 @subsection Key Sequence Input 2171 @subsection Key Sequence Input
2171 @cindex key sequence input 2172 @cindex key sequence input
2887 "@dots{}@var{documentation}@dots{}" 2888 "@dots{}@var{documentation}@dots{}"
2888 (let ((message-log-max nil) done (first t) (code 0) char) 2889 (let ((message-log-max nil) done (first t) (code 0) char)
2889 (while (not done) 2890 (while (not done)
2890 (let ((inhibit-quit first) 2891 (let ((inhibit-quit first)
2891 @dots{}) 2892 @dots{})
2892 (and prompt (message "%s-" prompt)) 2893 (and prompt (message "%s-" prompt))
2893 (setq char (read-event)) 2894 (setq char (read-event))
2894 (if inhibit-quit (setq quit-flag nil))) 2895 (if inhibit-quit (setq quit-flag nil)))
2895 @r{@dots{}set the variable @code{code}@dots{}}) 2896 @r{@dots{}set the variable @code{code}@dots{}})
2896 code)) 2897 code))
2897 @end example 2898 @end example
2898 2899
2899 @defvar quit-flag 2900 @defvar quit-flag