Closed xiaoxinyi closed 7 years ago
Thanks. It works for me. Please specify.
@benma It works fine in other buffer. But in *Packages*
buffer, I run M-x vr/isearch-forward
type just a character r
, it mark all r
s in this buffer, but message Failing regrex I-search
. I also cannot forward to next.
This also works for me. What is your Emacs version? Did you try with emacs -q
, i.e. not loading any other packages?
@benma I work on GNU Emacs 25.1.1
.
It's my configuration :
(use-package visual-regexp
:ensure t
:init (use-package visual-regexp-steroids
:ensure t)
:bind* (
("C-c r" . vr/replace)
("C-c q" . vr/query-replace)
("C-c m" . vr/mc-mark)
("C-M-s" . vr/isearch-forward)
("C-M-r" . vr/isearch-backward))
)
@benma I use emacs -q
to initialize only two packages. It works fine.
This means that some other configuration of yours is interfering. Please bisect and report back :)
script failed:Traceback (most recent call last):
File "~/.emacs.d/elpa/visual-regexp-steroids-20160516.1238/regexp.py", line 61, in <module>
region = sys.stdin.read()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 492, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6 in position 156398: invalid start byte
[2 times]
script failed:Traceback (most recent call last):
File "~/.emacs.d/elpa/visual-regexp-steroids-20160516.1238/regexp.py", line 61, in <module>
region = sys.stdin.read()
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 492, in read
newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6 in position 156398: invalid start byte
[2 times]
This is the error message.
Thanks. Did I understand correctly that with emacs -q, there is no error?
If you can extract and paste the contents of your packages buffer, maybe we can see what utf8 problem there is.
@benma No problem with emacs -q
.
Ok, then please find the configuration that breaks it.
Does vr/replace
work, or is it just isearch?
Does it work in other buffers?
@benma Thanks. vr/replace
works well in other buffers.
@benma How can I configure python3
to run regexp.py
?
M-x customize-variable [ret] vr/command-python
@benma No problem with emacs -q.
I assume we can close this issue then, right?
M-x package-list-packages
In*Packages*
buffer, cannot usevr/isearch-forward
orvr/isearch-backward
.