【问题标题】:Emacs markdown mode live preview doesn' work - wrong-type-argument stringp nilEmacs 降价模式实时预览不起作用 - 错误类型参数 stringp nil
【发布时间】: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 代码的维护者。

标签: emacs null markdown


【解决方案1】:

我正在使用 pandoc,结果发现我缺少 LaTeX 包(在我的降价文件中使用)。安装 texlive-base、texlive-fonts-recommended 和 texlive-latex-recommended 后一切正常!

【讨论】:

    猜你喜欢
    • 2011-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多