diff options
| author | Jim Blandy | 1993-06-17 02:53:14 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-17 02:53:14 +0000 |
| commit | cc2f3b6482df81ec997c43cca46f7c1166be50db (patch) | |
| tree | 5f2573f7beabc6864041873620e7395fbdaf68e6 | |
| parent | 7eb9ba4137c648d7fa84dbe507948383269124ba (diff) | |
| download | emacs-cc2f3b6482df81ec997c43cca46f7c1166be50db.tar.gz emacs-cc2f3b6482df81ec997c43cca46f7c1166be50db.zip | |
* ls-lisp.el (insert-directory): If no handler, convert SWITCHES
from a string to a list of characters.
| -rw-r--r-- | lisp/ls-lisp.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 54da7fdc438..aa97960750c 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el | |||
| @@ -62,10 +62,12 @@ It does not support ordinary shell wildcards; instead, it allows | |||
| 62 | regular expressions to match file names. | 62 | regular expressions to match file names. |
| 63 | 63 | ||
| 64 | The switches that work are: A a c i r S s t u" | 64 | The switches that work are: A a c i r S s t u" |
| 65 | (let (handler ((find-file-name-handler file))) | 65 | (let ((handler (find-file-name-handler file))) |
| 66 | (if handler | 66 | (if handler |
| 67 | (funcall handler 'insert-directory file switches | 67 | (funcall handler 'insert-directory file switches |
| 68 | wildcard full-directory-p) | 68 | wildcard full-directory-p) |
| 69 | ;; Convert SWITCHES to a list of characters. | ||
| 70 | (setq switches (append switches nil)) | ||
| 69 | (if wildcard | 71 | (if wildcard |
| 70 | (setq wildcard (file-name-nondirectory file) ; actually emacs regexp | 72 | (setq wildcard (file-name-nondirectory file) ; actually emacs regexp |
| 71 | ;; perhaps convert it from shell to emacs syntax? | 73 | ;; perhaps convert it from shell to emacs syntax? |