From: Eshel Yaron Date: Wed, 25 Jun 2025 15:45:05 +0000 (+0200) Subject: scope.el: Handle 'autoload' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5d96f55aad12f795f2edb934bfcc2716b01936e3;p=emacs.git scope.el: Handle 'autoload' --- diff --git a/lisp/emacs-lisp/scope.el b/lisp/emacs-lisp/scope.el index 980b45d0b9f..b2facc3b8dd 100644 --- a/lisp/emacs-lisp/scope.el +++ b/lisp/emacs-lisp/scope.el @@ -1869,6 +1869,11 @@ a (possibly empty) list of safe macros.") (scope-define-function-analyzer setopt--set (&optional var _val) (when-let ((q (scope--unqoute var))) (scope-report-s q 'variable))) +(scope-define-function-analyzer autoload (&optional func _file _doc int &rest _) + (when-let ((q (scope--unqoute func))) (scope-report-s q 'function)) + (when-let ((q (scope--unqoute int)) ((listp q))) + (dolist (mode q) (scope-report-s mode 'major-mode)))) + (scope-define-macro-analyzer define-globalized-minor-mode (l global mode turn-on &rest body) (scope-report-s mode 'function) (scope-report-s turn-on 'function)