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).
This commit is contained in:
Stefan Monnier 2016-10-11 15:52:14 -04:00
parent 8b4aebf455
commit 5cc3c13d16

View 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)))