unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: 22717@debbugs.gnu.org
Subject: bug#22717: 25.0.91; sh-mode indentation bug with opening parens at the beginnings of lines, and apostrophes
Date: Thu, 20 Jun 2019 07:21:56 -0400	[thread overview]
Message-ID: <87fto4wlgr.fsf@gmail.com> (raw)
In-Reply-To: <56C47322.8040404@orcon.net.nz> (Phil Sainty's message of "Thu, 18 Feb 2016 02:18:26 +1300")

tags 22717 fixed
close 22717 27.1
quit

Phil Sainty <psainty@orcon.net.nz> writes:

> I've come up with the following test case:
>
> #!/bin/sh
> echo "
> (" # Opening parenthesis at the beginning of a line
>
> if true; then
>     # Here's an apostrophe
> fi # ...and now this will be indented -- aligned with the apostrophe
>
>
> If you auto-indent that, the final line gets indented to align
> with the column containing the apostrophe in the preceding comment.

This is fixed in master, probably by [1: 14b9558752].

[1: 14b9558752]: 2017-12-12 23:03:00 -0500
  * src/syntax.c (find_defun_start): Use syntax-ppss
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=14b95587520959c5b54356547a0a69932a9bb480





      parent reply	other threads:[~2019-06-20 11:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 13:18 bug#22717: 25.0.91; sh-mode indentation bug with opening parens at the beginnings of lines, and apostrophes Phil Sainty
2017-04-19 10:25 ` bug#22717: 25.0.91; sh-mode / forward-comment bug with opening parens at the beginnings of lines, and quotes in comments Phil Sainty
2019-06-20 11:21 ` Noam Postavsky [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fto4wlgr.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=22717@debbugs.gnu.org \
    --cc=psainty@orcon.net.nz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).