diff options
| -rw-r--r-- | lisp/ange-ftp.el | 4 |
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. |
| 2303 | FILE is the full name of the remote file, LSARGS is any args to pass to the | 2306 | FILE 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 |