GNU bug report logs - #62673
28.2; The example in "(elisp) Prefix Keys" is wrong

Previous Next

Package: emacs;

Reported by: Lin Jian <me <at> linj.tech>

Date: Wed, 5 Apr 2023 06:52:01 UTC

Severity: normal

Found in version 28.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62673 in the body.
You can then email your comments to 62673 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#62673; Package emacs. (Wed, 05 Apr 2023 06:52:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lin Jian <me <at> linj.tech>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 05 Apr 2023 06:52:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lin Jian <me <at> linj.tech>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2; The example in "(elisp) Prefix Keys" is wrong
Date: Wed, 05 Apr 2023 14:43:43 +0800
Reproducing steps:
1. emacs -Q
2. eval the example in the *scratch* buffer
  2.1. (use-local-map (make-sparse-keymap))
           => nil ;; good
  2.2. (local-set-key "\C-p" ctl-x-map)
           => (keymap ...) ;; bad: manual says it returns nil
  2.3. (key-binding "\C-p\C-f")
           => find-file ;; good
  2.4. (key-binding "\C-p6")
           => 2C-command ;; bad: manual says it returns nil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62673; Package emacs. (Wed, 05 Apr 2023 07:26:02 GMT) Full text and rfc822 format available.

Message #8 received at 62673 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lin Jian <me <at> linj.tech>
Cc: 62673 <at> debbugs.gnu.org
Subject: Re: bug#62673: 28.2; The example in "(elisp) Prefix Keys" is wrong
Date: Wed, 05 Apr 2023 10:25:37 +0300
> Date: Wed, 05 Apr 2023 14:43:43 +0800
> From:  Lin Jian via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 
> Reproducing steps:
> 1. emacs -Q
> 2. eval the example in the *scratch* buffer
>   2.1. (use-local-map (make-sparse-keymap))
>            => nil ;; good
>   2.2. (local-set-key "\C-p" ctl-x-map)
>            => (keymap ...) ;; bad: manual says it returns nil
>   2.3. (key-binding "\C-p\C-f")
>            => find-file ;; good
>   2.4. (key-binding "\C-p6")
>            => 2C-command ;; bad: manual says it returns nil

That section was meanwhile rewritten (with new exciting mistakes).




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Wed, 05 Apr 2023 08:35:02 GMT) Full text and rfc822 format available.

Notification sent to Lin Jian <me <at> linj.tech>:
bug acknowledged by developer. (Wed, 05 Apr 2023 08:35:02 GMT) Full text and rfc822 format available.

Message #13 received at 62673-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: me <at> linj.tech
Cc: 62673-done <at> debbugs.gnu.org
Subject: Re: bug#62673: 28.2; The example in "(elisp) Prefix Keys" is wrong
Date: Wed, 05 Apr 2023 11:35:11 +0300
> Cc: 62673 <at> debbugs.gnu.org
> Date: Wed, 05 Apr 2023 10:25:37 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Date: Wed, 05 Apr 2023 14:43:43 +0800
> > From:  Lin Jian via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> > 
> > 
> > Reproducing steps:
> > 1. emacs -Q
> > 2. eval the example in the *scratch* buffer
> >   2.1. (use-local-map (make-sparse-keymap))
> >            => nil ;; good
> >   2.2. (local-set-key "\C-p" ctl-x-map)
> >            => (keymap ...) ;; bad: manual says it returns nil
> >   2.3. (key-binding "\C-p\C-f")
> >            => find-file ;; good
> >   2.4. (key-binding "\C-p6")
> >            => 2C-command ;; bad: manual says it returns nil
> 
> That section was meanwhile rewritten (with new exciting mistakes).

Should be fixed now on the emacs-29 branch, so I'm closing the bug.
Thanks for reporting these discrepancies.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 03 May 2023 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.