1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00

* ls-lisp.el (insert-directory): If no handler, convert SWITCHES

from a string to a list of characters.
This commit is contained in:
Jim Blandy 1993-06-17 02:53:14 +00:00
parent 7eb9ba4137
commit cc2f3b6482

View File

@ -62,10 +62,12 @@ It does not support ordinary shell wildcards; instead, it allows
regular expressions to match file names.
The switches that work are: A a c i r S s t u"
(let (handler ((find-file-name-handler file)))
(let ((handler (find-file-name-handler file)))
(if handler
(funcall handler 'insert-directory file switches
wildcard full-directory-p)
;; Convert SWITCHES to a list of characters.
(setq switches (append switches nil))
(if wildcard
(setq wildcard (file-name-nondirectory file) ; actually emacs regexp
;; perhaps convert it from shell to emacs syntax?