【发布时间】:2013-03-17 23:25:54
【问题描述】:
我想做的是,当我在一个来源线上时,例如:<a href="foo.html">foo</a>
我按下“跳转”键,它应该匹配href="foo.html" 并打开文件c:/project/root/templates/foo.html。
我找到了jump.el(emacs 24 中的包 'jump')并正在尝试让defjump 工作:
(require 'jump)
(defjump
'my-follow-ref
'(("href=\"\\1\"" . "templates/\\1"))
"c:/project/root/"
"Follow a logical link from one part of the source to another.")
我的代码基于帮助中的示例,但我遇到了一个非常基本的 emacs lisp 错误:
mapcar: Wrong type argument: listp, quote
我做错了什么?
【问题讨论】: