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)
This commit is contained in:
Eli Zaretskii 2021-02-06 15:09:32 +02:00
parent b84b8dff70
commit f534d3fdac

View 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)