GNU bug report logs - #10572
ada-mode indentation for extended return is off by 1

Previous Next

Package: emacs;

Reported by: Simon Wright <simon <at> pushface.org>

Date: Sat, 21 Jan 2012 06:44:01 UTC

Severity: normal

Tags: wontfix

Fixed in version 6.0.1

Done: Stephen Leake <stephen_leake <at> stephe-leake.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10572 in the body.
You can then email your comments to 10572 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10572; Package emacs, ada-mode. (Sat, 21 Jan 2012 06:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Wright <simon <at> pushface.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 21 Jan 2012 06:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simon Wright <simon <at> pushface.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Indentation for extended return is off by 1
Date: Fri, 20 Jan 2012 20:12:25 +0000
[Message part 1 (text/plain, inline)]
Package: emacs, ada-mode
Version: 23.3.1

ada-mode version 4.01

NB, when I say 'off by 1' I mean that the compiler complains about the indentation selected.

In the code attached, ada-mode indents the 'for' statement by 2 spaces. The compiler (GCC 4.6.0 and GNAT GPL 2011) with standard style checks (-gnaty) complains:

$ gnatmake -c -u -f extended_return_indentation.adb -gnaty
gcc -c -gnaty extended_return_indentation.adb
extended_return_indentation.adb:1:01: (style) subprogram body has no previous spec
extended_return_indentation.adb:5:06: (style) bad indentation
extended_return_indentation.adb:6:09: (style) bad indentation
extended_return_indentation.adb:7:12: (style) bad indentation
extended_return_indentation.adb:8:09: (style) bad indentation
extended_return_indentation.adb:9:06: (style) bad indentation

If the 'for' statement is indented by 3 spaces, the compilers don't issue the indentation warnings.
[extended_return_indentation.adb (application/octet-stream, attachment)]

bug reassigned from package 'emacs, ada-mode' to 'emacs'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 21 Jan 2012 19:34:02 GMT) Full text and rfc822 format available.

bug No longer marked as found in versions 23.3.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 21 Jan 2012 19:34:02 GMT) Full text and rfc822 format available.

Changed bug title to 'ada-mode indentation for extended return is off by 1' from 'Indentation for extended return is off by 1' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 21 Jan 2012 19:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10572; Package emacs. (Sat, 21 Jan 2012 19:47:02 GMT) Full text and rfc822 format available.

Message #14 received at 10572 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Simon Wright <simon <at> pushface.org>
Cc: 10572 <at> debbugs.gnu.org
Subject: Re: bug#10572: Indentation for extended return is off by 1
Date: Sat, 21 Jan 2012 14:45:52 -0500
Simon Wright wrote:

> Package: emacs, ada-mode

FYI, there is no "ada-mode" package in this tracker.
You can put "ada-mode" somewhere in the subject, it's just as good.




Added tag(s) wontfix. Request was from Stephen Leake <stephen_leake <at> stephe-leake.org> to control <at> debbugs.gnu.org. (Thu, 20 Dec 2018 19:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10572; Package emacs. (Thu, 20 Dec 2018 19:25:02 GMT) Full text and rfc822 format available.

Message #19 received at 10572 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Leake <stephen_leake <at> stephe-leake.org>
To: 10572 <at> debbugs.gnu.org
Subject: marking ada-mode bug 10572 as wontfix
Date: Thu, 20 Dec 2018 11:24:38 -0800
ada-mode 4.01 is now obsolete and will be removed from emacs 27; please
use 6.0.1 from GNU ELPA.

-- 
-- Stephe




bug closed, send any further explanations to 10572 <at> debbugs.gnu.org and Simon Wright <simon <at> pushface.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 20 Dec 2018 19:38:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10572; Package emacs. (Thu, 20 Dec 2018 19:40:01 GMT) Full text and rfc822 format available.

Message #24 received at 10572 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stephen Leake <stephen_leake <at> stephe-leake.org>
Cc: 10572 <at> debbugs.gnu.org
Subject: Re: bug#10572: marking ada-mode bug 10572 as wontfix
Date: Thu, 20 Dec 2018 14:38:41 -0500
FYI if you don't reply-to-all the reporter won't see the comment if not
subscribed to the emacs bug list.





bug marked as fixed in version 6.0.1, send any further explanations to 10572 <at> debbugs.gnu.org and Simon Wright <simon <at> pushface.org> Request was from Stephen Leake <stephen_leake <at> stephe-leake.org> to control <at> debbugs.gnu.org. (Thu, 20 Dec 2018 21:06:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Jan 2019 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 155 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.