From: Leo Liu <sdl.web@gmail.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 35286@debbugs.gnu.org
Subject: bug#35286: 26.2; indent-sexp broken
Date: Tue, 16 Apr 2019 08:35:48 +0800 [thread overview]
Message-ID: <m1y34ayefv.fsf@gmail.com> (raw)
In-Reply-To: <87sguizurg.fsf@gmail.com> (Noam Postavsky's message of "Mon, 15 Apr 2019 19:57:55 -0400")
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 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.
iso_time(Hr, Min, Sec) -->
hour(H),
timezone(DH, DM, DS),
{ Hr is H + DH, Min is DM, Sec is DS }.
timezone(Hr, Min, 0) -->
"+", hour(H), ":", minute(M), { Hr is -1 * H, Min is -1 * M }.
next prev parent reply other threads:[~2019-04-16 0:35 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 [this message]
2019-04-16 0:54 ` Noam Postavsky
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=m1y34ayefv.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=35286@debbugs.gnu.org \
--cc=npostavs@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.