]> git.eshelyaron.com Git - emacs.git/commitdiff
If autoloads buffer is unchanged, mark it as such (bug#23692)
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 11 Oct 2016 19:52:14 +0000 (15:52 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 11 Oct 2016 19:52:14 +0000 (15:52 -0400)
* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
If autoloads buffer is unchanged, mark it as such (bug#23692).

lisp/emacs-lisp/autoload.el

index aa58f7b27fa4490c4f123530d9582f57bd6993c3..426601c81f7e91b06a2033d594f920247999a20b 100644 (file)
@@ -1112,7 +1112,8 @@ write its autoloads into the specified file instead."
 
       ;; Don't modify the file if its content has not been changed, so `make'
       ;; dependencies don't trigger unnecessarily.
-      (when changed
+      (if (not changed)
+          (set-buffer-modified-p nil)
         (let ((version-control 'never))
           (save-buffer)))