mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue