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

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

[nongnu] elpa/symbol-overlay 2b565ba9ec 096/152: Fix error in symbol-ove


From: ELPA Syncer
Subject: [nongnu] elpa/symbol-overlay 2b565ba9ec 096/152: Fix error in symbol-overlay-ignore-function-python
Date: Thu, 7 Jul 2022 12:04:18 -0400 (EDT)

branch: elpa/symbol-overlay
commit 2b565ba9ecd8813446cf43054bbb8bf79fd956ae
Author: Justin Guenther <jguenther@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Fix error in symbol-overlay-ignore-function-python
    
    On emacs master, python-font-lock-keywords is now a list of symbols, not a 
list of strings.
    
    Fixes #25.
---
 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]