4

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"))
   )
  )

これが公開されない理由について何か提案はありますか?

4

1 に答える 1

9

エクスポーターに最近変更が加えられたため、構文と競合していました。これが私のコードです。これは現在完全に機能しています。

(require 'ox-publish)
(require 'ox-html)

(setq org-publish-project-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/"
 :recursive t
 :publishing-function org-publish-attachment)
   ("org" :components ("org-html" "org-static"))))
于 2013-05-10T16:09:42.770 に答える