benma / visual-regexp-steroids.el

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

reference to free variable `regexp-string' #11

Closed bbigras closed 8 years ago

bbigras commented 9 years ago

I get these warnings in the *Compile-log* buffer when I start Emacs.

~/.emacs.d/elpa/visual-regexp-steroids-20150411.416/visual-regexp-steroids.elc:Warning:
    reference to free variable `regexp-string'
~/.emacs.d/elpa/visual-regexp-steroids-20150411.416/visual-regexp-steroids.elc:Warning:
    reference to free variable `replace-string'
muyinliu commented 8 years ago

Should add some line to visual-regexp.el:

(defvar regexp-string nil)
(defvar replace-string nil)
benma commented 8 years ago

Should be fixed now (https://github.com/benma/visual-regexp.el/commit/b625cec147dd1ac185aac52e2ae27acb2a662b28), see the new update on melpa.

Please reopen if this does not fix it for you.