diff options
| author | Richard M. Stallman | 1993-07-20 07:12:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-20 07:12:30 +0000 |
| commit | 93fe0a356ffaee742995e36ad4d5051a21aedf9e (patch) | |
| tree | 0d95c4e0e289c4033decf5b43eea3caf9857fb31 | |
| parent | 0628c764af5c887fceda7e03e7d84dc0b4e1e568 (diff) | |
| download | emacs-93fe0a356ffaee742995e36ad4d5051a21aedf9e.tar.gz emacs-93fe0a356ffaee742995e36ad4d5051a21aedf9e.zip | |
(ange-ftp-completion-hook-function): New function.
| -rw-r--r-- | lisp/files.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index aefc4fa4e88..5ed1ad4b7ab 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -229,6 +229,16 @@ and ignores this variable.") | |||
| 229 | (defalias 'lock-buffer 'ignore)) | 229 | (defalias 'lock-buffer 'ignore)) |
| 230 | (or (fboundp 'unlock-buffer) | 230 | (or (fboundp 'unlock-buffer) |
| 231 | (defalias 'unlock-buffer 'ignore)) | 231 | (defalias 'unlock-buffer 'ignore)) |
| 232 | |||
| 233 | ;; This hook function provides support for ange-ftp host name | ||
| 234 | ;; completion. It runs the usual ange-ftp hook, but only for | ||
| 235 | ;; completion operations. Having this here avoids the need | ||
| 236 | ;; to load ange-ftp when it's not really in use. | ||
| 237 | (defun ange-ftp-completion-hook-function (op &rest args) | ||
| 238 | (if (memq op '(file-name-completion file-name-all-completions)) | ||
| 239 | (apply 'ange-ftp-hook-function op args) | ||
| 240 | (let (file-name-handler-alist) | ||
| 241 | (apply op args)))) | ||
| 232 | 242 | ||
| 233 | (defun pwd () | 243 | (defun pwd () |
| 234 | "Show the current default directory." | 244 | "Show the current default directory." |