GNU bug report logs - #16180
M-x align eats text

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Tue, 17 Dec 2013 22:16:01 UTC

Severity: normal

Tags: moreinfo, unreproducible

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 16180 in the body.
You can then email your comments to 16180 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#16180; Package emacs. (Tue, 17 Dec 2013 22:16:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Pogonyshev <pogonyshev <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Dec 2013 22:16:02 GMT) Full text and rfc822 format available.

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

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: M-x align eats text
Date: Wed, 18 Dec 2013 01:15:05 +0300
[Message part 1 (text/plain, inline)]
To reproduce, create a .cpp file with the following two lines:

aaa = 1; // xxx
b = 2; // yyy

select everything and 'M-x align'. Result here:

aaa = 1;                        // x
b   = 2;                        // yyy

The first comment is half-eaten.

Version: GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6)
of 2013-12-17 on gonzo.localdomain

Paul
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16180; Package emacs. (Wed, 18 Dec 2013 01:28:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 16180 <at> debbugs.gnu.org
Subject: Re: bug#16180: M-x align eats text
Date: Tue, 17 Dec 2013 20:27:07 -0500
I can't reproduce this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16180; Package emacs. (Thu, 19 Dec 2013 18:09:02 GMT) Full text and rfc822 format available.

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

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 16180 <at> debbugs.gnu.org
Subject: Re: bug#16180: M-x align eats text
Date: Thu, 19 Dec 2013 21:07:54 +0300
[Message part 1 (text/plain, inline)]
Hm, I could have sworn I tested it with 'emacs -q', but apparently I made a
mistake. In the end, however, it boiled down to corrupted part of '.emacs'
where customization variables are (this is an alignment rule):

     (open-comment
      (regexp lambda
              (end reverse)
              (funcall
               (if reverse
                   (quote re-search-backward)
                 (quote re-search-forward))
               (concat "[^
\\\\]"
                       (regexp-quote comment-start)
                       "\\(.+\\)$")
               end t))
      (modes . align-open-comment-modes))

The string after 'concat' looks very incorrect and when I replaced it with
the proper one from current source code, comment eating is gone. Of course,
I cannot guarantee I didn't modify it, but _maybe_ at some point Emacs
screwed it up itself. Can you try customizing 'align-rules-list' in a
harmless way and check that what is written in Elisp is actually correct?

Paul


On 18 December 2013 04:27, Glenn Morris <rgm <at> gnu.org> wrote:

>
> I can't reproduce this.
>
[Message part 2 (text/html, inline)]

bug closed, send any further explanations to 16180 <at> debbugs.gnu.org and Paul Pogonyshev <pogonyshev <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 26 Dec 2015 01:38: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. (Sat, 23 Jan 2016 12:24:08 GMT) Full text and rfc822 format available.

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

Previous Next


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