GNU bug report logs - #21244
shell-script mode indentation fooled by one-liner 'for' statement

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 12 Aug 2015 16:33:01 UTC

Severity: minor

Tags: confirmed, patch

Merged with 2910, 26217, 30170, 46093, 48193

Found in versions 25.0.95, 25.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 21244 <at> debbugs.gnu.org
Subject: bug#21244: shell-script mode indentation fooled by one-liner 'for' statement
Date: Thu, 13 Aug 2015 00:32:30 +0800
In shell-script [Bash] mode, C-x h TAB gives

for i do mountpoint -q $i||exit 88; done
    c=apt-get #aptitude

which has wrong indentation. It should be

for i do mountpoint -q $i||exit 88; done
c=apt-get #aptitude




This bug report was last modified 1 year and 221 days ago.

Previous Next


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