aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKisaragi Hiu <mail@kisaragi-hiu.com>2022-10-20 17:55:54 +0900
committerWilfred Hughes <me@wilfred.me.uk>2022-10-23 18:34:28 -0700
commit60c1cd49f72e930b8796e5644bd222e8fc466740 (patch)
tree592409029592eda28fb56314b375d30faee37659
parent3aa08da7a151f1928bf0e3d12fc2443b6485b6ef (diff)
Mark symbol in "the command <symbol>" as callable
This, for example, skips an unnecessary "show variable?" for local minor mode variables. Whereas recentf-mode (global) says: > Non-nil if Recentf mode is enabled. > > See the recentf-mode command > for a description of this minor mode. , whitespace-mode (local) says: > Non-nil if Whitespace mode is enabled. > > Use the command whitespace-mode to change this variable. . This change catches the latter case.
-rw-r--r--helpful.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpful.el b/helpful.el
index 62b3782..6346e8a 100644
--- a/helpful.el
+++ b/helpful.el
@@ -797,6 +797,7 @@ bound) or else highlight."
'callable-p nil))
((and (fboundp sym) (or
(s-starts-with-p " command" after-txt)
+ (s-ends-with-p "command " before-txt)
(s-ends-with-p "function " before-txt)))
(helpful--button
sym-name