From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: =?utf-8?q?Re=3A_indentation?= Date: Tue, 27 Apr 2021 20:29:32 +0200 Message-ID: <20210427202932.DFDEF50D@centrum.cz> References: <20210427090348.67C9B5D0@centrum.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26454"; mail-complaints-to="usenet@ciao.gmane.io" To: =?utf-8?q?Stefan_Monnier?= , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 20:30:35 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 1lbSTj-0006mk-3s for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 20:30:35 +0200 Original-Received: from localhost ([::1]:54606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbSTi-0004Hj-7l for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 14:30:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbSSq-0004Hd-7F for help-gnu-emacs@gnu.org; Tue, 27 Apr 2021 14:29:40 -0400 Original-Received: from gmmr2.centrum.cz ([2a00:da80:1:502::2]:32867) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lbSSo-0000I1-GQ for help-gnu-emacs@gnu.org; Tue, 27 Apr 2021 14:29:40 -0400 Original-Received: from gmmr-4.centrum.cz (unknown [10.255.254.33]) by gmmr2.centrum.cz (Postfix) with ESMTP id 3543E60008AD; Tue, 27 Apr 2021 20:29:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=centrum.cz; s=mail; t=1619548173; bh=6cr8waJRUL3YtO7xS7nXkclAtlAwoVN5cGpSUWWHfJE=; h=To:Subject:Date:From:References:In-Reply-To:From; b=BdSFTl3jMxPewc6hNEpDkxELkS106waRxsA42B1S4bD2n8WwqbEjOz+fOLRQefR5v MB6J9XYhuzzfXekUid7X7AVOLpWv+UH3VokzAmGRRad8Kxq6Do+pTpsrt4BV2mjL2b iZRXo//lhMDpUdjNjZikUNswaTVERl9acaZtZrCk= Original-Received: from vm2.excello.cz (vm2.excello.cz [212.24.139.173]) by gmmr-4.centrum.cz (Postfix) with QMQP id 33399100009C6; Tue, 27 Apr 2021 20:29:33 +0200 (CEST) Original-Received: from vm2.excello.cz by vm2.excello.cz (VF-Scanner: Clear:RC:0(46.255.225.203):SC:0(-3.3/5.0):CC:0:; processed in 0.5 s); 27 Apr 2021 18:29:33 +0000 X-VF-Scanner-ID: 20210427182932.730721.21816.vm2.excello.cz.0 Original-Received: from gmmr-1.centrum.cz (46.255.225.203) by out1.virusfree.cz with ESMTPS (TLSv1.3, TLS_AES_256_GCM_SHA384); 27 Apr 2021 20:29:32 +0200 Original-Received: from mail1003.cent (unknown [10.255.254.14]) by gmmr-1.centrum.cz (Postfix) with ESMTP id AC0BD2005B980; Tue, 27 Apr 2021 20:29:32 +0200 (CEST) Original-Received: by mail1003.cent (Postfix, from userid 33) id A65CB2004B297; Tue, 27 Apr 2021 20:29:32 +0200 (CEST) Original-Received: from 89.102.39.44 by mail1003.centrum.cz (centrum.cz multimail) with HTTP In-Reply-To: X-Mailer: Centrum Email 5.3 X-Priority: 3 X-Original-From: Received-SPF: pass client-ip=2a00:da80:1:502::2; envelope-from=ptlo@centrum.cz; helo=gmmr2.centrum.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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:129172 Archived-At: I have a comment starting with ! in column 1, and a F90 code on next line = starting around column 7. When I hit enter inside the comment, the rest of = the comment is now on new line and aligned according to the *next* line (th= e F90 code). Moreover the start of the comment, instead of left alone -- is= equally aligned too, i.e. the ! moved to around col. 7. This all happens = even when above the comment was another comment starting e.g. in col. 1, no= t another F90 code, meaning that the indentation is governed by what follow= s not precedes. Crazines squared, isn't it? Cheers Petr ______________________________________________________________ > Od: "Stefan Monnier" > Komu: help-gnu-emacs@gnu.org > Datum: 27.04.2021 19:12 > P=C5=99edm=C4=9Bt: Re: indentation > >> It gets even worse e.g. in the F90 mode. It e.g. moves a comment (starti= ng >> with !) on preceding line to the column of first character of the next >> (really!) line when I add new line inside a code. This is crazy, why >> I couldn't have comment starting at column 1? The emacs simply can't kno= w >> what I'm going to do on new empty line!! > >I'm not completely sure I understand the scenario you're describing >(and I'm not very familiar with F90's syntax either, my use of Fortran >dates back to the nineties but using F77), but it sounds like it might >simply be a bug. > > > Stefan > > > >