From: Noam Postavsky <npostavs@gmail.com>
To: Leo Liu <sdl.web@gmail.com>
Cc: 35286@debbugs.gnu.org
Subject: bug#35286: 26.2; indent-sexp broken
Date: Mon, 15 Apr 2019 20:54:22 -0400 [thread overview]
Message-ID: <87ftqizs5d.fsf@gmail.com> (raw)
In-Reply-To: <m1y34ayefv.fsf@gmail.com> (Leo Liu's message of "Tue, 16 Apr 2019 08:35:48 +0800")
Leo Liu <sdl.web@gmail.com> writes:
> On 2019-04-15 19:57 -0400, Noam Postavsky wrote:
>> I put that code there because Emacs 25 and earlier also indents more
>> than one sexps after point in some cases.
>
> I didn't know that. Are those cases obscure?
The minimal example would be (with point before "foo", the "xx)"
part gets indented too):
foo (bar
xx)
I'm not sure if anyone relies on that (I broke it in 26.1 and nobody
reported it). The main motivating example is
#s(foo
bar)
which is due to forward-sexp not handling #s correctly for Emacs Lisp
(it's treated as a separate sexp rather than as a whole record
expression).
>> The regression is that the Emacs 26 code gets confused by comments at
>> the end of line. Here's a patch for emacs-26 to fix this:
>
> Not just comments though it can be anything. For example, put the
> following in prolog-mode. Move point to the first `{' char and then M-x
> indent-sexp.
Hmm, I'm a bit confused here. I thought indent-sexp is only good for
Lisp-based languages. Do lisp-indent-calc-next/calculate-lisp-indent
give usable results for prolog or ruby??
next prev parent reply other threads:[~2019-04-16 0:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-15 12:14 bug#35286: 26.2; indent-sexp broken Leo Liu
2019-04-15 23:57 ` Noam Postavsky
2019-04-16 0:35 ` Leo Liu
2019-04-16 0:54 ` Noam Postavsky [this message]
2019-04-16 3:19 ` Leo Liu
2019-04-16 12:16 ` Noam Postavsky
2019-04-16 12:57 ` Leo Liu
2019-04-16 13:13 ` Leo Liu
2019-04-21 8:41 ` Leo Liu
2019-04-22 16:51 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftqizs5d.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=35286@debbugs.gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.