GNU bug report logs - #5997
vhdl-comment-uncomment-region

Previous Next

Package: emacs;

Reported by: Jerzy Gbur <jerzy.gbur <at> gmail.com>

Date: Wed, 21 Apr 2010 15:15:02 UTC

Severity: normal

Merged with 14335

Found in version 24.2

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.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 5997 in the body.
You can then email your comments to 5997 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 owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5997; Package emacs. (Wed, 21 Apr 2010 15:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jerzy Gbur <jerzy.gbur <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 21 Apr 2010 15:15:02 GMT) Full text and rfc822 format available.

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

From: Jerzy Gbur <jerzy.gbur <at> gmail.com>
To: bug-emacs <at> gnu.org
Subject: migration emacs 22.3 to 23.1
Date: Wed, 21 Apr 2010 15:42:30 +0200
Hi
I use emacs for VHDL (vhdl-mode) coding mostly.
After I updated emacs from version 22.3 to 23.1 have problem with
vhdl-comment-uncomment-region function.

Earlier I marked region and did \C-c \C-c, and region was commented or
uncommented. Comment marks '--' were placed on the first column no
matter where code text were started.

In this version (23.1) comment marks are inserted just before code
text without any spaces, and vhdl-comment-uncomment-region function
doesn't know that this row is commented or no, so it makes new comment
and so on....

Regards,

Jerzy Gbur





Changed bug title to 'vhdl-comment-uncomment-region' from 'migration emacs 22.3 to 23.1' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 22 Apr 2010 06:00:04 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5997; Package emacs. (Thu, 22 Apr 2010 13:40:03 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jerzy Gbur <jerzy.gbur <at> gmail.com>
Cc: 5997 <at> debbugs.gnu.org
Subject: Re: bug#5997: migration emacs 22.3 to 23.1
Date: Thu, 22 Apr 2010 09:39:03 -0400
> In this version (23.1) comment marks are inserted just before code
> text without any spaces,

This is probably because vhdl-comment-uncomment-region uses
comment-region, whose default behavior was changed.  See comment-style.

> and vhdl-comment-uncomment-region function doesn't know that this row
> is commented or no, so it makes new comment and so on....

Rather than C-c C-c (which is specific to VHDL) you may want to try M-;
which should work in "any" mode.  This is use comment-region and
uncomment-region.  I can't seem to reproduce your bug with M-;, so that
would seem to indicate that the bug is in vhdl-comment-uncomment-region,
but please try it out and if you can reproduce it with M-; give us
a precise recipe (and if not tell us so as well, so we know where to
find the fix).


        Stefan





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5997; Package emacs. (Thu, 22 Apr 2010 15:58:02 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#5997: migration emacs 22.3 to 23.1
Date: Thu, 22 Apr 2010 16:56:49 +0100
On 2010-04-22 14:39 +0100, Stefan Monnier wrote:
>> and vhdl-comment-uncomment-region function doesn't know that this row
>> is commented or no, so it makes new comment and so on....
>
> Rather than C-c C-c (which is specific to VHDL) you may want to try M-;
> which should work in "any" mode.

I always hate it when a mode overrides a global binding for no good
reason. It gives surprises on the first use. There are quite a few in
Emacs, unfortunately. To name a few:

1. diff-mode binds M-q
2. M-s that was used to search history is overwritten by the new M-s
   prefix. See for example in ielm.
3. Winner mode key bindings are active in minibuffer which makes ido
   fail to perform some of its functions.

Leo






Forcibly Merged 5997 14335. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 16 May 2013 08:12: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. (Thu, 13 Jun 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 9 days ago.

Previous Next


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