emacs-devel
[Top][All Lists]
Advanced

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

Re: M-g in dired


From: Richard M. Stallman
Subject: Re: M-g in dired
Date: Thu, 03 Nov 2005 16:41:51 -0500

    But in dired-mode-map, where "C-x `" is undefined, lookup-key
    currently returns:

      (lookup-key dired-mode-map "\C-x") => nil
      (lookup-key dired-mode-map "\C-x`") => 1

    The return value `1' of the last expression seems wrong.

It is correct, because C-x ` is too long to be a valid key sequence.

    For the case of dired-mode-map where lookup-key returns 1 for "\C-x`",
    1 is not a number of events at the front of "\C-x`" that compose
    a complete key, because "C-x" alone is not a valid key in dired-mode-map.

Yes it is.  Every one-character key is valid, always.

So there is no bug in lookup-key.  No need to consider changing it.




reply via email to

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