[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: |
Stephen Leake |
Subject: |
Re: [Ada-mode-users] comment-indent doesn't work as expected; problem with wisi-comment-indent? |
Date: |
Fri, 04 Nov 2016 12:07:25 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) |
Thanks, applied, with improved comments.
This doesn't change the way 'align' handles comments.
It also doesn't change any tests. I should add some, but I'm feeling
lazy.
SCHOEPFLIN Markus <address@hidden> writes:
> 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
>
--
-- Stephe