[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Eldoc cannot handle CL-style paramlist with default values?
From: |
Thorsten Jolitz |
Subject: |
Re: Eldoc cannot handle CL-style paramlist with default values? |
Date: |
Thu, 17 Jul 2014 03:06:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> > Can you please make a bug report?
>>
>> Done.
>
> Thanks!
>
>> Its actually the combination of normal args with &key arg with default
>> values that does not seem to work, e.g.
>>
>> ,----
>> | (defun* foo (arg1 arg2 &key (arg3 "default")))
>> `----
>
> No, that example works. Actually, the newline character in your
> previous post seems to be the culprit, because the docstring building
> code assumes that the printed argument list is a one-lined string.
Yes, you are right. I would call this a (kind of) bug, because I
have a use case where its convenient to put a newline as an arg's default
value and only sometimes set it explicitly to nil, so it should work
from (at least one) user's perspective.
--
cheers,
Thorsten