[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improved help from minibuffer prompts
From: |
Juanma Barranquero |
Subject: |
Re: Improved help from minibuffer prompts |
Date: |
Fri, 30 Apr 2004 23:28:44 +0200 |
On 30 Apr 2004 11:57:41 -0400, Stefan Monnier <address@hidden> wrote:
> > Please, try this one instead. It's a bit less elegant because of the
> > support for CL-style optional arguments, but it works in all tests cases
> > I've tried.
>
> Please try to use help-split-fundoc.
I initially tried that, and ended having to patch describe-function
(and/or describe-function-1), help-split-fundoc and
help-add-fundoc-usage. The result wasn't pretty.
What I'm doing now, postprocessing the *Help* buffer after most of the
describe-function machinery has already run, is way easier and has the
added benefit that it almost doesn't touch what's already that.
> ctually you don't even need to do that because if you call your function from
> describe-function-1, the usage/arglist is already available separately from
> the docstring.
Yeah, but splitting usage from arglist is not a problem currently. The
problem I talked above is parsing things like the docstring for
(defun* test (&optional (a 1))
"Add 1 to A."
(1+ a))
and, as far as I can see, the only point where the existing code would
help is in help-add-fundoc-usage, which does not return a string, but a
list, so adding highlighting information to it is messy (not to mention
hackish).
So, I'm not sure what benefit would it be (but I'm perhaps
misunderstanding you). Could you please elaborate?
Thanks,
/L/e/k/t/u
- Re: Improved help from minibuffer prompts, (continued)
- Re: Improved help from minibuffer prompts, Stefan Reichör, 2004/04/19
- Re: Improved help from minibuffer prompts, Kim F. Storm, 2004/04/19
- Re: Improved help from minibuffer prompts, Juanma Barranquero, 2004/04/29
- Re: Improved help from minibuffer prompts, Stefan Reichör, 2004/04/30
- Re: Improved help from minibuffer prompts, Juanma Barranquero, 2004/04/30
- Re: Improved help from minibuffer prompts, Kim F. Storm, 2004/04/30
- Re: Improved help from minibuffer prompts, Juanma Barranquero, 2004/04/30
- Re: Improved help from minibuffer prompts, Kim F. Storm, 2004/04/30
- Re: Improved help from minibuffer prompts, Juanma Barranquero, 2004/04/30
- Re: Improved help from minibuffer prompts, Stefan Monnier, 2004/04/30
- Re: Improved help from minibuffer prompts,
Juanma Barranquero <=
- Re: Improved help from minibuffer prompts, Stefan Monnier, 2004/04/30
- Re: Improved help from minibuffer prompts, Juanma Barranquero, 2004/04/30
- RE: Improved help from minibuffer prompts, Drew Adams, 2004/04/19
- Re: Improved help from minibuffer prompts, Richard Stallman, 2004/04/20
- RE: Improved help from minibuffer prompts, Drew Adams, 2004/04/20
- Re: Improved help from minibuffer prompts, Eli Zaretskii, 2004/04/21
- Re: Improved help from minibuffer prompts, Richard Stallman, 2004/04/19
- Re: Improved help from minibuffer prompts, Richard Stallman, 2004/04/16
Re: Improved help from minibuffer prompts, Matthew Mundell, 2004/04/15