From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 12 11:35:52 2016 Received: (at submit) by debbugs.gnu.org; 12 Feb 2016 16:35:52 +0000 Received: from localhost ([127.0.0.1]:38161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUGhE-0004Ob-7W for submit@debbugs.gnu.org; Fri, 12 Feb 2016 11:35:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39015) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aUEWT-0007d2-73 for submit@debbugs.gnu.org; Fri, 12 Feb 2016 09:16:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUEWJ-0005Mb-MO for submit@debbugs.gnu.org; Fri, 12 Feb 2016 09:16:32 -0500 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,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUEWJ-0005MX-JP for submit@debbugs.gnu.org; Fri, 12 Feb 2016 09:16:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUEWH-0000Tl-Px for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 09:16:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUEWD-0005Jg-Md for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 09:16:25 -0500 Received: from smtp-01.snyder.systems ([85.214.28.39]:47851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUEWD-0005JO-70 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2016 09:16:21 -0500 Received: from nature.localdomain (unknown [134.245.44.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-01.snyder.systems (Postfix) with ESMTPSA id 5AEDF23F60082 for ; Fri, 12 Feb 2016 14:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lassekliemann.de; s=2015.01; t=1455286549; bh=a2nx4lunV1vetlPSXhtSwu9FETjw7mSFxE++kM/pC6w=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=tvT4mMehxtKHSEOIvO2N7q60Gmt2pDARvtejEfAm+el83q53dwMQXjPba18OHEo0o vbvuLFMiObGSeStsteL24X20BCt6Q1hdT0TVsMcIDqH6n9bMTb12f8ROUdd45Rr6/x tMA8vylNrSX2uTK52jqJdVX1f8TZVa15wSkAcVe8= Received: by nature.localdomain (Postfix, from userid 1000) id 10F0A1A0105; Fri, 12 Feb 2016 15:15:43 +0100 (CET) From: Lasse Kliemann To: bug-gnu-emacs@gnu.org Subject: 24.5; indentation in shell-script-mode after && User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 12 Feb 2016 15:15:43 +0100 Message-ID: <8760xuypyo.fsf@lassekliemann.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 12 Feb 2016 11:35:51 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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 (----) M-x shell-script-mode type: foo && bar This will make the second line (bar) indented. While this may be desired sometimes, in some cases it is not. I use && for control flow throughout my whole program, which makes this indentation not useful. A fix was offered here, which I use now: http://superuser.com/a/1038557/494683 Maybe this could be made a configurable option? In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.16.6) of 2015-09-17 on lgw01-52, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11702000 System Description: Ubuntu 15.10 Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 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 diff-auto-refine-mode: t TeX-PDF-mode: t TeX-source-correlate-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Checking 21 files in /usr/share/emacs/site-lisp/auctex... Checking for load-path shadows...done Auto-saving...done Mark set Auto-saving...done scroll-down-command: Beginning of buffer [10 times] Mark set Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Load-path shadows: /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/24.5/lisp/language/thai-word /usr/share/emacs/24.5/site-lisp/slime/lib/ert-x hides /usr/share/emacs/24.5/lisp/emacs-lisp/ert-x /usr/share/emacs/24.5/site-lisp/slime/lib/ert hides /usr/share/emacs/24.5/lisp/emacs-lisp/ert /usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp /usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context /usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x /usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info /usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik /usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex /usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl /usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex /usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex /usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite /usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt /usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs /usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview /usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style /usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font /usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp /usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf /usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en /usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar /usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex /usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold Features: (sh-script smie executable pp shadow sort gnus-util mail-extr emacsbug help-mode whiteboard-theme notmuch hl-line notmuch-version notmuch-message notmuch-maildir-fcc notmuch-hello wid-edit notmuch-tree notmuch-parser notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-address notmuch-wash diff-mode coolj notmuch-query goto-addr thingatpt icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag notmuch-lib cl gv message sendmail format-spec rfc822 mml mailabbrev mail-utils gmm-utils mailheader mm-view mml-smime mml-sec smime password-cache dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr latex easy-mmode tex-style tex dbus xml crm advice help-fns easymenu server edmacro kmacro cl-loaddefs cl-lib paren slime-autoloads preview-latex tex-site auto-loads 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 dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 137862 7562) (symbols 48 24681 0) (miscs 40 55 121) (strings 32 32081 3972) (string-bytes 1 829533) (vectors 16 16514) (vector-slots 8 474036 6697) (floats 8 90 277) (intervals 56 376 46) (buffers 960 14) (heap 1024 38687 2198)) From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 12:17:24 2022 Received: (at 22645) by debbugs.gnu.org; 12 May 2022 16:17:24 +0000 Received: from localhost ([127.0.0.1]:42014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npBVE-0007dJ-IU for submit@debbugs.gnu.org; Thu, 12 May 2022 12:17:24 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npBVD-0007d3-4X for 22645@debbugs.gnu.org; Thu, 12 May 2022 12:17:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kthvdbIWU4uyIZGUMVdvZ9tDP8Pj3GbhTayQJGQuKWM=; b=Y8DN3p7hntY3WnWDdRBe5dbDFu 4PT9t6Ckvvnrrp79/mz6iFVe9QDxA5ZPAU6E0jHG78/r0bIR8ikQB3eTMDKDIHxd9U5Za2GpAr54U EHP/0GsYfKdnlF5DWeLIcehiy964nf+V8Y6iOfy1yXxIAP0VZB5EuJKMJvtIo3oo4pkI=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npBV3-0006mE-6h; Thu, 12 May 2022 18:17:15 +0200 From: Lars Ingebrigtsen To: Lasse Kliemann Subject: Re: bug#22645: 24.5; indentation in shell-script-mode after && References: <8760xuypyo.fsf@lassekliemann.de> X-Now-Playing: Joe Jackson's _Mike's Murder_: "Laundromat Monday" Date: Thu, 12 May 2022 18:17:11 +0200 In-Reply-To: <8760xuypyo.fsf@lassekliemann.de> (Lasse Kliemann's message of "Fri, 12 Feb 2016 15:15:43 +0100") Message-ID: <874k1uybco.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lasse Kliemann writes: > M-x shell-script-mode > > type: > foo && > bar > > This will make the second line (bar) indented. While this may be desired > sometimes, in some cases it is not. I use && for control flow throughout [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 22645 Cc: 22645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (---) Lasse Kliemann writes: > M-x shell-script-mode > > type: > foo && > bar > > This will make the second line (bar) indented. While this may be desired > sometimes, in some cases it is not. I use && for control flow throughout > my whole program, which makes this indentation not useful. > > A fix was offered here, which I use now: > http://superuser.com/a/1038557/494683 > > Maybe this could be made a configurable option? I've now added this to Emacs 29 under the name `sh-indent-statement-after-and'. If anybody has a better name, feel free to adjust. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu May 12 12:17:28 2022 Received: (at control) by debbugs.gnu.org; 12 May 2022 16:17:29 +0000 Received: from localhost ([127.0.0.1]:42017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npBVI-0007da-Q5 for submit@debbugs.gnu.org; Thu, 12 May 2022 12:17:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:54964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npBVH-0007dA-3m for control@debbugs.gnu.org; Thu, 12 May 2022 12:17:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UxxDUT8PfQP1q+A5Sz8AD0+M1xANchew4j7h7mzUBNM=; b=hGR58H6F9tiqk0VSLubCtuWWLC fy/GAXHYtXpHDzfznxLZHts58S0u3tbtWJ7u582c4E1fpBwvFwEgfNNUDx7GifvP45AjPWTXc8RWE O0kg1+17f/wiM/N5xf39eZhiEUzoOzJ7/M0QeiF6RJMqlze2vlTg5dpEGx9XSNXcGfJw=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1npBV9-0006mN-3I for control@debbugs.gnu.org; Thu, 12 May 2022 18:17:20 +0200 Date: Thu, 12 May 2022 18:17:18 +0200 Message-Id: <8735heybch.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #22645 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 22645 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (---) close 22645 29.1 quit From unknown Thu Aug 21 14:53: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: Fri, 10 Jun 2022 11: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