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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,316008d62b7d637e X-Google-Attributes: gid103376,public From: Stephen.leake@gsfc.nasa.gov Subject: Re: Emacs Ada-Mode Date: 1998/05/26 Message-ID: X-Deja-AN: 356675245 References: <356680b9.18964466@news.geccs.gecm.com> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1998-05-26T00:00:00+00:00 List-Id: Simon Wright writes: > brianorpin@bigfoot.com (Brian Orpin) writes: > > > Does anyone know if there is a more recent version of the Ada-Mode than > > 2.23? > > > > What I would like is an extension to the mode to align the colons in > > record declarations. > > Just to report experience so far, the 2.28 posted here seems to do > this just fine under 19.34 (GNU Emacs 19.34.1 (i486-pc-linux-gnu, X > toolkit)) He asked about "record declarations", not "parameter lists". As it happens, I've been working on a record declaration formatter, and given the three-day weekend, it now seems to be working. Here's the elisp. I'll also post to the ada mode mailing list. (define-key ada-mode-map "\C-c\C-r" 'ada-format-record) ;;; format record (defvar ada-record-start-re "\\<\\(is\\|abstract\\|tagged\\|limited\\|with\\)[ \t\n]+record\\>" "Regexp for the start of a record declaration.") (defvar ada-record-end-re "\\\\)\\|\\(" ada-record-start-re "\\)") nil t) (not (looking-at "end"))))) ;;; end format record