它在 find-file-hook 的变量中引用哪个文件
which file it refer to in variable of find-file-hook
看完函数find-file-hook
,我很困惑。
据记载:
Documentation List of functions to be called after a buffer is loaded
from a file.
The buffer's local variables (if any) will have been processed before
the functions are called.
(defcustom find-file-hook nil
"List of functions to be called after a buffer is loaded from a file.
The buffer's local variables (if any) will have been processed before the
functions are called."
文件加载到缓冲区后执行的变量保持函数,分解步骤,
1) 查找文件 2) 加载到缓冲区 3) 执行函数。
该函数定义了第 3 步的操作,为什么调用它 find-file
,它正在查找哪个文件?
我不确定这个术语从何而来,但 Emacs 使用表达式 "find file" 来表示大多数其他程序调用 "open file" 的操作。它与按名称搜索文件等没有任何关系
看完函数find-file-hook
,我很困惑。
据记载:
Documentation List of functions to be called after a buffer is loaded from a file. The buffer's local variables (if any) will have been processed before the functions are called.
(defcustom find-file-hook nil
"List of functions to be called after a buffer is loaded from a file.
The buffer's local variables (if any) will have been processed before the
functions are called."
文件加载到缓冲区后执行的变量保持函数,分解步骤,
1) 查找文件 2) 加载到缓冲区 3) 执行函数。
该函数定义了第 3 步的操作,为什么调用它 find-file
,它正在查找哪个文件?
我不确定这个术语从何而来,但 Emacs 使用表达式 "find file" 来表示大多数其他程序调用 "open file" 的操作。它与按名称搜索文件等没有任何关系