]> git.eshelyaron.com Git - emacs.git/commitdiff
Support file names with whitespace in Nroff mode
authorEli Zaretskii <eliz@gnu.org>
Sat, 6 Feb 2021 13:09:32 +0000 (15:09 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 6 Feb 2021 13:09:32 +0000 (15:09 +0200)
* lisp/textmodes/nroff-mode.el (nroff-view): Quote argument of
'Man-getpage-in-background' to support file names with special
characters.  (Bug#46051)

lisp/textmodes/nroff-mode.el

index fe70e925b05f76a40e1e53697b96722694b21114..e7d852be3c831319121f1f7c7f1b667794f4da53 100644 (file)
@@ -316,7 +316,7 @@ otherwise off."
         (save-buffer))
     (if viewbuf
        (kill-buffer viewbuf))
-    (Man-getpage-in-background file)))
+    (Man-getpage-in-background (shell-quote-argument file))))
 
 (provide 'nroff-mode)