From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wayne Harris via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: indentation Date: Thu, 29 Apr 2021 18:14:36 -0300 Message-ID: <8635v86ber.fsf@protonmail.com> References: <20210427090348.67C9B5D0@centrum.cz> <20210427202932.DFDEF50D@centrum.cz> <20210428083227.FCFDA7C0@centrum.cz> Reply-To: Wayne Harris Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31222"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:OPrhnX+aNLfskLfrVKtH7E+0VZE= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 29 23:15:55 2021 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 1lcE0n-00081u-Vi for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 23:15:53 +0200 Original-Received: from localhost ([::1]:56128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcE0n-0000W8-3h for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Apr 2021 17:15:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcDzi-0000Vt-SF for help-gnu-emacs@gnu.org; Thu, 29 Apr 2021 17:14:47 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:51330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcDzh-0002e4-B8 for help-gnu-emacs@gnu.org; Thu, 29 Apr 2021 17:14:46 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lcDzd-0006Rg-T2 for help-gnu-emacs@gnu.org; Thu, 29 Apr 2021 23:14:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129194 Archived-At: Stefan Monnier writes: >> Yes, it may be a bug/ feature of the F90 mode. But it got annoying >> only when >> the electric mode was active, otherwise the formatting was controlable >> (e.g. by tab key) and not disturbing. > > Indeed. `electric-indent-mode` presumes that the indentation code > gets it right. If that's not the case, then you're better off disabling > it (or, as Joost points out, just disabling the reindentation by setting > `electric-indent-inhibit`). > > But that doesn't mean we shouldn't try to make the indentation "do the > right thing" ;-) FWIW, I almost gave up from going from 24.3 to 27.1 precisely because of electric-indent-mode without knowing that was the cause of the new behavior (in my perspective). Today I was writing some TeX and the following happened. Let me use ``[]'' to represent the point. --8<---------------cut here---------------start------------->8--- \noindent {\em Notation.} As we often write polynomials in finite rings of characterisc 2, let's define %v \[\poly(x) = ...\] %e in the same way that it was used in the introduction. []%% Well... --8<---------------cut here---------------end--------------->8--- When I pressed RET, I got this --8<---------------cut here---------------start------------->8--- \noindent {\em Notation.} As we often write polynomials in finite rings of characterisc 2, let's define %v \[\poly(x) = ...\] %e in the same way that it was used in the introduction. []%% Well... --8<---------------cut here---------------end--------------->8--- I have been reading this thread, so I just turned it off for the first time. I got used to it in other ways, but this behavior up there made me turn it off and leave it off from now on. (And it scared the hell out of me when I saw it first. Lol.) Having said that, I recognize that many times I get to see new features because they become the default. It takes a long while for me to actually dig new features as an attempt to solve a problem. But you know me by now --- I like stability a lot and so I stick to a version for many, many years.