GNU bug report logs - #11636
23.1; wrong comment indentation

Previous Next

Package: emacs;

Reported by: Jack Duthen <duthen.mac.01 <at> gmail.com>

Date: Wed, 6 Jun 2012 10:52:01 UTC

Severity: minor

Tags: patch

Found in version 23.1

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jack Duthen <duthen.mac.01 <at> gmail.com>
Cc: 11636 <at> debbugs.gnu.org
Subject: bug#11636: 23.1; wrong comment indentation
Date: Wed, 06 Jun 2012 09:18:39 -0400
>     (jd-re-or "COM_writeLog 1")         ;
>     (jd-re-paren
>      "return ")                       ; \2 <msg> \n <spaces> "return "
>     (jd-re-paren "[0-9]"))            ;
>    "COM_log \\3\\2\\3"))
[...]
> Is this a bug?

I don't think so:
- The second comment is not moved to the same column as the first
  because that would push the text past fill-column.  If you shorten the
  second comment or if you increase fill-column, then the 3 comments
  will be aligned.
- The first is not moved to the same column as the second because Emacs
  doesn't look past a non-commented line.  If you add a comment on the
  `jd-re-paren' line, then Emacs will look further and will align all
  4 comments.


        Stefan




This bug report was last modified 7 years and 148 days ago.

Previous Next


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