unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: lennart.borgman.073@student.lu.se, drew.adams@oracle.com,
	emacs-devel@gnu.org
Subject: Re: defcustom :type to use for a key sequence?
Date: Fri, 16 Dec 2005 12:46:18 -0500	[thread overview]
Message-ID: <E1EnJes-0005yk-Vo@fencepost.gnu.org> (raw)
In-Reply-To: <m3acf1j4yr.fsf@kfs-l.imdomain.dk> (storm@cua.dk)

    I still think it would make a lot of sense to make :type key-sequence
    edit a string rather than a sexp.

    The actual value would still be a vector or string, but before editing
    it would be passed through "key-description" to give the string to
    edit, and after editing the string would be passed through "kbd" (aka
    "read-kbd-macro") to make the value to save in the variable.

That could be a big improvement.  Would you like to do it?

This is a new feature (isn't it? please correct me if I'm wrong),
so fixing it now to work well when first released is appropriate.

    It would be great if there was some way to actually press the keys
    to insert, rather than to have to spell them out -- is there some
    way to bind a key to have a special meaning while editing such a string?
    E.g. to add C-M-S-$ to the string, one could press e.g. C-u C-M-S-$

That could also be a big improvement, but how to reconcile these two
features?  It could appear as a string, with a box which you click on
to enter a new key by typing it.

  parent reply	other threads:[~2005-12-16 17:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DNEMKBNJBGPAOPIJOOICIEGFCOAA.drew.adams@oracle.com>
2005-12-14 16:44 ` defcustom :type to use for a key sequence? Drew Adams
2005-12-15  9:34   ` Kim F. Storm
2005-12-15 13:13     ` Lennart Borgman
2005-12-15 15:11       ` Kim F. Storm
2005-12-15 16:05         ` Lennart Borgman
2005-12-15 22:47           ` Kim F. Storm
2005-12-15 22:54             ` Lennart Borgman
2005-12-15 23:49             ` Kim F. Storm
2005-12-15 23:55               ` Lennart Borgman
2005-12-16 17:46               ` Richard M. Stallman [this message]
2005-12-20 14:53                 ` Kim F. Storm
2005-12-21  2:58                   ` Richard M. Stallman
2005-12-21  8:31                     ` David Kastrup
2005-12-16  0:51     ` Drew Adams
2005-12-20 15:06       ` Kim F. Storm
2005-12-20 17:32         ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1EnJes-0005yk-Vo@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman.073@student.lu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

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).