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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19826: closed (25.0.50; wrong binding for 'comment-line)
Date: Mon, 23 Feb 2015 06:05:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 22 Feb 2015 22:04:49 -0800
with message-id <54EAC301.4040806 <at> cs.ucla.edu>
and subject line Re: [Emacs-diffs] master 1cb3428: * bindings.el (ctl-x-map): There is no 'C-; '.
has caused the debbugs.gnu.org bug report #19826,
regarding 25.0.50; wrong binding for 'comment-line
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19826: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19826
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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)


[Message part 3 (message/rfc822, inline)]
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 4 (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)]

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.