[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/raeburn-startup d85d26b 10/43: Eli's test patch to
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] scratch/raeburn-startup d85d26b 10/43: Eli's test patch to stop using dump-emacs. |
Date: |
Mon, 31 Jul 2017 02:10:59 -0400 (EDT) |
branch: scratch/raeburn-startup
commit d85d26bc75c9fa7481f2d62ee80f5c7e65211798
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>
Eli's test patch to stop using dump-emacs.
---
lisp/loadup.el | 42 +++++++++++++++++++++++-------------------
1 file changed, 23 insertions(+), 19 deletions(-)
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 2c8ab52..0df27ad 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -461,27 +461,30 @@ lost after dumping")))
;; confused people installing Emacs (they'd install the file
;; under the name `xemacs'), and it's inconsistent with every
;; other GNU program's build process.
- (dump-emacs "emacs" "temacs")
- (message "%d pure bytes used" pure-bytes-used)
- ;; Recompute NAME now, so that it isn't set when we dump.
- (if (not (or (eq system-type 'ms-dos)
- ;; Don't bother adding another name if we're just
- ;; building bootstrap-emacs.
- (equal (last command-line-args) '("bootstrap"))))
- (let ((name (format "emacs-%s.%d" emacs-version emacs-build-number))
- (exe (if (eq system-type 'windows-nt) ".exe" "")))
- (while (string-match "[^-+_.a-zA-Z0-9]+" name)
- (setq name (concat (downcase (substring name 0 (match-beginning
0)))
+ ;; (dump-emacs "emacs" "temacs")
+ ;; (message "%d pure bytes used" pure-bytes-used)
+ (let ((exe (if (memq system-type '(windows-nt ms-dos)) ".exe" "")))
+ (copy-file (expand-file-name (concat "temacs" exe)
invocation-directory)
+ (expand-file-name (concat "emacs" exe) invocation-directory)
+ t)
+ ;; Recompute NAME now, so that it isn't set when we dump.
+ (if (not (or (eq system-type 'ms-dos)
+ ;; Don't bother adding another name if we're just
+ ;; building bootstrap-emacs.
+ (equal (last command-line-args) '("bootstrap"))))
+ (let ((name (format "emacs-%s.%d" emacs-version
emacs-build-number)))
+ (while (string-match "[^-+_.a-zA-Z0-9]+" name)
+ (setq name (concat (downcase (substring name 0
(match-beginning 0)))
"-"
(substring name (match-end 0)))))
- (setq name (concat name exe))
- (message "Adding name %s" name)
- ;; When this runs on Windows, invocation-directory is not
- ;; necessarily the current directory.
- (add-name-to-file (expand-file-name (concat "emacs" exe)
- invocation-directory)
- (expand-file-name name invocation-directory)
- t)))
+ (setq name (concat name exe))
+ (message "Adding name %s" name)
+ ;; When this runs on Windows, invocation-directory is not
+ ;; necessarily the current directory.
+ (add-name-to-file (expand-file-name (concat "emacs" exe)
+ invocation-directory)
+ (expand-file-name name invocation-directory)
+ t))))
(message "Dumping into dumped.elc...preparing...")
;; Dump the current state into a file so we can reload it!
@@ -558,6 +561,7 @@ lost after dumping")))
obarray)
(message "Dumping into dumped.elc...printing...")
(with-current-buffer (generate-new-buffer "dumped.elc")
+ (setq default-directory invocation-directory)
(insert ";address@hidden@address@hidden;;; Compiled\n;;; in Emacs
version "
emacs-version "\n")
(let ((print-circle t)
- [Emacs-diffs] branch scratch/raeburn-startup created (now 13f3370), Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 1c4b68d 03/43: Force purification off when using dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup bd42a5a 02/43: Increase gc-cons-threshold., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 250c9ad 04/43: Don't get into an error loop if dumped.elc isn't found., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 1184a17 08/43: Don't dump a copy of the obarray., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 8ec5f5a 11/43: Don't trash current-load-list while loading dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 19efb25 09/43: Use #N# syntax for repeated symbols in dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 4a6ef22 12/43: Save and restore default values, and buffer-local setting., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup d85d26b 10/43: Eli's test patch to stop using dump-emacs.,
Ken Raeburn <=
- [Emacs-diffs] scratch/raeburn-startup e7fcd8a 14/43: Reload category table at startup rather than saving it., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 406bfc4 15/43: Call unify-charset on appropriate charsets., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup ee0638c 18/43: Create frame's face cache., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 7414991 01/43: Stefan's patch to write out and load "dumped.elc"; Oct 31 version., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup fd03b6b 07/43: Dump defvars for special variables only., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup cd1a407 05/43: Create *Messages* buffer when loading dumped data., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 711bff0 06/43: Don't memset storage we're about to fill anyway., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 76ee58e 17/43: Don't save coding-system-list., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup a47fa80 13/43: Dump and restore the standard syntax table., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 23b10de 22/43: Disable "before-dump" memory allocation on MS-Windows, Ken Raeburn, 2017/07/31