From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#24094: 25.1.50; revert-buffer error in CC mode Date: Fri, 29 Jul 2016 19:16:50 +0100 Message-ID: References: <20160729175924.11811.qmail@mail.muc.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469816311 30254 80.91.229.3 (29 Jul 2016 18:18:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 18:18:31 +0000 (UTC) Cc: 24094@debbugs.gnu.org, 24074@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 20:18:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bTCMY-00084Y-9Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 20:18:22 +0200 Original-Received: from localhost ([::1]:60967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTCMS-00073o-2K for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 14:18:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTCMJ-00073f-8Z for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 14:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTCMI-0001KN-9p for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 14:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTCME-0001K1-AX; Fri, 29 Jul 2016 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bTCME-00017l-6F; Fri, 29 Jul 2016 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 29 Jul 2016 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24094 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 24094-submit@debbugs.gnu.org id=B24094.14698162484269 (code B ref 24094); Fri, 29 Jul 2016 18:18:02 +0000 Original-Received: (at 24094) by debbugs.gnu.org; 29 Jul 2016 18:17:28 +0000 Original-Received: from localhost ([127.0.0.1]:50930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTCLf-00016m-HY for submit@debbugs.gnu.org; Fri, 29 Jul 2016 14:17:27 -0400 Original-Received: from mail-ua0-f170.google.com ([209.85.217.170]:36584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTCLd-00016T-CE; Fri, 29 Jul 2016 14:17:25 -0400 Original-Received: by mail-ua0-f170.google.com with SMTP id j59so67372671uaj.3; Fri, 29 Jul 2016 11:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BemMDKUG6UYAbvkR5QkHZZM5FUKyViXJXxfcSyk61f8=; b=GiRko4/XOj+LblRNn+yeagMVYmDQNlWZ2uGnoSoslHz/oOSqVCMNEo9dE1iaD/tBkm skofW81kDYiDAUZrFE7IUGcC7BfxLGNrKw/tFCyxQG+qnz6XQ/bR8ZHr71Opmw65Eo2x bB7wLfz1clwuCYwzfkpgsjq+/D2dgHlxT4zq/+hUv9s31wF7o/uPoIkkL/26Cu8j3xZN wW1ReD4NAUmCs/QCHWjxMnCpZkscv64HHaS5WL8Ck9rb31t201+d1a/dgftUd5cLqHs6 PAU5mnTT6yC4KSHgqBuFVMcg04GwoiRA1ASDPGkKRiaeYiybs/6VBoG5ZmvAyAUEZ3NQ BB7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BemMDKUG6UYAbvkR5QkHZZM5FUKyViXJXxfcSyk61f8=; b=gHKaCHPAQ7GPWaeviT8KOqpQzwykHaW3J9E2vxViUVliGRQSh6Q1jl30Z5eOt2QbGr rbpKTYpJDfOhw9ZETRMVXCoe/YbSsiwR87+f5nedc5SKwTA1f0fjCZirMdf0ezXiB95G wD4I9B8J97t2O/yf2j7rbAr3UA3cOYEaw71Yrv8gi7DHATU2GBfH0FW6z3tvIG2JWtFF PXlB8I+5VZhecywa4arOnPkFImrMKtBoXyGBrvJ5uQBZodxnz82rn0cjBj80Q/yVWMRC 40Bxz58Q+xwADqdFRcD85KzI/lBv4Xm90f/399jE5VgDVqSLbHyc8e79FiapsxgMnC/6 KMpQ== X-Gm-Message-State: AEkooutXS4/yHkhYyyZxRh5+Hh1mPiB/iBCx3czW/ELm9kSF38/h5gnL1Qoa8mkRWbfPg7f5Z9wHRPVZH7cC+g== X-Received: by 10.159.54.202 with SMTP id p68mr16659169uap.59.1469816239711; Fri, 29 Jul 2016 11:17:19 -0700 (PDT) Original-Received: by 10.176.1.41 with HTTP; Fri, 29 Jul 2016 11:16:50 -0700 (PDT) In-Reply-To: <20160729175924.11811.qmail@mail.muc.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121692 Archived-At: On 29 July 2016 at 18:59, Alan Mackenzie wrote: > Hello, Richard. Hi! > In article you wrote: >> When editing C++ files, if I change visited files outside emacs (for >> example, by doing "svn revert -R ."), then visit one of the changed >> files and accept the offer to revert the buffer, in some cases there >> is an error (see below) and the buffer contents are corrupted (chunks >> are missing because the revert operation was interrupted). > > This looks like the same bug as bug #24074, but you've managed to capture > a backtrace, for which many thanks. Yes, I think it is likely the same bug (if I'd noticed #24074 sooner, I would have sent the backtrace there). Happy to help. > Could you be a bit more descriptive about the "chunks" that are missing, > please? Are we talking about lots of isolated 2-character chunks, or > just one or two larger chunks, or what? Are the chunks at the end of a > buffer, or in the "middle" of it? 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". 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 haven't been able to reduce this to a recipe and I don't know if >> the issue is present in the emacs-25 branch and/or in "emacs -Q". > > Almost certainly, the bug isn't in the emacs-25 branch, because the > function c-before-after-change-digit-quote isn't in that branch. That's useful to know. Thanks Alan.