]> git.eshelyaron.com Git - emacs.git/commitdiff
hmmm scratch/icomplete-lazy-highlight-no-string-props
authorJoão Távora <joaotavora@gmail.com>
Mon, 16 Aug 2021 17:34:47 +0000 (18:34 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 16 Aug 2021 18:11:32 +0000 (19:11 +0100)
* lisp/minibuffer.el (completion--get-lazy-hilit-re):
(completion--flex-get-completion-score): New functions.
(completion--flex-adjust-metadata): Use
completion--flex-get-completion-score.
(completion-lazy-hilit): Use completion--get-lazy-hilit-re.

lisp/minibuffer.el

index 2660c9d1a01de2bcf4ae6b8575f68cc23d790ad3..463f02ab1e32f471a3972a5f2cb28e0c3ee8d072 100644 (file)
@@ -3544,7 +3544,7 @@ advantage of this, look in the source of
 (defvar completion--lazy-highlight-cache
   (make-hash-table :weakness 'key))
 
-(defvar completion--score-map (make-hash-table :size (obarray-size obarray)))
+(defvar completion--score-map (make-hash-table :test 'eq))
 
 (defun completion--get-lazy-hilit-re ()
   "Helper for `completion-lazy-hilit'."