1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; (elisp-scope-define-symbol-role): Add docstring.

This commit is contained in:
Eshel Yaron 2025-10-01 08:31:20 +02:00
parent 2447c1486e
commit 23ba18037b
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618

View file

@ -34,6 +34,14 @@
(put name 'elisp-scope-role-properties props))
(defmacro elisp-scope-define-symbol-role (name parents &rest props)
"Define NAME as the name of a symbol role that inherits from PARENTS.
A symbol role is a symbol that Emacs uses to describe the role
of (other) symbols in ELisp source code. For example, the symbol role
`face' characterizes symbols that are face names.
PROPS is a plist specifying the properties of the new symbol role NAME.
NAME inherits properties that do not appear in PROPS from its PARENTS."
(declare (indent defun))
`(elisp-scope--define-symbol-role ',name ',parents ,(when props `(list ,@props))))