From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 18:47:51 2015 Received: (at submit) by debbugs.gnu.org; 2 Jul 2015 22:47:51 +0000 Received: from localhost ([127.0.0.1]:38018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAnGo-00089L-79 for submit@debbugs.gnu.org; Thu, 02 Jul 2015 18:47:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48707) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAn6Q-0007tq-NX for submit@debbugs.gnu.org; Thu, 02 Jul 2015 18:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAn6J-0002mh-Pv for submit@debbugs.gnu.org; Thu, 02 Jul 2015 18:37:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAn6J-0002md-Ml for submit@debbugs.gnu.org; Thu, 02 Jul 2015 18:36:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAn6H-0008HZ-UT for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 18:36:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAn6F-0002l9-Jg for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 18:36:57 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:35328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAn6F-0002kr-Bg for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 18:36:55 -0400 Received: by oihr66 with SMTP id r66so10687306oih.2 for ; Thu, 02 Jul 2015 15:36:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=iN6ImcQQIgphNi0mSDYH1T0XqAB+Atesv2iiPOm+ufA=; b=zZz1AnxuBZm0wrWf/7c29zH2+CIX/HDZM+hf6XbG3R6Ljbqm5iLas8iDWR3wV9OW3t 5oX8aWgSl3GqHkaqQAXcOiQ0O/44e9NXkX1izs0SC0HS17a1h/48OlDCjpUG9VXx3Wvp eyLBOaDHi0d5i7B7daeE1FsUkxPubFJr7BSRNzJ+T+lmsdW5qos1TyJtvtcSipEUvdyO y9UUDeO6/oI0HNkovn05o03k7wK1e0hzdve3aGmHgT7mfs9uj1SeOUalMN32q7NJHAFr AB0Y0oXzxX1xGBNbejOVheXAOf/jZmLv6H/tWtYgJO0X/cUibSQGeaCIfUc2FEMfM1SX l+rA== X-Received: by 10.202.87.79 with SMTP id l76mr2853091oib.91.1435876613972; Thu, 02 Jul 2015 15:36:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.241.10 with HTTP; Thu, 2 Jul 2015 15:36:24 -0700 (PDT) From: Zach Jibben Date: Thu, 2 Jul 2015 16:36:24 -0600 Message-ID: Subject: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a113ac736846abd0519ec13e3 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 02 Jul 2015 18:47:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a113ac736846abd0519ec13e3 Content-Type: text/plain; charset=UTF-8 From: Zach Jibben To: bug-gnu-emacs@gnu.org Subject: 24.5; f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) --text follows this line-- When indenting an entire f90 buffer that contains an extended type, the indentation comes out incorrectly. Steps to reproduce: 1. Start Emacs with `emacs -Q' 2. Enter a program. A simple example: program example type :: e1 real :: a end type e1 type, extends(e1) :: e2 real :: b end type e2 end program 3. Automatically indent, either with C-M-q or C-x h C-M-\. The result is: program example type :: e1 real :: a end type e1 type, extends(e1) :: e2 real :: b end type e2 end program f90-indent-subprogram should not have changed anything from the input in this case. Indenting with tabs, manually, line-by-line, works correctly. In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.12) of 2015-05-07 on buildvm-08.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11603000 System Description: Fedora release 21 (Twenty One) Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: F90 Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] Indenting program example... END type does not match program. Indenting program example...done Making completion list... Auto-saving... Mark set Making completion list... Load-path shadows: None found. Features: (vc-dispatcher vc-svn f90 cus-edit cus-start cus-load wid-edit cl-loaddefs cl-lib pp shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 97280 16204) (symbols 48 19736 0) (miscs 40 82 439) (strings 32 15108 5600) (string-bytes 1 428069) (vectors 16 11237) (vector-slots 8 404101 10431) (floats 8 77 461) (intervals 56 696 238) (buffers 960 16) (heap 1024 37362 1031)) --001a113ac736846abd0519ec13e3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From: Zach Jibben <threeofsix@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: 24.5; f90-indent-subprogra= m indents incorrectly when the buffer includes type, extend(...)
--text = follows this line--

When indenting an entire f90 buffer that contain= s an extended type, the
indentation comes out incorrectly. Steps to repr= oduce:

1. Start Emacs with `emacs -Q'
2. Enter a program. A s= imple example:
program example

=C2=A0 type :: e1
=C2=A0=C2=A0= =C2=A0=C2=A0 real :: a
=C2=A0 end type e1
=C2=A0
=C2=A0 type, ext= ends(e1) :: e2
=C2=A0=C2=A0=C2=A0=C2=A0 real :: b
=C2=A0 end type e2<= br>
end program
3. Automatically indent, either with C-M-q or C-x h C= -M-\. The result
is:
program example

=C2=A0 type :: e1
=C2= =A0=C2=A0=C2=A0=C2=A0 real :: a
=C2=A0 end type e1

=C2=A0 type, e= xtends(e1) :: e2
=C2=A0 real :: b
end type e2

end program
<= br>
f90-indent-subprogram should not have changed anything from the in= put in
this case. Indenting with tabs, manually, line-by-line, works cor= rectly.

In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+= Version 3.14.12)
=C2=A0of 2015-05-07 on buildvm-08.phx2.fedoraproject.org
Windowing sy= stem distributor `Fedora Project', version 11.0.11603000
System Desc= ription:=C2=A0=C2=A0=C2=A0 Fedora release 21 (Twenty One)

Configured= using:
=C2=A0`configure --build=3Dx86_64-redhat-linux-gnu
=C2=A0--ho= st=3Dx86_64-redhat-linux-gnu --program-prefix=3D
=C2=A0--disable-depende= ncy-tracking --prefix=3D/usr --exec-prefix=3D/usr
=C2=A0--bindir=3D/usr/= bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc
=C2=A0--datadir=3D/usr/sha= re --includedir=3D/usr/include --libdir=3D/usr/lib64
=C2=A0--libexecdir= =3D/usr/libexec --localstatedir=3D/var
=C2=A0--sharedstatedir=3D/var/lib= --mandir=3D/usr/share/man
=C2=A0--infodir=3D/usr/share/info --with-dbus= --with-gif --with-jpeg --with-png
=C2=A0--with-rsvg --with-tiff --with-= xft --with-xpm --with-x-toolkit=3Dgtk3
=C2=A0--with-gpm=3Dno build_alias= =3Dx86_64-redhat-linux-gnu
=C2=A0host_alias=3Dx86_64-redhat-linux-gnu &#= 39;CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g
=C2=A0-pipe -Wall -Werror=3Dformat-s= ecurity -Wp,-D_FORTIFY_SOURCE=3D2
=C2=A0-fexceptions -fstack-protector-s= trong --param=3Dssp-buffer-size=3D4
=C2=A0-grecord-gcc-switches -m64 -mt= une=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro ''

Important = settings:
=C2=A0 value of $LANG: en_US.utf8
=C2=A0 value of $XMODIFIE= RS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Major mode= : F90

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 ele= ctric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode:= t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 = global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor= -mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode:= t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

Recent messages:
For information about= GNU Emacs and the GNU system, type C-h C-a.
Mark set [2 times]
Inden= ting program example...
END type does not match program.
Indenting pr= ogram example...done
Making completion list...

Auto-saving...
= Mark set
Making completion list...

Load-path shadows:
None fou= nd.

Features:
(vc-dispatcher vc-svn f90 cus-edit cus-start cus-lo= ad wid-edit
cl-loaddefs cl-lib pp shadow sort gnus-util mail-extr emacsb= ug message
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode = mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2= 045
ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu=
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type=
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabu= lated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-esh= adow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu fo= nt-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai= tai-viet lao korean japanese hebrew greek romanian slovak
czech europea= n ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook hel= p simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroe= xp files text-properties overlay sha1 md5 base64
format env code-pages m= ule custom widget hashtable-print-readable
backquote make-network-proces= s dbusbind gfilenotify dynamic-setting
system-font-setting font-render-s= etting move-toolbar gtk x-toolkit x
multi-tty emacs)

Memory infor= mation:
((conses 16 97280 16204)
=C2=A0(symbols 48 19736 0)
=C2=A0= (miscs 40 82 439)
=C2=A0(strings 32 15108 5600)
=C2=A0(string-bytes 1= 428069)
=C2=A0(vectors 16 11237)
=C2=A0(vector-slots 8 404101 10431)=
=C2=A0(floats 8 77 461)
=C2=A0(intervals 56 696 238)
=C2=A0(buffe= rs 960 16)
=C2=A0(heap 1024 37362 1031))


--001a113ac736846abd0519ec13e3-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 19:05:41 2015 Received: (at 20969) by debbugs.gnu.org; 2 Jul 2015 23:05:41 +0000 Received: from localhost ([127.0.0.1]:38053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAnY4-0000A2-Gp for submit@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54899) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAnY3-00009q-1Z for 20969@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAnXp-0006Om-IO for 20969@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAnXg-000673-Ti; Thu, 02 Jul 2015 19:05:16 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZAnOx-00036c-Dg; Thu, 02 Jul 2015 18:56:15 -0400 From: Glenn Morris To: Zach Jibben Subject: Re: bug#20969: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) References: X-Spook: Mole Leuken-Baden Mutation CIA CDMA cybercash Organized X-Ran: ?2A\uz`"F}\e0$h6O[AwA|d0qDV(FTp^iWLmT4FhmMJXh!R (Zach Jibben's message of "Thu, 2 Jul 2015 16:36:24 -0600") Message-ID: <9u8uayuq28.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 20969 Cc: 20969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Zach Jibben wrote: > f90-indent-subprogram should not have changed anything from the input in > this case. Indenting with tabs, manually, line-by-line, works correctly. > > In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.12) Thanks for the report. This was previously reported as https://debbugs.gnu.org/20680 and is already fixed in git for the next release. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 19:05:26 2015 Received: (at control) by debbugs.gnu.org; 2 Jul 2015 23:05:26 +0000 Received: from localhost ([127.0.0.1]:38050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAnXq-00009b-3z for submit@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54475) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAnXo-00009I-7D for control@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAnXe-0006B0-Hp for control@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAnXe-000673-CX for control@debbugs.gnu.org; Thu, 02 Jul 2015 19:05:14 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZAnQr-0006qi-IX for control@debbugs.gnu.org; Thu, 02 Jul 2015 18:58:13 -0400 Subject: control message for bug 20969 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Thu, 02 Jul 2015 18:58:13 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) unarchive 20680 forcemerge 20680 20969 From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 18:25:21 2015 Received: (at submit) by debbugs.gnu.org; 3 Jul 2015 22:25:21 +0000 Received: from localhost ([127.0.0.1]:39030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB9Oa-0000TI-Cc for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:25:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36449) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB9OZ-0000T6-3O for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:25:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB9OP-0003tG-9t for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:25:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9OP-0003tC-5f for submit@debbugs.gnu.org; Fri, 03 Jul 2015 18:25:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9OO-0004wY-8f for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:25:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB9OL-0003k3-3L for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:25:08 -0400 Received: from smtp204.alice.it ([82.57.200.100]:40093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB9OK-0003h2-Ta for bug-gnu-emacs@gnu.org; Fri, 03 Jul 2015 18:25:05 -0400 Received: from [192.168.1.100] (79.19.231.149) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 5568278506C194DF for bug-gnu-emacs@gnu.org; Sat, 4 Jul 2015 00:25:03 +0200 Message-ID: <55970BC0.1070804@alice.it> Date: Sat, 04 Jul 2015 00:25:04 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Re: bug#20969: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Glenn Morris wrote: > already fixed in git for the next release. On which branch? master still have the bug... Angelo From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 20:13:50 2015 Received: (at 20969) by debbugs.gnu.org; 4 Jul 2015 00:13:50 +0000 Received: from localhost ([127.0.0.1]:39055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBB5a-0003HN-67 for submit@debbugs.gnu.org; Fri, 03 Jul 2015 20:13:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59436) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBB5W-0003H8-M3 for 20969@debbugs.gnu.org; Fri, 03 Jul 2015 20:13:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBB5Q-0000is-UY for 20969@debbugs.gnu.org; Fri, 03 Jul 2015 20:13:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:57636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBB5P-0000iR-BW; Fri, 03 Jul 2015 20:13:39 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZBB5O-00017C-ON; Fri, 03 Jul 2015 20:13:38 -0400 From: Glenn Morris To: Angelo Graziosi Subject: Re: bug#20969: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) References: <55970BC0.1070804@alice.it> X-Spook: morse Human to Human Burn Skipjack ICE military Botnet X-Ran: 7-L (Angelo Graziosi's message of "Sat, 04 Jul 2015 00:25:04 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 20969 Cc: 20969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Works for me. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 04:26:54 2015 Received: (at 20969) by debbugs.gnu.org; 4 Jul 2015 08:26:54 +0000 Received: from localhost ([127.0.0.1]:39181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBImj-0001nj-F2 for submit@debbugs.gnu.org; Sat, 04 Jul 2015 04:26:53 -0400 Received: from smtp204.alice.it ([82.57.200.100]:61802) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBImh-0001nR-L2 for 20969@debbugs.gnu.org; Sat, 04 Jul 2015 04:26:52 -0400 Received: from [192.168.1.100] (79.19.231.149) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 5568278506C77BAE; Sat, 4 Jul 2015 10:26:45 +0200 Message-ID: <559798BD.6090709@alice.it> Date: Sat, 04 Jul 2015 10:26:37 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#20969: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) References: <55970BC0.1070804@alice.it> In-Reply-To: Content-Type: multipart/mixed; boundary="------------000807010900000006000904" X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20969 Cc: 20969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) This is a multi-part message in MIME format. --------------000807010900000006000904 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Il 04/07/2015 02:13, Glenn Morris ha scritto: > > Works for me. > Hmm... indeed the Zach example works.. but try with the attached test case.. It comes with the right formatting.. Select, now, from 'module' to 'end module', then press TAB.. The formatting becomes totally broken. Now, remove, from the original foo.f90, the text ', extends(Shape),' (after "type" keyword), and repeat (select from 'module' to 'end module', then press TAB..). The formatting is not changed! it remans unbroken.. So, the 'extends' keyword, in some manner, breaks the formatting. Angelo --------------000807010900000006000904 Content-Type: text/plain; charset=windows-1252; name="foo.f90" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="foo.f90" module Rectangle_mod use kinds_mod, only : DP use Shape_mod, only : Shape implicit none private type, extends(Shape), public :: Rectangle private real(DP) :: length real(DP) :: width contains private procedure, pass(this) :: ConstructRectangle procedure, pass(this), public :: getArea generic, public :: Construct => ConstructRectangle end type Rectangle contains subroutine ConstructRectangle(this, length, width, xCenter, yCenter) class(Rectangle), intent(inout) :: this real(DP), intent(in) :: length real(DP), intent(in) :: width real(DP), intent(in) :: xCenter real(DP), intent(in) :: yCenter !.. Create the base class call this%Construct(xCenter=xCenter, yCenter=yCenter) print *, "Constructing rectangle" this%length = length this%width = width !How to invoke the base class constructor here? !The line below works for non-abstract base classes where the !constructor result can be type(Shape) end subroutine ConstructRectangle function getArea(this) result(area) class(Rectangle), intent(in) :: this real(DP) :: area area = this%length * this%width end function getArea end module Rectangle_mod --------------000807010900000006000904-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 05 22:40:35 2015 Received: (at 20969) by debbugs.gnu.org; 6 Jul 2015 02:40:35 +0000 Received: from localhost ([127.0.0.1]:41268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBwKg-0007yK-A5 for submit@debbugs.gnu.org; Sun, 05 Jul 2015 22:40:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33681) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBwKc-0007xq-Op for 20969@debbugs.gnu.org; Sun, 05 Jul 2015 22:40:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBwKS-0000Gd-Na for 20969@debbugs.gnu.org; Sun, 05 Jul 2015 22:40:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBwKH-0007zk-JD; Sun, 05 Jul 2015 22:40:09 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZBw7S-0005Nh-1P; Sun, 05 Jul 2015 22:26:54 -0400 From: Glenn Morris To: Angelo Graziosi Subject: Re: bug#20969: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) References: <55970BC0.1070804@alice.it> <559798BD.6090709@alice.it> X-Spook: kibo credit card National Biosurveillance Integration X-Ran: N^jP5.-nL#*,1EK?]$f{wq%o'(YAW"0Q:yD}H#~)T`[4v;A(uq$exo|lg"#G.>2AC*{^{f X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 05 Jul 2015 22:26:53 -0400 In-Reply-To: <559798BD.6090709@alice.it> (Angelo Graziosi's message of "Sat, 04 Jul 2015 10:26:37 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 20969 Cc: 20969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) (It would have been better to make a new report.) That was a separate issue, also now fixed. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 06 06:07:07 2015 Received: (at 20969) by debbugs.gnu.org; 6 Jul 2015 10:07:07 +0000 Received: from localhost ([127.0.0.1]:41481 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZC3Ip-0003gj-3H for submit@debbugs.gnu.org; Mon, 06 Jul 2015 06:07:07 -0400 Received: from smtp204.alice.it ([82.57.200.100]:19864) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZC3Im-0003gD-U2 for 20969@debbugs.gnu.org; Mon, 06 Jul 2015 06:07:05 -0400 Received: from [192.168.1.100] (79.19.231.149) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 5568278506FE2577; Mon, 6 Jul 2015 12:06:58 +0200 Message-ID: <559A533A.1020200@alice.it> Date: Mon, 06 Jul 2015 12:06:50 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Glenn Morris Subject: Re: bug#20969: f90-indent-subprogram indents incorrectly when the buffer includes type, extend(...) References: <55970BC0.1070804@alice.it> <559798BD.6090709@alice.it> In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20969 Cc: 20969@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Il 06/07/2015 04:26, Glenn Morris ha scritto: > > (It would have been better to make a new report.) > > That was a separate issue, also now fixed. > Thanks for the quick fix. Angelo From unknown Sun Jun 22 00:17:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Aug 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator