[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27229: eldoc wrong highlighting for "when"
From: |
Andy Moreton |
Subject: |
bug#27229: eldoc wrong highlighting for "when" |
Date: |
Sat, 04 Sep 2021 14:23:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
On Sat 04 Sep 2021, Lars Ingebrigtsen wrote:
> Andy Moreton <andrewjmoreton@gmail.com> 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