all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Chong Yidong <cyd@stupidchicken.com>,
	Paul Pogonyshev <pogonyshev@gmx.net>
Cc: 5570@debbugs.gnu.org
Subject: bug#5570: automatic cache validation
Date: Thu, 29 Apr 2010 15:04:42 +0000	[thread overview]
Message-ID: <20100429150442.GA4310__16737.7134821892$1272554795$gmane$org@muc.de> (raw)
In-Reply-To: <87eihz5rvd.fsf@stupidchicken.com>

Hi, Yidong and Paul!

On Wed, Apr 28, 2010 at 02:55:34PM -0400, Chong Yidong wrote:
> Hi Alan,

> I found a small recipe for reproducing a (the?) cache bug on the trunk:

> 1. emacs -Q

> 2. C-x C-f foo.c RET

> 3. Type the following (from view-lossage):

>   i n t SPC m a i n SPC ( ) <return>
>   { <return> f o o ; <return> } M-< <return>
>   <up> # i n c l u d e SPC < s t d i o . h > <return>
>   <down> <down> <down> <tab>

> At this point, the line "foo;" becomes indented to the zeroth column.

> Does this help?

Does it help?  That was an absolute dream of a bug report.  :-)

The problem was another off-by-one error.  What triggered the bug is
typing <return> at the end of the #include line.  The thing marking the
end of the macro (a category text property) got pushed onto the next line
instead of being properly removed.  This then fouled up the
"c-state-cache" mechanism.

It looks like the situation reported by Paul (in his mail of 2010-02-23,
Message-Id: <201002231528.09081.pogonyshev@gmx.net>) is likely caused by
the same bug.

I've committed a fix to the Bazaar HEAD, which of course is a fix for the
last bug in this area.  ;-)

Paul, would you please update your copy of the Emacs HEAD from savannah,
and see if any indentation bugs still manifest themselves.  Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).






       reply	other threads:[~2010-04-29 15:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87eihz5rvd.fsf@stupidchicken.com>
2010-04-29 15:04 ` Alan Mackenzie [this message]
     [not found] ` <20100429150442.GA4310@muc.de>
2010-05-29 22:27   ` bug#5570: automatic cache validation Paul Pogonyshev
     [not found] <87pr2gf5va.fsf@stupidchicken.com>
2010-04-04  0:14 ` Paul Pogonyshev
2010-04-04  8:09 ` Jan Djärv
2010-02-12 22:52 bug#5570: Emacs 23.1.91.1 C++ mode "ESC C-q" and TAB indenting issue Bob
2010-03-18 20:05 ` bug#5570: automatic cache validation Paul Pogonyshev
2010-03-18 20:31   ` Chong Yidong
2010-03-19 21:56   ` Alan Mackenzie
2010-03-19 22:45     ` Jan Djärv
2010-03-20 13:22       ` Alan Mackenzie
2010-03-20 14:49         ` Jan D.
2010-03-21 11:16           ` Alan Mackenzie
2010-03-21 11:50             ` Jan Djärv
2010-03-22  8:07             ` Jan Djärv
2010-04-02 17:01               ` Paul Pogonyshev
2010-04-03 23:55 ` Chong Yidong
2010-04-28 18:55 ` Chong Yidong

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='20100429150442.GA4310__16737.7134821892$1272554795$gmane$org@muc.de' \
    --to=acm@muc.de \
    --cc=5570@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=pogonyshev@gmx.net \
    /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.