diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-11-19 19:07:02 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-11-19 19:07:02 -0800 |
commit | 615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90 (patch) | |
tree | e0458a9eac443c36a3a4bfa117fde01bbd6e4140 /lisp/emacs-lisp/autoload.el | |
parent | c3ca24d48c10fb771ee02eb58f7d49bd82d6306e (diff) | |
parent | e1dbe924b53c541fdf238a5a722b7177d5c8760b (diff) | |
download | emacs-615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90.tar.gz emacs-615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90.tar.bz2 emacs-615a3b8d0d2c88cd664f1e0beb5a32b5b8e08f90.zip |
Merge from trunk.
Diffstat (limited to 'lisp/emacs-lisp/autoload.el')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 6d5067151d3..b3ac23b2b76 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -514,6 +514,13 @@ Return non-nil if and only if FILE adds no autoloads to OUTFILE (let ((secondary-autoloads-file-buf (if (local-variable-p 'generated-autoload-file) (current-buffer)))) + ;; Ignore a buffer-local setting if it points to the + ;; global value. Otherwise we end up writing a mix of md5s + ;; and time-stamps to the global file. (Bug#10049) + (and secondary-autoloads-file-buf + outfile + (not otherbuf) + (setq secondary-autoloads-file-buf nil)) (with-current-buffer (marker-buffer output-start) (save-excursion ;; Insert the section-header line which lists the file name |