]> git.eshelyaron.com Git - emacs.git/commitdiff
elisp-mode.el (xref-backend-definitions): Fix typo.
authorEshel Yaron <me@eshelyaron.com>
Sun, 22 Jun 2025 07:47:16 +0000 (09:47 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 22 Jun 2025 07:47:16 +0000 (09:47 +0200)
lisp/progmodes/elisp-mode.el

index b91156d62240137c0b59d935abb0b16c1420c92e..14b2524d5702604a1936f63873c98ae2d9180c2b 100644 (file)
@@ -832,6 +832,8 @@ in `completion-at-point-functions' (which see)."
                   (and (= (length l) (length r))
                        (string< l r))))))))
 
+(defvar scope-assume-func-p)
+
 (defun elisp-completion-at-point ()
   (with-syntax-table emacs-lisp-mode-syntax-table
     (when-let ((pos (point))
@@ -1136,6 +1138,7 @@ confidence."
   (let* ((pos (get-text-property 0 'pos identifier))
          (enable-local-variables nil)
          (gc-cons-threshold (* 1024 1024 1024))
+         (scope-assume-func-p t)
          (type-def (when pos
                      (save-excursion
                        (goto-char pos)
@@ -1154,7 +1157,7 @@ confidence."
             (tar
              (case type
                ((symbol-type symbol-type-definition) 'symbol-type-definition)
-               ((variable defvar) 'defval)
+               ((variable defvar) 'defvar)
                ((face defface) 'defface)
                ((defun function macro) 'defun)
                ((icon deficon) 'deficon)