编辑 我也在emacs.stackexchange上提出了这个问题
我是一个相对新手,已经设置好我的emacs(24.4.1)以按照此处所述的方式与clojure一起工作。
大致意思是我现在正在使用来自git的最新org-mode,并将其加载到我的init.el中(顺便说一句,我正在使用prelude),如下所示:
(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)
我试图通过在我的
init.el
中require
各种org
导出包(也就是从org git repo的克隆中),来解决这个问题。但是没有用 - 实际上,这引发了更多的问题。我已经尝试过调试,但是无法找出问题在哪里。我怀疑我需要引入一些东西,但不知道是什么。我的
init.el
在这里 - init.el gist
有人有任何想法我做错了什么吗?提前感谢。
emacs.stackexchange
上发布了。但如果有人看到并知道答案,请随时告诉我。谢谢。 - Kris