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


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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 39802 <at> debbugs.gnu.org
Subject: Re: bug#39802: (info "(emacs) Init Rebinding") needs to say it is
 impossible to unbind local keys
Date: Thu, 27 Feb 2020 07:22:10 +0800
OK!
Please add this patch (i.e., fix the source file) to
(info "(emacs) Init Rebinding")

    For example, Texinfo mode runs the hook ‘texinfo-mode-hook’.  Here’s
-how you can use the hook to add local bindings for ‘C-c n’ and ‘C-c p’
-in Texinfo mode:
+how you can use the hook to add local bindings for ‘C-c n’ and ‘C-c p’,
+and remove one for C-c C-c x, in Texinfo mode:
 
      (add-hook 'texinfo-mode-hook
                (lambda ()
                  (define-key texinfo-mode-map "\C-cp"
                              'backward-paragraph)
                  (define-key texinfo-mode-map "\C-cn"
-                             'forward-paragraph)))
-
+                             'forward-paragraph)
+                 (define-key texinfo-mode-map "\C-c\C-cx"
+                             nil)))




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

Previous Next


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