From unknown Mon Jun 23 18:27:25 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#17128 <17128@debbugs.gnu.org> To: bug#17128 <17128@debbugs.gnu.org> Subject: Status: 24.3.50; `newline-and-indent' should not indent the current line Reply-To: bug#17128 <17128@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:27:25 +0000 retitle 17128 24.3.50; `newline-and-indent' should not indent the current l= ine reassign 17128 emacs submitter 17128 Dmitry Gutov severity 17128 normal tag 17128 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 28 02:18:02 2014 Received: (at submit) by debbugs.gnu.org; 28 Mar 2014 06:18:02 +0000 Received: from localhost ([127.0.0.1]:53537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTQ77-0007jo-9v for submit@debbugs.gnu.org; Fri, 28 Mar 2014 02:18:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36795) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTQ74-0007jR-KT for submit@debbugs.gnu.org; Fri, 28 Mar 2014 02:17:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTQ6y-0001d2-9s for submit@debbugs.gnu.org; Fri, 28 Mar 2014 02:17:58 -0400 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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTQ6y-0001cy-6b for submit@debbugs.gnu.org; Fri, 28 Mar 2014 02:17:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTQ6s-00042W-5v for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 02:17:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTQ6m-0001W6-6N for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 02:17:46 -0400 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:40373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTQ6l-0001Tl-Vj for bug-gnu-emacs@gnu.org; Fri, 28 Mar 2014 02:17:40 -0400 Received: by mail-ee0-f44.google.com with SMTP id e49so3645485eek.31 for ; Thu, 27 Mar 2014 23:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=paR38ICs++mqHvgcjzEWUf+H3aC47vEFGF0hBNFjD5E=; b=qfgfHYP01ZrYUA13P7+nyFOPGlsxGMZSn5Oslvlc7nbBibGt+XOJGnQQWltEviWQC0 X/aPichgEtw612WaisRgWcPXlfZI0p02x3lybQ6a5x1Sk+2wUoUz2wAvDdBUX6/KDuAi usRwIy3zZF/PuWnK7YZYrAigKIWG/7lBtw8ID9vGM877URolEilQGIjae7BPZLtoFpcu TNRHfF0CgY7FQphi05xxhH5m7RXJHB8qg9inXZfAEBh+EDNIz0qCTgjsNWHC/srVABvK hB0vgmUyd7FozOuvLeAF9gDvLIj9mvQMufXvN/zEKCyOyzD98njU/jJ8GKPpkKxon5BG fw1g== X-Received: by 10.15.53.69 with SMTP id q45mr7613420eew.22.1395987459039; Thu, 27 Mar 2014 23:17:39 -0700 (PDT) Received: from axl ([93.109.192.46]) by mx.google.com with ESMTPSA id x3sm9338106eep.17.2014.03.27.23.17.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 23:17:37 -0700 (PDT) From: Dmitry Gutov To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `newline-and-indent' should not indent the current line Date: Fri, 28 Mar 2014 08:17:28 +0200 Message-ID: <87k3beetjb.fsf@yandex.ru> 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 (----) Tags: patch There's `reindent-then-newline-and-indent' for that. In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6) of 2014-03-23 on axl Repository revision: 116830 dgutov@yandex.ru-20140322084330-wrwcmwjdbe3mu712 Windowing system distributor `The X.Org Foundation', version 11.0.11405000 System Description: Ubuntu 13.10 === modified file 'lisp/simple.el' --- lisp/simple.el 2014-03-25 23:30:08 +0000 +++ lisp/simple.el 2014-03-28 06:15:14 +0000 @@ -611,7 +611,7 @@ column specified by the function `current-left-margin'." (interactive "*") (delete-horizontal-space t) - (newline nil t) + (newline) (indent-according-to-mode)) (defun reindent-then-newline-and-indent () From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 28 10:18:00 2014 Received: (at 17128) by debbugs.gnu.org; 28 Mar 2014 14:18:00 +0000 Received: from localhost ([127.0.0.1]:54968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTXbb-0005br-TO for submit@debbugs.gnu.org; Fri, 28 Mar 2014 10:18:00 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:50400) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WTXbX-0005bg-9D for 17128@debbugs.gnu.org; Fri, 28 Mar 2014 10:17:56 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id B4E5084DB8; Fri, 28 Mar 2014 10:17:54 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 553BF1E5B74; Fri, 28 Mar 2014 10:17:31 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 2E516B40B7; Fri, 28 Mar 2014 10:17:31 -0400 (EDT) From: Stefan Monnier To: Dmitry Gutov Subject: Re: bug#17128: 24.3.50; `newline-and-indent' should not indent the current line Message-ID: References: <87k3beetjb.fsf@yandex.ru> Date: Fri, 28 Mar 2014 10:17:31 -0400 In-Reply-To: <87k3beetjb.fsf@yandex.ru> (Dmitry Gutov's message of "Fri, 28 Mar 2014 08:17:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 17128 Cc: 17128@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: -2.7 (--) > There's `reindent-then-newline-and-indent' for that. Agreed. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 01:37:56 2014 Received: (at 17128) by debbugs.gnu.org; 1 Apr 2014 05:37:56 +0000 Received: from localhost ([127.0.0.1]:58559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUrOV-0005dj-Ht for submit@debbugs.gnu.org; Tue, 01 Apr 2014 01:37:55 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:65224) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WUrOT-0005dd-TC for 17128@debbugs.gnu.org; Tue, 01 Apr 2014 01:37:54 -0400 Received: by mail-wg0-f52.google.com with SMTP id k14so6911935wgh.35 for <17128@debbugs.gnu.org>; Mon, 31 Mar 2014 22:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=uv94SH5bVHRdjYYgrqFYj2PAjDwLpBJBMiipyWQDLbg=; b=ApEjUqT6NrLR7LVba4ep0wq72jVpPTQRZ39fNauBXGBHmlvU2fySs4Qb8surwY9GON OflRg51FrG7LprHB8I1gYlNpCNQya60/6uKy32HW9BFeNXdKhu4lyHmMBYCoQX7AlOc8 RX5E0EROi/RD44QcXUN7axBpmJEynXucDkh9AVCHoAygXW8IecZz1jOsKdPPdacgPZn2 t/jjGHyo7SJdioYME38eM/XjIFpWJCRscqNdRLm7JZ6FPa3/Ce/fP83lZ1ao40w4lJK+ Nn/uzXsxYv6LoP9je9KL88FSuSLKsJU7eVoSYmGHTTwaiFpy2p+dVU0mom8501r+h482 uHNw== X-Received: by 10.194.24.74 with SMTP id s10mr17948065wjf.43.1396330672884; Mon, 31 Mar 2014 22:37:52 -0700 (PDT) Received: from [192.168.10.2] (93-20-136.netrun.cytanet.com.cy. [93.109.20.136]) by mx.google.com with ESMTPSA id z48sm37949053eel.27.2014.03.31.22.37.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 31 Mar 2014 22:37:51 -0700 (PDT) Message-ID: <533A50A8.8010909@yandex.ru> Date: Tue, 01 Apr 2014 08:37:44 +0300 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#17128: 24.3.50; `newline-and-indent' should not indent the current line References: <87k3beetjb.fsf@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17128 Cc: 17128@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.7 (/) On 28.03.2014 16:17, Stefan Monnier wrote: >> There's `reindent-then-newline-and-indent' for that. > > Agreed. Hmm, I'm not sure about the patch, though. If `newline-and-indent' shouldn't reindent the current line [even when electric-indent-mode is enabled] because there's `reindent-then-newline-and-indent', then `newline' likewise probably shouldn't (re)indent either of the lines because of the existence of the former two functions. In that case, my suggestion to separate the electric indent on RET from indenting after newline wouldn't exactly work. Could we define new commands in electric-mode, and bind them when it's on? Something like `electric-maybe-indent-then-newline' and `electric-maybe-reindent-then-newline-and-indent'. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 01 16:08:48 2014 Received: (at 17128) by debbugs.gnu.org; 1 Apr 2014 20:08:48 +0000 Received: from localhost ([127.0.0.1]:59749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV4zH-0001sv-Kh for submit@debbugs.gnu.org; Tue, 01 Apr 2014 16:08:47 -0400 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:36580) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WV4zE-0001sm-Ae for 17128@debbugs.gnu.org; Tue, 01 Apr 2014 16:08:44 -0400 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 82EFE84E29; Tue, 1 Apr 2014 16:08:43 -0400 (EDT) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 5539A1E5874; Tue, 1 Apr 2014 16:08:20 -0400 (EDT) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 2E362B4128; Tue, 1 Apr 2014 16:08:20 -0400 (EDT) From: Stefan Monnier To: Dmitry Gutov Subject: Re: bug#17128: 24.3.50; `newline-and-indent' should not indent the current line Message-ID: References: <87k3beetjb.fsf@yandex.ru> <533A50A8.8010909@yandex.ru> Date: Tue, 01 Apr 2014 16:08:20 -0400 In-Reply-To: <533A50A8.8010909@yandex.ru> (Dmitry Gutov's message of "Tue, 01 Apr 2014 08:37:44 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 17128 Cc: 17128@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: -2.9 (--) > Could we define new commands in electric-mode, and bind them when it's on? > Something like `electric-maybe-indent-then-newline' and > `electric-maybe-reindent-then-newline-and-indent'. That's an option, yes. Alan might like it. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 02 18:47:53 2014 Received: (at 17128-done) by debbugs.gnu.org; 2 Apr 2014 22:47:53 +0000 Received: from localhost ([127.0.0.1]:33438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTwm-00022n-JL for submit@debbugs.gnu.org; Wed, 02 Apr 2014 18:47:52 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:36092) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WVTwh-00022Z-JW for 17128-done@debbugs.gnu.org; Wed, 02 Apr 2014 18:47:48 -0400 Received: by mail-wg0-f47.google.com with SMTP id x12so946554wgg.18 for <17128-done@debbugs.gnu.org>; Wed, 02 Apr 2014 15:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=0pS+BGBRccRMjCWPNeT5WX/ahp5SjRGzPTm3w8Bxzpo=; b=trD/svKXJPuz+fWMZTh1m3ONJzhRHJFmaH+IHSzPnhYbFutCfR54ol5T5Nt01gr17Y cRUK61ygJzs038GNLWV2bUEaq4UKFxBqfp/CUzKkhhzI2+khkOHcrKNSO87yyLmdxsPS KvikiWkg3yZahJktsrHkNGuKdm5oPluPEjFJox57bkgfxNg0fXpSgl9oTk5PKgGAIOF1 NfVJrAiL6DaIEjFsyxBbp/kiWSbnN+3MhTgYjwdMjVp7bIXZnC7Im5SDYWlwNGWYYdw4 MN7YPu36dpiYoz8ihC9HRP7yBh89HWpOLLx7jaB3M1ATfNvP3ixLxzziPiNdfQOkj+qA C8tA== X-Received: by 10.180.106.134 with SMTP id gu6mr32033120wib.61.1396478866392; Wed, 02 Apr 2014 15:47:46 -0700 (PDT) Received: from [192.168.10.2] (93-20-136.netrun.cytanet.com.cy. [93.109.20.136]) by mx.google.com with ESMTPSA id bc51sm7630356eeb.22.2014.04.02.15.47.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 15:47:45 -0700 (PDT) Message-ID: <533C938E.8080502@yandex.ru> Date: Thu, 03 Apr 2014 01:47:42 +0300 From: Dmitry Gutov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Stefan Monnier Subject: Re: bug#17128: 24.3.50; `newline-and-indent' should not indent the current line References: <87k3beetjb.fsf@yandex.ru> <533A50A8.8010909@yandex.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 17128-done Cc: 17128-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.7 (/) On 01.04.2014 23:08, Stefan Monnier wrote: > That's an option, yes. Alan might like it. Too bad that discussion is going very slowly. I'm pulling this patch because it also breaks `electric-pair-open-newline-between-pairs'. From unknown Mon Jun 23 18:27:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 01 May 2014 11:24:03 +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