unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juhani Ahman <juhani@mailbox.org>
To: Stefan Kangas <stefan@marxist.se>, Alan Mackenzie <acm@muc.de>
Cc: 18072@debbugs.gnu.org, "Juhani Åhman" <juhanipm@gmail.com>
Subject: bug#18072: 24.3; cc-mode indentation is broken
Date: Sun, 10 Nov 2019 23:24:13 +0200 (EET)	[thread overview]
Message-ID: <849001755.10322.1573421054097@office.mailbox.org> (raw)
In-Reply-To: <87y2wnsaeb.fsf@marxist.se>

Hi

It definitely happened with C++ at least.
Don't remember if it happened with C too.
It's been awhile.

> On 10 November 2019 at 23:13 Stefan Kangas <stefan@marxist.se> wrote:
> 
> 
> Hi Alan,
> 
> Alan Mackenzie <acm@muc.de> writes:
> 
> > Is this C++ Mode, by any chance?
> 
> I'm not sure which one to use to reproduce it.  I'm hoping Juhani will
> be able to tell us.
> 
> > This looks like having the same cause as bug #37910 "CC Mode 5.33.2
> > (C++//l); CC-mode inconsistently indents everything as topmost-intro
> > after a while".
> >
> > I'm pretty sure it's a defect in a particular CC Mode cache (the "state
> > cache"), which tracks parentheses, braces, and brackets containing and
> > near point.  Somehow, it's missing the critical {, believing that
> > foo();, etc., are at top level.  A C-c C-s on that line would likely
> > show "topmost-intro".
> 
> Do you think that these two bugs should be merged?
> 
> Best regards,
> Stefan Kangas





  reply	other threads:[~2019-11-10 21:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-21 19:23 bug#18072: 24.3; cc-mode indentation is broken Juhani Åhman
2019-11-02 10:52 ` Stefan Kangas
     [not found] ` <mailman.384.1572692163.13325.bug-gnu-emacs@gnu.org>
2019-11-02 12:23   ` Alan Mackenzie
2019-11-10 21:13     ` Stefan Kangas
2019-11-10 21:24       ` Juhani Ahman [this message]
2019-11-11 20:43       ` Alan Mackenzie

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=849001755.10322.1573421054097@office.mailbox.org \
    --to=juhani@mailbox.org \
    --cc=18072@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=juhanipm@gmail.com \
    --cc=stefan@marxist.se \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).