]> code.delx.au - gnu-emacs/commitdiff
(dired-jump): Never turn omitting *on*.
authorRichard M. Stallman <rms@gnu.org>
Sun, 10 Nov 1996 23:41:13 +0000 (23:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 10 Nov 1996 23:41:13 +0000 (23:41 +0000)
Refresh the line *before* turning omitting off.

lisp/dired-x.el

index 2f6cb72623b20475768c7336079a2c37c2d33994..b626b3aade5a9261229b92b2b02e3389e827930d 100644 (file)
@@ -425,14 +425,15 @@ buffer and try again."
         (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."