From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: indentation Date: Wed, 28 Apr 2021 08:42:43 +0200 Message-ID: <87tunqgato.fsf@fastmail.fm> References: <20210427090348.67C9B5D0@centrum.cz> <20210428083227.FCFDA7C0@centrum.cz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21384"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.12; emacs 27.2 Cc: help-gnu-emacs@gnu.org, Stefan Monnier To: ptlo@centrum.cz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 28 08:53:13 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 1lbe4P-0005RD-Iq for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 08:53:13 +0200 Original-Received: from localhost ([::1]:45914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbe4O-0007hx-LZ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 02:53:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbe41-0007hr-EN for help-gnu-emacs@gnu.org; Wed, 28 Apr 2021 02:52:49 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbe3t-0007L6-62 for help-gnu-emacs@gnu.org; Wed, 28 Apr 2021 02:52:49 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id DBBD85C00BD; Wed, 28 Apr 2021 02:52:38 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 28 Apr 2021 02:52:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=4pumhVSAt5pkgr89/sQsLIw1x9 MHiIlbmbdFVBmexYM=; b=qsIWkMmGyHJZicaNvhrjHD4vE7n5uMS1QzDKOLMoLW rL3ocM3PNFhpgRMF9Zc11Fy+gfNHkAV/KnmmsvIm3HjmVVtN0JBStFqBze59MnVw A/WxNLHKH4lXGpzAjt3AD9sNIKP+muO8SpGyl7ZRy/xD7RK5Qc9IZbcKaTq1lEly M9yTNRpVEmKvH3ZJ/+pPh8o7BwgIUZmsGJt2zxtP8jgh+56sb1XOpJ3ShjIbMYuZ lyKNZe5PVr17JxmgjihVhEJelsr4ti59U1PwaNIaloGYXGWSLESzN9eojskdnGUK wTCpBHEQh1MO5QzuEZpg/FlrRYqmogP41FVt/Ia71ANA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=4pumhV SAt5pkgr89/sQsLIw1x9MHiIlbmbdFVBmexYM=; b=LQkFt+Qbyb8ukmfr2XIU79 neqmiR7336GfCFgLo81XNmmyuj67X28+O1y4w5I7v9043zQWB2lxMouazwwJx3aN vvNo9aLQwXMi+f5+OIJgAlw0TV01M3svrLj5e6Cuo+Q9gviqrsZjrDYo3tAIIVGR j6o0D6bMui/jt3pby62D6f0Tk64Km/S98ZQ1VZVWoSueYm7Cs0cY8Pb0sX6dvOox VE9ItmgNzTkH5bfKNSlC+N5HTzpRaoYyv5v9AMuDIYryyTmj3vhGyMxQWYsKSjKA 7ZdlAsAMoXIvvdyPJeIPoD3LEJA/7/khDP6SnevjmihMCReVVmSMWjgho0LNRjFQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvuddgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepvdeihfetueevkeduteehudeihedvlefgieejhedvteef geelleehhfejudeijeevnecukfhppeefuddrudejrddvhedurdduleelnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip1f11fbc7.dynamic.kabel-deutschland.de [31.17.251.199]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 28 Apr 2021 02:52:37 -0400 (EDT) In-reply-to: <20210428083227.FCFDA7C0@centrum.cz> Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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:129183 Archived-At: On Wed, Apr 28 2021, ptlo@centrum.cz wrote: > 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. Look, when programming, one is often quite concentrated > and not keen on seeing lines skipping unexpectedly here and there. The particular feature that the current line, i.e., the line on which one hits RET, is re-indented, can be turned off by setting the variable `electric-indent-inhibit` to `t`. (The name of this variable is somewhat confusing, IMHO, because it suggests electric indent is inhibited altogether, but in actual fact, as the doc string says, in inhibits *re*indentation). With this feature turned off, which I find rather annoying myself, electric-indent basically saves me from having to type TAB all the time. Even in Python code, electric indent gets it right most of the time. -- Joost Kremers Life has its moments