emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/flx fb1ded43df 044/182: cache cons cell lists too


From: ELPA Syncer
Subject: [nongnu] elpa/flx fb1ded43df 044/182: cache cons cell lists too
Date: Tue, 13 Dec 2022 03:59:24 -0500 (EST)

branch: elpa/flx
commit fb1ded43df489c876a9a4799c93d6d4189a51ba2
Author: Le Wang <le.wang@agworld.com.au>
Commit: Le Wang <le.wang@agworld.com.au>

    cache cons cell lists too
---
 flx-ido.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/flx-ido.el b/flx-ido.el
index fb9ea25834..4815a46c77 100644
--- a/flx-ido.el
+++ b/flx-ido.el
@@ -148,9 +148,7 @@ item, in which case, the ending items are deleted."
   (concat ido-current-directory query))
 
 (defun flx-ido-cache (query items)
-  (if (consp (car items))
-      items
-    (puthash (flx-ido-key-for-query query) items 
flx-ido-narrowed-matches-hash)))
+  (puthash (flx-ido-key-for-query query) items flx-ido-narrowed-matches-hash))
 
 (defun flx-ido-match (query items)
   "Better sorting for flx ido matching."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]