From: Eli Zaretskii <eliz@gnu.org>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: newline cache
Date: Mon, 21 Apr 2014 19:55:01 +0300 [thread overview]
Message-ID: <837g6id3mi.fsf@gnu.org> (raw)
In-Reply-To: <E1WcH4d-0004ok-KH@fencepost.gnu.org>
> Date: Mon, 21 Apr 2014 12:28:03 -0400
> From: Richard Stallman <rms@gnu.org>
>
> I recall that some months ago I encountered a bug in the newline cache
> which caused mail-fetch-field to include a extra newline in the value
> of the X-RMAIL-ATTRIBUTES field. ISTR that the bug was fixed.
>
> But it happened again, in Emacs as rebuilt on March 19 from fairly
> recent sources.
>
> There was little hope I can find a way to reproduce it from a
> standing start -- I could hardly hope to get the newline cache just
> right.
>
> Does anyone remember what the fix was for that bug?
I've seen a couple of problems in the current pretest which
disappeared once I turned off the cache in the Rmail buffer. I've
tried to see what does Rmail do that triggers this, but came up
empty-handed. Help is welcome.
In general, each insertion and each deletion in any buffer must call
invalidate_buffer_caches. I tried to find any code that doesn't, but
couldn't find anything.
Another possibility is that the tricky optimizations in find_newline
have some subtle bug, so close scrutiny of that code might find the
cause.
next prev parent reply other threads:[~2014-04-21 16:55 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-21 16:28 newline cache Richard Stallman
2014-04-21 16:55 ` Eli Zaretskii [this message]
2014-04-22 5:37 ` Richard Stallman
2014-04-22 14:28 ` Stefan Monnier
2014-04-22 17:46 ` Eli Zaretskii
2014-04-22 17:44 ` Eli Zaretskii
2014-04-23 5:31 ` Richard Stallman
2014-04-23 15:14 ` Eli Zaretskii
2014-04-23 5:31 ` Richard Stallman
2014-04-23 15:23 ` Eli Zaretskii
2014-04-24 0:33 ` Richard Stallman
2014-04-25 9:20 ` Eli Zaretskii
2014-04-26 19:58 ` Eli Zaretskii
2014-04-27 2:42 ` Eli Zaretskii
2014-04-29 8:41 ` Jarek Czekalski
2014-04-29 14:25 ` Eli Zaretskii
2014-05-21 8:41 ` Damien Wyart
2014-05-21 13:09 ` Stefan Monnier
2014-05-21 15:30 ` Eli Zaretskii
2014-05-21 15:22 ` Eli Zaretskii
2014-05-21 15:22 ` Eli Zaretskii
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=837g6id3mi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@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 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).