当我在emacs中执行
我尝试修改emacs源代码,以下是我的更改:
但这没有任何意义,当我执行
find-grep
命令时,会得到以下结果:find . -type f -exec grep -nH -e {} +
。由于我使用fish shell作为默认shell,为了使此命令正常工作,我必须执行find . -type f -exec grep -nH -e \{\} +
。我尝试修改emacs源代码,以下是我的更改:
/usr/share/emacs/24.4/lisp/ldefs-boot.el
第12669行:如果使用“exec-plus”,请使用“find -exec \{\} +”。
/usr/share/emacs/24.4/lisp/loaddefs.el
第12669行:如果使用“exec-plus”,请使用“find -exec \{\} +”。但这没有任何意义,当我执行
find-grep
时仍然显示find . -type f -exec grep -nH -e {} +
。有人能告诉我我做错了什么或者我该如何解决这个问题吗?
grep-find
,并找到这两个文件匹配,所以我尝试修改它们。你的回答帮了很大的忙,我在/usr/share/emacs/24.4/lisp/progmodes/grep.el.gz
中找到了grep-find
的定义。 - Joey<D>
,而不是.
。grep-find-template
的文档字符串说应该使用所有的占位符。例如,我的是:"find -L <D> <X> -type f <F> -exec grep <C> -nH -e <R> \\{\\} +"
。 - sam boosalis