From: Eshel Yaron Date: Sun, 22 Jun 2025 07:47:16 +0000 (+0200) Subject: elisp-mode.el (xref-backend-definitions): Fix typo. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4450955b9969f50fd4a05cc5c7672adb826a7d60;p=emacs.git elisp-mode.el (xref-backend-definitions): Fix typo. --- diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index b91156d6224..14b2524d570 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el @@ -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)