]> git.eshelyaron.com Git - emacs.git/commitdiff
scope.el: Fix defalias handling
authorEshel Yaron <me@eshelyaron.com>
Mon, 10 Feb 2025 20:54:25 +0000 (21:54 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 10 Feb 2025 20:54:25 +0000 (21:54 +0100)
lisp/emacs-lisp/scope.el

index 5b73f5e4ceae16f5a247fd18faf6714248faceea..176c1260f5184982afe715b48631262d1b416268 100644 (file)
@@ -1158,8 +1158,8 @@ a (possibly empty) list of safe macros.")
     (scope-1 l form))
   (scope-1 l lexical))
 
-(scope-define-function-analyzer defalias (definition &optional _docstring)
-  (when-let ((quoted (scope--unqoute definition))) (scope-report-s quoted 'defun)))
+(scope-define-function-analyzer defalias (sym _def &optional _docstring)
+  (when-let ((quoted (scope--unqoute sym))) (scope-report-s quoted 'defun)))
 
 (scope-define-function-analyzer custom-declare-variable (sym _default _doc &rest args)
   (when-let ((quoted (scope--unqoute sym))) (scope-report-s quoted 'defvar))