elisp新手问题:找不到“文件名” org.el 中的函数定义?
我真的很喜欢 emacs 中的组织模式,并且想要自定义一些东西。在阅读 org.el 时,我发现了一些对 filename
的引用,但无法使用 describe-function
找到 filename
?
我确信有一个简单的答案,但我刚刚学习 elisp,这并不明显。了解 filename
的定义位置吗?和/或如果它不是一个函数,那它是什么?
例如,第 25502 行的 filename
:
(filename (if to-buffer
(expand-file-name
(concat
(file-name-sans-extension
(or (and subtree-p
(org-entry-get (region-beginning)
"EXPORT_FILE_NAME" t))
(file-name-nondirectory buffer-file-name)))
"." html-extension)
(file-name-as-directory
(or pub-dir (org-export-directory :html opt-plist))))))
I really love org-mode in emacs and want to customize a few things. While reading thru org.el, I'm finding several references to filename
but can't find filename
using describe-function
?
I'm sure there's a simple answer, but I'm just learning elisp and it's not obvious. Any insight into where filename
is defined? And/or if it's not a function, what is it?
For example, filename
on line 25502:
(filename (if to-buffer
(expand-file-name
(concat
(file-name-sans-extension
(or (and subtree-p
(org-entry-get (region-beginning)
"EXPORT_FILE_NAME" t))
(file-name-nondirectory buffer-file-name)))
"." html-extension)
(file-name-as-directory
(or pub-dir (org-export-directory :html opt-plist))))))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是一个函数,而是由
let
特殊形式创建的局部变量。注意:这当然是一个疯狂的猜测,因为我找不到您在我能找到的
org.el
版本中发布的代码,而且它们都不是接近 25502 行长。That's not a function, that's a local variable created by the
let
special form.Note: This is, of course, a wild guess since I cannot find the code you posted in the versions of
org.el
I can find, and none of them are even close to 25502 lines long.