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

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

Re: [Ada-mode-users] comment-indent doesn't work as expected; problem wi


From: SCHOEPFLIN Markus
Subject: Re: [Ada-mode-users] comment-indent doesn't work as expected; problem with wisi-comment-indent?
Date: Thu, 3 Nov 2016 14:38:26 +0000

Attached is a patch for wisi.el (from wisi-1.1.4) which fixes two problems with 
wisi-comment-indent:

1. It returns 'comment-column' instead of the starting column of the comment 
when indenting an existing comment after code. This makes 'comment-indent' work 
as advertised.

2. It add a check for the return value of (forward-comment -1). This fixes the 
problem that when the comment immediately follows the code (without any blank 
characters) only one blank character was inserted in between the code and the 
comment. (E.g. "X := 42;-- test" was turned into "X := 42; -- test".

Markus

Attachment: wisi.el.diff
Description: wisi.el.diff


reply via email to

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