diff options
| author | Eshel Yaron | 2025-10-01 08:31:20 +0200 |
|---|---|---|
| committer | Eshel Yaron | 2025-10-01 08:31:20 +0200 |
| commit | 23ba18037b67cb8a0ff5d13be9d32609601910cc (patch) | |
| tree | 7c8281d04877e719bb77a86554bd1ff65af51d59 | |
| parent | 2447c1486eec084eb2fe5a433bbe61749b27155d (diff) | |
| download | emacs-23ba18037b67cb8a0ff5d13be9d32609601910cc.tar.gz emacs-23ba18037b67cb8a0ff5d13be9d32609601910cc.zip | |
; (elisp-scope-define-symbol-role): Add docstring.
| -rw-r--r-- | lisp/emacs-lisp/elisp-scope.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/elisp-scope.el b/lisp/emacs-lisp/elisp-scope.el index e27f7f69aac..0a336b2299f 100644 --- a/lisp/emacs-lisp/elisp-scope.el +++ b/lisp/emacs-lisp/elisp-scope.el | |||
| @@ -34,6 +34,14 @@ | |||
| 34 | (put name 'elisp-scope-role-properties props)) | 34 | (put name 'elisp-scope-role-properties props)) |
| 35 | 35 | ||
| 36 | (defmacro elisp-scope-define-symbol-role (name parents &rest props) | 36 | (defmacro elisp-scope-define-symbol-role (name parents &rest props) |
| 37 | "Define NAME as the name of a symbol role that inherits from PARENTS. | ||
| 38 | |||
| 39 | A symbol role is a symbol that Emacs uses to describe the role | ||
| 40 | of (other) symbols in ELisp source code. For example, the symbol role | ||
| 41 | `face' characterizes symbols that are face names. | ||
| 42 | |||
| 43 | PROPS is a plist specifying the properties of the new symbol role NAME. | ||
| 44 | NAME inherits properties that do not appear in PROPS from its PARENTS." | ||
| 37 | (declare (indent defun)) | 45 | (declare (indent defun)) |
| 38 | `(elisp-scope--define-symbol-role ',name ',parents ,(when props `(list ,@props)))) | 46 | `(elisp-scope--define-symbol-role ',name ',parents ,(when props `(list ,@props)))) |
| 39 | 47 | ||