这就是我一直在使用的:
(interactive "sEnterh the name of the figure (e.g. markov-chain.png):
sCaption: ")
这就是我想要使用的:
(interactive (list (read-file-name "Image file: " (if (file-exists-p "_static")
"_static"
default-directory
)))
"sCaption: ")
如何才能做到这一点?
用文字来说——可以在一个字符串中混合交互式类型:
(interactive "r
sEnter char to use:
sNumbering style used (d for digit, l for letter, r for Roman digits):
sShould I dobule line breaks? (RET for yes) ")
但是如何结合交互式类型,在我的示例中是“s”和 elisp 代码?