benma / visual-regexp.el

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

backslash error #23

Closed stardiviner closed 9 years ago

stardiviner commented 9 years ago

I got this error when I input \ in vr/isearch-forward

+BEGIN_EXAMPLE

(invalid-regexp "Trailing backslash") re-search-forward("\" 387940 t) isearch-lazy-highlight-search() isearch-lazy-highlight-update() apply(isearch-lazy-highlight-update nil) timer-event-handler([t 0 0 250000 nil isearch-lazy-highlight-update nil idle 0]) recursive-edit()

+END_EXAMPLE

And the ~~ in isearch input is:

+BEGIN_EXAMPLE

\ runs the command isearch-printing-char (found in overriding-terminal-local-map), which is an interactive compiled Lisp function.

(isearch-printing-char &optional CHAR COUNT)

Add this ordinary printing CHAR to the search string and search. With argument, add COUNT copies of the character.

+END_EXAMPLE

benma commented 9 years ago

Thanks. Unfortunately, I cannot reproduce the issue, am I doing it wrong?

Python engine: .

Emacs engine:

If your problem persists, please reopen the issue in visual-regexp-steroids, as the vr/isearch-forward function lives there, and provide more infos (versions, try to run only visual-regexp, disabling all other emacs config).

stardiviner commented 9 years ago

https://github.com/benma/visual-regexp-steroids.el/issues/9