我对disable-command是如何实现的感兴趣,所以我查找了它,它的代码就是这样的:
(defun disable-command (command)
"...."
(interactive "CDisable command: ")
(en/disable-command command t))然后我想知道en/disable-command是如何实现的,所以我按下了M-.,而在en/disable-command上没有显示任何内容。然后我尝试了C-h f en/disable-command,它也失败了。为什么会失败呢?
发布于 2013-11-23 13:41:03
你看的是一个卸载库的代码。
disable-command是自动加载的,因此您可以在其上使用describe-function和find-function,但这不会加载库,而且Emacs无法告诉您既没有加载也没有自动加载的函数,因为它没有关于它们的信息。
加载novice (或者只是eval-buffer,因为您已经在那里了),您将能够找到en/disable-command。
(我不知道为什么标签文件中没有它,但这大概取决于您是如何构建它的。)
https://stackoverflow.com/questions/20162844
复制相似问题