aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ls-lisp.el
diff options
context:
space:
mode:
authorJim Blandy1992-12-12 15:21:45 +0000
committerJim Blandy1992-12-12 15:21:45 +0000
commit5dbfdacd20b0c059da2e4e25fdfc1996b44acbb7 (patch)
tree91c772705a65c77d06af040f9110290d6a70e59c /lisp/ls-lisp.el
parent7114f404be6136811b52b930f979fb5387213b8c (diff)
downloademacs-5dbfdacd20b0c059da2e4e25fdfc1996b44acbb7.tar.gz
emacs-5dbfdacd20b0c059da2e4e25fdfc1996b44acbb7.zip
The find-file-name-handler function in ../src/fileio.c is now
callable from lisp; use it instead of writing out its code. * dired-aux.el (dired-compress-file): Just that. * dired.el (dired-uncache): Just that. * files.el (file-local-copy, file-truename, file-name-sans-versions, make-directory, save-buffers-kill-emacs): Just that. * ls-lisp.el (insert-directory): Just that.
Diffstat (limited to 'lisp/ls-lisp.el')
-rw-r--r--lisp/ls-lisp.el9
1 files changed, 1 insertions, 8 deletions
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el
index 54be933b2e3..94b0ed4385e 100644
--- a/lisp/ls-lisp.el
+++ b/lisp/ls-lisp.el
@@ -57,14 +57,7 @@ It does not support ordinary shell wildcards; instead, it allows
57regular expressions to match file names. 57regular expressions to match file names.
58 58
59The switches that work are: A a c i r S s t u" 59The switches that work are: A a c i r S s t u"
60 (let (handler (handlers file-name-handler-alist)) 60 (let (handler ((find-file-name-handler file)))
61 (save-match-data
62 (while (and (consp handlers) (null handler))
63 (if (and (consp (car handlers))
64 (stringp (car (car handlers)))
65 (string-match (car (car handlers)) file))
66 (setq handler (cdr (car handlers))))
67 (setq handlers (cdr handlers))))
68 (if handler 61 (if handler
69 (funcall handler 'insert-directory file switches 62 (funcall handler 'insert-directory file switches
70 wildcard full-directory-p) 63 wildcard full-directory-p)