GNU bug report logs - #19826
25.0.50; wrong binding for 'comment-line

Previous Next

Package: emacs;

Reported by: Mark Oteiza <mvoteiza <at> udel.edu>

Date: Tue, 10 Feb 2015 06:10:01 UTC

Severity: normal

Found in version 25.0.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 19826 in the body.
You can then email your comments to 19826 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#19826; Package emacs. (Tue, 10 Feb 2015 06:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mark Oteiza <mvoteiza <at> udel.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 10 Feb 2015 06:10:02 GMT) Full text and rfc822 format available.

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

From: Mark Oteiza <mvoteiza <at> udel.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; wrong binding for 'comment-line
Date: Tue, 10 Feb 2015 01:09:33 -0500
Hi,

(define-key ctl-x-map "C-;" 'comment-line)

is missing the backslash, and should be

(define-key ctl-x-map "\C-;" 'comment-line)




Added indication that bug 19826 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 11 Feb 2015 17:06:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19826; Package emacs. (Sat, 21 Feb 2015 21:01:03 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 19826 <at> debbugs.gnu.org
Cc: Mark Oteiza <mvoteiza <at> udel.edu>,
 Artur Malabarba <bruce.connor.am <at> gmail.com>
Subject: Re: 25.0.50; wrong binding for 'comment-line
Date: Sat, 21 Feb 2015 13:00:02 -0800
Artur installed Mark's proposed patch, but that broke 'make bootstrap', as there 
is no 'C-;' character.  I don't know what binding Artur had in mind, so I 
guessed 'M-;' was intended and installed that as commit 
1cb34285463d2b9050a031a7f9a53d376de5b489, so as to fix 'make bootstrap'.  Please 
feel free to improve on the binding.




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 23 Feb 2015 06:05:02 GMT) Full text and rfc822 format available.

Notification sent to Mark Oteiza <mvoteiza <at> udel.edu>:
bug acknowledged by developer. (Mon, 23 Feb 2015 06:05:02 GMT) Full text and rfc822 format available.

Message #15 received at 19826-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: bruce.connor.am <at> gmail.com, Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 19826-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: [Emacs-diffs] master 1cb3428: * bindings.el (ctl-x-map): There
 is no 'C-; '.
Date: Sun, 22 Feb 2015 22:04:49 -0800
[Message part 1 (text/plain, inline)]
Artur Malabarba wrote:
> The actual binding was supposed to be C-x C-;. The problem with bootstrap
> surprises me, but I guess it must be something in the order that files are
> loaded.

It's because if you try to evaluate the string "\C-;", Emacs throws (error 
"Invalid modifier in string").  I installed the attached patch to use the 
keybinding that you wanted.  This should fix the bug, so I'm closing the bug report.
[0001-Fix-the-desired-binding-for-comment-line.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#19826; Package emacs. (Mon, 23 Feb 2015 07:33:01 GMT) Full text and rfc822 format available.

Message #18 received at 19826-done <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 19826-done <at> debbugs.gnu.org
Subject: Re: [Emacs-diffs] master 1cb3428: * bindings.el (ctl-x-map): There is
 no 'C-; '.
Date: Mon, 23 Feb 2015 07:32:24 +0000
[Message part 1 (text/plain, inline)]
Yes, that looks fine. Thanks again.!
On Feb 23, 2015 3:04 AM, "Paul Eggert" <eggert <at> cs.ucla.edu> wrote:

> Artur Malabarba wrote:
>
>> The actual binding was supposed to be C-x C-;. The problem with bootstrap
>> surprises me, but I guess it must be something in the order that files are
>> loaded.
>>
>
> It's because if you try to evaluate the string "\C-;", Emacs throws (error
> "Invalid modifier in string").  I installed the attached patch to use the
> keybinding that you wanted.  This should fix the bug, so I'm closing the
> bug report.
>
[Message part 2 (text/html, inline)]

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

This bug report was last modified 10 years and 95 days ago.

Previous Next


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