[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: |
Tue, 24 Jan 2017 10:52:47 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (windows-nt) |
Stephen Leake <address@hidden> writes:
> 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.
Fixed in org.emacs.ada-mode 58fbc3275666bc8d815d6f3daadb899b323451e6
Ludovic:
propagated to o.e.a.stephe-2 d6eac59a5f36d648c7b6d5e5765c0baf8d48dfb7
>
>
> 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