emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: comment-filling fixes


From: Stefan Monnier
Subject: Re: comment-filling fixes
Date: 07 Mar 2004 21:16:20 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> These changes fix previously-reported problems with filling comments
> that got ignored as far as I know.

> 1. M-q on the second line would fill all three comments on to the
>    first line.

>   ...                  ; ...
>   ;; ...
>   ;; ...

I actually fixed this a couple days ago.  My fix is similar to yours.

> 2. M-q on a line in a Lisp doc string containing a semicolon could
>    mess up the filling, e.g.

I sent a similar patch to the list a while ago and just installed.
The difference with yours is that it only uses syntax-ppss if the major
mode sets a specific variable.  The reason for it is that in major modes
like tex-mode or perl-mode where the syntax-tables are not quite up to the
task, using syntax-ppss means that if the syntax functions get confused the
comment-related operations suddenly don't work at all any more.


        Stefan




reply via email to

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