1
當emacs執行grep時,它可以拆分窗口並顯示一個很好的緩衝區,並且Emacs具有函數(grep args),我想知道,如何獲取源代碼?emacs如何實現grep?
當emacs執行grep時,它可以拆分窗口並顯示一個很好的緩衝區,並且Emacs具有函數(grep args),我想知道,如何獲取源代碼?emacs如何實現grep?
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.
您也可以找到有用的find-library
撥開周圍。