diff options
| author | Phillip Lord | 2017-01-20 15:13:27 +0000 |
|---|---|---|
| committer | Phillip Lord | 2017-01-21 19:46:20 +0000 |
| commit | 2162e36bb795b56b2aa562937a67180d9e8a20f4 (patch) | |
| tree | 60171191fe22d8bd81c1d670c4459d2ca3e48813 | |
| parent | 5c6fe1a5810d4823263b1314a073dce5be0f6562 (diff) | |
| download | emacs-2162e36bb795b56b2aa562937a67180d9e8a20f4.tar.gz emacs-2162e36bb795b56b2aa562937a67180d9e8a20f4.zip | |
Remove conditional includes from bootstrap
* lisp/loadup.el: No longer load optional includes during bootstrap
dumping.
* lisp/ldefs-boot-auto.el: Regenerated.
Previously, bootstrap-emacs includes optional functionality, depending
on the platform which is not needed for bootstrap function. As a result,
bootstrap-emacs contains different functions in different
circumstances. If ldefs-boot-auto.el is generated, then loaded functions
will not be added to ldefs-boot-auto.el, although they may be required
during some builds. With this change, bootstrap-emacs should always
behave the same way and, therefore, require the same autoloads.
| -rw-r--r-- | lisp/ldefs-boot-auto.el | 8 | ||||
| -rw-r--r-- | lisp/loadup.el | 122 |
2 files changed, 72 insertions, 58 deletions
diff --git a/lisp/ldefs-boot-auto.el b/lisp/ldefs-boot-auto.el index 020c6707a00..66147173d50 100644 --- a/lisp/ldefs-boot-auto.el +++ b/lisp/ldefs-boot-auto.el | |||
| @@ -87,7 +87,14 @@ | |||
| 87 | (autoload 'help-xref-button "help-mode" nil nil nil) | 87 | (autoload 'help-xref-button "help-mode" nil nil nil) |
| 88 | (autoload 'hi-lock-face-buffer "hi-lock" nil nil nil) | 88 | (autoload 'hi-lock-face-buffer "hi-lock" nil nil nil) |
| 89 | (autoload 'html-mode "sgml-mode" nil nil nil) | 89 | (autoload 'html-mode "sgml-mode" nil nil nil) |
| 90 | (autoload 'image-type "image" nil nil nil) | ||
| 91 | (autoload 'image-type-auto-detected-p "image" nil nil nil) | ||
| 90 | (autoload 'image-type-available-p "image" nil nil nil) | 92 | (autoload 'image-type-available-p "image" nil nil nil) |
| 93 | (autoload 'image-type-from-buffer "image" nil nil nil) | ||
| 94 | (autoload 'image-type-from-data "image" nil nil nil) | ||
| 95 | (autoload 'image-type-from-file-header "image" nil nil nil) | ||
| 96 | (autoload 'image-type-from-file-name "image" nil nil nil) | ||
| 97 | (autoload 'imagemagick-register-types "image" nil nil nil) | ||
| 91 | (autoload 'info "info" nil nil nil) | 98 | (autoload 'info "info" nil nil nil) |
| 92 | (autoload 'info-complete-symbol "info-look" nil nil nil) | 99 | (autoload 'info-complete-symbol "info-look" nil nil nil) |
| 93 | (autoload 'info-emacs-manual "info" nil nil nil) | 100 | (autoload 'info-emacs-manual "info" nil nil nil) |
| @@ -132,6 +139,7 @@ | |||
| 132 | (autoload 'time-to-days "time-date" nil nil nil) | 139 | (autoload 'time-to-days "time-date" nil nil nil) |
| 133 | (autoload 'timezone-make-date-arpa-standard "timezone" nil nil nil) | 140 | (autoload 'timezone-make-date-arpa-standard "timezone" nil nil nil) |
| 134 | (autoload 'tmm-menubar "tmm" nil nil nil) | 141 | (autoload 'tmm-menubar "tmm" nil nil nil) |
| 142 | (autoload 'tool-bar-add-item-from-menu "tool-bar" nil nil nil) | ||
| 135 | (autoload 'truncate-string-to-width "mule-util" nil nil nil) | 143 | (autoload 'truncate-string-to-width "mule-util" nil nil nil) |
| 136 | (autoload 'ucs-normalize-HFS-NFC-region "ucs-normalize" nil nil nil) | 144 | (autoload 'ucs-normalize-HFS-NFC-region "ucs-normalize" nil nil nil) |
| 137 | (autoload 'ucs-normalize-HFS-NFD-region "ucs-normalize" nil nil nil) | 145 | (autoload 'ucs-normalize-HFS-NFD-region "ucs-normalize" nil nil nil) |
diff --git a/lisp/loadup.el b/lisp/loadup.el index ecb72840c43..9fe52fb6e20 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -230,8 +230,11 @@ | |||
| 230 | (load "jit-lock") | 230 | (load "jit-lock") |
| 231 | 231 | ||
| 232 | (load "mouse") | 232 | (load "mouse") |
| 233 | (if (boundp 'x-toolkit-scroll-bars) | 233 | |
| 234 | (load "scroll-bar")) | 234 | (unless (equal (member "bootstrap" command-line-args) '("bootstrap")) |
| 235 | (if (boundp 'x-toolkit-scroll-bars) | ||
| 236 | (load "scroll-bar"))) | ||
| 237 | |||
| 235 | (load "select") | 238 | (load "select") |
| 236 | (load "emacs-lisp/timer") | 239 | (load "emacs-lisp/timer") |
| 237 | (load "isearch") | 240 | (load "isearch") |
| @@ -253,61 +256,62 @@ | |||
| 253 | (load "emacs-lisp/tabulated-list") | 256 | (load "emacs-lisp/tabulated-list") |
| 254 | (load "buff-menu") | 257 | (load "buff-menu") |
| 255 | 258 | ||
| 256 | (if (fboundp 'x-create-frame) | 259 | (unless (equal (member "bootstrap" command-line-args) '("bootstrap")) |
| 257 | (progn | 260 | (if (fboundp 'x-create-frame) |
| 258 | (load "fringe") | 261 | (progn |
| 259 | ;; Needed by `imagemagick-register-types' | 262 | (load "fringe") |
| 260 | (load "emacs-lisp/regexp-opt") | 263 | ;; Needed by `imagemagick-register-types' |
| 261 | (load "image") | 264 | (load "emacs-lisp/regexp-opt") |
| 262 | (load "international/fontset") | 265 | (load "image") |
| 263 | (load "dnd") | 266 | (load "international/fontset") |
| 264 | (load "tool-bar"))) | 267 | (load "dnd") |
| 265 | 268 | (load "tool-bar"))) | |
| 266 | (if (featurep 'dynamic-setting) | 269 | |
| 267 | (load "dynamic-setting")) | 270 | (if (featurep 'dynamic-setting) |
| 268 | 271 | (load "dynamic-setting")) | |
| 269 | (if (featurep 'x) | 272 | |
| 270 | (progn | 273 | (if (featurep 'x) |
| 271 | (load "x-dnd") | 274 | (progn |
| 272 | (load "term/common-win") | 275 | (load "x-dnd") |
| 273 | (load "term/x-win"))) | 276 | (load "term/common-win") |
| 274 | 277 | (load "term/x-win"))) | |
| 275 | (if (or (eq system-type 'windows-nt) | 278 | |
| 276 | (featurep 'w32)) | 279 | (if (or (eq system-type 'windows-nt) |
| 277 | (progn | 280 | (featurep 'w32)) |
| 278 | (load "term/common-win") | 281 | (progn |
| 279 | (load "w32-vars") | 282 | (load "term/common-win") |
| 280 | (load "term/w32-win") | 283 | (load "w32-vars") |
| 281 | (load "disp-table") | 284 | (load "term/w32-win") |
| 282 | (when (eq system-type 'windows-nt) | 285 | (load "disp-table") |
| 283 | (load "w32-fns") | 286 | (when (eq system-type 'windows-nt) |
| 287 | (load "w32-fns") | ||
| 288 | (load "ls-lisp") | ||
| 289 | (load "dos-w32")))) | ||
| 290 | (if (eq system-type 'ms-dos) | ||
| 291 | (progn | ||
| 292 | (load "dos-w32") | ||
| 293 | (load "dos-fns") | ||
| 294 | (load "dos-vars") | ||
| 295 | ;; Don't load term/common-win: it isn't appropriate for the `pc' | ||
| 296 | ;; ``window system'', which generally behaves like a terminal. | ||
| 297 | (load "term/internal") | ||
| 298 | (load "term/pc-win") | ||
| 284 | (load "ls-lisp") | 299 | (load "ls-lisp") |
| 285 | (load "dos-w32")))) | 300 | (load "disp-table"))) ; needed to setup ibm-pc char set, see internal.el |
| 286 | (if (eq system-type 'ms-dos) | 301 | (if (featurep 'ns) |
| 287 | (progn | 302 | (progn |
| 288 | (load "dos-w32") | 303 | (load "term/common-win") |
| 289 | (load "dos-fns") | 304 | ;; Don't load ucs-normalize.el unless uni-*.el files were |
| 290 | (load "dos-vars") | 305 | ;; already produced, because it needs uni-*.el files that might |
| 291 | ;; Don't load term/common-win: it isn't appropriate for the `pc' | 306 | ;; not be built early enough during bootstrap. |
| 292 | ;; ``window system'', which generally behaves like a terminal. | 307 | (when (load-history-filename-element "charprop\\.el") |
| 293 | (load "term/internal") | 308 | (load "international/mule-util") |
| 294 | (load "term/pc-win") | 309 | (load "international/ucs-normalize") |
| 295 | (load "ls-lisp") | 310 | (load "term/ns-win")))) |
| 296 | (load "disp-table"))) ; needed to setup ibm-pc char set, see internal.el | 311 | (if (fboundp 'x-create-frame) |
| 297 | (if (featurep 'ns) | 312 | ;; Do it after loading term/foo-win.el since the value of the |
| 298 | (progn | 313 | ;; mouse-wheel-*-event vars depends on those files being loaded or not. |
| 299 | (load "term/common-win") | 314 | (load "mwheel"))) |
| 300 | ;; Don't load ucs-normalize.el unless uni-*.el files were | ||
| 301 | ;; already produced, because it needs uni-*.el files that might | ||
| 302 | ;; not be built early enough during bootstrap. | ||
| 303 | (when (load-history-filename-element "charprop\\.el") | ||
| 304 | (load "international/mule-util") | ||
| 305 | (load "international/ucs-normalize") | ||
| 306 | (load "term/ns-win")))) | ||
| 307 | (if (fboundp 'x-create-frame) | ||
| 308 | ;; Do it after loading term/foo-win.el since the value of the | ||
| 309 | ;; mouse-wheel-*-event vars depends on those files being loaded or not. | ||
| 310 | (load "mwheel")) | ||
| 311 | ;; Preload some constants and floating point functions. | 315 | ;; Preload some constants and floating point functions. |
| 312 | (load "emacs-lisp/float-sup") | 316 | (load "emacs-lisp/float-sup") |
| 313 | 317 | ||
| @@ -317,8 +321,10 @@ | |||
| 317 | (load "electric") | 321 | (load "electric") |
| 318 | (load "emacs-lisp/eldoc") | 322 | (load "emacs-lisp/eldoc") |
| 319 | (load "cus-start") ;Late to reduce customize-rogue (needs loaddefs.el anyway) | 323 | (load "cus-start") ;Late to reduce customize-rogue (needs loaddefs.el anyway) |
| 320 | (if (not (eq system-type 'ms-dos)) | 324 | |
| 321 | (load "tooltip")) | 325 | (unless (equal (member "bootstrap" command-line-args) '("bootstrap")) |
| 326 | (if (not (eq system-type 'ms-dos)) | ||
| 327 | (load "tooltip"))) | ||
| 322 | 328 | ||
| 323 | ;; This file doesn't exist when building a development version of Emacs | 329 | ;; This file doesn't exist when building a development version of Emacs |
| 324 | ;; from the repository. It is generated just after temacs is built. | 330 | ;; from the repository. It is generated just after temacs is built. |