mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 07:40:39 -08:00
; elisp-scope.el: Simplify 'custom-declare-face' analyzer.
This commit is contained in:
parent
8c7b4391a5
commit
b9aa420bc4
2 changed files with 11 additions and 4 deletions
|
|
@ -1835,10 +1835,7 @@ ARGS bound to the analyzed arguments."
|
|||
|
||||
(elisp-scope-define-function-analyzer custom-declare-face (face spec doc &rest args)
|
||||
(elisp-scope-1 face '(symbol . defface))
|
||||
;; TODO: Use `elisp-scope-1' with an appropriate outspec.
|
||||
(if-let* ((q (elisp-scope--unquote spec)))
|
||||
(when (consp q) (dolist (s q) (elisp-scope-face (cdr s))))
|
||||
(elisp-scope-1 spec))
|
||||
(elisp-scope-1 spec '(repeat . (cons t . (plist (:inherit . (symbol . face))))))
|
||||
(elisp-scope-1 doc)
|
||||
(while-let ((kw (car-safe args))
|
||||
(bkw (elisp-scope--sym-bare kw))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue