aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-08-28 23:36:44 +0000
committerRichard M. Stallman1996-08-28 23:36:44 +0000
commit4ee83dcfc0c9b1c3d11aadd4e5e5276c1b8bdcfe (patch)
tree2388496f5e3aa755529a30af9352213959b8ddfe
parent9c5c5f39dc4002f4421fd18077a5d7d71d6fac45 (diff)
downloademacs-4ee83dcfc0c9b1c3d11aadd4e5e5276c1b8bdcfe.tar.gz
emacs-4ee83dcfc0c9b1c3d11aadd4e5e5276c1b8bdcfe.zip
(ange-ftp-ls): Run ange-ftp-before-parse-ls-hook.
(ange-ftp-before-parse-ls-hook): Add defvar.
-rw-r--r--lisp/ange-ftp.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/ange-ftp.el b/lisp/ange-ftp.el
index 434eaf046cb..8bfe34db464 100644
--- a/lisp/ange-ftp.el
+++ b/lisp/ange-ftp.el
@@ -2298,6 +2298,9 @@ which can parse the output from a DIR listing for a host of type TYPE.")
2298;; in the wildcard case. Then we make a relative directory listing 2298;; in the wildcard case. Then we make a relative directory listing
2299;; of FILE within the directory specified by `default-directory'. 2299;; of FILE within the directory specified by `default-directory'.
2300 2300
2301(defvar ange-ftp-before-parse-ls-hook nil
2302 "Normal hook run before parsing the text of an ftp directory listing.")
2303
2301(defun ange-ftp-ls (file lsargs parse &optional no-error wildcard) 2304(defun ange-ftp-ls (file lsargs parse &optional no-error wildcard)
2302 "Return the output of an `DIR' or `ls' command done over ftp. 2305 "Return the output of an `DIR' or `ls' command done over ftp.
2303FILE is the full name of the remote file, LSARGS is any args to pass to the 2306FILE is the full name of the remote file, LSARGS is any args to pass to the
@@ -2355,6 +2358,7 @@ away in the internal cache."
2355 (format 2358 (format
2356 "list data file %s not readable" 2359 "list data file %s not readable"
2357 temp)))) 2360 temp))))
2361 (run-hooks 'ange-ftp-before-parse-ls-hook)
2358 (if parse 2362 (if parse
2359 (ange-ftp-set-files 2363 (ange-ftp-set-files
2360 ange-ftp-this-file 2364 ange-ftp-this-file