On 17 Jul 2014, at 22:51, Stephen Leake <[email protected]> wrote:
> Simon Wright <[email protected]> writes: > >> I’m never sure when assigning an aggregate that won’t fit on one line >> whether to put the := at the end of the line before the aggregate (New_Cell >> below) or at the beginning of the line on which the aggregate starts >> (Another_Cell below). >> >> ada-mode 5.1.4 gets slightly confused about the second case, as >> indicated. > > That's because The Right Way is with ":=" at the end of the line ;) > (that's my style, so that's all I tested). I thought it might be something like that! ;), as you say > Here's a patch against 5.1.5; should work for 5.1.4 as well: > > --- ada-wisi.el 067bfff4fd568ac9a1a4faf8e9bad6363b408c03 > +++ ada-wisi.el 6db63a67fc47931877035a0903e6b500301bd116 > @@ -55,18 +55,22 @@ > ;;;; indentation > > (defun ada-wisi-current-indentation () > - "Return indentation of current line, incremented by 1 if starts with > open-paren." > + "Return indentation appropriate for point on current line: Something in the transmission between your computer and mine has mangled this. The unchanged context lines (starting with the first, “;;;;; indentation”, have no leading space. Maybe sending as an attachment would work better? Anyway, after a bit of editing, works a treat! _______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
