GNU bug report logs - #39802
(info "(emacs) Init Rebinding") doesn't explain how to unbind local keys

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 26 Feb 2020 15:49:01 UTC

Severity: wishlist

Tags: fixed, patch

Merged with 39630

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Robert Pluim <rpluim <at> gmail.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39802 <at> debbugs.gnu.org, 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: bug#39802: (info "(emacs) Init Rebinding") needs to say it is impossible to unbind local keys
Date: Thu, 27 Feb 2020 14:26:11 +0100
>>>>> On Thu, 27 Feb 2020 08:14:56 -0500, Noam Postavsky <npostavs <at> gmail.com> said:

The text looks good, except for...

    Noam> -@findex define-key
    Noam> -  For example, Texinfo mode runs the hook @code{texinfo-mode-hook}.
    Noam> -Here's how you can use the hook to add local bindings for @kbd{C-c n}
    Noam> -and @kbd{C-c p} in Texinfo mode:
    Noam> +  Since a mode's keymaps are not constructed until it has been loaded,
    Noam> +you must delay running code which modifies them until, e.g., by
    Noam> +putting it no a @dfn{mode hook} (pxref{(Hooks)}).  For example,
                      ^^
                      
Robert




This bug report was last modified 5 years and 78 days ago.

Previous Next


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