all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#39630: Mention how to unset keys in Your Init File
@ 2020-02-16  3:28 積丹尼 Dan Jacobson
       [not found] ` <handler.39630.C.15829502435362.notifdonectrl.0@debbugs.gnu.org>
  2020-02-16 15:19 ` bug#39630: Mention how to unset keys in Your Init File Eli Zaretskii
  0 siblings, 2 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-16  3:28 UTC (permalink / raw)
  To: 39630

49.3.5 Changing Key Bindings Interactively.
       mentions how to set and unset keys.
49.3.6 Rebinding Keys in Your Init File
       mentions how to set keys, but not how to unset keys.
emacs-version "26.3"





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Mention how to remove entire keymaps in Your Init File
@ 2020-02-16  4:14   ` 積丹尼 Dan Jacobson
  2020-02-16 15:20     ` Eli Zaretskii
                       ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-16  4:14 UTC (permalink / raw)
  To: 39631

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.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39630: Mention how to unset keys in Your Init File
  2020-02-16  3:28 bug#39630: Mention how to unset keys in Your Init File 積丹尼 Dan Jacobson
       [not found] ` <handler.39630.C.15829502435362.notifdonectrl.0@debbugs.gnu.org>
@ 2020-02-16 15:19 ` Eli Zaretskii
  2020-02-16 16:28   ` 積丹尼 Dan Jacobson
                     ` (2 more replies)
  1 sibling, 3 replies; 14+ messages in thread
From: Eli Zaretskii @ 2020-02-16 15:19 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 39630

> From: 積丹尼 Dan Jacobson
>  <jidanni@jidanni.org>
> Date: Sun, 16 Feb 2020 11:28:41 +0800
> 
> 49.3.5 Changing Key Bindings Interactively.
>        mentions how to set and unset keys.
> 49.3.6 Rebinding Keys in Your Init File
>        mentions how to set keys, but not how to unset keys.

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 co0mplement
what is in the user manual.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Mention how to remove entire keymaps in Your Init File
  2020-02-16  4:14   ` bug#39631: Mention how to remove entire keymaps " 積丹尼 Dan Jacobson
@ 2020-02-16 15:20     ` Eli Zaretskii
  2020-02-16 16:30       ` 積丹尼 Dan Jacobson
                         ` (2 more replies)
  2020-02-29  4:51     ` bug#39631: Actually 39802 solves the need for 39630 and 39631 積丹尼 Dan Jacobson
  2020-02-29  5:17     ` bug#39631: Zapping a whole keymap 積丹尼 Dan Jacobson
  2 siblings, 3 replies; 14+ messages in thread
From: Eli Zaretskii @ 2020-02-16 15:20 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 39631

> From: 積丹尼 Dan Jacobson
>  <jidanni@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.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39630: Mention how to unset keys in Your Init File
  2020-02-16 15:19 ` bug#39630: Mention how to unset keys in Your Init File Eli Zaretskii
@ 2020-02-16 16:28   ` 積丹尼 Dan Jacobson
  2020-02-16 16:44   ` 積丹尼 Dan Jacobson
  2020-02-29  4:23   ` Stefan Kangas
  2 siblings, 0 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-16 16:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39630

Fine. Users can only unset keys interactively.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Mention how to remove entire keymaps in Your Init File
  2020-02-16 15:20     ` Eli Zaretskii
@ 2020-02-16 16:30       ` 積丹尼 Dan Jacobson
  2020-02-16 16:37       ` 積丹尼 Dan Jacobson
  2020-02-29  4:28       ` Stefan Kangas
  2 siblings, 0 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-16 16:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39631

Fine. Keymaps can only be added to.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Mention how to remove entire keymaps in Your Init File
  2020-02-16 15:20     ` Eli Zaretskii
  2020-02-16 16:30       ` 積丹尼 Dan Jacobson
@ 2020-02-16 16:37       ` 積丹尼 Dan Jacobson
  2020-02-29  4:28       ` Stefan Kangas
  2 siblings, 0 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-16 16:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39631

OK the answer is not in
(info "(eintr) Keymaps")
(info "(elisp) Creating Keymaps")
however possibly in
(info "(elisp) Changing Key Bindings")





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39630: Mention how to unset keys in Your Init File
  2020-02-16 15:19 ` bug#39630: Mention how to unset keys in Your Init File Eli Zaretskii
  2020-02-16 16:28   ` 積丹尼 Dan Jacobson
@ 2020-02-16 16:44   ` 積丹尼 Dan Jacobson
  2020-02-29  4:23   ` Stefan Kangas
  2 siblings, 0 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-16 16:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39630

I'm just saying that
(info "(emacs) Init Rebinding")
has 16 mentions of global-set-key, and not even one mention of
unsetting.

It also has two mentions of define-key, and not even the define-key
docstring mentions what to do about the lack of a undefine-key function
that the user is perhaps supposed to search for as
(info "(emacs) Init Rebinding")
doesn't have any reverse examples.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39630: Mention how to unset keys in Your Init File
  2020-02-16 15:19 ` bug#39630: Mention how to unset keys in Your Init File Eli Zaretskii
  2020-02-16 16:28   ` 積丹尼 Dan Jacobson
  2020-02-16 16:44   ` 積丹尼 Dan Jacobson
@ 2020-02-29  4:23   ` Stefan Kangas
  2020-02-29  5:00     ` Noam Postavsky
  2 siblings, 1 reply; 14+ messages in thread
From: Stefan Kangas @ 2020-02-29  4:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39630, 積丹尼 Dan Jacobson

close 39630
tags 39630 + wontfix notabug
thanks

Eli Zaretskii <eliz@gnu.org> writes:

>> From: 積丹尼 Dan Jacobson
>>  <jidanni@jidanni.org>
>> Date: Sun, 16 Feb 2020 11:28:41 +0800
>> 
>> 49.3.5 Changing Key Bindings Interactively.
>>        mentions how to set and unset keys.
>> 49.3.6 Rebinding Keys in Your Init File
>>        mentions how to set keys, but not how to unset keys.
>
> 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 co0mplement
> 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





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Mention how to remove entire keymaps in Your Init File
  2020-02-16 15:20     ` Eli Zaretskii
  2020-02-16 16:30       ` 積丹尼 Dan Jacobson
  2020-02-16 16:37       ` 積丹尼 Dan Jacobson
@ 2020-02-29  4:28       ` Stefan Kangas
  2 siblings, 0 replies; 14+ messages in thread
From: Stefan Kangas @ 2020-02-29  4:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 39631, 積丹尼 Dan Jacobson

tags 39631 + wontfix notabug
close 39631
thanks

Eli Zaretskii <eliz@gnu.org> writes:

>> From: 積丹尼 Dan Jacobson
>>  <jidanni@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





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Actually 39802 solves the need for 39630 and 39631
  2020-02-16  4:14   ` bug#39631: Mention how to remove entire keymaps " 積丹尼 Dan Jacobson
  2020-02-16 15:20     ` Eli Zaretskii
@ 2020-02-29  4:51     ` 積丹尼 Dan Jacobson
  2020-02-29  5:17     ` bug#39631: Zapping a whole keymap 積丹尼 Dan Jacobson
  2 siblings, 0 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-29  4:51 UTC (permalink / raw)
  To: 39630, 39802, 39631

Actually 39802 solves the need for 39630 and 39631.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39630: Mention how to unset keys in Your Init File
  2020-02-29  4:23   ` Stefan Kangas
@ 2020-02-29  5:00     ` Noam Postavsky
  2020-02-29  5:22       ` bug#39802: " Stefan Kangas
  0 siblings, 1 reply; 14+ messages in thread
From: Noam Postavsky @ 2020-02-29  5:00 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 39630, 積丹尼 Dan Jacobson

tags 39630 - notabug wontfix
forcemerge 39802 39630
quit

Stefan Kangas <stefan@marxist.se> writes:

>> 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 co0mplement
>> 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.

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> Actually 39802 solves the need for 39630 and 39631.

I don't know about 39631, but 39630 is clearly the same as 39802 (I did
have a feeling of familiarity when I initially read that one), so it
doesn't make sense to mark it as wontfix when we are actually fixing it.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39631: Zapping a whole keymap
  2020-02-16  4:14   ` bug#39631: Mention how to remove entire keymaps " 積丹尼 Dan Jacobson
  2020-02-16 15:20     ` Eli Zaretskii
  2020-02-29  4:51     ` bug#39631: Actually 39802 solves the need for 39630 and 39631 積丹尼 Dan Jacobson
@ 2020-02-29  5:17     ` 積丹尼 Dan Jacobson
  2 siblings, 0 replies; 14+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-02-29  5:17 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: Stefan Kangas, 39631, 39802

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(?).





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#39802: bug#39630: Mention how to unset keys in Your Init File
  2020-02-29  5:00     ` Noam Postavsky
@ 2020-02-29  5:22       ` Stefan Kangas
  0 siblings, 0 replies; 14+ messages in thread
From: Stefan Kangas @ 2020-02-29  5:22 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 39630, 39802, 積丹尼 Dan Jacobson

Noam Postavsky <npostavs@gmail.com> writes:

> I don't know about 39631, but 39630 is clearly the same as 39802 (I did
> have a feeling of familiarity when I initially read that one), so it
> doesn't make sense to mark it as wontfix when we are actually fixing it.

Thanks.  I had missed the ongoing work in Bug#39802.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-02-29  5:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-16  3:28 bug#39630: Mention how to unset keys in Your Init File 積丹尼 Dan Jacobson
     [not found] ` <handler.39630.C.15829502435362.notifdonectrl.0@debbugs.gnu.org>
2020-02-16  4:14   ` bug#39631: Mention how to remove entire keymaps " 積丹尼 Dan Jacobson
2020-02-16 15:20     ` Eli Zaretskii
2020-02-16 16:30       ` 積丹尼 Dan Jacobson
2020-02-16 16:37       ` 積丹尼 Dan Jacobson
2020-02-29  4:28       ` Stefan Kangas
2020-02-29  4:51     ` bug#39631: Actually 39802 solves the need for 39630 and 39631 積丹尼 Dan Jacobson
2020-02-29  5:17     ` bug#39631: Zapping a whole keymap 積丹尼 Dan Jacobson
2020-02-16 15:19 ` bug#39630: Mention how to unset keys in Your Init File Eli Zaretskii
2020-02-16 16:28   ` 積丹尼 Dan Jacobson
2020-02-16 16:44   ` 積丹尼 Dan Jacobson
2020-02-29  4:23   ` Stefan Kangas
2020-02-29  5:00     ` Noam Postavsky
2020-02-29  5:22       ` bug#39802: " Stefan Kangas

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.