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!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Bob Butler Newsgroups: comp.lang.ada Subject: Re: Pretty-printer? (Alternatives to "gnatpp") Date: Mon, 14 Mar 2016 06:43:15 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <87a8m2jlp7.fsf@adaheads.consafe1.org> NNTP-Posting-Host: h7ovP9nezfd6JNL4eMJ1gw.user.gioia.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:29745 Date: 2016-03-14T06:43:15+00:00 List-Id: On 2016-03-13, Georg Bauhaus wrote: > On 13.03.16 19:07, Jacob Sparre Andersen wrote: >> 2) You can't get it to select the casing of identifiers on a >> word-by-word basis (which means that I have to repeat every acronym >> we use in the project once for every identifier it occurs in). > > The (new) Ada mode for Emacs can be used as a pretty printer, > for all versions of Ada, and it supports automatic letter case. > The user may define a list of exceptions to the casing rules > that he prefers. I thought of that too but I don't know if you can print from Emacs. I guess you probably can, there isn't much Emacs can't do. Emacs language modes are so good you can often (always?) catch syntax errors in many programming languages even before you try compiling. When Emacs screws up the indentation or mangles the code when you're editing there's a darn good chance you have a syntax error! Bob