GNU bug report logs -
#30659
Only local map define-key examples
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30659 in the body.
You can then email your comments to 30659 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Wed, 28 Feb 2018 22:45: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
.
(Wed, 28 Feb 2018 22:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
If such example already exists, then please link it from this page.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Thu, 01 Mar 2018 15:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30659 <at> debbugs.gnu.org (full text, mbox):
> 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.
I'm not sure I understand what's wrong with local-unset-key. (And
"Rebinding" also mentions global-unset-key, btw.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Sat, 03 Mar 2018 06:27:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 30659 <at> debbugs.gnu.org (full text, mbox):
>>>>> "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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Sat, 03 Mar 2018 06:30:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 30659 <at> debbugs.gnu.org (full text, mbox):
C-, runs the command flyspell-goto-next-error
It is bound to C-,.
And is very hard to unbind in one's .emacs.
It is a special case.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Sat, 03 Mar 2018 08:35:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 30659 <at> debbugs.gnu.org (full text, mbox):
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 30659 <at> debbugs.gnu.org
> Date: Sat, 03 Mar 2018 14:26:27 +0800
>
> >> 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".
I don't see why they would 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
I said "Rebinding", not "Init Rebinding".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Sat, 03 Mar 2018 08:37:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 30659 <at> debbugs.gnu.org (full text, mbox):
> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
> Cc: 30659 <at> debbugs.gnu.org
> Date: Sat, 03 Mar 2018 14:29:01 +0800
>
> C-, runs the command flyspell-goto-next-error
> It is bound to C-,.
>
> And is very hard to unbind in one's .emacs.
> It is a special case.
What is hard about unbinding it, and what makes it a special case?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Tue, 06 Mar 2018 20:54:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 30659 <at> debbugs.gnu.org (full text, mbox):
(info "(emacs) Init Examples")
only has
(global-unset-key "\C-x\C-v")
example.
(info "(emacs) Rebinding") mentions
‘M-x global-unset-key <RET> KEY’
Make KEY undefined in the global map.
‘M-x local-unset-key <RET> KEY’
Make KEY undefined locally (in the major mode now in effect).
However they all lack proper local map .emacs undefine key examples.
An undefine local key example needs to be wrapped in the proper hook,
else, unlike a global undefine key example, it will not work.
And, without such proper tested working example in the manual, I cannot
proceed in unbinding local keys. Thank you.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30659
; Package
emacs
.
(Mon, 14 Oct 2019 20:25:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 30659 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
>> Cc: 30659 <at> debbugs.gnu.org
>> Date: Sat, 03 Mar 2018 14:29:01 +0800
>>
>> C-, runs the command flyspell-goto-next-error
>> It is bound to C-,.
>>
>> And is very hard to unbind in one's .emacs.
>> It is a special case.
>
> What is hard about unbinding it, and what makes it a special case?
If I understand the complaint correctly, Dan wants an example in the
manual that says
(add-hook 'texinfo-mode-hook
(lambda ()
(local-unset-key "\C-cp")))
I think that's a pretty superfluous example (it seems the obvious thing
to do), so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
30659 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 14 Oct 2019 20:25:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 12 Nov 2019 12:24:09 GMT)
Full text and
rfc822 format available.
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.