diff options
| author | Luc Teirlinck | 2004-06-07 21:24:31 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-06-07 21:24:31 +0000 |
| commit | 79d123adb3824d9952b13251252a87609dbd9018 (patch) | |
| tree | 79d30da606d93c8e98b890b063596252e0a2ff2f | |
| parent | 0b0dea7bb759a28e629abe3020e0d5e54b1b691d (diff) | |
| download | emacs-79d123adb3824d9952b13251252a87609dbd9018.tar.gz emacs-79d123adb3824d9952b13251252a87609dbd9018.zip | |
(dired-do-redisplay, dired-maybe-insert-subdir): Update docstring.
(dired-reset-subdir-switches): New function.
| -rw-r--r-- | lisp/dired-aux.el | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index db09fc57fb7..fa859f3d52e 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el | |||
| @@ -891,7 +891,14 @@ Otherwise, the rule is a compression rule, and compression is done with gzip.") | |||
| 891 | (defun dired-do-redisplay (&optional arg test-for-subdir) | 891 | (defun dired-do-redisplay (&optional arg test-for-subdir) |
| 892 | "Redisplay all marked (or next ARG) files. | 892 | "Redisplay all marked (or next ARG) files. |
| 893 | If on a subdir line, redisplay that subdirectory. In that case, | 893 | 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." | 894 | 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]." | ||
| 895 | ;; Moves point if the next ARG files are redisplayed. | 902 | ;; Moves point if the next ARG files are redisplayed. |
| 896 | (interactive "P\np") | 903 | (interactive "P\np") |
| 897 | (if (and test-for-subdir (dired-get-subdir)) | 904 | (if (and test-for-subdir (dired-get-subdir)) |
| @@ -914,6 +921,12 @@ a prefix arg lets you edit the `ls' switches used for the new listing." | |||
| 914 | arg) | 921 | arg) |
| 915 | (dired-move-to-filename) | 922 | (dired-move-to-filename) |
| 916 | (message "Redisplaying...done"))) | 923 | (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)) | ||
| 917 | 930 | ||
| 918 | (defun dired-update-file-line (file) | 931 | (defun dired-update-file-line (file) |
| 919 | ;; Delete the current line, and insert an entry for FILE. | 932 | ;; Delete the current line, and insert an entry for FILE. |
| @@ -1727,7 +1740,14 @@ If it is already present, just move to it (type \\[dired-do-redisplay] to refres | |||
| 1727 | With a prefix arg, you may edit the ls switches used for this listing. | 1740 | With a prefix arg, you may edit the ls switches used for this listing. |
| 1728 | You can add `R' to the switches to expand the whole tree starting at | 1741 | You can add `R' to the switches to expand the whole tree starting at |
| 1729 | this subdirectory. | 1742 | this subdirectory. |
| 1730 | This function takes some pains to conform to `ls -lR' output." | 1743 | 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]." | ||
| 1731 | (interactive | 1751 | (interactive |
| 1732 | (list (dired-get-filename) | 1752 | (list (dired-get-filename) |
| 1733 | (if current-prefix-arg | 1753 | (if current-prefix-arg |