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: Mark Oteiza <mvoteiza <at> udel.edu>
Subject: bug#19826: closed (Re: [Emacs-diffs] master 1cb3428: *
 bindings.el (ctl-x-map): There is no 'C-; '.)
Date: Mon, 23 Feb 2015 06:05:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#19826: 25.0.50; wrong binding for 'comment-line

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 19826 <at> debbugs.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: 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 3 (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)]
[Message part 5 (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)



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.