diff options
| author | Stefan Monnier | 1999-10-13 00:21:07 +0000 |
|---|---|---|
| committer | Stefan Monnier | 1999-10-13 00:21:07 +0000 |
| commit | ce87039d4db7d3f0abcc42d17bce0ea3c619a52e (patch) | |
| tree | ad7fbb38867fe80e2afcc455ec64748f080ba4d4 | |
| parent | 1a7244d9c5d0dc6fddc90dff01ddc5fde08b26da (diff) | |
| download | emacs-ce87039d4db7d3f0abcc42d17bce0ea3c619a52e.tar.gz emacs-ce87039d4db7d3f0abcc42d17bce0ea3c619a52e.zip | |
* subr.el (with-current-buffer): don't use backquotes to avoid
bootstrapping problems.
loadup.el (load-path): add subdirs for bootstrapping.
(docstrings): ignore errors during bootstrapping.
(args): new `bootstrap' argument (for use in place of `dump').
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/loadup.el | 25 | ||||
| -rw-r--r-- | lisp/subr.el | 6 |
3 files changed, 32 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a0cc9ac8e60..742588131b8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 1999-10-12 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * subr.el (with-current-buffer): don't use backquotes to avoid | ||
| 4 | bootstrapping problems. | ||
| 5 | loadup.el (load-path): add subdirs for bootstrapping. | ||
| 6 | (docstrings): ignore errors during bootstrapping. | ||
| 7 | (args): new `bootstrap' argument (for use in place of `dump'). | ||
| 8 | |||
| 1 | 1999-10-12 Emmanuel Briot <briot@gnat.com> | 9 | 1999-10-12 Emmanuel Briot <briot@gnat.com> |
| 2 | 10 | ||
| 3 | * ada-stmt.el: Doc-string fixes. | 11 | * ada-stmt.el: Doc-string fixes. |
diff --git a/lisp/loadup.el b/lisp/loadup.el index 86122146a6e..ec1e2584e9a 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -28,6 +28,15 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | ;; add subdirectories to the load-path for files that might | ||
| 32 | ;; get autoloaded when bootstrapping | ||
| 33 | (if (or (equal (nth 3 command-line-args) "bootstrap") | ||
| 34 | (equal (nth 4 command-line-args) "bootstrap")) | ||
| 35 | (let ((path (car load-path))) | ||
| 36 | (setq load-path (list path | ||
| 37 | (expand-file-name "emacs-lisp" path) | ||
| 38 | (expand-file-name "international" path))))) | ||
| 39 | |||
| 31 | (message "Using load-path %s" load-path) | 40 | (message "Using load-path %s" load-path) |
| 32 | 41 | ||
| 33 | ;;; We don't want to have any undo records in the dumped Emacs. | 42 | ;;; We don't want to have any undo records in the dumped Emacs. |
| @@ -39,9 +48,10 @@ | |||
| 39 | ;; We specify .el in case someone compiled version.el by mistake. | 48 | ;; We specify .el in case someone compiled version.el by mistake. |
| 40 | (load "version.el") | 49 | (load "version.el") |
| 41 | 50 | ||
| 42 | (load "map-ynp") | ||
| 43 | (load "widget") | 51 | (load "widget") |
| 44 | (load "custom") | 52 | (load "custom") |
| 53 | (autoload '\` "emacs-lisp/backquote" nil nil 'macro) | ||
| 54 | (load "map-ynp") | ||
| 45 | (load "cus-start") | 55 | (load "cus-start") |
| 46 | (load "international/mule") | 56 | (load "international/mule") |
| 47 | (load "international/mule-conf.el") ;Don't get confused if someone compiled this by mistake. | 57 | (load "international/mule-conf.el") ;Don't get confused if someone compiled this by mistake. |
| @@ -204,7 +214,9 @@ | |||
| 204 | (delete-file name)) | 214 | (delete-file name)) |
| 205 | (copy-file (expand-file-name "../etc/DOC") name t)) | 215 | (copy-file (expand-file-name "../etc/DOC") name t)) |
| 206 | (Snarf-documentation (file-name-nondirectory name))) | 216 | (Snarf-documentation (file-name-nondirectory name))) |
| 207 | (Snarf-documentation "DOC")) | 217 | (condition-case nil |
| 218 | (Snarf-documentation "DOC") | ||
| 219 | (error nil))) | ||
| 208 | (message "Finding pointers to doc strings...done") | 220 | (message "Finding pointers to doc strings...done") |
| 209 | 221 | ||
| 210 | ;;;Note: You can cause additional libraries to be preloaded | 222 | ;;;Note: You can cause additional libraries to be preloaded |
| @@ -244,13 +256,18 @@ | |||
| 244 | (setq symbol-file-load-history-loaded t)) | 256 | (setq symbol-file-load-history-loaded t)) |
| 245 | (set-buffer-modified-p nil) | 257 | (set-buffer-modified-p nil) |
| 246 | 258 | ||
| 259 | ;; reset the load-path. See lread.c:init_lread why. | ||
| 260 | (if (or (equal (nth 3 command-line-args) "bootstrap") | ||
| 261 | (equal (nth 4 command-line-args) "bootstrap")) | ||
| 262 | (setcdr load-path nil)) | ||
| 263 | |||
| 247 | (garbage-collect) | 264 | (garbage-collect) |
| 248 | 265 | ||
| 249 | ;;; At this point, we're ready to resume undo recording for scratch. | 266 | ;;; At this point, we're ready to resume undo recording for scratch. |
| 250 | (buffer-enable-undo "*scratch*") | 267 | (buffer-enable-undo "*scratch*") |
| 251 | 268 | ||
| 252 | (if (or (equal (nth 3 command-line-args) "dump") | 269 | (if (or (member (nth 3 command-line-args) '("dump" "bootstrap")) |
| 253 | (equal (nth 4 command-line-args) "dump")) | 270 | (member (nth 4 command-line-args) '("dump" "bootstrap"))) |
| 254 | (if (eq system-type 'vax-vms) | 271 | (if (eq system-type 'vax-vms) |
| 255 | (progn | 272 | (progn |
| 256 | (message "Dumping data as file temacs.dump") | 273 | (message "Dumping data as file temacs.dump") |
diff --git a/lisp/subr.el b/lisp/subr.el index c2e01916f98..66c1986f4b5 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -977,9 +977,9 @@ Wildcards and redirection are handled as usual in the shell." | |||
| 977 | "Execute the forms in BODY with BUFFER as the current buffer. | 977 | "Execute the forms in BODY with BUFFER as the current buffer. |
| 978 | The value returned is the value of the last form in BODY. | 978 | The value returned is the value of the last form in BODY. |
| 979 | See also `with-temp-buffer'." | 979 | See also `with-temp-buffer'." |
| 980 | `(save-current-buffer | 980 | (cons 'save-current-buffer |
| 981 | (set-buffer ,buffer) | 981 | (cons (list 'set-buffer buffer) |
| 982 | ,@body)) | 982 | body))) |
| 983 | 983 | ||
| 984 | (defmacro with-temp-file (file &rest body) | 984 | (defmacro with-temp-file (file &rest body) |
| 985 | "Create a new buffer, evaluate BODY there, and write the buffer to FILE. | 985 | "Create a new buffer, evaluate BODY there, and write the buffer to FILE. |