branch: main
commit 83ccccb8d8361af4f2b81c949f875c0699ab012b
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>

    Fix handling of spaces in filenames for Sioyek
    
    * tex.el (TeX-view-program-list-builtin): Handle blanks in
    filename and paths correctly for Sioyek.  (Bug#80523)
---
 tex.el | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/tex.el b/tex.el
index b3db863c..91d29d63 100644
--- a/tex.el
+++ b/tex.el
@@ -1360,13 +1360,12 @@ viewer."
         (mode-io-correlate
          " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{line} 
%{input}\""))
        "zathura")
-      ("Sioyek"
-       ("sioyek %o"
-        (mode-io-correlate
-         ,(concat
-           " --forward-search-file \"%b\""
-           " --forward-search-line %n"
-           " --inverse-search \"emacsclient +%2 %1\"")))
+      ("Sioyek" ("sioyek \"%o\""
+                 (mode-io-correlate
+                  ,(concat
+                    " --forward-search-file \"%b\""
+                    " --forward-search-line %n"
+                    " --inverse-search \"emacsclient +%2 \\\"%1\\\"\"")))
        "sioyek"))))
   "Alist of built-in viewer specifications.
 This variable should not be changed by the user who can use

Reply via email to