[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.
Stefan
- Re: Debugging SMIE for sh-script.el, (continued)
Re: Debugging SMIE for sh-script.el, Stefan Monnier, 2021/09/02
Re: Debugging SMIE for sh-script.el, Nikolay Kudryavtsev, 2021/09/05
Re: Debugging SMIE for sh-script.el, Stefan Monnier, 2021/09/05
Re: Debugging SMIE for sh-script.el, Nikolay Kudryavtsev, 2021/09/05
Re: Debugging SMIE for sh-script.el,
Stefan Monnier <=
Re: Debugging SMIE for sh-script.el, Nikolay Kudryavtsev, 2021/09/05
Re: Debugging SMIE for sh-script.el, Stefan Monnier, 2021/09/05
Re: Debugging SMIE for sh-script.el, Nikolay Kudryavtsev, 2021/09/06
Re: Debugging SMIE for sh-script.el, Stefan Monnier, 2021/09/06
Re: Debugging SMIE for sh-script.el, Nikolay Kudryavtsev, 2021/09/06
Re: Debugging SMIE for sh-script.el, Stefan Monnier, 2021/09/06
Re: Debugging SMIE for sh-script.el, Kévin Le Gouguec, 2021/09/12
Re: Debugging SMIE for sh-script.el, Stefan Monnier, 2021/09/02