[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging SMIE for sh-script.el

From: Stefan Monnier
Subject: Re: Debugging SMIE for sh-script.el
Date: Sun, 05 Sep 2021 13:23:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I was talking about other
> smie-indent-functions. sh-smie--indent-continuation does a wacky thing in
> that it runs (smie-indent-calculate) again while excluding itself and then
> looks at the results and decides "ok, that's good enough".

I agree it's a bit wacky (it basically tries to do what
a `add-function :around` would do, but `smie-indent-functions` is
a hook so we're stuck with `add-hook` instead of `add-function`).

But as I just explained if you try and avoid `smie-indent-calculate`
you'll end up reinventing (part of) it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]