GNU bug report logs -
#16071
Erc re-binds [home] even if not beginning-of-line
Previous Next
Reported by: Ivan Shmakov <ivan <at> siamics.net>
Date: Fri, 6 Dec 2013 11:38:01 UTC
Severity: minor
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
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 16071 in the body.
You can then email your comments to 16071 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#16071
; Package
emacs
.
(Fri, 06 Dec 2013 11:38:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ivan Shmakov <ivan <at> siamics.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 06 Dec 2013 11:38:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Severity: minor
As of 0dd4ebbcf94d, erc-mode-map unconditionally binds both C-a
and Home to erc-bol. Which is problematic, as:
• either (or both) of them may happen to /not/ be bound to
beginning-of-line (as, for example, when using an older,
Emacs 20-or-so, binding of Home to beginning-of-buffer);
• the user may’ve previously bound additional key sequences to
beginning-of-line, which are not rebound by the current
erc-mode-map.
It’s arguably more semantically correct (and convenient) to
re-map beginning-of-line to erc-bol, instead of using an
explicit list of key sequences to be bound to erc-bol.
--
FSF associate member #7257
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16071
; Package
emacs
.
(Fri, 06 Dec 2013 18:00:04 GMT)
Full text and
rfc822 format available.
Message #8 received at 16071 <at> debbugs.gnu.org (full text, mbox):
> As of 0dd4ebbcf94d, erc-mode-map unconditionally binds both C-a
> and Home to erc-bol. Which is problematic, as:
Good points.
But please note that doing it with remap is intrusive because the user
may actually like to have a key bound to beginning-of-line.
I guess rebinding with substitute-key-definition is OK.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16071
; Package
emacs
.
(Fri, 06 Dec 2013 18:27:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 16071 <at> debbugs.gnu.org (full text, mbox):
>>>>> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> As of 0dd4ebbcf94d, erc-mode-map unconditionally binds both C-a and
>> Home to erc-bol. Which is problematic, as:
> Good points.
> But please note that doing it with remap is intrusive because the
> user may actually like to have a key bound to beginning-of-line.
Indeed, it’s intrusive either way.
> I guess rebinding with substitute-key-definition is OK.
Does that mean binding only to the sequences which are
beginning-of-line in global-map /and/ also not overridden by the
user in erc-mode-map, or something like that? As per my reading
of substitute-key-definition, it implies more or less the same
effect as the use of [remap] with define-key.
--
FSF associate member #7257
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16071
; Package
emacs
.
(Sat, 07 Dec 2013 03:18:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 16071 <at> debbugs.gnu.org (full text, mbox):
>> I guess rebinding with substitute-key-definition is OK.
> Does that mean binding only to the sequences which are
> beginning-of-line in global-map /and/ also not overridden by the
> user in erc-mode-map, or something like that?
Yes.
> As per my reading of substitute-key-definition, it implies more
> or less the same effect as the use of [remap] with define-key.
No: people can still bind a key to beginning-of-line in erc-mode-map and
it won't be remapped.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16071
; Package
emacs
.
(Sun, 27 Dec 2015 21:08:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 16071 <at> debbugs.gnu.org (full text, mbox):
Ivan Shmakov <ivan <at> siamics.net> writes:
> As of 0dd4ebbcf94d, erc-mode-map unconditionally binds both C-a
> and Home to erc-bol. Which is problematic, as:
>
> • either (or both) of them may happen to /not/ be bound to
> beginning-of-line (as, for example, when using an older,
> Emacs 20-or-so, binding of Home to beginning-of-buffer);
>
> • the user may’ve previously bound additional key sequences to
> beginning-of-line, which are not rebound by the current
> erc-mode-map.
>
> It’s arguably more semantically correct (and convenient) to
> re-map beginning-of-line to erc-bol, instead of using an
> explicit list of key sequences to be bound to erc-bol.
Well, I think that users who want to rebind keys in a mode should use
the mode hooks -- there's nothing special about beginning-of-line and
friends. So I'm closing this report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) wontfix.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 27 Dec 2015 21:08:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
16071 <at> debbugs.gnu.org and Ivan Shmakov <ivan <at> siamics.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 27 Dec 2015 21:08: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
.
(Mon, 25 Jan 2016 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.