mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +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:
parent
7eb9ba4137
commit
cc2f3b6482
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user