unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: Drew Adams <drew.adams@oracle.com>, Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: defcustom :type to use for a key sequence?
Date: Fri, 16 Dec 2005 00:55:46 +0100	[thread overview]
Message-ID: <43A20282.4020704@student.lu.se> (raw)
In-Reply-To: <m3acf1j4yr.fsf@kfs-l.imdomain.dk>

Kim F. Storm wrote:

>storm@cua.dk (Kim F. Storm) writes:
>
>  
>
>>With my suggestion, you just write C-g -- much simpler and equally flexible.
>>
>>A user must know a lot about internal representation -- with my suggestion,
>>he just has to do C-h c to learn how to write the keys he's interested in
>>and copy the output directly to the field.
>>    
>>
>
>
>There is already a :type key-sequence (defined as a restricted-sexp),
>but it is only used in one place:
>
>M-x customize-variable RET mouse-region-delete-keys RET
>
>.. which seems to be completely broken when I try it.
>E.g. if I press one of the "INS" buttons strange things happen.
>
>
>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.
>
>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-$
>  
>
I do not think it is implemented now, but it would be rather easy to do 
I believe. Just add a keymap to the field where you enter the keys. But 
it seems a little bit more complicated to edit it, but not at all 
impossible.

  reply	other threads:[~2005-12-15 23:55 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 [this message]
2005-12-16 17:46               ` Richard M. Stallman
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=43A20282.4020704@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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).