[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11165: 24.0.95; c-indent-new-comment-line bug or feature?

From: Alan Mackenzie
Subject: bug#11165: 24.0.95; c-indent-new-comment-line bug or feature?
Date: Tue, 17 Apr 2012 10:53:48 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

> 1. Emacs -q
> 2. M-x c-mode
> 3. customise the indentation for syntactic symbol c to 4
> 4. Enter /* and then M-j (c-indent-new-comment-line)

I think you've missed out some steps here.  When I do exactly that, I do
M-x c-mode on the opening splash screen (which isn't sensible), which is
read-only, preventing step 4.

What I tried was, instead of your step 4, creating a new buffer with C-x
b asdf.c, then setting the mode with M-x c-mode.

> you should see point located at column 2 instead of 4, which is a wrong
> indentation position for that line and unlike indent-new-comment-line
> or newline-and-indent.

I do indeed see point at column 2, which is correct.  I think you might
have set the offset for "c" to 4 before creating the empty C buffer.
Indentation configuration is buffer local.

When I then repeat the C-c C-o c <ret> 4 <ret> I then get the second line
at offset 4, where it ought to be.

> Is this a bug or feature? Thanks.

Could you please indicate exactly what you did.  I suspect this is
neither bug nor feature.  :-)  It would be good to get this bug report
closed off.


Alan Mackenzie (Nuremberg, Germany).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]