Emacs组织模式错误

时间:2016-10-26 20:00:17

标签: emacs org-mode

我是轻中量级emacs 25.1用户。我一直在使用org-mode而没有什么困难,直到我想导出到HTML或latex。然后失败并输入"调试器输入 - Lisp错误:(错误类型参数stringp |)"

Backtrace给出了这个:

Debugger entered--Lisp error: (wrong-type-argument stringp |)
string-match("^\\(.*?\\)\\(?:(\\([^!@/]\\)?.*?)\\)?$" |)
org-set-regexps-and-options()
org-mode()
set-auto-mode-0(org-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer outlines.org> "c:/Users/***/outlines.org"  nil nil "c:/Users/****/outlines.org" (19984723346758628 3399104098))
find-file-noselect("c:/Users/****/outlines.org" nil nil nil)
find-file("c:/Users/****/outlines.org")
dired-find-file()
funcall-interactively(dired-find-file)
call-interactively(dired-find-file nil nil)
command-execute(dired-find-file)

我使用包系统重新安装组织模式无济于事。我对lisp有基本的了解,但我是一名图书管理员,不是程序员。如果我知道要查找什么,我可以编辑.el文件。谢谢!

1 个答案:

答案 0 :(得分:0)

Juancho在评论中完全正确。我的.emacs中有一条缺陷线。我在自定义TODO关键字列表中错过了管道符号周围的引号:     '((sequence "TODO" "FOLLOWUP" | "DONE"))) 本来应该:     '((sequence "TODO" "FOLLOWUP" "|" "DONE")))

当我确定一切都很顺利的时候。谢谢!