Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
66fc2bf5
Commit
66fc2bf5
authored
Dec 14, 1995
by
Roland McGrath
Browse files
(generate-file-autoloads): If no buffer visiting FILE exists, read it into
a temp buffer for processing without visiting it.
parent
bf141a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lisp/emacs-lisp/autoload.el
lisp/emacs-lisp/autoload.el
+8
-2
No files found.
lisp/emacs-lisp/autoload.el
View file @
66fc2bf5
;;; autoload.el --- maintain autoloads in loaddefs.el.
;;; Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
;;; Copyright (C) 1991, 1992, 1993, 1994
, 1995
Free Software Foundation, Inc.
;;;
;; Author: Roland McGrath <roland@gnu.ai.mit.edu>
;; Keywords: maint
...
...
@@ -150,7 +150,13 @@ are used."
(
save-excursion
(
unwind-protect
(
progn
(
set-buffer
(
find-file-noselect
file
))
(
if
visited
(
set-buffer
visited
)
;; It is faster to avoid visiting the file.
(
set-buffer
(
get-buffer-create
" *generate-autoload-file*"
))
(
kill-all-local-variables
)
(
erase-buffer
)
(
insert-file-contents
file
nil
))
(
save-excursion
(
save-restriction
(
widen
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment