benma / visual-regexp.el

A regexp/replace command for Emacs with interactive visual feedback
392 stars 28 forks source link

crashing emacs with $ -> \# #63

Open Boruch-Baum opened 3 years ago

Boruch-Baum commented 3 years ago

Using emacs27 in debian...

\emacs -nw -Q
M-x find-file visual-regexp.el
M-x eval-buffer
C-x b scratch
M-<
M-x vr/replace
$
\#

This asks vr/replace to replace $ with \#. The result I get is a claim of 58 matches (50 shown) with a visual indication of 50 matches on a single line, and the prompt stuck in the minibuffer. If I immediately C-g, emacs will continue, but the visual overlay will be stuck in place in the buffer as undeletable text. If I wait some long time and press C-g, emacs crashes totally, ie. exits.

Boruch-Baum commented 3 years ago

For completeness, using the native emacs command replace-regexp works as expected

Boruch-Baum commented 3 years ago

More completeness:

Version: 20210502.2019
 Commit: 48457d42a5e0fe10fa3a9c15854f1f127ade09b5