all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* question about `quit-char'
@ 2008-10-21 16:57 Drew Adams
  2008-10-21 17:19 ` Eli Zaretskii
  2008-10-21 17:21 ` Chong Yidong
  0 siblings, 2 replies; 21+ messages in thread
From: Drew Adams @ 2008-10-21 16:57 UTC (permalink / raw)
  To: emacs-devel

A recent message (can't find it now) that mentioned that `quit-char' is not
necessarily `C-g' prompted me to look through the docs for info about
`quit-char'. 

I found it only in the Elisp manual, node Input Modes, where `quit-char' is used
to name the 4th element of the list returned by `current-input-mode' (it is also
mentioned wrt `set-input-mode'; `set-quit-char' is not mentioned).

There is no variable or function `quit-char'.

I wonder what the recommendation or the intention is about referencing the quit
character. I have code, for instance, that does this for Icicle mode, where
`map' is a minibuffer map:

(define-key map [(control ?g)] 'foo)

Should I instead be doing something like this?

(define-key map (vector (cadr (cddr (current-input-mode)))) 'foo)

That seems to work OK, at least when the quit character is `C-g'. Dunno if it is
robust. If so, is it preferable in general?

If so, shouldn't such a recommendation be documented? And in that case shouldn't
we perhaps define a function `quit-char' that returns (cadr (cddr
(current-input-mode)))?








^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-10-22  4:54 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 16:57 question about `quit-char' Drew Adams
2008-10-21 17:19 ` Eli Zaretskii
2008-10-21 18:10   ` Drew Adams
2008-10-21 19:42     ` Eli Zaretskii
2008-10-21 17:21 ` Chong Yidong
2008-10-21 17:31   ` Eli Zaretskii
2008-10-21 17:45     ` Chong Yidong
2008-10-21 18:13       ` Drew Adams
2008-10-21 18:47         ` Chong Yidong
2008-10-21 19:01           ` Lennart Borgman (gmail)
2008-10-21 19:15             ` Drew Adams
2008-10-21 19:15           ` Drew Adams
2008-10-21 20:23             ` Eli Zaretskii
2008-10-21 20:30               ` Drew Adams
2008-10-22  2:47             ` Stephen J. Turnbull
2008-10-22  2:51               ` Drew Adams
2008-10-22  4:54                 ` Stephen J. Turnbull
2008-10-21 19:37       ` Eli Zaretskii
2008-10-21 21:12         ` Chong Yidong
2008-10-21 20:29     ` Eli Zaretskii
2008-10-21 17:35   ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.