891 |
(defun dired-do-redisplay (&optional arg test-for-subdir) |
(defun dired-do-redisplay (&optional arg test-for-subdir) |
892 |
"Redisplay all marked (or next ARG) files. |
"Redisplay all marked (or next ARG) files. |
893 |
If on a subdir line, redisplay that subdirectory. In that case, |
If on a subdir line, redisplay that subdirectory. In that case, |
894 |
a prefix arg lets you edit the `ls' switches used for the new listing." |
a prefix arg lets you edit the `ls' switches used for the new listing. |
895 |
|
|
896 |
|
Dired remembers switches specified with a prefix arg, so that reverting |
897 |
|
the buffer will not reset them. However, using `dired-undo' to re-insert |
898 |
|
or delete subdirectories can bypass this machinery. Hence, you sometimes |
899 |
|
may have to reset some subdirectory switches after a `dired-undo'. |
900 |
|
You can reset all subdirectory switches to the default using |
901 |
|
\\<dired-mode-map>\\[dired-reset-subdir-switches]." |
902 |
;; Moves point if the next ARG files are redisplayed. |
;; Moves point if the next ARG files are redisplayed. |
903 |
(interactive "P\np") |
(interactive "P\np") |
904 |
(if (and test-for-subdir (dired-get-subdir)) |
(if (and test-for-subdir (dired-get-subdir)) |
921 |
arg) |
arg) |
922 |
(dired-move-to-filename) |
(dired-move-to-filename) |
923 |
(message "Redisplaying...done"))) |
(message "Redisplaying...done"))) |
924 |
|
|
925 |
|
(defun dired-reset-subdir-switches () |
926 |
|
"Set `dired-switches-alist' to nil and revert dired buffer." |
927 |
|
(interactive) |
928 |
|
(setq dired-switches-alist nil) |
929 |
|
(revert-buffer)) |
930 |
|
|
931 |
(defun dired-update-file-line (file) |
(defun dired-update-file-line (file) |
932 |
;; Delete the current line, and insert an entry for FILE. |
;; Delete the current line, and insert an entry for FILE. |
1740 |
With a prefix arg, you may edit the ls switches used for this listing. |
With a prefix arg, you may edit the ls switches used for this listing. |
1741 |
You can add `R' to the switches to expand the whole tree starting at |
You can add `R' to the switches to expand the whole tree starting at |
1742 |
this subdirectory. |
this subdirectory. |
1743 |
This function takes some pains to conform to `ls -lR' output." |
This function takes some pains to conform to `ls -lR' output. |
1744 |
|
|
1745 |
|
Dired remembers switches specified with a prefix arg, so that reverting |
1746 |
|
the buffer will not reset them. However, using `dired-undo' to re-insert |
1747 |
|
or delete subdirectories can bypass this machinery. Hence, you sometimes |
1748 |
|
may have to reset some subdirectory switches after a `dired-undo'. |
1749 |
|
You can reset all subdirectory switches to the default using |
1750 |
|
\\<dired-mode-map>\\[dired-reset-subdir-switches]." |
1751 |
(interactive |
(interactive |
1752 |
(list (dired-get-filename) |
(list (dired-get-filename) |
1753 |
(if current-prefix-arg |
(if current-prefix-arg |