diff options
| author | Karl Heuer | 1994-04-22 23:59:24 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-22 23:59:24 +0000 |
| commit | 6eaebaa27883a013a7b948e2b6e14dd8617dede5 (patch) | |
| tree | 7a32691b47090532e1c8c2ac781864b2f90f7a20 | |
| parent | 49307295be79fd842e2780d0475f5af574050ce9 (diff) | |
| download | emacs-6eaebaa27883a013a7b948e2b6e14dd8617dede5.tar.gz emacs-6eaebaa27883a013a7b948e2b6e14dd8617dede5.zip | |
Pass operation to find-file-name-handler.
| -rw-r--r-- | lisp/dired-aux.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 10 | ||||
| -rw-r--r-- | lisp/ls-lisp.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/ispell4.el | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 16b829d9489..6cfcbc67599 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -497,7 +497,7 @@ and use this command with a prefix argument (the value does not matter)." | |||
| 497 | ;; Compress or uncompress FILE. | 497 | ;; Compress or uncompress FILE. |
| 498 | ;; Return the name of the compressed or uncompressed file. | 498 | ;; Return the name of the compressed or uncompressed file. |
| 499 | ;; Return nil if no change in files. | 499 | ;; Return nil if no change in files. |
| 500 | (let ((handler (find-file-name-handler file))) | 500 | (let ((handler (find-file-name-handler file 'dired-compress-file))) |
| 501 | (cond (handler | 501 | (cond (handler |
| 502 | (funcall handler 'dired-compress-file file)) | 502 | (funcall handler 'dired-compress-file file)) |
| 503 | ((file-symlink-p file) | 503 | ((file-symlink-p file) |
diff --git a/lisp/dired.el b/lisp/dired.el index fbb0ac563c4..a7a9dfa525e 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -646,7 +646,7 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh." | |||
| 646 | 646 | ||
| 647 | ;; Remove directory DIR from any directory cache. | 647 | ;; Remove directory DIR from any directory cache. |
| 648 | (defun dired-uncache (dir) | 648 | (defun dired-uncache (dir) |
| 649 | (let ((handler (find-file-name-handler dir))) | 649 | (let ((handler (find-file-name-handler dir 'dired-uncache))) |
| 650 | (if handler | 650 | (if handler |
| 651 | (funcall handler 'dired-uncache dir)))) | 651 | (funcall handler 'dired-uncache dir)))) |
| 652 | 652 | ||
diff --git a/lisp/files.el b/lisp/files.el index 389139b8f8d..518515a7b79 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -321,7 +321,7 @@ This is an interface to the function `load'." | |||
| 321 | "Copy the file FILE into a temporary file on this machine. | 321 | "Copy the file FILE into a temporary file on this machine. |
| 322 | Returns the name of the local copy, or nil, if FILE is directly | 322 | Returns the name of the local copy, or nil, if FILE is directly |
| 323 | accessible." | 323 | accessible." |
| 324 | (let ((handler (find-file-name-handler file))) | 324 | (let ((handler (find-file-name-handler file 'file-local-copy))) |
| 325 | (if handler | 325 | (if handler |
| 326 | (funcall handler 'file-local-copy file) | 326 | (funcall handler 'file-local-copy file) |
| 327 | nil))) | 327 | nil))) |
| @@ -338,7 +338,7 @@ containing it, until no links are left at any level." | |||
| 338 | (setq filename (expand-file-name filename)) | 338 | (setq filename (expand-file-name filename)) |
| 339 | (if (string= filename "") | 339 | (if (string= filename "") |
| 340 | (setq filename "/")))) | 340 | (setq filename "/")))) |
| 341 | (let ((handler (find-file-name-handler filename))) | 341 | (let ((handler (find-file-name-handler filename 'file-truename))) |
| 342 | ;; For file name that has a special handler, call handler. | 342 | ;; For file name that has a special handler, call handler. |
| 343 | ;; This is so that ange-ftp can save time by doing a no-op. | 343 | ;; This is so that ange-ftp can save time by doing a no-op. |
| 344 | (if handler | 344 | (if handler |
| @@ -1326,7 +1326,7 @@ This is a separate procedure so your site-init or startup file can | |||
| 1326 | redefine it. | 1326 | redefine it. |
| 1327 | If the optional argument KEEP-BACKUP-VERSION is non-nil, | 1327 | If the optional argument KEEP-BACKUP-VERSION is non-nil, |
| 1328 | we do not remove backup version numbers, only true file version numbers." | 1328 | we do not remove backup version numbers, only true file version numbers." |
| 1329 | (let ((handler (find-file-name-handler name))) | 1329 | (let ((handler (find-file-name-handler name 'file-name-sans-versions))) |
| 1330 | (if handler | 1330 | (if handler |
| 1331 | (funcall handler 'file-name-sans-versions name keep-backup-version) | 1331 | (funcall handler 'file-name-sans-versions name keep-backup-version) |
| 1332 | (substring name 0 | 1332 | (substring name 0 |
| @@ -1735,7 +1735,7 @@ to create parent directories if they don't exist." | |||
| 1735 | (list (read-file-name "Make directory: " default-directory default-directory | 1735 | (list (read-file-name "Make directory: " default-directory default-directory |
| 1736 | nil nil) | 1736 | nil nil) |
| 1737 | t)) | 1737 | t)) |
| 1738 | (let ((handler (find-file-name-handler dir))) | 1738 | (let ((handler (find-file-name-handler dir 'make-directory))) |
| 1739 | (if handler | 1739 | (if handler |
| 1740 | (funcall handler 'make-directory dir parents) | 1740 | (funcall handler 'make-directory dir parents) |
| 1741 | (if (not parents) | 1741 | (if (not parents) |
| @@ -2000,7 +2000,7 @@ switches do not contain `d', so that a full listing is expected. | |||
| 2000 | This works by running a directory listing program | 2000 | This works by running a directory listing program |
| 2001 | whose name is in the variable `insert-directory-program'. | 2001 | whose name is in the variable `insert-directory-program'. |
| 2002 | If WILDCARD, it also runs the shell specified by `shell-file-name'." | 2002 | If WILDCARD, it also runs the shell specified by `shell-file-name'." |
| 2003 | (let ((handler (find-file-name-handler file))) | 2003 | (let ((handler (find-file-name-handler file 'insert-directory))) |
| 2004 | (if handler | 2004 | (if handler |
| 2005 | (funcall handler 'insert-directory file switches | 2005 | (funcall handler 'insert-directory file switches |
| 2006 | wildcard full-directory-p) | 2006 | wildcard full-directory-p) |
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index 38a68cdc10a..0a5a5942347 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el | |||
| @@ -62,7 +62,7 @@ It does not support ordinary shell wildcards; instead, it allows | |||
| 62 | regular expressions to match file names. | 62 | regular expressions to match file names. |
| 63 | 63 | ||
| 64 | The switches that work are: A a c i r S s t u" | 64 | The switches that work are: A a c i r S s t u" |
| 65 | (let ((handler (find-file-name-handler file))) | 65 | (let ((handler (find-file-name-handler file 'insert-directory))) |
| 66 | (if handler | 66 | (if handler |
| 67 | (funcall handler 'insert-directory file switches | 67 | (funcall handler 'insert-directory file switches |
| 68 | wildcard full-directory-p) | 68 | wildcard full-directory-p) |
diff --git a/lisp/textmodes/ispell4.el b/lisp/textmodes/ispell4.el index c47db01a230..147e3ea12b0 100644 --- a/lisp/textmodes/ispell4.el +++ b/lisp/textmodes/ispell4.el | |||
| @@ -283,7 +283,7 @@ q, \\[keyboard-quit] Leave the command loop. You can come back later with \\[is | |||
| 283 | (unwind-protect | 283 | (unwind-protect |
| 284 | (progn | 284 | (progn |
| 285 | (cond ((or (null filename) | 285 | (cond ((or (null filename) |
| 286 | (find-file-name-handler buffer-file-name)) | 286 | (find-file-name-handler buffer-file-name nil)) |
| 287 | (setq filename (make-temp-name "/usr/tmp/ispell")) | 287 | (setq filename (make-temp-name "/usr/tmp/ispell")) |
| 288 | (setq delete-temp t) | 288 | (setq delete-temp t) |
| 289 | (write-region (point-min) (point-max) filename)) | 289 | (write-region (point-min) (point-max) filename)) |