aboutsummaryrefslogtreecommitdiff
path: root/helpful.el
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2021-12-10 22:14:19 -0800
committerWilfred Hughes <me@wilfred.me.uk>2021-12-10 22:14:19 -0800
commita27eed0359c7a059e53a726f9e4d18ea94e932d2 (patch)
tree5fe1e96af5573c7f26fe01decad69e4d9061d5b2 /helpful.el
parent55a8ebcd644bedf7330ac6c744ca66a48fea01b1 (diff)
Don't offer 'find all references' for anonymous lambdas
Diffstat (limited to 'helpful.el')
-rw-r--r--helpful.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpful.el b/helpful.el
index b54914f..3ec6ed9 100644
--- a/helpful.el
+++ b/helpful.el
@@ -2300,7 +2300,11 @@ state of the current symbol."
"\n\n"
(helpful--make-references-button helpful--sym helpful--callable-p))
- (when (and helpful--callable-p source (not primitive-p))
+ (when (and
+ helpful--callable-p
+ (symbolp helpful--sym)
+ source
+ (not primitive-p))
(insert
" "
(helpful--make-callees-button helpful--sym source)))