emacs如何实现grep?

emacs如何实现grep?,emacs,grep,Emacs,Grep,当emacs执行grep时,它可以分割窗口并显示一个很好的缓冲区,emacs具有函数(grep args),我想知道,如何获取源代码?emacs执行外部grep进程,并格式化输出。假设您指的是包装并显示它的代码的源代码,而不是grep本身,这非常简单: M-x find-function <RET> grep <RET> (find-function FUNCTION) Find the definition of the FUNCTION near point.

当emacs执行grep时,它可以分割窗口并显示一个很好的缓冲区,emacs具有函数(grep args),我想知道,如何获取源代码?

emacs执行外部grep进程,并格式化输出。假设您指的是包装并显示它的代码的源代码,而不是grep本身,这非常简单:

M-x find-function <RET> grep <RET>

(find-function FUNCTION)

Find the definition of the FUNCTION near point.

Finds the source file containing the definition of the function
near point (selected by `function-called-at-point') in a buffer and
places point before the definition.
Set mark before moving, if the buffer already existed.
M-x查找函数grep
(查找函数)
在点附近找到函数的定义。
查找包含函数定义的源文件
缓冲区中的近点(由“在点调用的函数”选择)和
将点放置在定义之前。
如果缓冲区已存在,则在移动前设置标记。

您还可能发现
find library
非常有用。

Emacs执行外部grep进程,并格式化输出。假设您指的是包装并显示它的代码的源代码,而不是grep本身,这非常简单:

M-x find-function <RET> grep <RET>

(find-function FUNCTION)

Find the definition of the FUNCTION near point.

Finds the source file containing the definition of the function
near point (selected by `function-called-at-point') in a buffer and
places point before the definition.
Set mark before moving, if the buffer already existed.
M-x查找函数grep
(查找函数)
在点附近找到函数的定义。
查找包含函数定义的源文件
缓冲区中的近点(由“在点调用的函数”选择)和
将点放置在定义之前。
如果缓冲区已存在,则在移动前设置标记。
您还可能发现
find library
非常有用