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

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

diff --git a/tex.el b/tex.el
index 42759c5..8ec9e64 100644
--- a/tex.el
+++ b/tex.el
@@ -1365,7 +1365,7 @@ viewer."
                 "%d" (mode-io-correlate " \"# %n '%b'\"")) "dviout")
       ("SumatraPDF"
        ("SumatraPDF -reuse-instance"
-       (mode-io-correlate " -forward-search %b %n") " %o")
+       (mode-io-correlate " -forward-search \"%b\" %n") " %o")
        "SumatraPDF")
       ("dvips and start" "dvips %d -o && start \"\" %f" "dvips")
       ("start" "start \"\" %o")))

Reply via email to