85
85
(message " Using load-path %s " load-path)
86
86
87
87
; ; This is a poor man's `last' , since we haven't loaded subr.el yet.
88
- (if (or (equal (member " bootstrap" command-line-args) '(" bootstrap" ))
89
- (equal (member " dump" command-line-args) '(" dump" )))
88
+ (if (and (fboundp 'dump-emacs )
89
+ (or (equal (member " bootstrap" command-line-args) '(" bootstrap" ))
90
+ (equal (member " dump" command-line-args) '(" dump" ))))
90
91
(progn
91
92
; ; To reduce the size of dumped Emacs, we avoid making huge char-tables.
92
93
(setq inhibit-load-charset-map t )
@@ -345,12 +346,14 @@ lost after dumping")))
345
346
; ; in non-ASCII directories is to manipulate unibyte strings in the
346
347
; ; current locale's encoding.
347
348
(if (and (member (car (last command-line-args)) '(" dump" " bootstrap" ))
349
+ (fboundp 'dump-emacs )
348
350
(multibyte-string-p default-directory))
349
351
(error " default-directory must be unibyte when dumping Emacs! " ))
350
352
351
353
; ; Determine which build number to use
352
354
; ; based on the executables that now exist.
353
355
(if (and (equal (last command-line-args) '(" dump" ))
356
+ (fboundp 'dump-emacs )
354
357
(not (eq system-type 'ms-dos )))
355
358
(let* ((base (concat " emacs-" emacs-version " ." ))
356
359
(exelen (if (eq system-type 'windows-nt ) -4 ))
@@ -368,7 +371,8 @@ lost after dumping")))
368
371
369
372
370
373
(message " Finding pointers to doc strings... " )
371
- (if (equal (last command-line-args) '(" dump" ))
374
+ (if (and (fboundp 'dump-emacs )
375
+ (equal (last command-line-args) '(" dump" )))
372
376
(Snarf-documentation " DOC" )
373
377
(condition-case nil
374
378
(Snarf-documentation " DOC" )
@@ -437,7 +441,8 @@ lost after dumping")))
437
441
; ; Make sure we will attempt bidi reordering henceforth.
438
442
(setq redisplay--inhibit-bidi nil )
439
443
440
- (if (member (car (last command-line-args)) '(" dump" " bootstrap" ))
444
+ (if (and (fboundp 'dump-emacs )
445
+ (member (car (last command-line-args)) '(" dump" " bootstrap" )))
441
446
(progn
442
447
; ; Prevent build-time PATH getting stored in the binary.
443
448
; ; Mainly cosmetic, but helpful for Guix. (Bug#20330)
0 commit comments