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: Kevin Rodgers
Subject: Re: Will default key bindings spell the death of Emacs?
Date: Mon, 02 Jun 2003 15:27:48 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Kai Gro├čjohann wrote:

Kevin Rodgers <address@hidden> writes:
                     (read-key-sequence "Key: " nil t)

This doesn't read long prefix key sequences.  That is, if C-c a is
not bound yet, I can do (kbd "C-c a b c d") to bind a key, but
read-key-sequence will stop at C-c a.

Hm.

I guess it also won't work to rebind C-x, say, since it's a prefix key.

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)


--
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;";>Kevin Rodgers</a>






reply via email to

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