unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* defcustom :type to use for a key sequence?
@ 2005-11-03 19:49 Drew Adams
  2005-11-05  0:29 ` Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2005-11-03 19:49 UTC (permalink / raw)


Suppose I have this:

(defcustom the-key [(meta ?\ )] "...")
(define-key my-map the-key 'the-cmd))

A user might customize which key sequence is bound to `the-cmd'.

What :type is appropriate for the defcustom? I don't see a type ready-made
for key sequences.  Just `string'?  Or is a `choice' of `string' and (what
kind of?) `vector' appropriate?  How can the :type allow for any key
sequence (besides using just `sexp')?  Thx.

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

end of thread, other threads:[~2005-11-05  0:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-03 19:49 defcustom :type to use for a key sequence? Drew Adams
2005-11-05  0:29 ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).