From 2fcb87dd90737a134cab02fb178c7bf0a31cf8eb Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Thu, 22 Jun 2023 11:01:13 +0300 Subject: [PATCH] Refer to font-lock face directly instead of via variable * sweeprolog.el (sweeprolog-predicate-modes-doc): Avoid using deprecated "face variable". Thanks to Stefan Monnier for suggesting this improvement. --- sweeprolog.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sweeprolog.el b/sweeprolog.el index ff26ebf..3593616 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -4916,7 +4916,9 @@ accordingly." (when-let ((pi (sweeprolog-identifier-at-point)) (docs (sweeprolog--query-once "sweep" "sweep_documentation" pi))) - (funcall cb (car docs) :thing pi :face font-lock-function-name-face))) + (funcall cb (car docs) + :thing pi + :face 'font-lock-function-name-face))) ;;;; Top-level Menu -- 2.39.5