summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStephen Gildea <stepheng+emacs@gildea.com>2025-01-16 06:10:57 -0800
committerStephen Gildea <stepheng+emacs@gildea.com>2025-01-16 06:10:57 -0800
commitd30351e03815e5914ec486607441e449c02c6c45 (patch)
treeb545da93df2564f0a56f7bcecf1c287718c63336 /lisp/emacs-lisp
parentec20ebf2413ca1042cd41e3a278d18f1fc1debf6 (diff)
downloademacs-d30351e03815e5914ec486607441e449c02c6c45.tar.gz
emacs-d30351e03815e5914ec486607441e449c02c6c45.tar.bz2
emacs-d30351e03815e5914ec486607441e449c02c6c45.zip
Update recent find-func change to fix elisp-mode-tests
* lisp/emacs-lisp/find-func.el (find-function-search-for-symbol): Check that symbol is a symbol before trying to get a property.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/find-func.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el
index 643b6aba2a6..40bcdfe756a 100644
--- a/lisp/emacs-lisp/find-func.el
+++ b/lisp/emacs-lisp/find-func.el
@@ -413,7 +413,8 @@ The search is done in the source for library LIBRARY."
;; that defines something else.
(while (and (symbolp symbol) (get symbol 'definition-name))
(setq symbol (get symbol 'definition-name)))
- (setq type (or (get symbol 'definition-type)
+ (setq type (or (and (symbolp symbol)
+ (get symbol 'definition-type))
type))
(if (string-match "\\`src/\\(.*\\.\\(c\\|m\\)\\)\\'" library)
(find-function-C-source symbol (match-string 1 library) type)