Simon Wright <[email protected]> writes:

> On 10 Jun 2016, at 17:34, Stephen Leake <[email protected]> 
> wrote:
>> 
>> Simon Wright <[email protected]> writes:
>
>>>> But (setq ada-indent-comment-gnat t) fixes that:
>>>> 
>>>>  type A is new B with
>>>>  -- a comment; TAB on this line results in error
>>>>     record
>>> 
>>> Here it made no difference??
>> 
>> Hmm; it worked for me. It's buffer-local; did you set it in the correct 
>> buffer?
>
> Yes, and checked.
>
> If I manually indent to a multiple of 3 columns then sure enough TAB
> will leave it there, but otherwise TAB uses the computed value (5 in
> this case) which gives the style warning. Is this as designed? 

No.

Are you using org.emacs.ada-mode head, plus this patch?

In ada-wisi-comment, is ada-indent-comment-gnat used? I seem to recall
you suggested modifying that code, so maybe that explains the different
behavior.

With `ada-indent-comment-gnat' nil, I get:

   type A is new B with
     -- a comment; TAB on this line results in error
      record

Then:
M-;
(setq ada-indent-comment-gnat t)
TAB

gives

   type A is new B with
   -- a comment; TAB on this line results in error
      record



-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to