ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ada-mode-users] ada-wisi-comment fails on all but first line of comment


From: Ludovic Brenta
Subject: [Ada-mode-users] ada-wisi-comment fails on all but first line of comments
Date: Mon, 23 Jan 2017 13:03:31 +0100
User-agent: Roundcube Webmail/0.5.3

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?

--
Ludovic Brenta.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]