我需要在一個小小的腳本中使用update-directory-autoloads
函數。當我試圖調用此函數是一個目錄的名稱的說法我收到此錯誤:錯誤類型參數:stringp,nil錯誤
Wrong type argument: stringp, nil.
呼叫看起來是這樣的: (update-directory-autoloads "~/test")
我需要在一個小小的腳本中使用update-directory-autoloads
函數。當我試圖調用此函數是一個目錄的名稱的說法我收到此錯誤:錯誤類型參數:stringp,nil錯誤
Wrong type argument: stringp, nil.
呼叫看起來是這樣的: (update-directory-autoloads "~/test")
生成自動加載的文件是不良記錄。您遇到由於您未設置變量generated-autoload-file
而出現的問題。請嘗試以下操作:
(let ((generated-autoload-file "~/test/loaddefs.el"))
(update-directory-autoloads "~/test"))
更新generated-autoloads-file
結合是你想要的loaddefs.el
文件住的位置。
謝謝。問題確實在於未定義生成的自動加載文件。 –