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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:8342:: with SMTP id d63mr14417643ite.26.1544036456094; Wed, 05 Dec 2018 11:00:56 -0800 (PST) X-Received: by 2002:a9d:da3:: with SMTP id 32mr465498ots.3.1544036455916; Wed, 05 Dec 2018 11:00:55 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!k10no130141itk.0!news-out.google.com!v141ni165ita.0!nntp.google.com!k10no130139itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 5 Dec 2018 11:00:55 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.115.11.114; posting-account=H0kyAgoAAAAi5Y5HP7CX2okpzT_2ypph NNTP-Posting-Host: 73.115.11.114 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <37b37926-dc45-415d-8b26-eba34c52e339@googlegroups.com> Subject: Re: Gnu Emacs Ada mode 6.0.0 released From: julian.fondren@gmail.com Injection-Date: Wed, 05 Dec 2018 19:00:56 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:54967 Date: 2018-12-05T11:00:55-08:00 List-Id: On Wednesday, December 5, 2018 at 12:51:44 PM UTC-6, julian....@gmail.com wrote: > On Monday, December 3, 2018 at 12:57:50 PM UTC-6, Stephen Leake wrote: > > Gnu Emacs Ada mode 6.0.0 is now available in GNU ELPA. See the > > homepage (http://www.nongnu.org/ada-mode/) for news. > > > > This is a major release; an error correcting parser written in Ada is > > provided, and the grammar actions have been rewritten to implement > > indentation more efficiently. The Ada parser is useable on very large > > files. The elisp parser is still available, but does not provide error > > correction. > > Thanks. This fixes the only annoyance that I had with 5.0.0, that a > 'procedure' would be indented too far if it followed a function > with a parenthesized body (that wasn't on the same line as its > 'function'). > > It requires me to update my hack to ada-mode though, previously to the > ada-adjust-case-interactive function. I changed that function so that > I could type > > words-like-this with-dashes as-the-alternative-is-actually-painful > > and get > > Words_Like_This With_Dashes -- etc. > > My hack wasn't very robust. It just inserted _ instead of - if the > previous char in the buffer was some kind of [[:alpha:]] That update wasn't too hard. The function's now ada-case-adjust-interactive , and I just added an additional test before the T case ((and (eq lastk ?-) (save-excursion (ignore-errors (re-search-backward "[[:alpha:]]" (- (point) 1))))) (when ada-auto-case (ada-case-adjust lastk)) (insert "_"))