> Am 28.10.2015 um 17:52 schrieb Stephen Leake <[email protected]>:
> 
> Georg Bauhaus <[email protected]> writes:
> 
>> Hi,
>> 
>> I see this in *Messages*
>> 
>> wisi-comment-indent: wisi-comment-indent called after non-comment
>> 
>> This happens when calling comment-dwim on a line that ends with "=>".
>> The dashes are inserted, and the Emacs beeps. Type M-; on the line
>> declaring X.
>> 
>> procedure Non_Comment is
>>   X : String := (1 =>          --
>>                    'A');
>> begin
>>   null;
>> end Non_Comment;
> 
> Hmm. This is using wisi-comment-indent in a place I had not anticipated.
> 
> (...)
> So what do you want wisi-comment-indent to do in this case (besides not
> signal an error)?

Adding to the report: I also see the signal in places like these
(on the first line only):

   procedure Run_Me with
     Pre =>
       --  Be sure to have initialized `Stateful` before calling this.
       --  `F` will return what is relevant about the "amount" of its
       --  being initialized.
       F (Stateful);

   for Enm use (First =>
                  -- first power of 2 different from 0
                  1,
                Second => 2,    -- 2#10#
                Third => 4);    -- 2**2

> 
> I'd vote for either "return the current comment column", or
> "delete all but one whitespace".

Given this is effected by M-;, maybe what is to be done is dictated by
usual expectations?
IIUC, that would be as per   (info "(emacs)Comment Commands")

The behavior looks o.K. to me, except for the signal.




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

Reply via email to