mhayashi1120 / Emacs-wgrep

Writable grep buffer and apply the changes to files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set read-only property using regexp

jixiuf opened this issue · comments

suppose there is a grep buffer
'''
-- mode: grep; default-directory: "/tmp/Emacs-wgrep/" --
Grep started at Sun Nov 25 18:01:56

grep grep /tmp/*
grep: /tmp/babel-182944oc: Is a directory
grep: /tmp/babel-18661Jrc: Is a directory
grep: /tmp/babel-294854Pa: Is a directory
grep: /tmp/babel-29919PTa: Is a directory
grep: /tmp/babel-8436CZb: Is a directory
grep: /tmp/d: Is a directory
grep: /tmp/emacs1000: Is a directory
grep: /tmp/Emacs-wgrep: Is a directory
grep: /tmp/fcitx-socket-:0: No such device or address
grep: /tmp/flashgot.jddsd94uxaur.default: Is a directory
/tmp/globrep.el:; (global-grep-and-replace
/tmp/globrep.el:; )
grep: /tmp/helm: Is a directory
grep: /tmp/iedit: Is a directory

Grep exited abnormally with code 2 at Sun Nov 25 18:01:56

I think in (wgrep-prepare-to-edit)  we should use a regexp like
(string-match "^\\([a-zA-Z]?:?[^:]*\\):\\([0-9]+\\):\\(.*\\)" Line) to determine whether or not to set read-only property 

Hmm, is this a windows problem?
I'm not sure what you are exactly saying.

I guess this problem was fixed in #11.