From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Daboul Newsgroups: gmane.emacs.bugs Subject: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Fri, 17 Oct 2014 22:36:03 +0300 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c095ee651340505a37a14 X-Trace: ger.gmane.org 1413575778 2556 80.91.229.3 (17 Oct 2014 19:56:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 19:56:18 +0000 (UTC) To: 18756@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 21:56:11 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XfDdB-00009l-4v for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2014 21:56:09 +0200 Original-Received: from localhost ([::1]:34460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfDdA-0001CX-S4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2014 15:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfDd6-0001CC-6p for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:56:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfDd4-00048Y-OG for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:56:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfDd4-00048U-Km for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XfDd4-0001TO-Ag for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Daboul Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Oct 2014 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18756 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.14135757085562 (code B ref -1); Fri, 17 Oct 2014 19:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Oct 2014 19:55:08 +0000 Original-Received: from localhost ([127.0.0.1]:47684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfDcA-0001Rb-EX for submit@debbugs.gnu.org; Fri, 17 Oct 2014 15:55:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54492) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfDc7-0001Qy-BO for submit@debbugs.gnu.org; Fri, 17 Oct 2014 15:55:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfDbn-0003aR-Jr for submit@debbugs.gnu.org; Fri, 17 Oct 2014 15:55:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfDbn-0003Sa-Fc for submit@debbugs.gnu.org; Fri, 17 Oct 2014 15:54:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfDK6-0006Oz-EN for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:36:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfDK5-0005pB-4Y for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:36:26 -0400 Original-Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:42396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfDK4-0005ol-Qt for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2014 15:36:25 -0400 Original-Received: by mail-wi0-f178.google.com with SMTP id h11so2306541wiw.5 for ; Fri, 17 Oct 2014 12:36:23 -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:content-type; bh=e7Hg0hAq0j8THxCZ/WlcreSw8YMZfl7/YuYfgOLqHwE=; b=wOkzsMRzUFvWBq2EZGrduj0dV3yK2ljZRbWkbPaOVUAIzCiJn6LIg2ewKC7pf9VfwX EMoJrZayfBcUMWX+rD9pkZztBq0K26YFLbbHnEkBxmqlxT12FjZK2b8/aurL7t+2mmPk jF2VXIp3Qo84cpLTPAUzkE1Q7SrI8ie0W8SLCwDmHE1zDs0XvgsbNGtetMyf/rs6F8SR tVkpUxVST13WznRjVBCoJK8nMbX1qDxsxxdAg1Jc+YxSeA1QuqCOFsZnbMzCf3pXyjzG SxMHtI4gdv+ykLsrYU7KAWD1PGi+rfU5uRh4tHrdHAN3QbFqdrEMoDnMVGZkP9nz03WL hW9A== X-Received: by 10.180.90.237 with SMTP id bz13mr1220254wib.50.1413574583273; Fri, 17 Oct 2014 12:36:23 -0700 (PDT) Original-Received: by 10.217.91.70 with HTTP; Fri, 17 Oct 2014 12:36:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94692 --f46d043c095ee651340505a37a14 Content-Type: text/plain; charset=UTF-8 M-x shell-script-mode #hi ls x-3 With every key-press the current line gets indeted, so that the buffer looks like: #hi ls x=3 also mis-behaves. Emacs 24.3.1, OTOH, works fine for me. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-10-17 on icsl5123 System Description: SUSE Linux Enterprise Server 10 (x86_64) Configured using: `configure --prefix=/nfs/iil/home/ddaboul/r/sles10 --with-gif=no --without-pop --without-sound --without-gpm --without-dbus --with-x-toolkit=lucid' Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell-script Minor modes in effect: sh-electric-here-document-mode: t tooltip-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 0 8 ; 0 c ESC x s h e l l - s c r i p t - m o d e RET # h i RET l s RET x = 3 RET ESC x r e p o r t - e m a c s - b u g RET Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. No indentation for this shell type. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils sh-script smie executable xterm time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dynamic-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 83253 3991) (symbols 48 18103 0) (miscs 40 31 113) (strings 32 12327 4537) (string-bytes 1 361598) (vectors 16 7894) (vector-slots 8 361363 27987) (floats 8 63 284) (intervals 56 186 0) (buffers 960 11) (heap 1024 8017 572)) --f46d043c095ee651340505a37a14 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
M-x shell-script-mode<Enter>
#hi<Enter>
= ls<Enter>
x-3<Enter>

With every <Enter> key-pre= ss the current line gets indeted, so that
the buffer looks like:
=C2= =A0=C2=A0=C2=A0 #hi
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ls
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 x=3D3
<Tab> also mis-behaves. Emacs 24.3.1, OTOH, works fine for me.
<= br>

In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d = scroll bars)
=C2=A0of 2014-10-17 on icsl5123
System Description:=C2= =A0=C2=A0=C2=A0 SUSE Linux Enterprise Server 10 (x86_64)

Configured = using:
=C2=A0`configure --prefix=3D/nfs/iil/home/ddaboul/r/sles10 --with= -gif=3Dno
=C2=A0--without-pop --without-sound --without-gpm --without-db= us
=C2=A0--with-x-toolkit=3Dlucid'

Important settings:
=C2= =A0 value of $LC_COLLATE: C
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0= locale-coding-system: utf-8-unix

Major mode: Shell-script

Mi= nor modes in effect:
=C2=A0 sh-electric-here-document-mode: t
=C2=A0 = tooltip-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mod= e: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-n= ame-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-m= ode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t=
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0= transient-mark-mode: t

Recent input:
ESC [ > 0 ; 2 0 8 ; 0 c = ESC x s h e l l - s c r i p
t - m o d e RET # h i RET l s RET x =3D 3 RE= T ESC x r
e p o r t - e m a c s - b u g RET

Recent messages:
F= or information about GNU Emacs and the GNU system, type C-h C-a.
No inde= ntation for this shell type.

Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spe= c rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse r= fc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-dru= ms
mm-util help-fns mail-prsvr mail-utils sh-script smie executable xter= m
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-typ= e
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tab= ulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-es= hadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu f= ont-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan tha= i tai-viet lao korean japanese hebrew greek romanian slovak
czech europe= an ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook he= lp simple abbrev minibuffer nadvice loaddefs button
faces cus-face macro= exp files text-properties overlay sha1 md5 base64
format env code-pages = mule custom widget hashtable-print-readable
backquote make-network-proce= ss dynamic-setting x-toolkit x multi-tty
emacs)

Memory informatio= n:
((conses 16 83253 3991)
=C2=A0(symbols 48 18103 0)
=C2=A0(miscs= 40 31 113)
=C2=A0(strings 32 12327 4537)
=C2=A0(string-bytes 1 36159= 8)
=C2=A0(vectors 16 7894)
=C2=A0(vector-slots 8 361363 27987)
=C2= =A0(floats 8 63 284)
=C2=A0(intervals 56 186 0)
=C2=A0(buffers 960 11= )
=C2=A0(heap 1024 8017 572))

--f46d043c095ee651340505a37a14--