GNU bug report logs - #30659
Only local map define-key examples

Previous Next

Package: emacs;

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

Date: Wed, 28 Feb 2018 22:45:02 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 30659 <at> debbugs.gnu.org
Subject: Re: bug#30659: Only local map define-key examples
Date: Sat, 03 Mar 2018 14:26:27 +0800
>>>>> "EZ" == Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: 積丹尼 Dan Jacobson
>> <jidanni <at> jidanni.org>
>> Date: Thu, 01 Mar 2018 04:13:16 +0800
>> 
>> At the end of (info "(emacs) Init Rebinding")
>> there is an example,
>> 
>> (add-hook 'texinfo-mode-hook
>> (lambda ()
>> (define-key texinfo-mode-map "\C-cp"
>> 'backward-paragraph)
>> (define-key texinfo-mode-map "\C-cn"
>> 'forward-paragraph)))
>> 
>> 
>> Please add to this example also an example of undefining an existing key.
>> Else users will use local-unset-key that they find on (info "(emacs) Rebinding"),
>> which may or may not be correct.

EZ> I'm not sure I understand what's wrong with local-unset-key.

OK then please add it to the example there.
Else they will look for "undefine-key".

EZ>  (And "Rebinding" also mentions global-unset-key, btw.)
No it doesn't.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Init-Rebinding.html




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

Previous Next


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