【发布时间】:2017-05-11 08:29:47
【问题描述】:
在执行 markdown-mode 插件的实时预览命令之一(模式、导出、重新导出...)时,出现错误“错误类型参数 stringp nil”。 当我启动新的 emacs 并立即执行命令时,markdown-live-preview-mode 只通过一次。但是当我更改降价源中的任何内容时它仍然不会更新。
我使用pandoc生成mardown html:
(custom-set-variables
'(markdown-command "/usr/bin/pandoc"))
这里是调试日志:
(1) 用于 markdown-live-preview-export
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
expand-file-name(nil)
eww-open-file(nil)
markdown-live-preview-window-eww(nil)
markdown-live-preview-export()
call-interactively(markdown-live-preview-export record nil)
command-execute(markdown-live-preview-export record)
helm-M-x(nil #("markdown-live-preview-export" 0 28 (match-part "markdown-live-preview-export")))
call-interactively(helm-M-x nil nil)
command-execute(helm-M-x)
(2) 用于 markdown-live-preview-mode
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
expand-file-name(nil)
eww-open-file(nil)
markdown-live-preview-window-eww(nil)
markdown-live-preview-export()
markdown-live-preview-mode(toggle)
call-interactively(markdown-live-preview-mode record nil)
command-execute(markdown-live-preview-mode record)
helm-M-x(nil #("markdown-live-preview-mode" 0 26 (match-part "markdown-live-preview-mode")))
call-interactively(helm-M-x nil nil)
command-execute(helm-M-x)
似乎它没有将生成的 html 文件的正确路径传递给 eww。相反,它是 nil。
谢谢!
【问题讨论】:
-
听起来像一个错误。请考虑将其报告给 Markdown Emacs 代码的维护者。