aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-11-17 16:34:16 -0500
committerGlenn Morris2011-11-17 16:34:16 -0500
commita8e1496d750ab0f571b3412ff61aaa4da640a036 (patch)
tree5acc02044a1db11f599449e7d9432bccc1a64969
parentc5e87d104b7342f35459c7513d6b4cefea1e968e (diff)
downloademacs-a8e1496d750ab0f571b3412ff61aaa4da640a036.tar.gz
emacs-a8e1496d750ab0f571b3412ff61aaa4da640a036.zip
autoload.el fix for bug#10049
* lisp/emacs-lisp/autoload.el (autoload-generate-file-autoloads): Ignore buffer-local generated-autoload-file if it is the same as the global value.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/autoload.el7
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 38efb16bd80..45a115ec566 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-11-17 Glenn Morris <rgm@gnu.org>
2
3 * emacs-lisp/autoload.el (autoload-generate-file-autoloads):
4 Ignore buffer-local generated-autoload-file if it is the same
5 as the global value. (Bug#10049)
6
12011-11-17 Juanma Barranquero <lekktu@gmail.com> 72011-11-17 Juanma Barranquero <lekktu@gmail.com>
2 8
3 * textmodes/reftex-toc.el (reftex-toc-return-marker, reftex-toc-help) 9 * textmodes/reftex-toc.el (reftex-toc-return-marker, reftex-toc-help)
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
514 (let ((secondary-autoloads-file-buf 514 (let ((secondary-autoloads-file-buf
515 (if (local-variable-p 'generated-autoload-file) 515 (if (local-variable-p 'generated-autoload-file)
516 (current-buffer)))) 516 (current-buffer))))
517 ;; Ignore a buffer-local setting if it points to the
518 ;; global value. Otherwise we end up writing a mix of md5s
519 ;; and time-stamps to the global file. (Bug#10049)
520 (and secondary-autoloads-file-buf
521 outfile
522 (not otherbuf)
523 (setq secondary-autoloads-file-buf nil))
517 (with-current-buffer (marker-buffer output-start) 524 (with-current-buffer (marker-buffer output-start)
518 (save-excursion 525 (save-excursion
519 ;; Insert the section-header line which lists the file name 526 ;; Insert the section-header line which lists the file name