[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/raeburn-startup 1184a17 08/43: Don't dump a copy o
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] scratch/raeburn-startup 1184a17 08/43: Don't dump a copy of the obarray. |
Date: |
Mon, 31 Jul 2017 02:10:59 -0400 (EDT) |
branch: scratch/raeburn-startup
commit 1184a17f61549a5279ece2080cd12192cf8c4f66
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>
Don't dump a copy of the obarray.
The obarray was included by value in a function definition as a result
of apply-partial, but it writes out as a simple array and a lot of
chained symbols are discarded.
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-completion-table):
Rewrite definition to not directly incorporate the value of obarray.
---
lisp/progmodes/elisp-mode.el | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el
index b3f452c..11d741c 100644
--- a/lisp/progmodes/elisp-mode.el
+++ b/lisp/progmodes/elisp-mode.el
@@ -810,15 +810,21 @@ non-nil result supercedes the xrefs produced by
(push (elisp--xref-find-definitions sym) lst))
(nreverse lst))))
+;; This used to use apply-partially, but that turned "obarray" into a
+;; reference to the actual obarray, not the symbol, and that's
+;; incompatible with the dumper code.
(defvar elisp--xref-identifier-completion-table
- (apply-partially #'completion-table-with-predicate
- obarray
- (lambda (sym)
- (or (boundp sym)
- (fboundp sym)
- (featurep sym)
- (facep sym)))
- 'strict))
+ (lambda (string pred2 action)
+ (completion-table-with-predicate obarray
+ (lambda (sym)
+ (or (boundp sym)
+ (fboundp sym)
+ (featurep sym)
+ (facep sym)))
+ 'strict
+ string
+ pred2
+ action)))
(cl-defmethod xref-backend-identifier-completion-table ((_backend (eql elisp)))
elisp--xref-identifier-completion-table)
- [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 <=
- [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, 2017/07/31
- [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