emacs-diffs
[Top][All Lists]
Advanced

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

scratch/bug-42149-funny-pcm-completion-scores 00ff781 6/6: Slightly simp


From: João Távora
Subject: scratch/bug-42149-funny-pcm-completion-scores 00ff781 6/6: Slightly simplify completion-pcm--hilit-commonality
Date: Mon, 28 Dec 2020 04:29:27 -0500 (EST)

branch: scratch/bug-42149-funny-pcm-completion-scores
commit 00ff78145909857b4373e7af46aa730d68133bfe
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Slightly simplify completion-pcm--hilit-commonality
    
    bug#42149
    
    Two superfloous calls to the update-score local function were removed.
    
    * lisp/minibuffer.el (completion-pcm--hilit-commonality): Simplify.
---
 lisp/minibuffer.el | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index d0ff0d4..4c912b5 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -3319,7 +3319,6 @@ with a numeric property `completion-score'."
                                                     
flex-score-match-tightness)))))
                    (setq
                     last-b              b))))
-           (funcall update-score start start)
            (while md
              (funcall update-score start (car md))
              (add-face-text-property
@@ -3327,7 +3326,6 @@ with a numeric property `completion-score'."
               'completions-common-part
               nil str)
              (setq start (pop md)))
-           (funcall update-score len len)
            (add-face-text-property
             start end
             'completions-common-part



reply via email to

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