From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ada-mode failing at formatting still Date: Sun, 20 May 2018 21:19:17 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: h2725194.stratoserver.net; posting-host="6e6d3fb9eee5c4fbc9c7c9ad08118c9d"; logging-data="25271"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sreDIg/dAdZ7D2Gk1/TSiCn5Km9U5qpw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:inUjxfM3cexU6takVNZE6tTH/4s= sha1:HXrCw+um9TZZsqm3pWpTxlXCfH0= Xref: reader02.eternal-september.org comp.lang.ada:52516 Date: 2018-05-20T21:19:17+01:00 List-Id: Lucretia writes: > I thought I'd reinstall emacs and try ada-mode again, but it's failing > to format properly. > > https://bpaste.net/show/5cb547ca16cc was formatted using ada-mode, for > some reason it won't indent the Label properly. Because ada-indent-label is defaulted to -3. If you customise it to 0, -gnaty won't complain any more. begin Ada.Text_IO.Put_Line ("hello"); Label : declare begin <> null; end Label; end Test;