emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 49192e9: Strip "(fn...)" from output of `describe-mode' (bug#


From: Stefan Monnier
Subject: Re: master 49192e9: Strip "(fn...)" from output of `describe-mode' (bug#38222)
Date: Fri, 22 Nov 2019 16:45:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> For example, take a look at this code from
> semantic-grammar-eldoc-get-macro-docstring:
>
>     (let* ((doc (help-split-fundoc (documentation expander t) expander)))
>       (cond
>        (doc
>         (setq doc (car doc))
>         (string-match "\\`[^ )]* ?" doc)
>         (setq doc (concat "(" (substring doc (match-end 0)))))

So it's just not an option, thanks for looking at it.

> A far less intrusive option IMHO would be to add an optional argument
> SECTION, with SECTION = nil as it is now, and SECTION 'usage or 'doc
> returning only that part.

And if it's just t it could always return a pair.
Sounds good.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]