From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 30 17:00:54 2013 Received: (at submit) by debbugs.gnu.org; 30 Nov 2013 22:00:54 +0000 Received: from localhost ([127.0.0.1]:52101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmsaq-0007im-PG for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:00:53 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43513) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmsal-0007iV-1O for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:00:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmsaa-0007K9-Fo for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:00:41 -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]:34374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmsaa-0007K5-CG for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:00:36 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmsaV-00068c-7m for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 17:00:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmsaQ-0007IG-92 for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 17:00:31 -0500 Received: from smtpo11.poczta.onet.pl ([213.180.142.142]:36162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmsaP-0007IA-Id for bug-gnu-emacs@gnu.org; Sat, 30 Nov 2013 17:00:26 -0500 Received: from [192.168.17.5] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3dX62v6hLsz9ttbj for ; Sat, 30 Nov 2013 23:00:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1385848823; bh=Gm2YGteSqupGCZ7AlTNmeeGtyzZNCw0lg5KFpS/+zlk=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=GiHu3+FgdhIaC5eXAXt06gFUT4W2VWX4SQMm4iMsOBRiCCJHjjFB5YQQgBWKxAykn IHrwgc4fyu6YQPtT+fEwgO0789pwkLQPsyDQQ37uXpymlk6w09ULi+cWKvVCDs+xoc oZBfUwKMCUBjjMcgYUYvnyIfsBG9qYHPslAvag0E= Message-ID: <529A602F.1020403@poczta.onet.pl> Date: Sat, 30 Nov 2013 23:01:19 +0100 From: Jarek Czekalski User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3.50; newline indents in shell script mode Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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 (----) Steps to reproduce: emacs -Q C-x C-f test.sh type "if [[ 1 ]]; then" M-x newline Expected behaviour: a new line indented with left margin (column 0). Found: a new line is indented by four spaces, as if newline-and-indent command was executed. I checked "newline" documentation and found no explanation for that. In GNU Emacs 24.3.50.12 (i686-pc-linux-gnu, GTK+ Version 3.8.6) of 2013-11-30 on jcdeb Bzr revision: 115317 eliz@gnu.org-20131130191221-9pxtv2v0eilgek8u Windowing system distributor `The X.Org Foundation', version 11.0.11403000 System Description: Debian GNU/Linux unstable (sid) Important settings: value of $LC_ALL: en_US value of $LANG: pl_PL locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f t e s t . s h i f SPC [ [ SPC 1 SPC ] ] ; SPC t h e n M-x n e w l i n e M-x n e w l i n e - a n d M-x n e w l i n e - C-h f n e w l i n e - a n d C-x C-c n n o M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Setting up indent for shell type sh Indentation variables are now local. Indentation setup for shell type sh You can run the command `newline' with RET Quit Type C-x 1 to delete the help window. Type C-h for help. [3 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu help-fns sh-script smie executable 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) From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 30 17:13:17 2013 Received: (at 16015) by debbugs.gnu.org; 30 Nov 2013 22:13:17 +0000 Received: from localhost ([127.0.0.1]:52130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmsmr-00081x-Fh for submit@debbugs.gnu.org; Sat, 30 Nov 2013 17:13:17 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48492 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vmsmp-00081p-U4 for 16015@debbugs.gnu.org; Sat, 30 Nov 2013 17:13:16 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Vmsmp-0003RB-A2; Sat, 30 Nov 2013 17:13:15 -0500 From: Glenn Morris To: Jarek Czekalski Subject: Re: bug#16015: 24.3.50; newline indents in shell script mode References: <529A602F.1020403@poczta.onet.pl> X-Spook: fraud Exon Shell ANC investigation Rule Psix government X-Ran: jEmEo$vYi?J#VFV2VWRhB{5Zwr-~#`jzIfO><*oP^+:NPt"]BGsb!aRXU|l+ZYn'[$4`S% X-Hue: white X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 30 Nov 2013 17:13:15 -0500 In-Reply-To: <529A602F.1020403@poczta.onet.pl> (Jarek Czekalski's message of "Sat, 30 Nov 2013 23:01:19 +0100") 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: 16015 Cc: 16015@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 (-----) Because electric-indent-mode is now on by default. From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 01 03:23:44 2013 Received: (at 16015) by debbugs.gnu.org; 1 Dec 2013 08:23:44 +0000 Received: from localhost ([127.0.0.1]:52509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn2Jb-0006ru-9M for submit@debbugs.gnu.org; Sun, 01 Dec 2013 03:23:43 -0500 Received: from smtpo56.poczta.onet.pl ([213.180.142.187]:53496) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn2JT-0006ra-Ub for 16015@debbugs.gnu.org; Sun, 01 Dec 2013 03:23:38 -0500 Received: from [192.168.17.5] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3dXMss4ddBzZCWYr for <16015@debbugs.gnu.org>; Sun, 1 Dec 2013 09:23:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1385886209; bh=K/b3ZaKwJqVmBJru21s/AiHClBuWowxLKblHFscjpZU=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=WyUGIGKbhd6WJZMYpUEWay60o3bLQIYCPlN0tk7S0LHqIgtW1ClRdu49rJm1GVUTH SOyfPwvz0hHBBcO5tm8MU3mfdHP4f5391RJmBGFsDy78vHwuInc4IgM+x+9oclPwkF 7d7m6p2Oe65OGRcH39aViV3TYqu9WeTIejuIcIRI= Message-ID: <529AF239.1020002@poczta.onet.pl> Date: Sun, 01 Dec 2013 09:24:25 +0100 From: Jarek Czekalski User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: 16015@debbugs.gnu.org Subject: bug#16015: 24.3.50; newline indents in shell script mode Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 16015 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.0 (/) Let me be a standard user first. I fire the "newline" command, not "newline-and-indent". The default -Q behaviour should do what is written in the documentation of the product. Now it is not. This is a bug. Now a longer background, I wished I didn't have to write it. I know long discussions about "Default behaviour of RET." and "electric-indent-mode: abolition of `newline' function is not the Right Thing.". Their outcome was as follows: 1. The author of the change wanted to make programming modes indent on RET by default 2. They did it in a wrong way Nobody argues with 1. Many people have objections about removing the functionality of the "newline" command, that is point 2. I also didn't object until I found out, that you did it by default. Please do the change in an acceptable way. There were many suggestions how to make RET indent without achieving unreasonable documentation contradiction. The least acceptable fix IMO is placing the following string in the docs, presumably at the beginning: "newline is a deprecated command and now it is an alias of newline-and-indent in programming modes. If you want the old newline behaviour please use ... instead." The other acceptable way (still not very good) is to introduce a new function newline-without-indent, because then it's easy to place it in the docs (the first suggestion) and find by a user through C-h f newline. A good solution may be found in the threads I mentioned. One of them suggested by Richard Stallman: http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00701.html Supported by Stephen J. Turnbull http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00732.html And here is the summary of the discussion which is what I described in points 1 and 2, by Josh: http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00724.html And everybody knows that the strongest opposer to the new change was the author of the thread, Alan Mackenzie. But I always prefer to show that the author was not the only believer. Seems like you ignore these people's opinions, but at least you should not ignore this bug report. The first paragraph proves that this is a bug. Are you able to deny it? Jarek From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 01 10:59:32 2013 Received: (at 16015-done) by debbugs.gnu.org; 1 Dec 2013 15:59:32 +0000 Received: from localhost ([127.0.0.1]:53331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn9Qi-0005ag-DZ for submit@debbugs.gnu.org; Sun, 01 Dec 2013 10:59:32 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40745) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vn9Qg-0005aQ-Am for 16015-done@debbugs.gnu.org; Sun, 01 Dec 2013 10:59:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFMCox4/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFFMCox4/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="40841141" Received: from 76-10-140-120.dsl.teksavvy.com (HELO pastel.home) ([76.10.140.120]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 01 Dec 2013 10:59:24 -0500 Received: by pastel.home (Postfix, from userid 20848) id F2C7664AEB; Sun, 1 Dec 2013 10:59:23 -0500 (EST) From: Stefan Monnier To: Jarek Czekalski Subject: Re: bug#16015: 24.3.50; newline indents in shell script mode Message-ID: References: <529A602F.1020403@poczta.onet.pl> <529AF239.1020002@poczta.onet.pl> Date: Sun, 01 Dec 2013 10:59:23 -0500 In-Reply-To: <529AF239.1020002@poczta.onet.pl> (Jarek Czekalski's message of "Sun, 01 Dec 2013 09:24:25 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16015-done Cc: 16015-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: 0.3 (/) > Let me be a standard user first. I fire the "newline" command, not > "newline-and-indent". The default -Q behaviour should do what is written in > the documentation of the product. Now it is not. This is a bug. Thanks. I adjusted the docstring to mention electric-indent-mode. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 01 12:23:08 2013 Received: (at 16015) by debbugs.gnu.org; 1 Dec 2013 17:23:08 +0000 Received: from localhost ([127.0.0.1]:53429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnAjc-0000L3-7N for submit@debbugs.gnu.org; Sun, 01 Dec 2013 12:23:08 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:35724 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VnAja-0000Kv-BG for 16015@debbugs.gnu.org; Sun, 01 Dec 2013 12:23:06 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VnAjZ-00013i-OG; Sun, 01 Dec 2013 12:23:05 -0500 From: Glenn Morris To: Jarek Czekalski Subject: Re: bug#16015: 24.3.50; newline indents in shell script mode References: <529A602F.1020403@poczta.onet.pl> <529AF239.1020002@poczta.onet.pl> X-Spook: Lon Horiuchi KGB radar Lexis-Nexis class struggle Zachawi X-Ran: jFt) (Jarek Czekalski's message of "Sun, 01 Dec 2013 09:24:25 +0100") 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: 16015 Cc: 16015@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 (-----) Jarek Czekalski wrote: > Seems like you ignore these people's opinions, but at least you should > not ignore this bug report. The first paragraph proves that this is a > bug. Are you able to deny it? Thanks for the lecture! From unknown Sat Jun 21 10:39:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 30 Dec 2013 12:24:04 +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