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: Thu, 28 Jul 2016 14:50:09 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469713885 4556 80.91.229.3 (28 Jul 2016 13:51:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 13:51:25 +0000 (UTC) To: 24094@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 15:51:16 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 1bSliU-0008Nr-4m for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 15:51:14 +0200 Original-Received: from localhost ([::1]:53502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSliQ-00044e-6I for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 09:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSliJ-00044X-Bd for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:51:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSliI-0005O5-1o for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:51:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSliH-0005O0-V1 for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bSliH-0006Wo-Mr for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jul 2016 13:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24094 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.146971385325079 (code B ref -1); Thu, 28 Jul 2016 13:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Jul 2016 13:50:53 +0000 Original-Received: from localhost ([127.0.0.1]:48955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSli8-0006WQ-VB for submit@debbugs.gnu.org; Thu, 28 Jul 2016 09:50:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSli7-0006WD-2b for submit@debbugs.gnu.org; Thu, 28 Jul 2016 09:50:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSli0-0005L8-Qn for submit@debbugs.gnu.org; Thu, 28 Jul 2016 09:50:46 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSli0-0005KE-MK for submit@debbugs.gnu.org; Thu, 28 Jul 2016 09:50:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSlhy-00043Q-60 for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:50:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSlhw-0005Iv-Ev for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:50:41 -0400 Original-Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:34631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSlhw-0005IA-0y for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 09:50:40 -0400 Original-Received: by mail-vk0-x22e.google.com with SMTP id s189so32333707vkh.1 for ; Thu, 28 Jul 2016 06:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=hVuLwCh+HsUTC7RjDFiyB4pBUogXoZasb3VLJF3YeYw=; b=KL28FbIO0eKM47LXArfOBA+4gyng0/+mLGnzcN8D/Z40CZRS7ub00mCr+OL48KUm92 Bjq9Lw4BQTZHiwSJgsKK1vzNsYlrVxeapXBYAlvHA1geolEtzRnhbinrMTY8TXCKkOwm 6kyWJqde/0sjkIpT+qC1b30zRI3nfnGW0uhkNxA8illVoZLR/TZqPZPZEomDWO+gChU7 45FDohJuB0ZqS4uozQK7wneR5LeUbMXA3HzBFvtS/1FKxAbAr9ZU0EZpk45iEHIgvfOh VeAokNCy3JCNQ3HUjiI++F25Zn1FefcKamK27FjnlTFOm6MOh3Tw7J9Ytg33kAlrDl4j wHMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hVuLwCh+HsUTC7RjDFiyB4pBUogXoZasb3VLJF3YeYw=; b=EC6zy82oSbzl7KjwwU+uOX3AxH5H19ERHICykaVZRvOf5JsZHRjaS+ojKEJqCfxGXH IgPHFYDzpRxZdnRhK5yq+Lo6dEKZ1CNdVGEdo4Um8SNxzhkvusOuURVJewfLouV2y9Nw PIx4M8Pm6ANE6ltmg6ZV7ehU0LBfLw7mJMDaPtmMyFC7r1ufPhbj60xlvmN6nylKZu3o ZvLzWfRPiJC/ZIC23nPMyeMiMgAmLYKzw2Nv7Xi1RmfaTaGgmfCVP0BYUgTKknK1SPg4 gYkn6vyiKkqqjrZg+2YfvOJhWC2/Ti3YJ9kusFxXcd0ASRD68G5mc7Ba7yrQxacwfnCI 1u+w== X-Gm-Message-State: AEkoouvUwlObnvKqfnSzNSp1t/mrR5LdOJRUs0sXecBD9XVaxQ/qJboSJN5I8k+7I9BwogawWQUzN4B3ECIpdA== X-Received: by 10.31.220.66 with SMTP id t63mr15159682vkg.113.1469713838866; Thu, 28 Jul 2016 06:50:38 -0700 (PDT) Original-Received: by 10.176.1.41 with HTTP; Thu, 28 Jul 2016 06:50:09 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:121617 Archived-At: 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). 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". Here is an example backtrace (control characters replaced): Debugger entered--Lisp error: (error "Invalid search bound (wrong side of point)") re-search-forward("[0-9a-fA-F]'[0-9a-fA-F]" 175 t) c-before-after-change-digit-quote(65 65 1625) #[(fn) "^H \n^K#\207" [fn beg end old-len] 4](c-before-after-change-digit-quote) mapc(#[(fn) "^H \n^K#\207" [fn beg end old-len] 4] (c-depropertize-new-text c-extend-font-lock-region-for-macros c-before-after-change-digit-quote c-after-change-re-mark-raw-strings c-neutralize-syntax-in-and-mark-CPP c-restore-<>-properties c-change-expand-fl-region)) c-after-change(65 65 1625) insert-file-contents("g:/projects/polymorph/working3/src/settings.cpp" t nil nil t) revert-buffer-insert-file-contents--default-function("g:/projects/polymorph/working3/src/settings.cpp" nil) revert-buffer--default(t t) revert-buffer(t t) find-file-noselect("g:/projects/polymorph/working3/src/settings.cpp") compilation-find-file(# "settings.cpp" nil) apply(compilation-find-file # "settings.cpp" nil nil) compilation-next-error-function(1 nil) next-error(nil) funcall-interactively(next-error nil) call-interactively(next-error nil nil) command-execute(next-error) In GNU Emacs 25.1.50.1 (x86_64-w64-mingw32) of 2016-07-25 built on MACHINE Repository revision: 6dc6b0079ed3632ed9082bc79d8cb6fc96d33f43 Windowing system distributor 'Microsoft Corp.', version 10.0.10586 Recent messages: Undo! Saving file g:/projects/polymorph/working3/src/model.cpp... Wrote g:/projects/polymorph/working3/src/model.cpp Reverted 'model.cpp' Undo! Saving file g:/projects/polymorph/working3/src/model.cpp... Wrote g:/projects/polymorph/working3/src/model.cpp Reverted 'model.cpp' Undo! Entering debugger... Configured using: 'configure --prefix /C/emacs/emacs-20160725-215227 --with-modules --without-imagemagick --disable-dependency-tracking --enable-locallisppath=%emacs_dir%/../site-lisp CFLAGS=-O3 CPPFLAGS=-D_WIN32_WINNT=_WIN32_WINNT_WIN7' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t global-hi-lock-mode: t hi-lock-mode: t show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail debug cus-start cus-load log-edit message subr-x puny format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log smerge-mode hippie-exp cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl hl-line ffap vc-cvs vc-rcs dired dired-loaddefs view diff-mode misearch multi-isearch jka-compr shell pcomplete vc-svn perl-mode ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff hi-lock grep compile comint ansi-color ring paren server pascal opascal finder-inf tex-site info package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib advice time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify dbusbind w32 multi-tty make-network-process emacs) Memory information: ((conses 16 309928 44864) (symbols 56 34963 0) (miscs 48 368 1555) (strings 32 62494 6202) (string-bytes 1 2004295) (vectors 16 28361) (vector-slots 8 650573 30264) (floats 8 270 254) (intervals 56 12859 249) (buffers 976 83))