commit 60c1cd49f72e930b8796e5644bd222e8fc466740
parent 3aa08da7a151f1928bf0e3d12fc2443b6485b6ef
Author: Kisaragi Hiu <mail@kisaragi-hiu.com>
Date: Thu, 20 Oct 2022 17:55:54 +0900
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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