Subject: bug#24074: 25.1.50; c-before-after-change-digit-quote: Invalid search bound (wrong side of point)

From: Óscar Fuentes <[email-masked]>
Date: Tue, 26 Jul 2016 17:50:28 +0200

>From time to time, after performing a git operation that changes files'
contents (switch branch, apply a stash, etc) and automatically reverting
the associated buffers, the error mentioned on the subject line happens.
In that case the affected buffer's contents is truncated and is marked
as modified.

This only happens with C++ buffers and I suspect that it depends on the
cursor position at the time of the revert. Sadly, I have no recipe for
replicating it.

The problem was first observed a few weeks ago, which coincides with the
introduction of the mentioned function. An Emacs version built on 6th of
June works fine.

In GNU Emacs 25.1.50.3 (x86_64-pc-linux-gnu, X toolkit)
 of 2016-07-24 built on qcore
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description:	Ubuntu 16.04.1 LTS

Configured using:
 'configure --without-toolkit-scroll-bars --with-x-toolkit=lucid'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS LIBXML2
FREETYPE XFT ZLIB LUCID X11

Important settings:
  value of $LANG: C
  locale-coding-system: nil

Major mode: Emacs-Lisp

Minor modes in effect:
  TeX-PDF-mode: t
  show-paren-mode: t
  diff-auto-refine-mode: t
  global-git-commit-mode: t
  shell-dirtrack-mode: t
  column-overflow-mode: t
  ido-grid-mode: t
  flx-ido-mode: t
  ido-hacks-mode: t
  ido-everywhere: t
  buffer-flip-mode: t
  evil-leader-mode: t
  evil-paredit-mode: t
  paredit-mode: t
  evil-mode: t
  evil-local-mode: t
  global-anzu-mode: t
  anzu-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t