X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Ffiles.el;h=1c2aa6fa87e02e9c700401206c47143a7265a113;hb=f772ab4d2e7ca57e8b3ab1967eaefe6e2475c7b0;hp=1432eb5b60f61d1c36f5bb029bc9ef2625f7fe20;hpb=a5812bf2ff9a9cf40f4ff78dcb83f5b4c295bd18;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/files.el b/lisp/files.el index 1432eb5..1c2aa6f 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2726,7 +2726,14 @@ Revert only if they differ." ;; The resultant buffer is identical, alter ;; modtime, update mods and exit (set-visited-file-modtime) - (after-find-file nil nil t t t)) + (after-find-file nil nil t t t) + ;; We preserved modes above so fixup the local + ;; variables manually + (condition-case err + (hack-local-variables) + (error (lwarn 'local-variables 'warning + "File local-variables error: %s" + (error-message-string err))))) (t t)) t)))))