GNU bug report logs - #39631
Mention how to remove entire keymaps in Your Init File

Previous Next

Package: emacs;

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

Date: Sun, 16 Feb 2020 04:39:02 UTC

Severity: wishlist

Tags: notabug, wontfix

Done: Stefan Kangas <stefan <at> marxist.se>

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 39631 in the body.
You can then email your comments to 39631 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#39631; Package emacs. (Sun, 16 Feb 2020 04:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 16 Feb 2020 04:39:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Mention how to remove entire keymaps in Your Init File
Date: Sun, 16 Feb 2020 12:14:41 +0800
There are insufficient instructions and examples in

Info 49.3.6 Rebinding Keys in Your Init File

as of emacs-version "26.3"

to allow the user to get rid of e.g., (seen with C-h b)
C-,		flyspell-goto-next-error
C-.		flyspell-auto-correct-word
C-;		flyspell-auto-correct-previous-word
C-c $		flyspell-correct-word-before-point

Leaving only
C-M-i		flyspell-auto-correct-word

The user tries everything
(eval-after-load "flyspell-mode"
  '(add-hook
    'flyspell-mode-hook
    (lambda ()
      (setq flyspell-mode-map nil)
      ;;too close to C-/ (undo) and already on ESC TAB:
      ;;(define-key flyspell-mode-map [(control ?\.)] [])
      (define-key flyspell-mode-map (kbd "C-,") (lambda () (interactive))) #<---last time what I was told to try
      (define-key flyspell-mode-map (kbd "C-.") (lambda () (interactive)))
      (define-key flyspell-mode-map [(control ?\,)] (lambda () (interactive)))
      (define-key flyspell-mode-map [(control ?\.)] (lambda () (interactive)))
      (define-key flyspell-mode-map [(control ?\;)] (lambda () (interactive)))
      (global-unset-key [(control ?\,)])
      (global-unset-key [(control ?\.)])
      (global-unset-key [(control ?\;)])
      (setq flyspell-mode-map nil)
      )))
(global-unset-key [(control ?\,)])
(global-unset-key [(control ?\.)])
(global-unset-key [(control ?\;)])
(defvar flyspell-mode-map "")
(add-hook 'flyspell-mode-hook
	  (lambda ()
	    (define-key flyspell-mode-map (kbd "C-M-i")
                    'flyspell-auto-correct-word)))
(setq flyspell-mode-map nil)
(global-set-key (kbd "C-M-i") 'flyspell-auto-correct-word)

Alas nothing will give the user the aforementioned desired result.
Please put examples in
Info 49.3.6 Rebinding Keys in Your Init File
showing how to remove entire keymaps with one line,
and then how to sparsely populate them back. Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39631; Package emacs. (Sun, 16 Feb 2020 15:21:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 39631 <at> debbugs.gnu.org
Subject: Re: bug#39631: Mention how to remove entire keymaps in Your Init File
Date: Sun, 16 Feb 2020 17:20:31 +0200
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Sun, 16 Feb 2020 12:14:41 +0800
> 
> There are insufficient instructions and examples in
> 
> Info 49.3.6 Rebinding Keys in Your Init File
> 
> as of emacs-version "26.3"
> 
> to allow the user to get rid of e.g., (seen with C-h b)
> C-,		flyspell-goto-next-error
> C-.		flyspell-auto-correct-word
> C-;		flyspell-auto-correct-previous-word
> C-c $		flyspell-correct-word-before-point
> 
> Leaving only
> C-M-i		flyspell-auto-correct-word
> 
> The user tries everything

I think there's a limit to what we can say in the user manual that
describes Lisp facilities.  Users who are serious about key-binding
customizations should read the ELisp manual to augment and complement
what is in the user manual.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39631; Package emacs. (Sun, 16 Feb 2020 16:31:01 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39631 <at> debbugs.gnu.org
Subject: Re: bug#39631: Mention how to remove entire keymaps in Your Init File
Date: Mon, 17 Feb 2020 00:30:28 +0800
Fine. Keymaps can only be added to.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39631; Package emacs. (Sun, 16 Feb 2020 16:38:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39631 <at> debbugs.gnu.org
Subject: Re: bug#39631: Mention how to remove entire keymaps in Your Init File
Date: Mon, 17 Feb 2020 00:37:00 +0800
OK the answer is not in
(info "(eintr) Keymaps")
(info "(elisp) Creating Keymaps")
however possibly in
(info "(elisp) Changing Key Bindings")




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39631; Package emacs. (Sat, 29 Feb 2020 04:29:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39631 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#39631: Mention how to remove entire keymaps in Your Init File
Date: Sat, 29 Feb 2020 05:28:28 +0100
tags 39631 + wontfix notabug
close 39631
thanks

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

>> From: 積丹尼 Dan Jacobson
>>  <jidanni <at> jidanni.org>
>> Date: Sun, 16 Feb 2020 12:14:41 +0800
>> 
>> There are insufficient instructions and examples in
>> 
>> Info 49.3.6 Rebinding Keys in Your Init File
>> 
>> as of emacs-version "26.3"
>> 
>> to allow the user to get rid of e.g., (seen with C-h b)
>> C-,		flyspell-goto-next-error
>> C-.		flyspell-auto-correct-word
>> C-;		flyspell-auto-correct-previous-word
>> C-c $		flyspell-correct-word-before-point
>> 
>> Leaving only
>> C-M-i		flyspell-auto-correct-word
>> 
>> The user tries everything
>
> I think there's a limit to what we can say in the user manual that
> describes Lisp facilities.  Users who are serious about key-binding
> customizations should read the ELisp manual to augment and complement
> what is in the user manual.

I agree.  Since no one besides the OP has expressed a different
opinion within two weeks, I'm closing this bug now.

Best regards,
Stefan Kangas




Added tag(s) wontfix and notabug. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 29 Feb 2020 04:29:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 39631 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sat, 29 Feb 2020 04:29:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39631; Package emacs. (Sat, 29 Feb 2020 04:53:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 39630 <at> debbugs.gnu.org, 39802 <at> debbugs.gnu.org, 39631 <at> debbugs.gnu.org
Subject: Actually 39802 solves the need for 39630 and 39631
Date: Sat, 29 Feb 2020 12:51:58 +0800
Actually 39802 solves the need for 39630 and 39631.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39631; Package emacs. (Sat, 29 Feb 2020 05:19:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Stefan Kangas <stefan <at> marxist.se>,
 39631 <at> debbugs.gnu.org, 39802 <at> debbugs.gnu.org
Subject: Zapping a whole keymap
Date: Sat, 29 Feb 2020 13:17:41 +0800
NP> I don't know about 39631

OK, I suppose to solve 39631 somebody could use the lisp equivalent of
for(all the keys present in a given keymap){use the method of 39802 to unbind it}

So maybe document that in some elisp manual or something, mentioning
that maybe there is no way to zap the whole keymap with one line of lisp(?).




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 28 Mar 2020 11:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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