GNU bug report logs - #22717
25.0.91; sh-mode indentation bug with opening parens at the beginnings of lines, and apostrophes

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Wed, 17 Feb 2016 13:22:01 UTC

Severity: minor

Tags: fixed

Found in version 25.0.91

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Phil Sainty <psainty <at> orcon.net.nz>
Cc: 22717 <at> debbugs.gnu.org
Subject: Re: 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
tags 22717 fixed
close 22717 27.1
quit

Phil Sainty <psainty <at> 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




This bug report was last modified 5 years and 340 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.