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

; elisp-scope.el: Rename 'declaration' role.

* lisp/emacs-lisp/elisp-scope.el (declaration): Rename to
'function-property-declaration'.
(elisp-scope-lambda):
* lisp/progmodes/elisp-mode.el
(elisp-function-property-declaration): Update accordingly.
This commit is contained in:
Eshel Yaron 2025-10-01 08:42:40 +02:00
parent a7c1b126fa
commit 3cff47ec75
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618
2 changed files with 7 additions and 7 deletions

View file

@ -242,10 +242,10 @@ NAME inherits properties that do not appear in PROPS from its PARENTS."
:imenu "Feature"
:help (cl-constantly "Feature definition"))
(elisp-scope-define-symbol-role declaration ()
:doc "Function attribute declaration types."
:face 'elisp-declaration
:help (cl-constantly "Declaration"))
(elisp-scope-define-symbol-role function-property-declaration ()
:doc "Function/macro property declaration types."
:face 'elisp-function-property-declaration
:help (cl-constantly "Function/macro property declaration"))
(elisp-scope-define-symbol-role rx-construct ()
:doc "`rx' constructs."
@ -637,7 +637,7 @@ Optional argument LOCAL is a local context to extend."
(when-let* ((head (car-safe spec))
(bare (elisp-scope-sym-bare head)))
(when (symbol-with-pos-p head)
(elisp-scope-report 'declaration
(elisp-scope-report 'function-property-declaration
(symbol-with-pos-pos head)
(length (symbol-name bare))))
(cl-case bare