Closed 0x210F closed 6 months ago
I think since the when-let
at the bottom is inside the cond
clause, setting the condition to (null indent-var)
won't do quite the right thing - it would skip the when-let
when indent-var
is passed as an optional argument to the function. But your other suggestion of setting the condition to t
sounds exactly correct, see https://github.com/radian-software/apheleia/pull/277
Thank you!
You're welcome. Thanks for fixing it!
The conditional clause at line 34 in
apheleia-utils.el
(functionapheleia-formatters-indent
) https://github.com/radian-software/apheleia/blob/b2d2b50f1a8b4cfcb7aa9fa815017bac26552da9/apheleia-utils.el#L34 prevents the execution of the clause's body whenindent-var
isnil
. The problem is fixed by either making that clause the default (replaceindent-var
witht
) or change the condition to(null indent-var)
, which makes the diff bigger but the logic is more explicit.