emacs-diffs
[Top][All Lists]
Advanced

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

master 97b8c0a: Make hi-lock-face-buffer more resilient


From: Lars Ingebrigtsen
Subject: master 97b8c0a: Make hi-lock-face-buffer more resilient
Date: Thu, 15 Oct 2020 11:45:21 -0400 (EDT)

branch: master
commit 97b8c0adc1d6ce42c43829e1270c0ccd13a82382
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make hi-lock-face-buffer more resilient
    
    * lisp/hi-lock.el (hi-lock-face-buffer): If given a face name a
    string, convert it to a symbol first, as later usage of this
    expects a symbol and not a string (bug#43339).
---
 lisp/hi-lock.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el
index a81cefa..536a1af 100644
--- a/lisp/hi-lock.el
+++ b/lisp/hi-lock.el
@@ -493,6 +493,8 @@ the major mode specifies support for Font Lock."
                     'regexp-history-last)))
     (hi-lock-read-face-name)
     current-prefix-arg))
+  (when (stringp face)
+    (setq face (intern face)))
   (or (facep face) (setq face 'hi-yellow))
   (unless hi-lock-mode (hi-lock-mode 1))
   (hi-lock-set-pattern



reply via email to

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