我正在尝试将 org 文件发布到 html,但在尝试发布我的 .org 文件时收到此错误:
org-export-dispatch: Wrong number of arguments: #[(&optional force) "
然后是一堆不会粘贴的奇怪符号......其次是
[wconfig force org-publish-use-timestamps-flag project current-window-configuration ((setwindow-configuration wconfig)) org-publish-get-project-from-filename buffer-file-name up error ...] 4 ("/usr/share/emacs/24.1/lisp/org/org-publish.elc" . 31315) "P"], 2
这是我的 .emacs 文件的相关部分的设置,用于发布:
(require 'org-publish)
(setq org-publish-alist
'(("org-html"
:base-directory "~/org/"
:base-extension "org"
:publishing-directory "~/public_html/"
:recursive t
:publishing-function org-html-publish-to-html
:table-of-contents: nil
:auto-postamble nil
)
("org-static"
:base-directory "~/org/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "~/public_html/files"
:recursive t
:publishing-function org-publish-attachment
)
("org" :components ("org-html" "org-static"))
)
)
关于为什么不发布的任何建议?