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

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

[elpa] externals/eglot ef95839 05/22: Adjust active param highlighting i


From: João Távora
Subject: [elpa] externals/eglot ef95839 05/22: Adjust active param highlighting in first line of signature (3/3)
Date: Sat, 5 Jan 2019 09:31:02 -0500 (EST)

branch: externals/eglot
commit ef958399158eda117bff28c408d47b6eb969fd16
Author: Fredrik Bergroth <address@hidden>
Commit: João Távora <address@hidden>

    Adjust active param highlighting in first line of signature (3/3)
    
    Highlight only first active parameter match (even if there are many)
    
    Copyright-paperwork-exempt: yes
    
    * eglot.el (eglot--sig-info): Simplify.
---
 eglot.el | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/eglot.el b/eglot.el
index ae18493..01f6960 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1962,13 +1962,10 @@ is not active."
              (goto-char params-start)
              (let ((regex (concat "\\<" (regexp-quote label) "\\>"))
                    (case-fold-search nil))
-               (cl-loop for nmatches from 0
-                        while (re-search-forward regex params-end t)
-                        finally do
-                        (when (= 1 nmatches)
-                          (add-face-text-property
-                           (- (point) (length label)) (point)
-                           'eldoc-highlight-function-argument))))
+               (when (re-search-forward regex params-end t)
+                 (add-face-text-property
+                  (- (point) (length label)) (point)
+                  'eldoc-highlight-function-argument)))
              (when documentation
                (goto-char (point-max))
                (insert "\n"



reply via email to

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