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: Mon, 24 Oct 2022 17:29:08 +0200 Message-ID: <8918cffd-3e23-2e25-37b4-5307ce45489c@abou-samra.fr> References: <3c875648-2856-b380-3c94-fa2b5feb8153@abou-samra.fr> <875ygakkix.fsf@dataswamp.org> 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="26823"; 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: incal@dataswamp.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 24 17:52:11 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 1omzkJ-0006of-GH for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 24 Oct 2022 17:52:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omzOB-0007MH-6O; Mon, 24 Oct 2022 11:29:20 -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 1omzO5-0007Il-UH for help-gnu-emacs@gnu.org; Mon, 24 Oct 2022 11:29:13 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omzO4-0000gW-At for help-gnu-emacs@gnu.org; Mon, 24 Oct 2022 11:29:13 -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 1MIcux-1oqXdQ0IC5-00EbyK; Mon, 24 Oct 2022 17:29:09 +0200 Content-Language: en-US In-Reply-To: <875ygakkix.fsf@dataswamp.org> X-Provags-ID: V03:K1:4T3enfc+0j6EmmVoddRSDU/PkjBQzBM7kE7cWGZ84Hh/QaeJx3P l/ElFmXVtjG6Cfa0m48tFH9CKXBzdZT7qRHKU9ILmseOELxthpgB2R8UGXCcEJeYAAsgz4s pRDSKp+VMnpnAeenRsJ0TzICUsDH5p3PLce1TFVE/lVVXhqNNg126C7a7CtjqLDvAL3amiH XbyjJZs5tKRx1BGA7+8zA== X-UI-Out-Filterresults: notjunk:1;V03:K0:mG1SCEKEcfg=:bN+EWtWc/mHa9Fk2VxM/54 zivq2IYQZWs1p1KpgHoeEiLEg5BG4HK2HUNOKXQ2kfYyKMD1X5jcal0ChmHhIYBYPivbThSo/ A8oh2nbMNFjNooy+K2O6ytKVOi4ftZVZc5v9kW50BTa8aFEzqBIopqCSZ3OXDkkiIkf8O3ujX n6lk6F0JrZc6/BEU/5gGyc3xivwBvT+aZr1HzKD5iF7YfVx3W8WEX26xhbMPcm6JrHBleTtY5 oBrv4Yg4WeqoS9KSHoyumpF9U58VVu1Sz/um6nManNYpnJfOAGbjUFfvyKp9IORg23J2desyv lFXcIshmzVU6Ezrby9eBG5cdHve3fu/SY3vX2JXMAvRHInLxnq2jWMUO5tMtDyVuISnVfJOwZ b2b8Vo3mRly8s4y2UcRTe1R49A8oKQ0kBQelDgMI2tOuu6C65hFrQEKo6gLTB+K4f4Hh1nopv 4dYuytyTYGv/duVaeyGKCH7FJEd2excv3gp25bAxWAyLwqYJIpJt5lVLucUGIuSsv6qU8NZqJ KxWAgvZ/sUS3/tt4QW32F2BZHw7HXZ01i7B4BCfY9DxWDb5LFLVuPp20L1yEYC5fS88aD/o/C aY5DrFFMUyDo6gILzDPapYam5yEcr7oWS1O4CtefJn4HWaXlB3Hbhn8RnGFRRKu829z9nlRtt z+phSLVkBBKOkjKzRomQIEbI+uGF8mIv9BunFAK0Jq0mp1uCv1UEPbZdEuDLixCN0PeLYyA0x ZVw4Cu1lgOJzpCT0+TDRKYRGxsIxgbuiPFSHxXzdOYOJ44m6gCcv1kr28jLHCe8e102XmdNI Received-SPF: none client-ip=212.227.17.24; 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:140328 Archived-At: Hi, Thanks for replying. Le 24/10/2022 à 04:44, Emanuel Berg a écrit : > Emacs doesn't make mistakes, it is always 100% accurate > according to the programming which defines it's bahvior. > > If there is a mistake, it's on the behalf of the programmers > and they will be delighted to fix all such bugs. > > If they think the behavior is good, and you disagree, you can > change the code or don't use it, or don't use it temporarily > perhaps, also on your own computer where you are unrestricted > to do whatever you want. > > If you describe the exact situation we can help you with > that ... > >> Is this possible? > Can you show an example what you want should happen ... I have found myself wanting this in several different contexts. a) When writing Scheme code, sometimes I define a custom macro that should be indented specially. I know I could look up how to define a custom indentation format for that macro and use it in the local variables, but for just one call site it's handier to just redo it manually. b) LilyPond contains a C++ file formatted like this: namespace Lily { extern Scm_module module; typedef Module_variable Variable; extern Variable all_music_font_encodings; extern Variable alterations_in_key; extern Variable backend_testing; extern Variable bar_glyph_alist; extern Variable bar_line_calc_glyph_name_for_direction; extern Variable base_length; When I press RET to add an entry in that list, Emacs inserts two spaces, according to the style it has learnt, so I remove them ... until I remember that the moment I insert the ending semicolon, the spaces are back. This annoys me a bit because I removed the spaces manually, I don't want Emacs to stand in the way. c) At some point, the Coq mode provided by Proof General completely removed all indentation on the previous line when inserting a newline, at least in recent Emacs versions, but I see that it seems to have been fixed now. In summary, while the major mode tries to do its best, sometimes it has a glitch or doesn't exactly do what I want, and I'd like a handier way to correct those mistakes. Best, Jean