all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: Richard Copley <rcopley@gmail.com>
Cc: Alan Mackenzie <acm@muc.de>,
	24094@debbugs.gnu.org, 24074@debbugs.gnu.org
Subject: bug#24074: bug#24094: 25.1.50; revert-buffer error in CC mode
Date: Fri, 29 Jul 2016 20:43:03 +0200	[thread overview]
Message-ID: <87mvl02slk.fsf@wanadoo.es> (raw)
In-Reply-To: <CAPM58ogk1DL+jXwvNpDX8w2KRGa=qoS+vpGyqNtUZKdg1-rhhg@mail.gmail.com> (Richard Copley's message of "Fri, 29 Jul 2016 19:16:50 +0100")

Richard Copley <rcopley@gmail.com> writes:

> It's hard to describe precisely (especially as I don't have a
> corrupted buffer here and now), but being guided by your question,
> we're talking about one or two larger chunks and not at the end of the
> buffer but in the "middle".

Yes, sometimes the missing chunk(s) are in the middle of the file. AFAIR
they are always quite large. I can't confirm the case of more than one
chunk, though.

Appreciating the damage is complicated by the fact that it not evident
what's missing at first sight: in the case I describe on my previous
email, when the error happened and swtiched to the affected buffer it
only displayed one line (the first one); then, pressed cursor-down and
the other eight lines appeared from nowhere.

> My impression FWIW is that it is *as if* Emacs has done
> "diff-buffer-with-file" and is attempting to apply the resulting patch
> to the buffer (perhaps with the laudable intention of saving space in
> the undo buffer), and has failed after a deletion and before an
> insertion. But that is uninformed speculation.

I suspected some undo-related problem when I experienced the problem
some weeks ago. Then, disabled undo before the revert on my Magit code:

-            (revert-buffer t t)
+            (progn
+              (setq buffer-undo-list t)
+              (revert-buffer t t)

to no avail. It looks more like a cache issue to me now: c-mode is using
some stale info computed before the revert.





  reply	other threads:[~2016-07-29 18:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-28 13:50 bug#24094: 25.1.50; revert-buffer error in CC mode Richard Copley
     [not found] ` <handler.24094.B.146971385325079.ack@debbugs.gnu.org>
2016-07-28 13:54   ` bug#24094: Acknowledgement (25.1.50; revert-buffer error in CC mode) Richard Copley
     [not found] ` <mailman.2189.1469713866.26859.bug-gnu-emacs@gnu.org>
2016-07-29 17:59   ` bug#24094: 25.1.50; revert-buffer error in CC mode Alan Mackenzie
2016-07-29 18:16     ` Richard Copley
2016-07-29 18:43       ` Óscar Fuentes [this message]
2016-07-29 18:29     ` bug#24074: " Óscar Fuentes
2016-07-29 18:41       ` Richard Copley
2016-07-29 19:01         ` Óscar Fuentes
2016-07-29 21:18         ` bug#24074: " Alan Mackenzie
2016-07-29 21:34           ` Richard Copley
2016-08-09 16:21             ` Alan Mackenzie
2016-07-29 21:59           ` bug#24074: " Óscar Fuentes

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=87mvl02slk.fsf@wanadoo.es \
    --to=ofv@wanadoo.es \
    --cc=24074@debbugs.gnu.org \
    --cc=24094@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=rcopley@gmail.com \
    /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.