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

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

[nongnu] elpa/symbol-overlay a37404a6a0 097/152: Merge pull request #26


From: ELPA Syncer
Subject: [nongnu] elpa/symbol-overlay a37404a6a0 097/152: Merge pull request #26 from jguenther/patch-1
Date: Thu, 7 Jul 2022 12:04:18 -0400 (EDT)

branch: elpa/symbol-overlay
commit a37404a6a0e76ee2033d3ab31c2248d30c89c63a
Merge: f4737b401a 2b565ba9ec
Author: wolray <290061869@qq.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #26 from jguenther/patch-1
    
    Fix error in symbol-overlay-ignore-function-python
---
 symbol-overlay.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/symbol-overlay.el b/symbol-overlay.el
index 23a130d027..e63a5f2f54 100644
--- a/symbol-overlay.el
+++ b/symbol-overlay.el
@@ -389,7 +389,11 @@ If SHOW-COLOR is non-nil, display the color used by 
current overlay."
 (defvar python-font-lock-keywords)
 (defun symbol-overlay-ignore-function-python (symbol)
   "Determine whether SYMBOL should be ignored (Python)."
-  (string-match-p (car python-font-lock-keywords) symbol))
+  (let* ((keyword-symbol (car python-font-lock-keywords))
+         (keyword (if (stringp keyword-symbol)
+                      keyword-symbol
+                    (symbol-name keyword-symbol))))
+    (string-match-p keyword symbol)))
 
 ;;;###autoload
 (defun symbol-overlay-put ()



reply via email to

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