GNU bug report logs - #18020
24.3; sh-script comment indent failure involving apostrophes in comments/heredocs on previous lines

Previous Next

Package: emacs;

Reported by: Richard Tollerton <rich.tollerton <at> ni.com>

Date: Mon, 14 Jul 2014 20:19:02 UTC

Severity: minor

Tags: fixed

Found in version 24.3

Fixed in version 24.4

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


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

From: npostavs <at> users.sourceforge.net
To: Richard Tollerton <rich.tollerton <at> ni.com>
Cc: 18020 <at> debbugs.gnu.org
Subject: Re: bug#18020: 24.3;
 sh-script comment indent failure involving apostrophes in
 comments/heredocs on previous lines
Date: Sat, 01 Apr 2017 19:26:38 -0400
tags 18020 fixed
close 18020 24.4
quit

Richard Tollerton <rich.tollerton <at> ni.com> writes:
>
> 1. Create a file test.sh with the following contents. (The file variable
> is for convenience in reproducing the issue; the point is to set
> sh-indent-command to t.)
>
> # -*- mode: sh-script; sh-indent-comment: t; -*-
> cat <<EOF
> {}
> can't
> EOF
>
> testfunc () {
>     # don't
> # do this
> }
>
> 2. Set point to the line "# do this" and hit TAB. The line remains
> incorrectly indented at offset 0.

This happens in 24.3, but not in 24.4 and above.




This bug report was last modified 8 years and 111 days ago.

Previous Next


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