[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ada-mode-users] ada-wisi-comment fails on all but first line of com
From: |
Stephen Leake |
Subject: |
Re: [Ada-mode-users] ada-wisi-comment fails on all but first line of comments |
Date: |
Mon, 23 Jan 2017 17:20:00 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) |
Yes, ada-indent-comment-gnat is screwed up in head; I was trying to fix
a different case.
I'll have to write a good test for this, and think about it.
Ludovic Brenta <address@hidden> writes:
> Hello,
>
> package P is
> function F return Boolean;
> -- blah
> -- blegh
> end P;
>
> With the variables ada-indent-comment-gnat and
> ada-indent-comment-col-0, when
> point is in the line "-- blah", TAB indents the comment correctly i.e.
> aligned
> with "function". But when point is anywhere in the line "-- blegh",
> TAB does
> nothing, leaving the comment wherever it was.
>
> Looking at the code for ada-wisi-comment, I see:
>
> ;; comment is after a comment
> (let ((indent (current-column)))
> (if ada-indent-comment-gnat
> (ada-wisi-comment-gnat indent t)
> indent)))
>
> This seems to indicate that the behavior is intentional. This is
> certainly not
> what we'd like; we'd like for TAB to indent the second and subsequent
> lines of
> comments like the first. Is there a way to customize or change this?
--
-- Stephe