我需要update-directory-autoloads
在一个小脚本中使用函数.当我尝试使用作为目录名称的参数调用此函数时,我收到此错误:
Wrong type argument: stringp, nil.
电话看起来像这样:
(update-directory-autoloads "~/test")
Ste*_*fan 11
当你得到Wrong type argument: foo, bar.
,你应该M-: (setq debug-on-error t) RET
然后重现错误,以获得回溯.实际上,您可以debug-on-error
在.emacs中设置,Emacs通常可以保持完全可用.
生成自动加载文件的文档很少.您遇到了因未设置变量而出现的问题generated-autoload-file
.请尝试以下方法:
(let ((generated-autoload-file "~/test/loaddefs.el"))
(update-directory-autoloads "~/test"))
Run Code Online (Sandbox Code Playgroud)
将generated-autoloads-file
绑定更新为您希望loaddefs.el
文件存在的位置.
归档时间: |
|
查看次数: |
5750 次 |
最近记录: |