/[emacs]/emacs/lispref/commands.texi
ViewVC logotype

Diff of /emacs/lispref/commands.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.53 by teirllm, Sat Aug 7 01:11:21 2004 UTC revision 1.54 by teirllm, Sun Aug 8 15:44:24 2004 UTC
# Line 750  This function returns a string or vector Line 750  This function returns a string or vector
750  that invoked the present command, plus any previous commands that  that invoked the present command, plus any previous commands that
751  generated the prefix argument for this command.  However, if the  generated the prefix argument for this command.  However, if the
752  command has called @code{read-key-sequence}, it returns the last read  command has called @code{read-key-sequence}, it returns the last read
753  key sequence.  @xref{Definition of read-key-sequence}.  The value is a  key sequence.  @xref{Key Sequence Input}.  The value is a string if
754  string if all events in the sequence were characters that fit in a  all events in the sequence were characters that fit in a string.
755  string.  @xref{Input Events}.  @xref{Input Events}.
756    
757  @example  @example
758  @group  @group
# Line 2019  for example, @code{describe-key} uses it Line 2019  for example, @code{describe-key} uses it
2019    
2020  @defun read-key-sequence prompt  @defun read-key-sequence prompt
2021  @cindex key sequence  @cindex key sequence
 @anchor{Definition of read-key-sequence}  
2022  This function reads a key sequence and returns it as a string or  This function reads a key sequence and returns it as a string or
2023  vector.  It keeps reading events until it has accumulated a complete key  vector.  It keeps reading events until it has accumulated a complete key
2024  sequence; that is, enough to specify a non-prefix command using the  sequence; that is, enough to specify a non-prefix command using the
# Line 2906  Require special confirmation to execute Line 2905  Require special confirmation to execute
2905  alter the user's init file so that this will apply to future sessions.  alter the user's init file so that this will apply to future sessions.
2906  @end deffn  @end deffn
2907    
2908  @defvar disabled-command-hook  @defvar disabled-command-function
2909  When the user invokes a disabled command interactively, this normal hook  The value of this variable should be a function.  When the user
2910  is run instead of the disabled command.  The hook functions can use  invokes a disabled command interactively, this function is called
2911  @code{this-command-keys} to determine what the user typed to run the  instead of the disabled command.  It can use @code{this-command-keys}
2912  command, and thus find the command itself.  @xref{Hooks}.  to determine what the user typed to run the command, and thus find the
2913    command itself.
2914  By default, @code{disabled-command-hook} contains a function that asks  
2915  the user whether to proceed.  If the value is @code{nil}, then all  The value may also be @code{nil}.  Then all commands work normally,
2916  commands work normally, even disabled ones.  even disabled ones.
2917    
2918    By default, the value is a function that asks the user whether to
2919    proceed.
2920  @end defvar  @end defvar
2921    
2922  @node Command History  @node Command History

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26