[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35286: 26.2; indent-sexp broken
From: |
Leo Liu |
Subject: |
bug#35286: 26.2; indent-sexp broken |
Date: |
Tue, 16 Apr 2019 20:57:03 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (macOS 10.14.4) |
On 2019-04-16 08:16 -0400, Noam Postavsky wrote:
> This is what surprises me. How does
> lisp-indent-calc-next/calculate-lisp-indent give correct results for
> non-lisp? I think using prog-indent-sexp for non-lisp would make more
> sense.
I think for indenting parentheses most modes behave similarly. paredit
is mostly used with lispy-modes so it has reasons to use indent-sexp.
> Anyway, the following patch seems to work with your examples.
Thanks, it seems to work well. I am testing the patched indent-sexp in
my emacs now and will report back if something breaks.