diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2016-10-11 15:52:14 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2016-10-11 15:52:14 -0400 |
commit | 5cc3c13d164e392218a4dbc277fdab8c757a91af (patch) | |
tree | fb8646b67d2eef0189c2ff3fd031ab89d83f0d33 /lisp/emacs-lisp | |
parent | 8b4aebf4559522d19193cc19cc8a255e764a8676 (diff) | |
download | emacs-5cc3c13d164e392218a4dbc277fdab8c757a91af.tar.gz emacs-5cc3c13d164e392218a4dbc277fdab8c757a91af.tar.bz2 emacs-5cc3c13d164e392218a4dbc277fdab8c757a91af.zip |
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).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 3 |
1 files changed, 2 insertions, 1 deletions
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))) |