From unknown Mon Aug 18 11:14:31 2025 X-Loop: don@donarmstrong.com Subject: bug#272: indentation error in ada-mode Reply-To: Allan Gottlieb , 272@debbugs.gnu.org Resent-From: Allan Gottlieb Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 18 May 2008 02:55:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 272 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121107876123375 (code B ref -1); Sun, 18 May 2008 02:55:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,DATE_IN_PAST_03_06, FOURLA,RCVD_IN_DNSWL_LOW autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 May 2008 02:46:01 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4I2jvER023369 for ; Sat, 17 May 2008 19:45:58 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxYuL-00015v-3l for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxYuK-000150-OE for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:56 -0400 Received: from [199.232.76.173] (port=45923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxYuK-00014m-BL for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:56 -0400 Received: from smtp.cs.nyu.edu ([128.122.80.33]:63759) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JxYuK-0006wo-04 for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:56 -0400 Received: from ajglap.localdomain (c-24-34-197-106.hsd1.ma.comcast.net [24.34.197.106]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.1/8.13.8) with ESMTP id m4I2jsp5022723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 May 2008 22:45:54 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id 19ED819D92E; Sat, 17 May 2008 22:45:49 -0400 (EDT) From: Allan Gottlieb To: bug-gnu-emacs@gnu.org Message-Id: <20080517222014.2A09719D92E@ajglap.localdomain> Date: Sat, 17 May 2008 18:20:14 -0400 (EDT) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) ran emacs -Q Following file is /tmp/tt.adb procedure test(X : Integer) is Y : Integer; begin case X is when 1 => -- xxx if X > 5 then Y := 5; end if; when 2 => if X > 5 then Y := 5; end if; end case; The second when clause is indented properly the first is not. The "cause" is the comment xxx. If it is removed, indentation is correct. Thank you for emacs and for ada-mode; both of which are great. In GNU Emacs 22.2.1 (i686-pc-linux-gnu, GTK+ Version 2.12.8) of 2008-05-15 on ajglap Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-xpm' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Ada Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x C-s M-x e m a c s - b u g SPC SPC b u g C-g C-g M-x a p r b u g M-x r e p o r t - e m Recent messages: Loading advice...done Loading ada-mode...done Loading tabify...done Wrote /tmp/tt.adb Making completion list... Quit [2 times] Loading apropos...done Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done From unknown Mon Aug 18 11:14:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Allan Gottlieb Subject: bug#272 closed by "Juanma Barranquero" () Message-ID: References: <20080517222014.2A09719D92E@ajglap.localdomain> X-Emacs-PR-Message: they-closed 272 X-Emacs-PR-Package: emacs Reply-To: 272@debbugs.gnu.org Content-Type: multipart/mixed; boundary="----------=_1217243704-31977-1" This is a multi-part message in MIME format... ------------=_1217243704-31977-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #272: indentation error in ada-mode It has been closed by "Juanma Barranquero" . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact "Juanma Barranquero" <= lekktu@gmail.com> by replying to this email. --=20 272: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D272 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1217243704-31977-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From lekktu@gmail.com Mon Jul 28 04:07:49 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-2.0 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 272-done) by emacsbugs.donarmstrong.com; 28 Jul 2008 11:07:49 +0000 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6SB7j7J030748 for <272-done@emacsbugs.donarmstrong.com>; Mon, 28 Jul 2008 04:07:47 -0700 Received: by nf-out-0910.google.com with SMTP id 30so1367716nfu.31 for <272-done@emacsbugs.donarmstrong.com>; Mon, 28 Jul 2008 04:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=CmfVxbzUBuKzaJdhyzIKMBtWgfCZOraMfSj2Tgssqas=; b=QJBpLByuLaYbdxRFP+s1EO7vXqDFxy7+mAPPZbJqR8U2OcCz4KxVCZBYYVRMRou8vB en8uePziJWAF0v+u7b9+fmm96inqbvMKiupwx9Q6N8agjf4tK/S4xU1gBw9z+JuA9vBy GwJ2gYAM8E4yWxMfcJhwxgidBvMkLdIerS2t8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=wmhmiAwVr2Q3H5rqp9hoq4J1nRTubGHymMQSEc0akPPQfad/uQBWLPnc2Fs1b1TTAh 5vV8zHNbvIG8DBFs0f6falNXKrEKDr3lrGZmuUXugWfP/lpc/GVbPMv4opLJkx3Ex/dx xg102JXik89GelWVHYI+2SUXrp2FzZFKodLdQ= Received: by 10.210.111.4 with SMTP id j4mr5710744ebc.110.1217243265300; Mon, 28 Jul 2008 04:07:45 -0700 (PDT) Received: by 10.210.71.14 with HTTP; Mon, 28 Jul 2008 04:07:45 -0700 (PDT) Message-ID: Date: Mon, 28 Jul 2008 13:07:45 +0200 From: "Juanma Barranquero" To: 272-done@debbugs.gnu.org Subject: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Fixed by this change: 2008-07-28 Stephen Leake * progmodes/ada-mode.el (ada-mode): Clean up XEmacs handling. Add support for add-log. (ada-end-stmt-re): Fix bug - allow comment after 'when'. ------------=_1217243704-31977-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From gottlieb@nyu.edu Sat May 17 19:46:01 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.9 required=4.0 tests=BAYES_00,DATE_IN_PAST_03_06, FOURLA,RCVD_IN_DNSWL_LOW autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 18 May 2008 02:46:01 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4I2jvER023369 for ; Sat, 17 May 2008 19:45:58 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxYuL-00015v-3l for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxYuK-000150-OE for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:56 -0400 Received: from [199.232.76.173] (port=45923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxYuK-00014m-BL for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:56 -0400 Received: from smtp.cs.nyu.edu ([128.122.80.33]:63759) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JxYuK-0006wo-04 for bug-gnu-emacs@gnu.org; Sat, 17 May 2008 22:45:56 -0400 Received: from ajglap.localdomain (c-24-34-197-106.hsd1.ma.comcast.net [24.34.197.106]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.1/8.13.8) with ESMTP id m4I2jsp5022723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 May 2008 22:45:54 -0400 (EDT) Received: by ajglap.localdomain (Postfix, from userid 1502) id 19ED819D92E; Sat, 17 May 2008 22:45:49 -0400 (EDT) From: Allan Gottlieb To: bug-gnu-emacs@gnu.org Subject: indentation error in ada-mode Message-Id: <20080517222014.2A09719D92E@ajglap.localdomain> Date: Sat, 17 May 2008 18:20:14 -0400 (EDT) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) ran emacs -Q Following file is /tmp/tt.adb procedure test(X : Integer) is Y : Integer; begin case X is when 1 => -- xxx if X > 5 then Y := 5; end if; when 2 => if X > 5 then Y := 5; end if; end case; The second when clause is indented properly the first is not. The "cause" is the comment xxx. If it is removed, indentation is correct. Thank you for emacs and for ada-mode; both of which are great. In GNU Emacs 22.2.1 (i686-pc-linux-gnu, GTK+ Version 2.12.8) of 2008-05-15 on ajglap Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-22' '--infodir=/usr/share/info/emacs-22' '--without-carbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '--with-xpm' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=prescott -pipe'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Major mode: Ada Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x C-s M-x e m a c s - b u g SPC SPC b u g C-g C-g M-x a p r b u g M-x r e p o r t - e m Recent messages: Loading advice...done Loading ada-mode...done Loading tabify...done Wrote /tmp/tt.adb Making completion list... Quit [2 times] Loading apropos...done Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done ------------=_1217243704-31977-1-- From unknown Mon Aug 18 11:14:31 2025 X-Loop: don@donarmstrong.com Subject: bug#272: indentation error in ada-mode Reply-To: Stephen Leake , 272@debbugs.gnu.org Resent-From: Stephen Leake Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 30 Jul 2008 10:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 272 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 272-submit@emacsbugs.donarmstrong.com id=B272.12174147982099 (code B ref 272); Wed, 30 Jul 2008 10:55:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-4.0 required=4.0 tests=BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 272) by emacsbugs.donarmstrong.com; 30 Jul 2008 10:46:38 +0000 Received: from QMTA02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6UAkV2s002093 for <272@emacsbugs.donarmstrong.com>; Wed, 30 Jul 2008 03:46:33 -0700 Received: from OMTA03.westchester.pa.mail.comcast.net ([76.96.62.27]) by QMTA02.westchester.pa.mail.comcast.net with comcast id wAjH1Z0030bG4ec52AmUTT; Wed, 30 Jul 2008 10:46:28 +0000 Received: from LM000850872 ([98.233.81.189]) by OMTA03.westchester.pa.mail.comcast.net with comcast id wAmT1Z00D454uzm3PAmUzu; Wed, 30 Jul 2008 10:46:28 +0000 X-Authority-Analysis: v=1.0 c=1 a=qnKA7U9sqqC-E242ku0A:9 a=0fg8K_yQzO76Kt0C31EA:9 a=erVE2BHQWzrYR1DhYVjmMhR3RYEA:4 a=XF7b4UCPwd8A:10 To: 272@debbugs.gnu.org From: Stephen Leake Date: Wed, 30 Jul 2008 06:46:26 -0400 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This is now fixed in Emacs main CVS. -- -- Stephe