发布组织文件时出现问题

克里希南

我正在按照worg中的指示将组织文件发布到HTML。这看起来像是最原始的HTML发布组织。如建议的那样,我评估了以下块:

    (require 'org-publish)
(setq org-publish-project-alist
      '(
    ("org-notes"
     :base-directory "~/www/"
     :base-extension "org"
     :publishing-directory "~/public_html/"
     :recursive t
     :publishing-function org-publish-org-to-html
     :headline-levels 4             ; Just the default for this project.
     :auto-preamble t
     )
    ("org-static"
     :base-directory "~/www/"
     :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"))
       ;; ... add all the components here (see below)...
      ))

但是当我运行时M-x org-publish-project RET org RET,出现以下错误:

Symbol's value as variable is void: org-export-html-special-string-regexps

一些谷歌搜索建议这可能是由于安装了多个版本的org。我认为情况并非如此。我在Mac OS X上重新安装了GNU Emacs(第1天),然后使用来更新到最新的组织模式M-x package-install

有什么建议吗?

编辑1:这是输出M-x org-version

Org-mode version 8.2.5h (8.2.5h-19-g0ceb68-elpa @ /Users/krishnan/.emacs.d/elpa/org-20140210/)

编辑2:添加了调试信息:

Debugger entered--Lisp error: (void-variable org-export-html-special-string-regexps)
  org-export-html-convert-special-strings("Kaushik Krishnan")
  org-html-do-expand("Kaushik Krishnan")
  org-html-expand("Kaushik Krishnan")
  org-export-as-html(4 (:buffer-will-be-killed t :base-directory "~/www/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t) nil nil "/Users/krishnan/public_html/")
  org-publish-org-to("html" (:base-directory "~/www/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t) "/Users/krishnan/www/index.org" "/Users/krishnan/public_html/")
  org-publish-org-to-html((:base-directory "~/www/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t) "/Users/krishnan/www/index.org" "/Users/krishnan/public_html/")
  org-publish-file("/Users/krishnan/www/index.org" ("org-notes" :base-directory "~/www/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t) t)
  #[(project) "\306@!\210A\307  \310\"\307  \311\"\307  \312\"\206\313\307  \314\"\206#\315\307 \316\"\206- \307    \317\"\2068!\"\307  \320\"\307  \321\"\322\n\"#\323$\203X\324\325!\210\203a
\f\"\210#\211A#@\211$\203x\326$\327#\210\202a\307   \330\"\203\222\331\307  \332\"!\210\326\333\334\307 \332\"\"\327#\210\203\233\324\335!\210\336 .\207" [project project-plist exclude-regexp sitemap-p sitemap-filename sitemap-function org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-filename "sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-date-format :sitemap-file-entry-format :preparation-function :completion-function org-publish-get-base-files nil run-hooks preparation-function org-publish-file t :makeindex org-publish-index-generate-theindex :base-directory expand-file-name "theindex.org" completion-function org-publish-write-cache-file org-publish-sitemap-date-format org-sitemap-date-format org-publish-sitemap-file-entry-format org-sitemap-file-entry-format files file] 6](("org-notes" :base-directory "~/www/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t))
  mapc(#[(project) "\306@!\210A\307 \310\"\307  \311\"\307  \312\"\206\313\307  \314\"\206#\315\307 \316\"\206- \307    \317\"\2068!\"\307  \320\"\307  \321\"\322\n\"#\323$\203X\324\325!\210\203a
\f\"\210#\211A#@\211$\203x\326$\327#\210\202a\307   \330\"\203\222\331\307  \332\"!\210\326\333\334\307 \332\"\"\327#\210\203\233\324\335!\210\336 .\207" [project project-plist exclude-regexp sitemap-p sitemap-filename sitemap-function org-publish-initialize-cache plist-get :exclude :auto-sitemap :sitemap-filename "sitemap.org" :sitemap-function org-publish-org-sitemap :sitemap-date-format :sitemap-file-entry-format :preparation-function :completion-function org-publish-get-base-files nil run-hooks preparation-function org-publish-file t :makeindex org-publish-index-generate-theindex :base-directory expand-file-name "theindex.org" completion-function org-publish-write-cache-file org-publish-sitemap-date-format org-sitemap-date-format org-publish-sitemap-file-entry-format org-sitemap-file-entry-format files file] 6] (("org-notes" :base-directory "~/www/" :base-extension "org" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :auto-preamble t) ("org-static" :base-directory "~/www/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/public_html/" :recursive t :publishing-function org-publish-attachment)))
  org-publish-projects((("org" :components ("org-notes" "org-static"))))
  org-publish-project(("org" :components ("org-notes" "org-static")) nil)
  call-interactively(org-publish-project record nil)
  command-execute(org-publish-project record)
  execute-extended-command(nil "org-publish-project")
  call-interactively(execute-extended-command nil nil)
乐高积木

从评论:变化

 :publishing-function org-publish-org-to-html

 :publishing-function org-html-publish-to-html

解决了问题。org-publish-org-to-html是一个过时的名称。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

发布未签名的.apk文件时出现问题?

来自分类Dev

按时间顺序组织数据集时出现问题

来自分类Dev

Python:读写文件时出现问题

来自分类Dev

从.cpp文件读取时出现问题

来自分类Dev

编译Java文件时出现问题

来自分类Dev

读取csv文件时出现问题

来自分类Dev

解析json文件时出现问题

来自分类Dev

运行jar文件时出现问题

来自分类Dev

上载图片文件时出现问题

来自分类Dev

读取.txt文件时出现问题

来自分类Dev

用python发布json数据时出现问题

来自分类Dev

从curl将数据发布到Firestore时出现问题

来自分类Dev

从WAR文件读取文件时出现问题

来自分类Dev

尝试上传到RPubs时.Rprofile文件出现问题

来自分类常见问题

在Julia中加载CSV文件时出现问题

来自分类Dev

php fwrite访问文件时出现问题

来自分类Dev

使用内容处置下载文件时出现问题

来自分类Dev

在为Linux内核编译make文件时出现问题?

来自分类Dev

文件上传form_tag rails时出现问题

来自分类Dev

解决播放WAV文件时出现问题

来自分类Dev

读取C txt文件时出现问题

来自分类Dev

在Android上检查文件时出现问题

来自分类Dev

使用Filezilla上传文件时出现问题

来自分类Dev

使用awk读取系统文件时出现问题

来自分类Dev

使用javax createObjectBuilder创建JSON文件时出现问题

来自分类Dev

下载zip文件ASP MVC时出现问题

来自分类Dev

在R中读取JSON文件时出现问题

来自分类Dev

从Web API服务下载pdf文件时出现问题

来自分类Dev

在Ruby中读取大型JSON文件时出现问题