]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix thinko in ls-lisp--insert-directory
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 9 Oct 2021 14:18:53 +0000 (16:18 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 9 Oct 2021 14:18:53 +0000 (16:18 +0200)
* lisp/ls-lisp.el (ls-lisp--insert-directory): Ensure that
SWITCHES is a string.

lisp/ls-lisp.el

index 8e81f79e4294cc058f92b91745a0fbcf64645765..82153ff0adb68d813301c1d64c2b3ef294a0d170 100644 (file)
@@ -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)