all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dima Kogan <dima@secretsauce.net>
To: 25480@debbugs.gnu.org
Subject: bug#25480: 26.0.50; cc-mode: punctuation in comments can affect non-comment indentation
Date: Wed, 18 Jan 2017 14:09:07 -0800	[thread overview]
Message-ID: <87y3y8vx4s.fsf@secretsauce.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

Hi. Found another possibly-obscure issue. I'm running a very recent
build of emacs: af3db69ee64

I have the attached minimized C source. If I

- load this source with emacs -Q
- move the point to 'struct'
- hit TAB

I would expect that line to be indented "correctly", with "correctly"
meaning starting at column 0 in this case. Instead, I see it indented to
column 2. This appears to be affected by the text in the preceding
comment. If I change "aaa)" to "aaa" then I get the desired behavior.

Thanks


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: tst.h --]
[-- Type: text/x-chdr, Size: 55 bytes --]

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

struct S { int x; };

             reply	other threads:[~2017-01-18 22:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 22:09 Dima Kogan [this message]
2017-11-29  2:24 ` bug#25480: 26.0.50; cc-mode: punctuation in comments can affect non-comment indentation Noam Postavsky
2018-02-10  9:04   ` Dmitry Gutov
2018-05-24  3:24     ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3y8vx4s.fsf@secretsauce.net \
    --to=dima@secretsauce.net \
    --cc=25480@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.