GNU bug report logs - #25480
cc-mode: open-paren-in-column-0 of comment affects non-comment indentation

Previous Next

Packages: emacs, cc-mode;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Wed, 18 Jan 2017 22:10:02 UTC

Severity: normal

Found in version 26.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Dima Kogan <dima <at> secretsauce.net>
Cc: 25480 <at> debbugs.gnu.org
Subject: Re: bug#25480: 26.0.50;
 cc-mode: punctuation in comments can affect non-comment indentation
Date: Tue, 28 Nov 2017 21:24:38 -0500
retitle 25480 cc-mode: open-paren-in-column-0 of comment affects non-comment indentation
quit

Dima Kogan <dima <at> secretsauce.net> writes:

> /*
> aaa). bbb ccc <=
> (dd >= f)
> */
>
> struct S { int x; };

Doing (setq open-paren-in-column-0-is-defun-start nil) fixes it.

Alternatively, keeping the open paren out of column 0:

/*
aaa). bbb ccc <=
 (dd >= f)
*/

struct S { int x; };





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

Previous Next


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