emacs-devel
[Top][All Lists]
Advanced

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

Re: Will default key bindings spell the death of Emacs?


From: David Kastrup
Subject: Re: Will default key bindings spell the death of Emacs?
Date: 03 Jun 2003 00:05:21 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Kevin Rodgers <address@hidden> writes:

>  How about:
> 
> 
>       (kbd (read-string "Key (`kbd' format): "))
> 
> That seems to require the following patch; is this a known bug in `kbd'?
> 
> *** emacs-21.3/lisp/subr.el.orig      Fri Oct 18 19:21:10 2002
> --- emacs-21.3/lisp/subr.el   Mon Jun  2 15:25:36 2003
> ***************
> *** 438,444 ****
>      "Convert KEYS to the internal Emacs key representation.
>    KEYS should be a string constant in the format used for
>    saving keyboard macros (see `insert-kbd-macro')."
> !   (read-kbd-macro keys))
> 
>    (put 'keyboard-translate-table 'char-table-extra-slots 0)
> 
> --- 438,444 ----
>      "Convert KEYS to the internal Emacs key representation.
>    KEYS should be a string constant in the format used for
>    saving keyboard macros (see `insert-kbd-macro')."
> !   `(read-kbd-macro ,keys))
> 
>    (put 'keyboard-translate-table 'char-table-extra-slots 0)

Well, what about "KEYS should be a string constant" don't you
understand?  It is documented right there in the piece you have quoted
in the patch, and it is probably this way for efficiency reasons.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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