|
From: | Stefan Monnier |
Subject: | Re: master 49192e9: Strip "(fn...)" from output of `describe-mode' (bug#38222) |
Date: | Tue, 19 Nov 2019 14:22:53 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> help-split-fundoc returns nil if the docstring has no usage string. > > (help-split-fundoc (documentation 'auto-composition-mode) > 'auto-composition-mode) => nil IIRC you can use (let* ((doc (documentation NAME)) (fd (help-split-fundoc doc NAME))) (if fd (cdr fd) doc)) But I agree that `help-split-fundoc` is inconvenient. Improvements welcome. Maybe it should always return a pair (USAGE . DOC) so we could just do: (cdr (help-split-fundoc (documentation NAME) NAME) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |