Subject: bug#27229: eldoc wrong highlighting for "when"

From: Andy Moreton <[email-masked]>
Date: Sat, 04 Sep 2021 14:23:25 +0100

On Sat 04 Sep 2021, Lars Ingebrigtsen wrote:

> Andy Moreton <[email-masked]> writes:
>
>> Without using "fn", it is shown as "(when COND &rest BODY)" which is
>> less helpful than showing "(when COND BODY...)".
>
> What do you feel the semantic difference is between the two?  And why
> should `when' have this fn rewrite when we have hundreds of other
> macros with &rest body that don't have an fn?

I think that the difference is whether the user sees it as describing
arguments to a function call, or forms in a control structure. The
"(when COND BODY...)" version also matches the style used for `if'.

Most of the other macros are intended to look like function calls to the
user, not control structures.

    AndyM