diff options
Diffstat (limited to 'lisp/dired.el')
-rw-r--r-- | lisp/dired.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index cf78354ad8f..d4e79485bcd 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -819,8 +819,7 @@ for a remote directory. This feature is used by Auto Revert Mode." (while blist (if (null (buffer-name (cdr (car blist)))) (setq blist (cdr blist)) - (save-excursion - (set-buffer (cdr (car blist))) + (with-current-buffer (cdr (car blist)) (if (and (eq major-mode mode) dired-directory ;; nil during find-alternate-file (equal dirname |