From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Hepple Newsgroups: gmane.emacs.bugs Subject: bug#24872: 25.1; sh-mode indentation Date: Fri, 04 Nov 2016 00:08:40 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113cadc498e5b105406e7ac1 X-Trace: blaine.gmane.org 1478220677 25598 195.159.176.226 (4 Nov 2016 00:51:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2016 00:51:17 +0000 (UTC) To: 24872@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 04 01:51:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Sis-0005nr-0R for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Nov 2016 01:51:10 +0100 Original-Received: from localhost ([::1]:35819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Siu-0003dV-Mg for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Nov 2016 20:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Sim-0003dM-Dd for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Sik-0000p6-Rv for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:51:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2Sik-0000oy-OT for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c2Sik-0006hZ-FT for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bob Hepple Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Nov 2016 00:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24872 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147822061025699 (code B ref -1); Fri, 04 Nov 2016 00:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2016 00:50:10 +0000 Original-Received: from localhost ([127.0.0.1]:42035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2Shu-0006gN-3I for submit@debbugs.gnu.org; Thu, 03 Nov 2016 20:50:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c2S4C-0005gy-Lp for submit@debbugs.gnu.org; Thu, 03 Nov 2016 20:09:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2S40-0001Tq-FU for submit@debbugs.gnu.org; Thu, 03 Nov 2016 20:08:58 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56130) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c2S40-0001Tm-Bs for submit@debbugs.gnu.org; Thu, 03 Nov 2016 20:08:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2S3y-00065A-Cd for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:08:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2S3w-0001Sx-NQ for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:08:54 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:35182) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2S3w-0001Sg-Gc for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2016 20:08:52 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id x4so120223021oix.2 for ; Thu, 03 Nov 2016 17:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=VL2ykTAEO4jWxpyzhs7Br6wEYm9Kh2d4zL3nlYZD6MY=; b=kAkmq0g0Z/h8nvER9JWKkBSjszbDNumIeFEyTYSS6pr4FDQBVuXaS2sGZISJBsXdLy EMSQcfkJ0lkXg26EEXt4EXfpUe44LBqahlulo72bXUawvhTCbh5eYSdraRIIIIqTL7Kk nSV4H3BSAk/czBFTQh2Tq7jpQOj9gH9kQa8GNc/JLyFK5v3ngcPzld+cOXc+0rVft1dH IrYd+gb5F7uCQdHtjpAVFCby1smZBQfIBwL5FVK2i+NeaRqGiv3xAFcGBaiFFW94wTi0 o86eh/F6KaUkVaHty+FuhP1sGPAlhlXtciWFH/LdqLF5gay1FXykjgofY6oRSZH5GbCt JOig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VL2ykTAEO4jWxpyzhs7Br6wEYm9Kh2d4zL3nlYZD6MY=; b=YTdWKhVJbMUYHc7v1tlPyL8NSbVDz6mtYsI6l9NerYBaUyPPD1w72KYwLISF+tDZdP HqUz90ds+iWSApLB67M6wq2Kf3HFyZdRwEm8pcHj978HTyWajIK9pI74NB8tMzMvwUpx qZZoUzdqNfQLtPVd/YdAUZzwg5fxGLs5WRFr/HuD0W3UAmIr/BHdsaAQneupQ5zZydKB XkXsIQBrt5yiYf2b7Ux9tQpUaJyjIiU0C8gQjHxufVumgrnKrP3XnyudDDL6WaIKPRkD Ihdt3hp+W6JxURHFSwkMmAEwp3DxsE7s4YKE+i/z2KOTC2oQsqmJgkLfee3rz4Z0UBlf jyKQ== X-Gm-Message-State: ABUngvfUVLyTzAIsjcsCeogFvdLGFRmgC4OqEdqmx1gGK3uNG5adSKhvCsk62u5ivXRkte0jxftl8N3Ii54XbQ== X-Received: by 10.202.50.67 with SMTP id y64mr10105048oiy.50.1478218130970; Thu, 03 Nov 2016 17:08:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 03 Nov 2016 20:50:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125318 Archived-At: --001a113cadc498e5b105406e7ac1 Content-Type: text/plain; charset=UTF-8 >From emacs -Q with shell-script-mode: This is what I want: MULTIFORM=$( curl -k -A http://foo.com | grep -m1 multiform | tr '=' '\n' | tail -1 | cut -d "'" -f 2 ) This is what I get: MULTIFORM=$( curl -k -A http://foo.com | grep -m1 multiform | tr '=' '\n' | tail -1 | cut -d "'" -f 2 ) No amount of fiddling with M-x smie-config-set-indent or M-x sh-learn-line-indent etc gets to the desired result. In GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.6) of 2016-07-26 built on buildhw-08.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.11804000 System Description: Fedora release 24 (Twenty Four) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS Important settings: value of $LC_ALL: en_AU.utf8 value of $LANG: C locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 86609 5112) (symbols 48 19790 0) (miscs 40 51 121) (strings 32 14380 4747) (string-bytes 1 411864) (vectors 16 11743) (vector-slots 8 430768 5005) (floats 8 165 31) (intervals 56 264 0) (buffers 976 19) (heap 1024 28263 1014)) --001a113cadc498e5b105406e7ac1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

From emacs -Q with shell-script-mode:<= /div>

This is what I want:
=C2=A0 =C2=A0
=
MULTIFORM=3D$(
=C2=A0 =C2=A0 curl -k -A http://foo.com |
=C2=A0 =C2=A0 grep -m1 multiform |
=C2=A0 =C2=A0 tr '=3D' '\n' |
=C2=A0 =C2= =A0 tail -1 |
=C2=A0 =C2=A0 cut -d "'" -f 2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)
This is what I get:
<= div>
MULTIFORM=3D$(
=C2=A0 =C2=A0 curl -k -A http://foo.com |
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 grep -m1 multiform |
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tr '= =3D' '\n' |
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tail -1 |
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cut -d "'" -f 2
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0)

No amount of f= iddling with =C2=A0M-x smie-config-set-indent or M-x
sh-learn-lin= e-indent etc gets to the desired result.




In GNU Emacs 25.1.1 (x86_64-redhat-linu= x-gnu, GTK+ Version 3.20.6)
=C2=A0of 2016-07-26 built on buildhw-08.phx2.fedoraproject= .org
Windowing system distributor 'Fedora Project', v= ersion 11.0.11804000
System Description: Fedora release 24 (Twenty Four)

Configured using:
=C2=A0'configure --bu= ild=3Dx86_64-redhat-linux-gnu
=C2=A0--host=3Dx86_64-redhat-linux-= gnu --program-prefix=3D
=C2=A0--disable-dependency-tracking --pre= fix=3D/usr --exec-prefix=3D/usr
=C2=A0--bindir=3D/usr/bin --sbind= ir=3D/usr/sbin --sysconfdir=3D/etc
=C2=A0--datadir=3D/usr/share -= -includedir=3D/usr/include --libdir=3D/usr/lib64
=C2=A0--libexecd= ir=3D/usr/libexec --localstatedir=3D/var
=C2=A0--sharedstatedir= =3D/var/lib --mandir=3D/usr/share/man
=C2=A0--infodir=3D/usr/shar= e/info --with-dbus --with-gif --with-jpeg --with-png
=C2=A0--with= -rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3
= =C2=A0--with-gpm=3Dno --with-xwidgets build_alias=3Dx86_64-redhat-linux-gnu=
=C2=A0host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_= USE_LOCKF -O2 -g
=C2=A0-pipe -Wall -Werror=3Dformat-security -Wp,= -D_FORTIFY_SOURCE=3D2
=C2=A0-fexceptions -fstack-protector-strong= --param=3Dssp-buffer-size=3D4
=C2=A0-grecord-gcc-switches -specs= =3D/usr/lib/rpm/redhat/redhat-hardened-cc1
=C2=A0-m64 -mtune=3Dge= neric' LDFLAGS=3D-Wl,-z,relro
=C2=A0PKG_CONFIG_PATH=3D:/usr/l= ib64/pkgconfig:/usr/share/pkgconfig'

Configure= d features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCO= NF GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_F= LT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XWIDGETS

Important settings:
=C2=A0 value of $LC_ALL: en_= AU.utf8
=C2=A0 value of $LANG: C
=C2=A0 locale-coding-s= ystem: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode:= t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-m= ode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode:= t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode= : t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mo= de: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-compositi= on-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-c= ompression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tr= ansient-mark-mode: t

Recent messages:
Fo= r information about GNU Emacs and the GNU system, type C-h C-a.
M= aking completion list...

Load-path shadows:
<= div>None found.

Features:
(shadow sort m= ail-extr emacsbug message dired format-spec rfc822 mml
mml-sec pa= ssword-cache epg epg-config gnus-util mm-decode mm-bodies
mm-enco= de mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rf= c2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu
cl-l= oaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util
to= oltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode re= gister
page menu-bar rfn-eshadow timer select scroll-bar mouse ji= t-lock
font-lock syntax facemenu font-core frame cl-generic cham = georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet la= o korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak c= zech european
ethiopic indian cyrillic chinese charscript case-ta= ble epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-prelo= aded nadvice
loaddefs button faces cus-face macroexp files text-p= roperties overlay
sha1 md5 base64 format env code-pages mule cust= om widget
hashtable-print-readable backquote dbusbind inotify dyn= amic-setting
system-font-setting font-render-setting xwidget-inte= rnal move-toolbar
gtk x-toolkit x multi-tty make-network-process = emacs)

Memory information:
((conses 16 8= 6609 5112)
=C2=A0(symbols 48 19790 0)
=C2=A0(miscs 40 5= 1 121)
=C2=A0(strings 32 14380 4747)
=C2=A0(string-byte= s 1 411864)
=C2=A0(vectors 16 11743)
=C2=A0(vector-slot= s 8 430768 5005)
=C2=A0(floats 8 165 31)
=C2=A0(interva= ls 56 264 0)
=C2=A0(buffers 976 19)
=C2=A0(heap 1024 28= 263 1014))

--001a113cadc498e5b105406e7ac1--