[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/dired-aux.el [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/dired-aux.el [lexbind] |
Date: |
Tue, 06 Jul 2004 05:56:21 -0400 |
Index: emacs/lisp/dired-aux.el
diff -c emacs/lisp/dired-aux.el:1.102.2.8 emacs/lisp/dired-aux.el:1.102.2.9
*** emacs/lisp/dired-aux.el:1.102.2.8 Tue Jul 6 09:44:43 2004
--- emacs/lisp/dired-aux.el Tue Jul 6 09:47:52 2004
***************
*** 891,897 ****
(defun dired-do-redisplay (&optional arg test-for-subdir)
"Redisplay all marked (or next ARG) files.
If on a subdir line, redisplay that subdirectory. In that case,
! a prefix arg lets you edit the `ls' switches used for the new listing."
;; Moves point if the next ARG files are redisplayed.
(interactive "P\np")
(if (and test-for-subdir (dired-get-subdir))
--- 891,904 ----
(defun dired-do-redisplay (&optional arg test-for-subdir)
"Redisplay all marked (or next ARG) files.
If on a subdir line, redisplay that subdirectory. In that case,
! a prefix arg lets you edit the `ls' switches used for the new listing.
!
! Dired remembers switches specified with a prefix arg, so that reverting
! the buffer will not reset them. However, using `dired-undo' to re-insert
! or delete subdirectories can bypass this machinery. Hence, you sometimes
! may have to reset some subdirectory switches after a `dired-undo'.
! You can reset all subdirectory switches to the default using
! \\<dired-mode-map>\\[dired-reset-subdir-switches]."
;; Moves point if the next ARG files are redisplayed.
(interactive "P\np")
(if (and test-for-subdir (dired-get-subdir))
***************
*** 914,919 ****
--- 921,932 ----
arg)
(dired-move-to-filename)
(message "Redisplaying...done")))
+
+ (defun dired-reset-subdir-switches ()
+ "Set `dired-switches-alist' to nil and revert dired buffer."
+ (interactive)
+ (setq dired-switches-alist nil)
+ (revert-buffer))
(defun dired-update-file-line (file)
;; Delete the current line, and insert an entry for FILE.
***************
*** 1727,1733 ****
With a prefix arg, you may edit the ls switches used for this listing.
You can add `R' to the switches to expand the whole tree starting at
this subdirectory.
! This function takes some pains to conform to `ls -lR' output."
(interactive
(list (dired-get-filename)
(if current-prefix-arg
--- 1740,1753 ----
With a prefix arg, you may edit the ls switches used for this listing.
You can add `R' to the switches to expand the whole tree starting at
this subdirectory.
! This function takes some pains to conform to `ls -lR' output.
!
! Dired remembers switches specified with a prefix arg, so that reverting
! the buffer will not reset them. However, using `dired-undo' to re-insert
! or delete subdirectories can bypass this machinery. Hence, you sometimes
! may have to reset some subdirectory switches after a `dired-undo'.
! You can reset all subdirectory switches to the default using
! \\<dired-mode-map>\\[dired-reset-subdir-switches]."
(interactive
(list (dired-get-filename)
(if current-prefix-arg
- [Emacs-diffs] Changes to emacs/lisp/dired-aux.el [lexbind],
Miles Bader <=