commit a27eed0359c7a059e53a726f9e4d18ea94e932d2
parent 55a8ebcd644bedf7330ac6c744ca66a48fea01b1
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Fri, 10 Dec 2021 22:14:19 -0800
Don't offer 'find all references' for anonymous lambdas
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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)))