From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Antoine Lemoine Newsgroups: gmane.emacs.bugs Subject: bug#28786: Wrong indentation of 'class default' in Fortran 2003 Date: Wed, 11 Oct 2017 14:50:48 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507727243 22459 195.159.176.226 (11 Oct 2017 13:07:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 11 Oct 2017 13:07:23 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 To: 28786@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 11 15:07:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Gj2-0003v5-8E for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Oct 2017 15:07:04 +0200 Original-Received: from localhost ([::1]:40970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Gj9-0004K6-Ed for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Oct 2017 09:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2GeD-0000ue-Ps for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:02:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2GeA-0006xb-LG for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2GeA-0006xR-Hl for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2GeA-0004ek-6b for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Antoine Lemoine Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Oct 2017 13:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150772688317841 (code B ref -1); Wed, 11 Oct 2017 13:02:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Oct 2017 13:01:23 +0000 Original-Received: from localhost ([127.0.0.1]:33162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2GdX-0004df-BN for submit@debbugs.gnu.org; Wed, 11 Oct 2017 09:01:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2GdV-0004dP-60 for submit@debbugs.gnu.org; Wed, 11 Oct 2017 09:01:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2GdG-0006R4-MV for submit@debbugs.gnu.org; Wed, 11 Oct 2017 09:01:16 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2GdG-0006Qv-In for submit@debbugs.gnu.org; Wed, 11 Oct 2017 09:01:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2GdF-0008VC-4L for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2GdC-0006N7-0s for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:01:05 -0400 Original-Received: from hera.aquilenet.fr ([141.255.128.1]:55410) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2GdB-0006Lm-KJ for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2017 09:01:01 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CB2D6F073 for ; Wed, 11 Oct 2017 15:00:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YHhtf1Dx-KVV for ; Wed, 11 Oct 2017 15:00:56 +0200 (CEST) Original-Received: from verdier.enscbp.local (unknown [147.210.63.104]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D9B62F01B for ; Wed, 11 Oct 2017 15:00:56 +0200 (CEST) Content-Language: fr-FR X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138218 Archived-At: Hi, The 'class default' is not correctly indented in Fortran 2003. Here is a sample of misindented code after automatic indentation: --- =C2=A0=C2=A0 class(*), allocatable :: some_object =C2=A0=C2=A0 select type (some_object) =C2=A0=C2=A0 type is (integer) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 print*, "I am an integer" =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 class default =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 print*, "I don't know what I am :'(" =C2=A0=C2=A0 end type --- Expected result: --- =C2=A0 class(*), allocatable :: some_object =C2=A0 select type (some_object) =C2=A0 type is (integer) =C2=A0=C2=A0 =C2=A0 print*, "I am an integer" =C2=A0 class default =C2=A0=C2=A0=C2=A0=C2=A0 print*, "I don't know what I am :'(" =C2=A0 end type --- Regards, Antoine In GNU Emacs 25.3.1 (x86_64-pc-linux-gnu) of 2017-09-12 built on svetlemodry Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --without-x --without-sound --with-modules 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-st= rong -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB MODULES Important settings: value of $LANG: fr_FR.utf8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: 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. w is undefined C-x x is undefined scroll-down-command: Beginning of buffer Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message idna dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils term/xterm xterm time-date notus-mode derived regexp-opt mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded 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 dbusbind inotify multi-tty make-network-process emacs) Memory information: ((conses 16 87599 4822) (symbols 48 18913 0) (miscs 40 81 99) (strings 32 14599 4311) (string-bytes 1 415600) (vectors 16 9748) (vector-slots 8 379825 17658) (floats 8 150 437) (intervals 56 183 19) (buffers 976 20)) --=20 PGP : 0x24DAED2A