benma / visual-regexp-steroids.el

Extends visual-regexp to support other regexp engines
255 stars 14 forks source link

extension bbdb- cause vr-steroids.el error on back slash \ #9

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


After bisect debug my init files, I found my extension bbdb- introduced this problem after I required it

(require 'bbdb-)
benma commented 9 years ago

As you can see, that "Trailing backslash" error is correct (one backslash is no a valid regexp):

When I do (require 'bbdb-), I get the same screenshot as above, i.e. no error.

benma commented 9 years ago

Can you make a repo/gist with a minimal emacs configuration which can reproduce the error?

And what Emacs version are you using?

benma commented 9 years ago

Closing due to inactivity.