From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Abou Samra Newsgroups: gmane.emacs.help Subject: Re: Disabling automatic reindentation of the current line after a newline Date: Wed, 26 Oct 2022 23:55:30 +0200 Message-ID: <07c36c2b-f642-4d2b-a192-d330e08bc6a0@abou-samra.fr> References: <9CF323F7-2802-4182-9C7C-385A83F763DB@abou-samra.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18333"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 26 23:59:06 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onoQT-0004aP-U6 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 23:59:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onoNF-0001Rp-9Q; Wed, 26 Oct 2022 17:55:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onoNE-0001Pq-29 for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 17:55:44 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.73]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onoNC-0000xH-F8 for help-gnu-emacs@gnu.org; Wed, 26 Oct 2022 17:55:43 -0400 Original-Received: from [10.188.149.104] ([46.193.67.184]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.184]) with ESMTPSA (Nemesis) id 1MVdUQ-1og8rA2qVY-00RXaE; Wed, 26 Oct 2022 23:55:32 +0200 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:VWrBgweRoMIaqcq5THRKqpyI67dYuKKY7UlnrOn4v0akXfPhjFN foENoR5gNaK1yDW1gw7MdLSheGpO+YaThrCHBGLOqG8+zTS7Fem424/j/77aSOK/fPk1HT4 7ihNJFMY8/ZRgIbXjhv7IiO/Tont4lvpFpjCupbWTMuH58JT/gBFCJdvuLwZ6YysjBuF6V/ XykAK1cgl3kzoXKE18q3g== X-UI-Out-Filterresults: notjunk:1;V03:K0:7jZUrkAHhsk=:h22wiSrl1fS3ZNH13ZTk6g dYce8t0sqolD9OsGNQN19y/mZG0n3jqXF4SmV3ZZXJwkB/Ov65YOZYxxCzN1a+5wXn8V2KO2O T7pl93+2FIcpjQG1eQG/fmlzOUF8QumIlQWhX2l0lEEJPtvDQfZ3hyJqXhQg9vURujQrp4fmZ maI+48HdS6Twnmb/pgfSxtl2Bp9VRRvfLiEw/6JAwWo2oL7GLIiUqPe1lHpe8A23NNXpoGIl3 dPkWZlEx1sKqVpX+JoIM2UgzRpVTxHs+V3usXhmt9jUowz3O3Rmgfy+eFUIfk32FBAUKu8g8X 4kw7X/96O4DHoAq0/MrRCKaO0dCKJO1wePwunKnpeW3y50+P2QK7JrGYwtH4ULkqghvgNdkqF 10kgDu+ObOJqC1KRvPizVpEtfBBO2b4hmRjznFx+p7579beFtuLGJcqgJ0L05gIjDgJ/Bhtnw xJH6XRagKjC0NNDOl8NAWlwYcSsNziy+5FPWrqYap/nvYmmV9xERAH2PD79kUgGlRT+Mrt60o i4L34RdJcpp4jyZoPSTFYILTYKyzi3INPz3cpLRAhCuS0z8xh1YAQ3/iIKA+BpksQXP38Aj0n BXjBF+cHoebZ/Q5v6vXR+AVtV5LkYTflceFvMUu/Lg2mX+pj6AejrngMkpBloklx0B6KYUVuB fvaGG1wZIy3HhdxBOiW+Jn2j8RJzfZonCdQRKPIpinFdA4BcicVLAMBFlALARYn+IxYDfVq4U QDcWVMiObBTjLaGkpdyEWfaP+HNKMqhUr7mFhTAyYsrZYSS777zErxlvFmGKBy1CloYa2F/Z Received-SPF: none client-ip=217.72.192.73; envelope-from=jean@abou-samra.fr; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140414 Archived-At: Le 24/10/2022 à 19:58, Stefan Monnier via Users list for the GNU Emacs text editor a écrit : >> line when I press RET. What I'd like is for Emacs to auto-insert the >> number of spaces it deems necessary for the new, still blank line >> whenever I press RET, without also reindenting the previous line, > Set `electric-indent-inhibit` to t. Thanks! This works in Lisp and Scheme. It does not prevent the C++ mode from reindenting when inserting a semicolon, but I can live with that one. Best, Jean