emacs-diffs
[Top][All Lists]
Advanced

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

master f534d3f 1/2: Support file names with whitespace in Nroff mode


From: Eli Zaretskii
Subject: master f534d3f 1/2: Support file names with whitespace in Nroff mode
Date: Sat, 6 Feb 2021 08:11:26 -0500 (EST)

branch: master
commit f534d3fdacb3d6114a0ebdc8df2723265339db5d
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Support file names with whitespace in Nroff mode
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index fe70e92..e7d852b 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -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)
 



reply via email to

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