diff options
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 19b524ebb4f..cccfbedcfe1 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; autoload.el --- maintain autoloads in loaddefs.el. | 1 | ;;; autoload.el --- maintain autoloads in loaddefs.el. |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. | 3 | ;;; Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. |
| 4 | ;;; | 4 | ;;; |
| 5 | ;; Author: Roland McGrath <roland@gnu.ai.mit.edu> | 5 | ;; Author: Roland McGrath <roland@gnu.ai.mit.edu> |
| 6 | ;; Keywords: maint | 6 | ;; Keywords: maint |
| @@ -150,7 +150,13 @@ are used." | |||
| 150 | (save-excursion | 150 | (save-excursion |
| 151 | (unwind-protect | 151 | (unwind-protect |
| 152 | (progn | 152 | (progn |
| 153 | (set-buffer (find-file-noselect file)) | 153 | (if visited |
| 154 | (set-buffer visited) | ||
| 155 | ;; It is faster to avoid visiting the file. | ||
| 156 | (set-buffer (get-buffer-create " *generate-autoload-file*")) | ||
| 157 | (kill-all-local-variables) | ||
| 158 | (erase-buffer) | ||
| 159 | (insert-file-contents file nil)) | ||
| 154 | (save-excursion | 160 | (save-excursion |
| 155 | (save-restriction | 161 | (save-restriction |
| 156 | (widen) | 162 | (widen) |