Mercurial > emacs
comparison lisp/files.el @ 4186:45fc16fdf07e
(ange-ftp-completion-hook-function): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 20 Jul 1993 07:12:30 +0000 |
parents | 6b065ebb9090 |
children | 20f7ea2f83ef |
comparison
equal
deleted
inserted
replaced
4185:05a314aafd74 | 4186:45fc16fdf07e |
---|---|
227 ;; Avoid losing in versions where CLASH_DETECTION is disabled. | 227 ;; Avoid losing in versions where CLASH_DETECTION is disabled. |
228 (or (fboundp 'lock-buffer) | 228 (or (fboundp 'lock-buffer) |
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." |
235 (interactive nil) | 245 (interactive nil) |
236 (message "Directory %s" default-directory)) | 246 (message "Directory %s" default-directory)) |