comparison lisp/ange-ftp.el @ 22797:2311a799a981

(ange-ftp-reread-dir): Renamed from `re-read'. Old name defined as alias. Doc fix.
author Richard M. Stallman <rms@gnu.org>
date Wed, 22 Jul 1998 00:31:24 +0000
parents f392093d562d
children 3c30de5e4f1d
comparison
equal deleted inserted replaced
22796:903554be7bfc 22797:2311a799a981
3851 ;; ange-ftp's cache whilst doing filename completion. 3851 ;; ange-ftp's cache whilst doing filename completion.
3852 ;; 3852 ;;
3853 ;;(define-key minibuffer-local-completion-map "\C-r" 'ange-ftp-re-read-dir) 3853 ;;(define-key minibuffer-local-completion-map "\C-r" 'ange-ftp-re-read-dir)
3854 ;;(define-key minibuffer-local-must-match-map "\C-r" 'ange-ftp-re-read-dir) 3854 ;;(define-key minibuffer-local-must-match-map "\C-r" 'ange-ftp-re-read-dir)
3855 3855
3856 ;; Force a re-read of the directory DIR. If DIR is omitted then it defaults 3856 ;; The autoload cookie is to make sure the doc is always available.
3857 ;; to the directory part of the contents of the current buffer. 3857 ;;;###autoload (defalias 'ange-ftp-re-read-dir ange-ftp-reread-dir)
3858 (defun ange-ftp-re-read-dir (&optional dir) 3858 ;;;###autoload
3859 (defun ange-ftp-reread-dir (&optional dir)
3860 "Reread remote directory DIR to update the directory cache.
3861 The implementation of remote ftp file names caches directory contents
3862 for speed. Therefore, when new remote files are created, Emacs
3863 may not know they exist. You can use this command to reread a specific
3864 directory, so that Emacs will know its current contents."
3859 (interactive) 3865 (interactive)
3860 (if dir 3866 (if dir
3861 (setq dir (expand-file-name dir)) 3867 (setq dir (expand-file-name dir))
3862 (setq dir (file-name-directory (expand-file-name (buffer-string))))) 3868 (setq dir (file-name-directory (expand-file-name (buffer-string)))))
3863 (if (ange-ftp-ftp-name dir) 3869 (if (ange-ftp-ftp-name dir)