[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9115: 24.0.50; `documentation' should not return args list for CL de
From: |
Stefan Monnier |
Subject: |
bug#9115: 24.0.50; `documentation' should not return args list for CL defun*. |
Date: |
Tue, 02 Aug 2011 16:31:59 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> (let ((doc (documentation bidule)))
>> (or (cdr (help-split-fundoc doc nil)) doc))
>> I agree this is not super convenient.
> Yes, i think i have tried that, but it doesn't return nil for the case
> of CL-style functions.
In Emacs-24, it returns nil if the function had no docstring (the CL or
non-CL distinction is a only indirectly linked to the problem). So the
above should return either:
- the full docstring if there's one.
- nil or the empty string or "Not documented" if there isn't any docstring.
So if you want the first line, just extract it from the output when it's
not nil.
Stefan
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Stefan Monnier, 2011/08/01
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Thierry Volpiatto, 2011/08/02
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Stefan Monnier, 2011/08/02
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Thierry Volpiatto, 2011/08/02
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*.,
Stefan Monnier <=
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Thierry Volpiatto, 2011/08/02
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Stefan Monnier, 2011/08/02
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Thierry Volpiatto, 2011/08/03
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Stefan Monnier, 2011/08/03
- bug#9115: 24.0.50; `documentation' should not return args list for CL defun*., Thierry Volpiatto, 2011/08/03