emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/typst-ts-mode 72d60432c7 03/19: fix: show the shell output


From: ELPA Syncer
Subject: [nongnu] elpa/typst-ts-mode 72d60432c7 03/19: fix: show the shell output #42
Date: Thu, 24 Apr 2025 07:04:42 -0400 (EDT)

branch: elpa/typst-ts-mode
commit 72d60432c7a4e58c469fe27c5bf97cd9d3bae6b7
Author: Huan Thieu Nguyen <nguyenthieuhuan@gmail.com>
Commit: Huan Thieu Nguyen <nguyenthieuhuan@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

[Prev in Thread] Current Thread [Next in Thread]