diff options
| author | Glenn Morris | 2011-02-23 19:53:27 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-23 19:53:27 -0800 |
| commit | 2d8a57efcb7f5c2b39dd4319bc4f17c6bff20635 (patch) | |
| tree | 3dd8684943efe35a4ed94e5b6075015a9a961679 | |
| parent | fa41748c1425908789f9c5e5beab7b4850e8b279 (diff) | |
| download | emacs-2d8a57efcb7f5c2b39dd4319bc4f17c6bff20635.tar.gz emacs-2d8a57efcb7f5c2b39dd4319bc4f17c6bff20635.zip | |
Avoid some possible prompts from autoloads.el.
* lisp/emacs-lisp/autoload.el (autoload-save-buffers)
(autoload-find-destination, update-directory-autoloads):
Avoid prompts when updating autoloads.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 16 |
2 files changed, 16 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 33f39c00a60..28d09e7b2c8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-02-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/autoload.el (autoload-save-buffers) | ||
| 4 | (autoload-find-destination, update-directory-autoloads): | ||
| 5 | Avoid prompts when updating autoloads. | ||
| 6 | |||
| 1 | 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2011-02-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete. | 9 | * emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete. |
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 7b610d11b0f..d6e7ee9e3cb 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -537,7 +537,8 @@ Return non-nil if and only if FILE adds no autoloads to OUTFILE | |||
| 537 | (defun autoload-save-buffers () | 537 | (defun autoload-save-buffers () |
| 538 | (while autoload-modified-buffers | 538 | (while autoload-modified-buffers |
| 539 | (with-current-buffer (pop autoload-modified-buffers) | 539 | (with-current-buffer (pop autoload-modified-buffers) |
| 540 | (save-buffer)))) | 540 | (let ((version-control 'never)) |
| 541 | (save-buffer))))) | ||
| 541 | 542 | ||
| 542 | ;;;###autoload | 543 | ;;;###autoload |
| 543 | (defun update-file-autoloads (file &optional save-after) | 544 | (defun update-file-autoloads (file &optional save-after) |
| @@ -569,8 +570,9 @@ removes any prior now out-of-date autoload entries." | |||
| 569 | (with-current-buffer | 570 | (with-current-buffer |
| 570 | ;; We used to use `raw-text' to read this file, but this causes | 571 | ;; We used to use `raw-text' to read this file, but this causes |
| 571 | ;; problems when the file contains non-ASCII characters. | 572 | ;; problems when the file contains non-ASCII characters. |
| 572 | (find-file-noselect | 573 | (let ((enable-local-variables :safe)) |
| 573 | (autoload-ensure-default-file (autoload-generated-file))) | 574 | (find-file-noselect |
| 575 | (autoload-ensure-default-file (autoload-generated-file)))) | ||
| 574 | ;; This is to make generated-autoload-file have Unix EOLs, so | 576 | ;; This is to make generated-autoload-file have Unix EOLs, so |
| 575 | ;; that it is portable to all platforms. | 577 | ;; that it is portable to all platforms. |
| 576 | (or (eq 0 (coding-system-eol-type buffer-file-coding-system)) | 578 | (or (eq 0 (coding-system-eol-type buffer-file-coding-system)) |
| @@ -656,8 +658,9 @@ directory or directories specified." | |||
| 656 | (autoload-modified-buffers nil)) | 658 | (autoload-modified-buffers nil)) |
| 657 | 659 | ||
| 658 | (with-current-buffer | 660 | (with-current-buffer |
| 659 | (find-file-noselect | 661 | (let ((enable-local-variables :safe)) |
| 660 | (autoload-ensure-default-file (autoload-generated-file))) | 662 | (find-file-noselect |
| 663 | (autoload-ensure-default-file (autoload-generated-file)))) | ||
| 661 | (save-excursion | 664 | (save-excursion |
| 662 | 665 | ||
| 663 | ;; Canonicalize file names and remove the autoload file itself. | 666 | ;; Canonicalize file names and remove the autoload file itself. |
| @@ -721,7 +724,8 @@ directory or directories specified." | |||
| 721 | (current-buffer) nil nil no-autoloads this-time) | 724 | (current-buffer) nil nil no-autoloads this-time) |
| 722 | (insert generate-autoload-section-trailer)) | 725 | (insert generate-autoload-section-trailer)) |
| 723 | 726 | ||
| 724 | (save-buffer) | 727 | (let ((version-control 'never)) |
| 728 | (save-buffer)) | ||
| 725 | ;; In case autoload entries were added to other files because of | 729 | ;; In case autoload entries were added to other files because of |
| 726 | ;; file-local autoload-generated-file settings. | 730 | ;; file-local autoload-generated-file settings. |
| 727 | (autoload-save-buffers)))) | 731 | (autoload-save-buffers)))) |