From 81f20e8b89d6333cbc796e92df5aa3df4f5712db Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 9 Oct 2021 16:18:53 +0200 Subject: [PATCH] Fix thinko in ls-lisp--insert-directory * lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that SWITCHES is a string. --- lisp/ls-lisp.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 8e81f79e429..82153ff0adb 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el @@ -283,6 +283,7 @@ are also supported; unsupported long options are silently ignored." (funcall orig-fun file switches wildcard full-directory-p) ;; We need the directory in order to find the right handler. + (setq switches (or switches "")) (let ((handler (find-file-name-handler (expand-file-name file) 'insert-directory)) (orig-file file) -- 2.39.2