esh-help
esh-help copied to clipboard
`eldoc': don't error if a command has no SYNOPSIS
esh-help-eldoc-man-minibuffer-string
searches for a "SYNOPSIS" line and then
transforms the string following it. This causes an error
if the command has no
synopsis (e.g. ninja
). Use -some->>
instead of ->>
, fixing the error.
@hlissner you should bump esh-help
if/when this gets merged.
To reproduce:
0. M-x toggle-debug-on-error
-
apt-install
ninja-build
(needed for the man pages to be available) - Open an
eshell
- Type
ninja
and start typing arguments (e.g. -C) - Observe that an error is thrown, because
ninja
's man page has no synopsis
Everything still works with other commands (e.g. gcc
).
@tom-tan anything blocking a merge of this PR? Hitting a similar issue as the PR author