diff options
| author | Richard M. Stallman | 1993-12-23 03:34:57 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 03:34:57 +0000 |
| commit | d443f37c8fc048d9a2ef2f9844cd114f32aff246 (patch) | |
| tree | 6e5a2e3d3f58dcc3d37badae83ee5bbfb23880ee /lisp | |
| parent | 7e6404f67821a8738a6bcd72ee3721cb41375325 (diff) | |
| download | emacs-d443f37c8fc048d9a2ef2f9844cd114f32aff246.tar.gz emacs-d443f37c8fc048d9a2ef2f9844cd114f32aff246.zip | |
Autoload dired-.*-file.
(dired-insert-subdir-validate): Call expand-file-name.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/dired-aux.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 9718c71ac8e..99e0063a94a 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -492,6 +492,7 @@ and use this command with a prefix argument (the value does not matter)." | |||
| 492 | (dired-log (concat "Failed to compress" from-file)) | 492 | (dired-log (concat "Failed to compress" from-file)) |
| 493 | from-file))) | 493 | from-file))) |
| 494 | 494 | ||
| 495 | ;;;###autoload | ||
| 495 | (defun dired-compress-file (file) | 496 | (defun dired-compress-file (file) |
| 496 | ;; Compress or uncompress FILE. | 497 | ;; Compress or uncompress FILE. |
| 497 | ;; Return the name of the compressed or uncompressed file. | 498 | ;; Return the name of the compressed or uncompressed file. |
| @@ -723,6 +724,7 @@ a prefix arg lets you edit the `ls' switches used for the new listing." | |||
| 723 | (set-buffer obuf))) | 724 | (set-buffer obuf))) |
| 724 | success-list)) | 725 | success-list)) |
| 725 | 726 | ||
| 727 | ;;;###autoload | ||
| 726 | (defun dired-add-file (filename &optional marker-char) | 728 | (defun dired-add-file (filename &optional marker-char) |
| 727 | (dired-fun-in-all-buffers | 729 | (dired-fun-in-all-buffers |
| 728 | (file-name-directory filename) | 730 | (file-name-directory filename) |
| @@ -816,6 +818,7 @@ a prefix arg lets you edit the `ls' switches used for the new listing." | |||
| 816 | (forward-line 1)) | 818 | (forward-line 1)) |
| 817 | (point))) | 819 | (point))) |
| 818 | 820 | ||
| 821 | ;;;###autoload | ||
| 819 | (defun dired-remove-file (file) | 822 | (defun dired-remove-file (file) |
| 820 | (dired-fun-in-all-buffers | 823 | (dired-fun-in-all-buffers |
| 821 | (file-name-directory file) (function dired-remove-entry) file)) | 824 | (file-name-directory file) (function dired-remove-entry) file)) |
| @@ -827,6 +830,7 @@ a prefix arg lets you edit the `ls' switches used for the new listing." | |||
| 827 | (delete-region (progn (beginning-of-line) (point)) | 830 | (delete-region (progn (beginning-of-line) (point)) |
| 828 | (save-excursion (forward-line 1) (point))))))) | 831 | (save-excursion (forward-line 1) (point))))))) |
| 829 | 832 | ||
| 833 | ;;;###autoload | ||
| 830 | (defun dired-relist-file (file) | 834 | (defun dired-relist-file (file) |
| 831 | (dired-fun-in-all-buffers (file-name-directory file) | 835 | (dired-fun-in-all-buffers (file-name-directory file) |
| 832 | (function dired-relist-entry) file)) | 836 | (function dired-relist-entry) file)) |
| @@ -868,10 +872,12 @@ Special value `always' suppresses confirmation.") | |||
| 868 | (rename-file to backup 0) ; confirm overwrite of old backup | 872 | (rename-file to backup 0) ; confirm overwrite of old backup |
| 869 | (dired-relist-entry backup)))) | 873 | (dired-relist-entry backup)))) |
| 870 | 874 | ||
| 875 | ;;;###autoload | ||
| 871 | (defun dired-copy-file (from to ok-flag) | 876 | (defun dired-copy-file (from to ok-flag) |
| 872 | (dired-handle-overwrite to) | 877 | (dired-handle-overwrite to) |
| 873 | (copy-file from to ok-flag dired-copy-preserve-time)) | 878 | (copy-file from to ok-flag dired-copy-preserve-time)) |
| 874 | 879 | ||
| 880 | ;;;###autoload | ||
| 875 | (defun dired-rename-file (from to ok-flag) | 881 | (defun dired-rename-file (from to ok-flag) |
| 876 | (dired-handle-overwrite to) | 882 | (dired-handle-overwrite to) |
| 877 | (rename-file from to ok-flag) ; error is caught in -create-files | 883 | (rename-file from to ok-flag) ; error is caught in -create-files |
| @@ -1500,7 +1506,7 @@ This function takes some pains to conform to `ls -lR' output." | |||
| 1500 | (defun dired-insert-subdir-validate (dirname &optional switches) | 1506 | (defun dired-insert-subdir-validate (dirname &optional switches) |
| 1501 | ;; Check that it is valid to insert DIRNAME with SWITCHES. | 1507 | ;; Check that it is valid to insert DIRNAME with SWITCHES. |
| 1502 | ;; Signal an error if invalid (e.g. user typed `i' on `..'). | 1508 | ;; Signal an error if invalid (e.g. user typed `i' on `..'). |
| 1503 | (or (dired-in-this-tree dirname default-directory) | 1509 | (or (dired-in-this-tree dirname (expand-file-name default-directory)) |
| 1504 | (error "%s: not in this directory tree" dirname)) | 1510 | (error "%s: not in this directory tree" dirname)) |
| 1505 | (if switches | 1511 | (if switches |
| 1506 | (let (case-fold-search) | 1512 | (let (case-fold-search) |