From: Stefan Monnier Date: Tue, 11 Oct 2016 19:52:14 +0000 (-0400) Subject: If autoloads buffer is unchanged, mark it as such (bug#23692) X-Git-Tag: emacs-26.0.90~1484 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5cc3c13d164e392218a4dbc277fdab8c757a91af;p=emacs.git If autoloads buffer is unchanged, mark it as such (bug#23692) * lisp/emacs-lisp/autoload.el (update-directory-autoloads): If autoloads buffer is unchanged, mark it as such (bug#23692). --- diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index aa58f7b27fa..426601c81f7 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -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)))