branch: externals/auctex
commit c64a0e1f7f7daf06a3ce56986cdd5afa7319fdfa
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>

    Quote %b expansion string for Zathura
    
    * tex.el (TeX-view-program-list-builtin): Guard %b expansion
    string for Zathura with quotes for file names with spaces
    (bug#31451).
---
 tex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tex.el b/tex.el
index cb6496d..f7955f3 100644
--- a/tex.el
+++ b/tex.el
@@ -1399,7 +1399,7 @@ viewer."
       ("Zathura"
        ("zathura %o"
        (mode-io-correlate
-        " --synctex-forward %n:0:%b -x \"emacsclient +%{line} %{input}\""))
+        " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{line} %{input}\""))
        "zathura"))))
   "Alist of built-in viewer specifications.
 This variable should not be changed by the user who can use

Reply via email to