【发布时间】:2015-03-25 20:44:49
【问题描述】:
编辑我也在emacs.stackexchange上问过这个问题
我是一个相对的 emacs 新手,并且按照 here 的描述设置了我的 emacs (24.4.1) 以使用 clojure。
它的要点是我现在正在使用来自 git 的最新 org-mode 并将其加载到我的 init.el 中(我正在使用 prelude btw),如下所示:
(add-to-list 'load-path "~/repos/org-mode/lisp")
(require 'org)
(require 'ob-clojure)
我正在尝试使用 org 编写一个可以导出到 markdown 的文字 clojure 程序。 Clojure 和 babel 现在运行良好,评估工作等,但是当我尝试导出我的 org 文件时出现错误。
load-with-code-conversion: Symbol's value as variable is void: p
我设置toggle-debug-on-error时的堆栈跟踪是:
Debugger entered--Lisp error: (void-variable p)
eval-buffer(#<buffer *load*> nil
"/Users/krisfoster/repos/org-mode/lisp/ox.el" nil t)
; Reading at buffer position 229233
load-with-code-conversion("/Users/krisfoster/repos/org-mode/lisp/ox.el"
"/Users/krisfoster/repos/org-mode/lisp/ox.el" nil t)
autoload-do-load((autoload "ox" "Export dispatcher for Org mode.\n
\nIt provides an access to common export related tasks in a
buffer.\nIts interface comes in two flavors: standard and
expert.\n\nWhile both share the same set of bindings, only the
former\ndisplays the valid keys associations in a dedicated
buffer.\nScrolling (resp. line-wise motion) in this buffer is done
with\nSPC and DEL (resp. C-n and C-p) keys.\n\nSet variable `org-
export-dispatch-use-expert-ui' to switch to one\nflavor or the
other.\n\nWhen ARG is \\[universal-argument], repeat the last
export action, with the same set\nof options used back then, on
the current buffer.\n\nWhen ARG is \\[universal-argument] \\
[universal-argument], display the asynchronous export
stack.\n\n(fn &optional ARG)" t nil) org-export-dispatch)
command-execute(org-export-dispatch)
我试图通过(require-ing 各种org 导出包来解决这个问题,这些包在 org git repo 的克隆中,即来自我的init.el。但没有骰子——事实上,这产生了更多的问题。我试过调试,但不知道出了什么问题。我怀疑我需要一些东西,但不知道是什么。
我在这里有我的init.el - init.el gist
有人知道我做错了什么吗?
提前致谢。
【问题讨论】:
-
你可以考虑在emacs.stackexchange.com 上发布这个问题更多的emacs 眼睛会看着它:)
-
哇!真是好主意。会的。
-
已在
emacs.stackexchange上发帖。但如果有人看到这个并知道答案,请随时告诉我。谢谢。