]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#30663
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 14 May 2018 15:12:16 +0000 (17:12 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 14 May 2018 15:12:16 +0000 (17:12 +0200)
* lisp/dired.el (dired-revert):
Call `hack-dir-local-variables-non-file-buffer'.  (Bug#30663)

lisp/dired.el

index 41b46d463a25a8769df43e01086e4460d776ce0f..1348df6934bec96bb4be1b35561cd04fa782fb76 100644 (file)
@@ -1443,7 +1443,8 @@ ARG and NOCONFIRM, passed from `revert-buffer', are ignored."
       (dolist (dir hidden-subdirs)
        (if (dired-goto-subdir dir)
            (dired-hide-subdir 1))))
-    (unless modflag (restore-buffer-modified-p nil)))
+    (unless modflag (restore-buffer-modified-p nil))
+    (hack-dir-local-variables-non-file-buffer))
   ;; outside of the let scope
 ;;;  Might as well not override the user if the user changed this.
 ;;;  (setq buffer-read-only t)