From unknown Fri Jun 20 07:26:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18756 <18756@debbugs.gnu.org> To: bug#18756 <18756@debbugs.gnu.org> Subject: Status: 24.4; shell-script-mode does wrong indentation Reply-To: bug#18756 <18756@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:26:38 +0000 retitle 18756 24.4; shell-script-mode does wrong indentation reassign 18756 emacs submitter 18756 Daniel Daboul severity 18756 normal tag 18756 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 17 15:55:08 2014 Received: (at submit) by debbugs.gnu.org; 17 Oct 2014 19:55:08 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 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 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 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 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 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) MIME-Version: 1.0 Received: by 10.217.91.70 with HTTP; Fri, 17 Oct 2014 12:36:03 -0700 (PDT) From: Daniel Daboul Date: Fri, 17 Oct 2014 22:36:03 +0300 Message-ID: Subject: 24.4; shell-script-mode does wrong indentation To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=f46d043c095ee651340505a37a14 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --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-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 17 18:35:24 2014 Received: (at 18756) by debbugs.gnu.org; 17 Oct 2014 22:35:24 +0000 Received: from localhost ([127.0.0.1]:47737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfG7F-0005ss-Pn for submit@debbugs.gnu.org; Fri, 17 Oct 2014 18:35:22 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48084) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfG7D-0005sj-BY for 18756@debbugs.gnu.org; Fri, 17 Oct 2014 18:35:19 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XfG7C-0001Jh-C7; Fri, 17 Oct 2014 18:35:18 -0400 From: Glenn Morris To: Daniel Daboul Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation References: X-Spook: Mafia arrangements MD2 illuminati NSA JSOFC3IP Osama X-Ran: -:I;OBuCT/r[FS+7a-~XVlrf{&>l@XkaAX6m-9lHtZ0vhy@$J"mLKyd"pm%P6C'7#1(kBj X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 17 Oct 2014 18:35:18 -0400 In-Reply-To: (Daniel Daboul's message of "Fri, 17 Oct 2014 22:36:03 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Daniel Daboul wrote: > 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 I cannot reproduce this with `emacs -Q'. (Since you reported this twice, I will delete the other bug, #18755) From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 18 14:50:10 2014 Received: (at 18756) by debbugs.gnu.org; 18 Oct 2014 18:50:10 +0000 Received: from localhost ([127.0.0.1]:55262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfZ4r-0002AZ-2H for submit@debbugs.gnu.org; Sat, 18 Oct 2014 14:50:09 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:48283) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfZ4l-00029r-L4 for 18756@debbugs.gnu.org; Sat, 18 Oct 2014 14:50:05 -0400 Received: by mail-wi0-f171.google.com with SMTP id em10so4299093wid.10 for <18756@debbugs.gnu.org>; Sat, 18 Oct 2014 11:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=ox5lrui13qlnDiKggro4e9EsiweU3Lc+QHc1ioE06Mw=; b=CPHD+SZa7cBiOYEEsrkwrl6ffzyMAPpZcWiOa5BsbYVwnOdkJH329j6sd6QcGVylpk Qdi0eOOsZ/+nlDDSmf3yBW39RQJu9bK9CguwObxojsp3o/5vuijFRFTi0bmFX+P5lgOi IuiSqXbAxUrJ9cFLOgyHJqxlBBTjfadh5Vtu/MM7y+vyA2UfU2Ib25ObGFBJ3rfVf117 QdBu0ZzTpvTV6i+osf4T7+6eo21qXrcpjLwCF2e+rfdnzahXsCKf4G80CSwAUyF8wqqD 8WmSEkPh3xtoFIF90RLPhsUuDTBiosHT52N7tDIjzGlx+c/D9VdDJv/yv+Yw0dxWVYLU v1eQ== X-Received: by 10.194.81.6 with SMTP id v6mr19612034wjx.39.1413658197494; Sat, 18 Oct 2014 11:49:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.217.91.70 with HTTP; Sat, 18 Oct 2014 11:49:37 -0700 (PDT) In-Reply-To: References: From: Daniel Daboul Date: Sat, 18 Oct 2014 21:49:37 +0300 Message-ID: Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Content-Type: multipart/alternative; boundary=047d7bea3de6b210bc0505b6f264 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --047d7bea3de6b210bc0505b6f264 Content-Type: text/plain; charset=UTF-8 On Sat, Oct 18, 2014 at 1:35 AM, Glenn Morris wrote: > > I cannot reproduce this with `emacs -Q'. > > (Since you reported this twice, I will delete the other bug, #18755) > 1. Thank you for deleting the duplicate. I thought my first e-mail didn't make it. 2. I also used "src/emacs-24.4.1 -Q" or "src/emacs-24.4.1 -Q -nw", which makes no difference for this problem. 3. However, I get the buggy behavior only on "SUSE Linux Enterprise Server" version 10 and 11 (sles10, sles11). Today I compiled emacs on a "Debian testing" system, where I do not see the problem. 4. While trying more, I noticed that this is actually not a problem specific to the shell-mode. It similarly happens in fundamental mode (but again only on SUSE). So if I type in an empty buffer in "Fundamental" mode: 1234 ... I end up with this: (4 spaces)1 (1 tab)2 (1 tab,4 spaces)3 (2 tabs)4 5. Can someone suggest how to debug this further or find a local fix? With best regards, Daniel --047d7bea3de6b210bc0505b6f264 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On S= at, Oct 18, 2014 at 1:35 AM, Glenn Morris <rgm@gnu.org> wrote:
=

I cannot reproduce this with `emacs -Q'.

(Since you reported this twice, I will delete the other bug, #18755)

1. Thank you for de= leting the duplicate. I thought my first e-mail
didn't make it.
<= br>
2. I also used "src/emacs-24.4.1 -= Q" or
"src/emacs-24.4.1 -Q -nw", which makes no differenc= e for this problem.

3. However, I g= et the buggy behavior only on
"SUSE Linux Enterprise Server"= =C2=A0 version 10 and 11 (sles10, sles11).
Today I compiled emacs on a "Debian testing" system, where I = do
not see the problem.

4. While trying more, I noticed that this is actua= lly not a problem
specific to the shell= -mode. It similarly happens in fundamental mode
(but again only on SUSE). So if I type in an empty buffer in
"Fundamental" mode:
1<return>2<return>3<return>4<re= turn>

... I end up with this:
(4 spaces)1
(1 tab)2
(1 tab,4 spaces)3
<= /div>
(2 tabs)4

5. Can someone suggest how to debug= this further or find a local fix?

= With best regards, Daniel
--047d7bea3de6b210bc0505b6f264-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 19 13:38:00 2014 Received: (at 18756) by debbugs.gnu.org; 19 Oct 2014 17:38:00 +0000 Received: from localhost ([127.0.0.1]:55980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfuQZ-0007az-Cj for submit@debbugs.gnu.org; Sun, 19 Oct 2014 13:37:59 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49599 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfuQX-0007ar-4W for 18756@debbugs.gnu.org; Sun, 19 Oct 2014 13:37:57 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XfuQV-0006lX-CB; Sun, 19 Oct 2014 13:37:55 -0400 From: Glenn Morris To: Daniel Daboul Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation References: X-Spook: pre-emptive Crowell Downing Street csystems counter X-Ran: w8pvpD]}Sx91/I8]niH:+$)v^fjdiRq4&B^g;Rm!:F^}9L`l\5j&gJ!$2?U:myE5u>Fgzd X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 19 Oct 2014 13:37:54 -0400 In-Reply-To: (Daniel Daboul's message of "Sat, 18 Oct 2014 21:49:37 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) Daniel Daboul wrote: > 3. However, I get the buggy behavior only on > "SUSE Linux Enterprise Server" version 10 and 11 (sles10, sles11). > Today I compiled emacs on a "Debian testing" system, where I do > not see the problem. I have no idea how a problem like this could be OS-specific. You are definitely running the same version of Emacs on both systems, with no local changes, and no .emacs etc issues? From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 19 14:35:55 2014 Received: (at 18756) by debbugs.gnu.org; 19 Oct 2014 18:35:55 +0000 Received: from localhost ([127.0.0.1]:56034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfvKd-0001uN-18 for submit@debbugs.gnu.org; Sun, 19 Oct 2014 14:35:55 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:57342) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XfvKa-0001u8-MF for 18756@debbugs.gnu.org; Sun, 19 Oct 2014 14:35:53 -0400 Received: by mail-wg0-f44.google.com with SMTP id y10so3986182wgg.27 for <18756@debbugs.gnu.org>; Sun, 19 Oct 2014 11:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=+1drYKzecE7wdhEIH+Gpfauhdx/kIpORarOK3ITegXA=; b=aX3864m4zSuEZGMBaqbH1m++ccuTxBjLuu5IPivH5BE6u+Vsga9OOBSDf/p1sxOQ94 kS5cemeZ4WZF0xJSIvCe/91RkbykqxX0YHUUWGAJWYWw9A9l6q8r9gNzNaQ/Un+Cd8v6 u3Z5iIqBC1VtQiXXPnc23Jfn5mzGbiMnkdBNT95XQkK4vZiauVw4DCr7ONAlrZNdz5iT npN3A/VojBLl4Y+IGuE85xxoHmgQlbeu5UgpUoboyqGO/AlQ/SZml0JuilHCzB1M8tPp l5DRK0giaBug/2jUbSsKm+7aXKO2lmYt3cC7D7iYKHf4kuISsP+hSFnUkSbMBnJCo/n4 RwgA== X-Received: by 10.194.78.238 with SMTP id e14mr5137002wjx.106.1413743746244; Sun, 19 Oct 2014 11:35:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.217.91.70 with HTTP; Sun, 19 Oct 2014 11:35:26 -0700 (PDT) In-Reply-To: References: From: Daniel Daboul Date: Sun, 19 Oct 2014 21:35:26 +0300 Message-ID: Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Content-Type: multipart/alternative; boundary=047d7bfcf010cc66ce0505cadd4d X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, Oct 19, 2014 at 8:37 PM, Glenn Morris wrote: > You are definitely running the same version of Emacs on both systems, > with no local changes, and no .emacs etc issues? > Yes, I just downloaded the package you announced ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-24.4-rc1.tar.xz [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (danieldaboul[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 0.0 HTML_MESSAGE BODY: HTML included in message 1.0 MALFORMED_FREEMAIL Bad headers on message from free email service 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Sun, Oct 19, 2014 at 8:37 PM, Glenn Morris wrote: > You are definitely running the same version of Emacs on both systems, > with no local changes, and no .emacs etc issues? > Yes, I just downloaded the package you announced ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-24.4-rc1.tar.xz [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.44 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (danieldaboul[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.2 MISSING_HEADERS Missing To: header 0.0 HTML_MESSAGE BODY: HTML included in message 1.0 MALFORMED_FREEMAIL Bad headers on message from free email service 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid --047d7bfcf010cc66ce0505cadd4d Content-Type: text/plain; charset=UTF-8 On Sun, Oct 19, 2014 at 8:37 PM, Glenn Morris wrote: > You are definitely running the same version of Emacs on both systems, > with no local changes, and no .emacs etc issues? > Yes, I just downloaded the package you announced ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-24.4-rc1.tar.xz and then basically ran ... ../emacs-24.4/configure --prefix=$HOME/r/$VER \ --with-gif=no --without-pop --without-sound --without-gpm --without-dbus --with-x-toolkit=lucid I also made a version with --without-x \ make src/emacs-24.4.1 -Q src/emacs-24.4.1 -Q -nw ... which, AFAIK, excludes all local configuration files. BTW, I had seen the problem earlier in some of the 24.3.9x versions which I tried. But back than, I ignored it, hoping for the best. I am now using 24.3.1 on Suse which runs fine and which I also configured as similar as possible. --047d7bfcf010cc66ce0505cadd4d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On S= un, Oct 19, 2014 at 8:37 PM, Glenn Morris wrote:
You are definitely running the same version of Emacs on both systems,
with no local changes, and no .emacs etc issues?

Yes, I just downloa= ded the package you announced
ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-2= 4.4-rc1.tar.xz

and then basically ran ...
../emacs-24.4/confi= gure --prefix=3D$HOME/r/$VER \
=C2=A0 --with-gif=3Dno --without-pop --wi= thout-sound --without-gpm --without-dbus --with-x-toolkit=3Dlucid
I also= made a version with
=C2=A0 --without-x \

make
src/emacs-24.4.= 1 -Q
src/emacs-24.4.1 -Q -nw

...= which, AFAIK, excludes all local configuration files.

BTW, I had seen the p= roblem earlier in some of the 24.3.9x versions
which I tried. But back = than, I ignored it, hoping for the best.

I am now using 24.3.1 on Suse which runs fine and which I also
con= figured as similar as possible.

--047d7bfcf010cc66ce0505cadd4d-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 20 01:35:07 2014 Received: (at 18756) by debbugs.gnu.org; 20 Oct 2014 05:35:08 +0000 Received: from localhost ([127.0.0.1]:56235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xg5cY-0004cK-BO for submit@debbugs.gnu.org; Mon, 20 Oct 2014 01:35:06 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:37979 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xg5cV-0004cA-R3 for 18756@debbugs.gnu.org; Mon, 20 Oct 2014 01:35:04 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Xg5cU-0007WW-Sk; Mon, 20 Oct 2014 01:35:02 -0400 From: Glenn Morris To: Daniel Daboul Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation References: X-Spook: Audiotel IMF Mossad ASPIC rail gun LABLINK CID Legion of X-Ran: FhF4s>NrBp4W4sBb]*I\D2zW:GEvf%Nq32;xhQ0#PwINZ8:6'(6~+cXc1~Lh!0,ekSm"$4 X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 20 Oct 2014 01:35:02 -0400 In-Reply-To: (Daniel Daboul's message of "Sun, 19 Oct 2014 21:35:26 +0300") Message-ID: <7kr3y3b8xl.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) Sorry, no idea. Anyone? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 20 10:11:23 2014 Received: (at submit) by debbugs.gnu.org; 20 Oct 2014 14:11:23 +0000 Received: from localhost ([127.0.0.1]:57336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgDgA-00041J-Fs for submit@debbugs.gnu.org; Mon, 20 Oct 2014 10:11:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39700) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgDg6-000410-TE for submit@debbugs.gnu.org; Mon, 20 Oct 2014 10:11:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgDfs-0005my-Eo for submit@debbugs.gnu.org; Mon, 20 Oct 2014 10:11:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgDfs-0005ms-CI for submit@debbugs.gnu.org; Mon, 20 Oct 2014 10:11:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgDfj-0000Ab-B2 for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 10:11:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgDfa-0005j7-94 for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 10:10:55 -0400 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:36161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgDfZ-0005i2-Rx for bug-gnu-emacs@gnu.org; Mon, 20 Oct 2014 10:10:46 -0400 Received: by mail-pd0-f171.google.com with SMTP id ft15so5089252pdb.30 for ; Mon, 20 Oct 2014 07:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=NFX2Y8sX3pYnMbcCz6J8Pv/KMixq7yApn2Y8hJ6JQoI=; b=wuxzcWhYQVU2IMgiLCsoKSgJq6vMPeAe2nDgYycOYSE3uLuFhI1syuZkf72eGa4Jhv 8kc+axIuyfC41/RD4IBjOfEDf/7i/k+IkwVPk/g3LOA6mScuhQZnwC+v5Xfxb0DPc+4c 3MesiNqEDCyjRaH//7lD704dncIml5976ZukvbGxwTIALllFCEK5wfmSUauFpR0Ml2ap CVnWF69FJRFjMNHfUkZ7oAh0xZr7SpfMIULai9nznRMj+zjvOxoxczszg3L/bTBAGwOf AYWPEj9zgcvALo93911fAcAHi7IvgrnOiAgsL3BVzmvd9b77ciQtct5HBja7+mff6P2t sv3g== X-Received: by 10.70.4.164 with SMTP id l4mr3725894pdl.137.1413814240694; Mon, 20 Oct 2014 07:10:40 -0700 (PDT) Received: from localhost (ppp118-209-119-125.lns20.mel4.internode.on.net. [118.209.119.125]) by mx.google.com with ESMTPSA id fv6sm9313651pdb.83.2014.10.20.07.10.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 20 Oct 2014 07:10:39 -0700 (PDT) References: <7kr3y3b8xl.fsf@fencepost.gnu.org> From: Alexis To: bug-gnu-emacs@gnu.org Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Tue, 21 Oct 2014 00:59:08 +1100 In-reply-to: <7kr3y3b8xl.fsf@fencepost.gnu.org> Message-ID: <87egu2zvad.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Glenn Morris writes: > Sorry, no idea. > > Anyone? Superficially, it looks like return/enter is only sending a line feed, not a line feed + carriage return[1]; i wonder if there's some SLES setting influencing this? (Sometimes after exiting from Emacs back into a shell - zsh on Debian Wheezy - i observe similar behaviour from the shell, i.e. output seems to no longer include carriage returns, only line feeds. But i've not been able to reproduce this reliably.) [1] In terms of cursor position, not necessarily actual \l and \r characters. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 20 11:20:46 2014 Received: (at 18756) by debbugs.gnu.org; 20 Oct 2014 15:20:46 +0000 Received: from localhost ([127.0.0.1]:57404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgElJ-0005xm-EL for submit@debbugs.gnu.org; Mon, 20 Oct 2014 11:20:45 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:56224) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgElG-0005xS-4f for 18756@debbugs.gnu.org; Mon, 20 Oct 2014 11:20:44 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NDR005000RRGF00@mtaout24.012.net.il> for 18756@debbugs.gnu.org; Mon, 20 Oct 2014 18:14:00 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDR0018Z0ZC8350@mtaout24.012.net.il>; Mon, 20 Oct 2014 18:14:00 +0300 (IDT) Date: Mon, 20 Oct 2014 18:20:26 +0300 From: Eli Zaretskii Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation In-reply-to: <87egu2zvad.fsf@gmail.com> X-012-Sender: halo1@inter.net.il To: Alexis , Daniel Daboul Message-id: <83zjcqbwed.fsf@gnu.org> References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Resent-Sender: help-debbugs@gnu.org > From: Alexis > Date: Tue, 21 Oct 2014 00:59:08 +1100 > > Superficially, it looks like return/enter is only sending a line feed, > not a line feed + carriage return This doesn't seem to explain what the OP describes as happening both in GUI and TTY sessions: in the former case, we don't send any CR or LF characters to the screen to position the cursor, we do that via Xlib functions. Daniel, is it true that the problem exists in both GUI and text-mode sessions? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 20 12:13:30 2014 Received: (at 18756) by debbugs.gnu.org; 20 Oct 2014 16:13:30 +0000 Received: from localhost ([127.0.0.1]:57441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgFaL-0007Mt-Jb for submit@debbugs.gnu.org; Mon, 20 Oct 2014 12:13:30 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:40160) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgFaJ-0007Mb-6p for 18756@debbugs.gnu.org; Mon, 20 Oct 2014 12:13:27 -0400 Received: by mail-wg0-f52.google.com with SMTP id a1so5813496wgh.35 for <18756@debbugs.gnu.org>; Mon, 20 Oct 2014 09:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=KWNWMVT/CEUVn4kgzbgVtC8o5EfmEi9WvBzfMh9N4HQ=; b=yQ/g/aZT1z+q2FRfhuWuhfS77j3/spjSYYoq/9Y0IUKEaFteJ1pv3o2SmKsyuDHzt3 H5HBaisOghwV9Qrz+ukZ6spQ2bM8x369hHH4R29+YkWsmZcH/A4p7l/WJNCV5NM5iRi1 IbDI12SwfrBwuoRBtN6cgg1rHwoZwSzWML3/ereMzbjCbZ02xXsx60MkEZdFR3hiN8B8 4+ECVmKR67bPPVa9blwexWbD4SGNSaOiIWZP95W0xC2lgXhU9hJL0R13Ieif7JO3awlD tiAvP2AnXKa85myTPcB84BC5nQ+m7ArsIkagm60DU5icJ/Kmt3Uasv6Amm64CYu95l9O G+Iw== X-Received: by 10.194.78.238 with SMTP id e14mr12573689wjx.106.1413821601061; Mon, 20 Oct 2014 09:13:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.217.91.70 with HTTP; Mon, 20 Oct 2014 09:13:00 -0700 (PDT) In-Reply-To: <83zjcqbwed.fsf@gnu.org> References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> From: Daniel Daboul Date: Mon, 20 Oct 2014 19:13:00 +0300 Message-ID: Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation To: Eli Zaretskii Content-Type: multipart/alternative; boundary=047d7bfcf0104ea3010505dcfeb5 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org, Alexis X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --047d7bfcf0104ea3010505dcfeb5 Content-Type: text/plain; charset=UTF-8 On Mon, Oct 20, 2014 at 6:20 PM, Eli Zaretskii wrote: > Daniel, is it true that the problem exists in both GUI and text-mode > sessions? > Yes, that is true. Also, it is noticeable that a line is indented after I press return and then the point is aligned with the first character in the line above it (rather than just moving down). And I think we know that pressing enter usually causes a chain of events. Help tells me: RET (translated from ) runs the command newline, which is an interactive compiled Lisp function in `simple.el'. It is bound to RET. (newline &optional ARG INTERACTIVE) Insert a newline, and move to left margin of the new line if it's blank. If option `use-hard-newlines' is non-nil, the newline is marked with the text-property `hard'. With ARG, insert that many newlines. If `electric-indent-mode' is enabled, this indents the final new line that it adds, and reindents the preceding line. To just insert a newline, use M-x electric-indent-just-newline. Calls `auto-fill-function' if the current column number is greater than the value of `fill-column' and ARG is nil. A non-nil INTERACTIVE argument means to run the `post-self-insert-hook'. I didn't mention it before, but there are modes that superficially seem to work OK, like for example c-mode and lisp-interaction-mode. --047d7bfcf0104ea3010505dcfeb5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On M= on, Oct 20, 2014 at 6:20 PM, Eli Zaretskii=C2=A0 w= rote:
Daniel, is it true that the problem exists in both GUI and text-mode
sessions?

Yes, that is true.<= br>
Also, it is noticeable that a line = is indented after I press return
and th= en the point is aligned with the first character in the line above it
(rather than just moving down).

And I think we know that pressing enter usually= causes a chain of
events. Help tells me:

RET (translated from <return>) runs the command newline, wh= ich is an
interactive compiled Lisp function in `simple.el'.

= It is bound to RET.

(newline &optional ARG INTERACTIVE)

I= nsert a newline, and move to left margin of the new line if it's blank.=
If option `use-hard-newlines' is non-nil, the newline is marked wit= h the
text-property `hard'.
With ARG, insert that many newlines.<= br>
If `electric-indent-mode' is enabled, this indents the final new= line
that it adds, and reindents the preceding line.=C2=A0 To just inse= rt
a newline, use M-x electric-indent-just-newline.

Calls `auto-f= ill-function' if the current column number is greater
than the value= of `fill-column' and ARG is nil.
A non-nil INTERACTIVE argument mea= ns to run the `post-self-insert-hook'.

I didn't mentio= n it before, but there are modes that superficially seem
to work OK, li= ke for example c-mode and lisp-interaction-mode.
--047d7bfcf0104ea3010505dcfeb5-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 21 21:03:58 2014 Received: (at 18756) by debbugs.gnu.org; 22 Oct 2014 01:03:58 +0000 Received: from localhost ([127.0.0.1]:58946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgkLF-0004Dm-JV for submit@debbugs.gnu.org; Tue, 21 Oct 2014 21:03:58 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:56947) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgkLD-0004DW-1H for 18756@debbugs.gnu.org; Tue, 21 Oct 2014 21:03:55 -0400 Received: by mail-pa0-f50.google.com with SMTP id kx10so2538514pab.37 for <18756@debbugs.gnu.org>; Tue, 21 Oct 2014 18:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=V/tCA2/sM8p9UB/H6pBRSzmZ3TKAVM7gilE7joYkz1Y=; b=GQTbhJFw5KVgIyODjPQvQghyua39vZp9gRnvnIIgbqPeMwbEXOYDOCGl+5KHiff3HI ioQJpLkdicxNc1ZazN7gCz7m973R3N3bpnZc+yvXpkf7qH/r1n2bQCYBJJV+4r33m4E2 ob8BhUaae3wCbJ4M03JsfBpFvT9+zCd7vpxGdGgDcsPub8xQNC96SKrujbOqkJ798GT6 7zmXRW/w70Gm8SvqSYBBMTNI8zRNk9xUutnf5FP8W8yWrnlxjIh2iCn83dfRzmrkSb7G UHczoiAJJhnujZp1B/EITgrbRxAR1Oh95ruHwlW+OZ6sSwL2R3NNG1Depzw71Y9sXW1B BaEw== X-Received: by 10.66.165.8 with SMTP id yu8mr7306390pab.128.1413939828856; Tue, 21 Oct 2014 18:03:48 -0700 (PDT) Received: from localhost (ppp118-209-119-125.lns20.mel4.internode.on.net. [118.209.119.125]) by mx.google.com with ESMTPSA id fk10sm12969986pdb.49.2014.10.21.18.03.46 for <18756@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 21 Oct 2014 18:03:47 -0700 (PDT) References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> From: Alexis To: 18756@debbugs.gnu.org Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Wed, 22 Oct 2014 12:01:18 +1100 In-reply-to: Message-ID: <874muw29w1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18756 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Daniel Daboul writes: > I didn't mention it before, but there are modes that superficially > seem to work OK, like for example c-mode and lisp-interaction-mode. Out of interest, what's the status of electric-indent-mode (i.e., enabled or disabled?) in fundamental-mode, shell-script-mode, c-mode and lisp-interaction-mode? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 21 23:22:34 2014 Received: (at 18756) by debbugs.gnu.org; 22 Oct 2014 03:22:34 +0000 Received: from localhost ([127.0.0.1]:58997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgmVO-0007iU-0p for submit@debbugs.gnu.org; Tue, 21 Oct 2014 23:22:34 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:18693) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgmVL-0007iE-UL for 18756@debbugs.gnu.org; Tue, 21 Oct 2014 23:22:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOAEDqRmBaoNMIQ X-IPAS-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOAEDqRmBaoNMIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="94786265" Received: from 69-165-143-59.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Oct 2014 23:22:25 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 08526AE122; Tue, 21 Oct 2014 23:22:26 -0400 (EDT) From: Stefan Monnier To: Alexis Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Message-ID: References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> <874muw29w1.fsf@gmail.com> Date: Tue, 21 Oct 2014 23:22:26 -0400 In-Reply-To: <874muw29w1.fsf@gmail.com> (Alexis's message of "Wed, 22 Oct 2014 12:01:18 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Out of interest, what's the status of electric-indent-mode (i.e., > enabled or disabled?) in fundamental-mode, shell-script-mode, c-mode and > lisp-interaction-mode? It's a global mode, so it's either enabled everywhere or nowhere. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 21 23:42:56 2014 Received: (at 18756) by debbugs.gnu.org; 22 Oct 2014 03:42:56 +0000 Received: from localhost ([127.0.0.1]:59001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgmp6-0008EA-1i for submit@debbugs.gnu.org; Tue, 21 Oct 2014 23:42:56 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:49687) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgmp3-0008Dv-9N for 18756@debbugs.gnu.org; Tue, 21 Oct 2014 23:42:54 -0400 Received: by mail-pa0-f52.google.com with SMTP id fb1so2788192pad.39 for <18756@debbugs.gnu.org>; Tue, 21 Oct 2014 20:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=wkCcGNFK8vBLAPCDbuXNkOHB++3g91po3I9riRGctZA=; b=zz3P9KYxtkWdbrVz7s39Acc+GZfaKq3QZ7FmkRI2Z5fefDp+x652vpHOce2qW/Gb/L pAQTILPjpzURiefg6bt3551Jh3jyU/WESGk8gRMfIKyK/CvQXXVUofXzPkSTpm1SGBCF I4s/5Dfu37SjDo2YHiOEJzVKlvq38zotGDN+hf+2dsikj60+/NBJpAVDA0B5W5QCO1rT Su5dL39BUly6Dc/J7PppUk+yp6C896LYXbYlovbs/NtLiJmBLfBIvXHmtSiHrFtmggz+ 1L5dnrl0xaQY/fTzhu1ydMHHm5vAmZn6bgwl4nGnc/mwUrueQF6jBNfJswGXbh3tFMiG 965A== X-Received: by 10.70.63.9 with SMTP id c9mr39866811pds.104.1413949367200; Tue, 21 Oct 2014 20:42:47 -0700 (PDT) Received: from localhost (ppp118-209-119-125.lns20.mel4.internode.on.net. [118.209.119.125]) by mx.google.com with ESMTPSA id r8sm13191263pds.35.2014.10.21.20.42.44 for <18756@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 21 Oct 2014 20:42:46 -0700 (PDT) References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> <874muw29w1.fsf@gmail.com> From: Alexis To: 18756@debbugs.gnu.org Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Wed, 22 Oct 2014 14:37:30 +1100 In-reply-to: Message-ID: <87zjcozs5r.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18756 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier writes: >> Out of interest, what's the status of electric-indent-mode (i.e., >> enabled or disabled?) in fundamental-mode, shell-script-mode, c-mode and >> lisp-interaction-mode? > > It's a global mode, so it's either enabled everywhere or nowhere. Ah okay. The reason i asked is because of this: https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00607.html https://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00650.html and this: https://www.reddit.com/r/emacs/comments/2jxpz9/anyone_having_issues_with_jsmode_in_244/ Since electric-indent-mode was the common factor in those instances, i was wondering if it might be involved with this issue also .... From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 22 09:04:35 2014 Received: (at 18756) by debbugs.gnu.org; 22 Oct 2014 13:04:35 +0000 Received: from localhost ([127.0.0.1]:59261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xgvac-00073d-4Q for submit@debbugs.gnu.org; Wed, 22 Oct 2014 09:04:34 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:54004) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgvaY-00073L-Uy for 18756@debbugs.gnu.org; Wed, 22 Oct 2014 09:04:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="94823700" Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Oct 2014 09:04:22 -0400 Received: by pastel.home (Postfix, from userid 20848) id 99D3043AB; Wed, 22 Oct 2014 09:04:22 -0400 (EDT) From: Stefan Monnier To: Alexis Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Message-ID: References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> <874muw29w1.fsf@gmail.com> <87zjcozs5r.fsf@gmail.com> Date: Wed, 22 Oct 2014 09:04:22 -0400 In-Reply-To: <87zjcozs5r.fsf@gmail.com> (Alexis's message of "Wed, 22 Oct 2014 14:37:30 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Since electric-indent-mode was the common factor in those instances, i > was wondering if it might be involved with this issue also .... Probably. But we'd need actual bug-reports to figure that out. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 25 15:25:42 2014 Received: (at submit) by debbugs.gnu.org; 25 Oct 2014 19:25:42 +0000 Received: from localhost ([127.0.0.1]:35483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi6y5-00005p-S5 for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:25:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55955) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xi6y1-00005a-Sn for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:25:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi6xm-0001pP-CF for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:25:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FSL_HELO_BARE_IP_2,RCVD_NUMERIC_HELO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi6xm-0001pK-9a for submit@debbugs.gnu.org; Sat, 25 Oct 2014 15:25:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi6xe-0001SG-Ql for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:25:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi6xX-0001n0-Ap for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:25:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:51626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi6xX-0001kN-4J for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 15:25:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xi6xV-00017K-Ay for bug-gnu-emacs@gnu.org; Sat, 25 Oct 2014 21:25:05 +0200 Received: from 134.191.220.73 ([134.191.220.73]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Oct 2014 21:25:05 +0200 Received: from danieldaboul by 134.191.220.73 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 Oct 2014 21:25:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Daniel Daboul Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Sat, 25 Oct 2014 19:20:41 +0000 (UTC) Lines: 17 Message-ID: References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> <874muw29w1.fsf@gmail.com> <87zjcozs5r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 134.191.220.73 (Mozilla/5.0 (Windows NT 6.2; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.2 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.2 (---) Stefan Monnier writes: > > > Since electric-indent-mode was the common factor in those instances, i > > was wondering if it might be involved with this issue also .... > > Probably. But we'd need actual bug-reports to figure that out. Can one of you advise how I could test "electric-indent-mode" in isolation on my broken Emacs in SUSE and, if applicable, submit an "actual bug-report"? The original mail in this thread was created with "M-x report-emacs-bug" but apparently it was not good enough for debugging. - Daniel From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 25 22:43:13 2014 Received: (at 18756) by debbugs.gnu.org; 26 Oct 2014 02:43:13 +0000 Received: from localhost ([127.0.0.1]:35613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiDnU-000256-Ui for submit@debbugs.gnu.org; Sat, 25 Oct 2014 22:43:13 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:35374) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiDnS-00024o-Ra for 18756@debbugs.gnu.org; Sat, 25 Oct 2014 22:43:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IPAS-Result: ArUGAIDvNVNFpY87/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="95209429" Received: from 69-165-143-59.dsl.teksavvy.com (HELO pastel.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Oct 2014 22:43:05 -0400 Received: by pastel.home (Postfix, from userid 20848) id 1BECA3292; Sat, 25 Oct 2014 22:43:05 -0400 (EDT) From: Stefan Monnier To: Daniel Daboul Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Message-ID: References: <7kr3y3b8xl.fsf@fencepost.gnu.org> <87egu2zvad.fsf@gmail.com> <83zjcqbwed.fsf@gnu.org> <874muw29w1.fsf@gmail.com> <87zjcozs5r.fsf@gmail.com> Date: Sat, 25 Oct 2014 22:43:05 -0400 In-Reply-To: (Daniel Daboul's message of "Sat, 25 Oct 2014 19:20:41 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Can one of you advise how I could test "electric-indent-mode" in > isolation on my broken Emacs in SUSE and, if applicable, submit an > "actual bug-report"? You might want to disable electric-indent-mode and then try to reproduce the same problem by hitting the TAB key before/after RET. Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 04 03:07:14 2014 Received: (at submit) by debbugs.gnu.org; 4 Dec 2014 08:07:14 +0000 Received: from localhost ([127.0.0.1]:53221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwRRR-0006zS-RS for submit@debbugs.gnu.org; Thu, 04 Dec 2014 03:07:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55909) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwRRP-0006zG-Nr for submit@debbugs.gnu.org; Thu, 04 Dec 2014 03:07:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwRRJ-0005Vy-1T for submit@debbugs.gnu.org; Thu, 04 Dec 2014 03:07:11 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwRRI-0005Vt-Ud for submit@debbugs.gnu.org; Thu, 04 Dec 2014 03:07:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwRRC-00068p-Vl for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 03:07:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwRR7-0005Tg-3m for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 03:06:58 -0500 Received: from plane.gmane.org ([80.91.229.3]:50765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwRR6-0005TJ-T0 for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 03:06:53 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XwRR4-0003Rs-5d for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 09:06:50 +0100 Received: from bombardier2.lfdj.com ([81.80.56.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2014 09:06:50 +0100 Received: from gpion by bombardier2.lfdj.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2014 09:06:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Gilles Pion Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Date: Thu, 4 Dec 2014 08:06:40 +0000 (UTC) Lines: 15 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 81.80.56.131 (Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Daniel Daboul gmail.com> writes: > > M-x shell-script-mode > #hi > ls > x-3 > With every key-press the current line gets indeted, Could this be related to this other bug: https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-07/msg00551.html Submitted last july, unfortunately got not answer From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 04 09:43:52 2014 Received: (at 18756) by debbugs.gnu.org; 4 Dec 2014 14:43:53 +0000 Received: from localhost ([127.0.0.1]:53347 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwXdI-0001Bi-9a for submit@debbugs.gnu.org; Thu, 04 Dec 2014 09:43:52 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:27640) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwXdE-0001BZ-NT for 18756@debbugs.gnu.org; Thu, 04 Dec 2014 09:43:49 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnsPAOwQflRMCqTq/2dsb2JhbABbgwdSWYI1hVq+XxsKhhkEAgKBJBcBAQEBAQF8hAMBAQECAQECUyMFCwsOJhIUFAQNJIg+AwkJDdBEDYV7AQEBAQEBBAEBAQEBARyQbweESAWLAYoeg3mEVJFDgXiEGSEwAYJGAQEB X-IPAS-Result: AnsPAOwQflRMCqTq/2dsb2JhbABbgwdSWYI1hVq+XxsKhhkEAgKBJBcBAQEBAQF8hAMBAQECAQECUyMFCwsOJhIUFAQNJIg+AwkJDdBEDYV7AQEBAQEBBAEBAQEBARyQbweESAWLAYoeg3mEVJFDgXiEGSEwAYJGAQEB X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="99546031" Received: from 76-10-164-234.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.234]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Dec 2014 09:43:47 -0500 Received: by pastel.home (Postfix, from userid 20848) id 68076996B; Thu, 4 Dec 2014 09:43:27 -0500 (EST) From: Stefan Monnier To: Gilles Pion Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation Message-ID: References: Date: Thu, 04 Dec 2014 09:43:27 -0500 In-Reply-To: (Gilles Pion's message of "Thu, 4 Dec 2014 08:06:40 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 18756 Cc: 18756@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > Daniel Daboul gmail.com> writes: >> M-x shell-script-mode >> #hi >> ls >> x-3 >> With every key-press the current line gets indeted, > Could this be related to this other bug: > https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-07/msg00551.html No, his problem seems to be quite different because the behavior does not correspond to any normal behavior of sh-mode's indentation. Instead, it sounds like something is overriding sh-mode's indentation in his case. > Submitted last july, unfortunately got not answer Sorry for that. It happens too often. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 22 15:35:12 2014 Received: (at 18756) by debbugs.gnu.org; 22 Dec 2014 20:35:12 +0000 Received: from localhost ([127.0.0.1]:55256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y39hA-0004xJ-IL for submit@debbugs.gnu.org; Mon, 22 Dec 2014 15:35:12 -0500 Received: from mail-lb0-f171.google.com ([209.85.217.171]:48782) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y39h8-0004x8-Mn for 18756@debbugs.gnu.org; Mon, 22 Dec 2014 15:35:11 -0500 Received: by mail-lb0-f171.google.com with SMTP id w7so4511412lbi.16 for <18756@debbugs.gnu.org>; Mon, 22 Dec 2014 12:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=wXvT3iunCzmnDpv1T8lnb11tvItnKXebvy40+MD4DSA=; b=NKyAboHd0kDinGwAiYvODr3nSJmbmsWB22KCaGiI+Ys6Xfqm0/cAZU6Zau3MYuA3R+ tchb4EeaDS1b/Q1e7iLIFaXC3IrfvqhSPNwvgMgGoxOet9gjrTeodyzhfFiU72uj7S70 hbiJEh9CEITbalZcDeLH5zeGoey13XUFXVSKw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:content-type; bh=wXvT3iunCzmnDpv1T8lnb11tvItnKXebvy40+MD4DSA=; b=GXwXZDxAgOXitYN2B1GwT6U9GizWhMjQ0FcSP0gJHfhfhPetp6xSI3D4zl8VJfu5c8 XdpA9qc+noxXSCIRoZ0SwmurtKnNDDvmW9TGLHf5D6tWhv6+8bIwmy5HaI++QtFnUZPy wrRuZJRZGPIjqkktkRGuS+GoO/LSPpOUu4yf2EmOWwBDb0ep0JpvdtqvmgEkfaLT2CtA FCvZCptikkNPvO04x19FVUdGa/GXcagQebk+Dp/TA50zD4ePBn0Lg/YIG4PTaTs2at1v GoznwiCYE6LCXjLANRoH7GC6WH32zTvKYE9xRm21sAj8UORsW8puuUKBzEgJReismRFb IegA== X-Gm-Message-State: ALoCoQlrox/4TmmjJ5KmNIthg0QxPSI4ClJwjkDp4gJiwnkR5SeelDKK+YorIDrgEY9xV9CrIwbY X-Received: by 10.152.29.6 with SMTP id f6mr24154714lah.32.1419280509776; Mon, 22 Dec 2014 12:35:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.9.196 with HTTP; Mon, 22 Dec 2014 12:34:49 -0800 (PST) X-Originating-IP: [92.28.61.39] From: Peter Oliver Date: Mon, 22 Dec 2014 20:34:49 +0000 X-Google-Sender-Auth: 3tFMWf8zQVAmukH7fhd0qzm4ey0 Message-ID: Subject: To: 18756@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I can reproduce this when electric-indent-mode is on and sh-set-shell is run for a csh-family shell. See also bug 19433, which causes this problem to affect modes other than sh-mode. -- Peter Oliver [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.171 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 18756 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I can reproduce this when electric-indent-mode is on and sh-set-shell is run for a csh-family shell. See also bug 19433, which causes this problem to affect modes other than sh-mode. -- Peter Oliver [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.171 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 BLANK_SUBJECT Subject is present but empty 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid I can reproduce this when electric-indent-mode is on and sh-set-shell is run for a csh-family shell. See also bug 19433, which causes this problem to affect modes other than sh-mode. -- Peter Oliver From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 24 18:25:41 2014 Received: (at control) by debbugs.gnu.org; 24 Dec 2014 23:25:42 +0000 Received: from localhost ([127.0.0.1]:56809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3vJF-0006Tt-Db for submit@debbugs.gnu.org; Wed, 24 Dec 2014 18:25:41 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:53440) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3vJB-0006Tk-P3 for control@debbugs.gnu.org; Wed, 24 Dec 2014 18:25:38 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Y3vJB-0008Nr-DX for control@debbugs.gnu.org; Wed, 24 Dec 2014 18:25:37 -0500 Date: Wed, 24 Dec 2014 18:25:37 -0500 Message-Id: Subject: control message for bug 18756 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 18756 = confirmed From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 06 13:55:23 2015 Received: (at 18756-done) by debbugs.gnu.org; 6 Jan 2015 18:55:23 +0000 Received: from localhost ([127.0.0.1]:38889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8ZHn-0005KM-Id for submit@debbugs.gnu.org; Tue, 06 Jan 2015 13:55:23 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:43169) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8ZHk-0005KD-TQ for 18756-done@debbugs.gnu.org; Tue, 06 Jan 2015 13:55:21 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Y8ZHh-0005rM-HB; Tue, 06 Jan 2015 13:55:17 -0500 From: Glenn Morris To: Peter Oliver Subject: Re: bug#18756: 24.4; shell-script-mode does wrong indentation References: X-Spook: Ron Brown bullion espionage bce cryptographic pipeline X-Ran: /S8`pXk3"ttSp9l8DMsvtjj|E9`clYjT\j173f~kU_phA84 (Peter Oliver's message of "Mon, 22 Dec 2014 20:34:49 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18756-done Cc: 18756-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 24.5 Peter Oliver wrote: > I can reproduce this when electric-indent-mode is on and sh-set-shell > is run for a csh-family shell. Thanks for this vital clue. I installed the following, which seems to fix it. diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index d79b387..4700324 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -2477,7 +2475,8 @@ Lines containing only comments are considered empty." (current-column))) current) (save-excursion - (indent-to (if (eq this-command 'newline-and-indent) + (indent-to (if (or (eq this-command 'newline-and-indent) + (and electric-indent-mode (eq this-command 'newline))) previous (if (< (current-column) (setq current (progn (back-to-indentation) From unknown Fri Jun 20 07:26:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Feb 2015 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator