branch: elpa/typst-ts-mode
commit 72d60432c7a4e58c469fe27c5bf97cd9d3bae6b7
Author: Huan Thieu Nguyen <nguyenthieuh...@gmail.com>
Commit: Huan Thieu Nguyen <nguyenthieuh...@gmail.com>

    fix: show the shell output #42
---
 typst-ts-misc-commands.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/typst-ts-misc-commands.el b/typst-ts-misc-commands.el
index e90a5d9996..62af890114 100644
--- a/typst-ts-misc-commands.el
+++ b/typst-ts-misc-commands.el
@@ -49,9 +49,12 @@
   (let* ((base-path (file-name-directory buffer-file-name))
          (file-name (file-relative-name buffer-file-name base-path))
          (output-file-name
-          (file-name-with-extension file-name "md")))
-    (start-process "pandoc" shell-command-buffer-name
-                   "pandoc" "-o" output-file-name file-name)))
+          (file-name-with-extension file-name "md"))
+         (buffer-name (format "*pandoc %s*" file-name)))
+    (start-process "pandoc"
+                   buffer-name
+                   "pandoc" "-o" output-file-name file-name)
+    (display-buffer buffer-name)))
 
 (defun typst-ts-mc-search-typst-symbol ()
   (interactive)

Reply via email to