符号作为变量的值为void:org-publish-attachment

时间:2015-05-04 17:41:05

标签: org-mode emacs24

我在执行块时遇到以下错误。

edebug-eval: Symbol's value as variable is void: org-publish-attachment

我正在执行的代码在

之下
(require 'ox-publish)
(setq org-publish-project-alist
  '(
    ("org-notes"
     :base-directory "~/org/"
     :base-extension "org"
     :publishing-directory "~/public_html/"
     :recursive t
     :publishing-function org-html-publish-to-html
     :headline-levels 4             ; Just the default for this project.
     :auto-preamble t
     )

    ("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-notes" "org-static"))

    ))

有关错误的更多信息

Debugger entered--Lisp error: (void-variable org-publish-attachment)
eval(org-publish-attachment nil)
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)

我在Ubuntu上使用Emacs 24.3.1。

当我输入以下命令时,我也找不到org-publish-attachment。

M-x org-publish-

1 个答案:

答案 0 :(得分:1)

我使用的是Emacs附带的组织模式。我再次从http://orgmode.org/worg/org-faq.html#installing-via-elpa

安装了组织

第一次编译失败时我不得不安装两次。但现在一切正常。谢谢你们。