mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(ange-ftp-ls): Run ange-ftp-before-parse-ls-hook.
(ange-ftp-before-parse-ls-hook): Add defvar.
This commit is contained in:
parent
9c5c5f39dc
commit
4ee83dcfc0
1 changed files with 4 additions and 0 deletions
|
|
@ -2298,6 +2298,9 @@ which can parse the output from a DIR listing for a host of type TYPE.")
|
|||
;; in the wildcard case. Then we make a relative directory listing
|
||||
;; of FILE within the directory specified by `default-directory'.
|
||||
|
||||
(defvar ange-ftp-before-parse-ls-hook nil
|
||||
"Normal hook run before parsing the text of an ftp directory listing.")
|
||||
|
||||
(defun ange-ftp-ls (file lsargs parse &optional no-error wildcard)
|
||||
"Return the output of an `DIR' or `ls' command done over ftp.
|
||||
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."
|
|||
(format
|
||||
"list data file %s not readable"
|
||||
temp))))
|
||||
(run-hooks 'ange-ftp-before-parse-ls-hook)
|
||||
(if parse
|
||||
(ange-ftp-set-files
|
||||
ange-ftp-this-file
|
||||
|
|
|
|||
Loading…
Reference in a new issue