changeset 16558:40a1e1451821

(dired-jump): Never turn omitting *on*. Refresh the line *before* turning omitting off.
author Richard M. Stallman <rms@gnu.org>
date Sun, 10 Nov 1996 23:41:13 +0000
parents 4ff6a0f0f5c7
children d62b7f309f2b
files lisp/dired-x.el
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired-x.el	Sun Nov 10 18:52:18 1996 +0000
+++ b/lisp/dired-x.el	Sun Nov 10 23:41:13 1996 +0000
@@ -425,14 +425,15 @@
         (dired dir))
       (if file
           (or (dired-goto-file file)
-              ;; Toggle omitting, if necessary, and try again.
-              (progn
-                (dired-omit-toggle t)
-                (dired-goto-file file))
               ;; refresh and try again
               (progn
                 (dired-insert-subdir (file-name-directory file))
-                (dired-goto-file file)))))))
+                (dired-goto-file file))
+              ;; Toggle omitting, if it is on, and try again.
+	      (if dired-omit-files-p
+		  (progn
+		    (dired-omit-toggle)
+		    (dired-goto-file file))))))))
 
 (defun dired-jump-other-window ()
   "Like \\[dired-jump] (dired-jump) but in other window."