[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C-g in doc-strings

From: Pavel Janík
Subject: C-g in doc-strings
Date: Fri, 02 Nov 2001 23:33:54 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50 (i386-suse-linux-gnu)

Is C-g special when considering doc-strings? User can bind C-g to something
else. Shouldn't we change that to state \\[keyboard-quit] in these cases
from eval.c (with some minor corrections)?

  DEFVAR_LISP ("quit-flag", &Vquit_flag,
               doc: /* Non-nil causes `eval' to abort, unless `inhibit-quit' is 
Typing C-g sets `quit-flag' non-nil, regardless of `inhibit-quit'.  */);

  DEFVAR_LISP ("inhibit-quit", &Vinhibit_quit,
               doc: /* Non-nil inhibits C-g quitting from happening immediately.
Note that `quit-flag' will still be set by typing C-g,
so a quit will be signaled as soon as `inhibit-quit' is nil.
To prevent this happening, set `quit-flag' to nil
before making `inhibit-quit' nil.  */);

  DEFVAR_BOOL ("debug-on-quit", &debug_on_quit,
               doc: /* *Non-nil means enter debugger if quit is signaled (C-g, 
for example).
Does not apply if quit is handled by a `condition-case'.
When you evaluate an expression interactively, this variable
is temporarily non-nil if `eval-expression-debug-on-quit' is non-nil.  */);

Pavel Janík

Failure is not an option. It comes bundled with your Microsoft product.
                  -- Peter Surda in address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]