From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: indentation Date: Wed, 28 Apr 2021 10:14:24 -0400 Message-ID: References: <20210427090348.67C9B5D0@centrum.cz> <20210427202932.DFDEF50D@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="15924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 28 16:16:04 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 1lbkyx-0003y5-SJ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 16:16:03 +0200 Original-Received: from localhost ([::1]:60280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbkyw-0004Mx-Us for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Apr 2021 10:16:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbkxT-0004LA-MF for help-gnu-emacs@gnu.org; Wed, 28 Apr 2021 10:14:31 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbkxR-0001m0-G9 for help-gnu-emacs@gnu.org; Wed, 28 Apr 2021 10:14:31 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E24491001F3; Wed, 28 Apr 2021 10:14:27 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 967611000C9; Wed, 28 Apr 2021 10:14:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619619266; bh=mzJgsIoh10HXdXzBjmdIauIJdg7rQ39ID6MFTr9lTLA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=SOWMZMRkK9FDBLmcy10kOFjj8AAPTAxk6OvN5vr9e1W3E8i63OJMCxlX6vHoiv91g uur9RbXzxFEnVo9eq7yyfPDvUaxI7MtfV3EU+wuICzXyHhS5G2iQYmdFCAsOjKBAAY sWaiVhVToQ/b6nTSBUthp6vBBAGSeLE4trCS8Jv7ueGUOuRn52rVeG9L6KrpR+TRfe xhkzkUhaXN9RN10ati/WpVyNM9bEQRReLIQ5OUnCea7vZpvlUp75mD0jayuZxRxjVu ndm7Uq2qn98ONBITZFgcsFHgKFw5cvARMYBL4qeSGpRSHFotWA8kA0twEHY0chzCQJ eYVZANDarh6og== Original-Received: from alfajor (unknown [157.52.10.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 66D4912005B; Wed, 28 Apr 2021 10:14:26 -0400 (EDT) In-Reply-To: <20210428083227.FCFDA7C0@centrum.cz> (ptlo@centrum.cz's message of "Wed, 28 Apr 2021 08:32:27 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=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:129188 Archived-At: > 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" ;-) Stefan