From c71b718be86bdda7b51c8ea0da30aa896a7833fe Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Feb 2017 12:02:55 +0200 Subject: Support options with embedded whitespace in 'dired-listing-switches' * lisp/dired.el (dired-listing-switches): Document how to quote options with embedded whitespace. * lisp/files.el (insert-directory): Use split-string-and-unquote to support dired-listing-switches that specify command-line options with embedded spaces. (Bug#25485) --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/files.el') diff --git a/lisp/files.el b/lisp/files.el index 2833ec5c124..03d6df4c037 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -6582,7 +6582,7 @@ normally equivalent short `-D' option is just passed on to (unless (equal switches "") ;; Split the switches at any spaces so we can ;; pass separate options as separate args. - (split-string switches))) + (split-string-and-unquote switches))) ;; Avoid lossage if FILE starts with `-'. '("--") (progn -- cgit v1.2.1