[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/raeburn-startup 98025ef 31/43: Retain overlay prop
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] scratch/raeburn-startup 98025ef 31/43: Retain overlay properties when dumping. |
Date: |
Mon, 31 Jul 2017 02:11:04 -0400 (EDT) |
branch: scratch/raeburn-startup
commit 98025ef515a43a633a5330b60c2f04cda969e9cc
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>
Retain overlay properties when dumping.
* lisp/loadup.el: When dumping an overlay, save the properties and
attach them to the newly created overlay at load time.
---
lisp/loadup.el | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/lisp/loadup.el b/lisp/loadup.el
index d0f954f..12c7d2d 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -553,9 +553,17 @@ lost after dumping")))
((and (markerp v) (null (marker-buffer v)))
'(make-marker))
((and (overlayp v) (null (overlay-buffer v)))
- '(let ((ol (make-overlay (point-min) (point-min))))
- (delete-overlay ol)
- ol))
+ (let (propsets
+ (props (overlay-properties v)))
+ (while props
+ (let ((prop (car props))
+ (val (cadr props)))
+ (push `(overlay-put ol ',prop ',val) propsets)
+ (setq props (cddr props))))
+ `(let ((ol (make-overlay (point-min) (point-min))))
+ ,@propsets
+ (delete-overlay ol)
+ ol)))
;; abbrev-table-p isn't very robust
((condition-case nil
(abbrev-table-p v)
- [Emacs-diffs] scratch/raeburn-startup ee0638c 18/43: Create frame's face cache., (continued)
- [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
- [Emacs-diffs] scratch/raeburn-startup 89bfbf7 38/43: * lisp/loadup.el: Drop several more variables from dumped.elc., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup e69daac 21/43: Fix build on Cygwin, Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 98025ef 31/43: Retain overlay properties when dumping.,
Ken Raeburn <=
- [Emacs-diffs] scratch/raeburn-startup f6793d2 41/43: Don't use byte-compile-dynamic for stuff we're going to load., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 9664101 16/43: Load dumped.elc quietly., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup cc22b26 19/43: Don't save internal--text-quoting-flag., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 3da90ae 32/43: Make watchers dumpable., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 363abae 30/43: Support dumping variable aliases., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 291e585 24/43: Update load-path and purify-flag even if not bootstrapping., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup 2c96099 27/43: Don't dump artifacts of the dump process., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup bd8bcb3 29/43: Load uniquify after dump/reload., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup d987a68 39/43: Don't show the build directory in load-history., Ken Raeburn, 2017/07/31
- [Emacs-diffs] scratch/raeburn-startup de45051 37/43: Fix use of "-l" on command line after installation., Ken Raeburn, 2017/07/31