[Top][All Lists]

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

Re: comment-filling fixes

From: Dave Love
Subject: Re: comment-filling fixes
Date: Thu, 18 Mar 2004 15:36:56 +0000
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Stefan Monnier <address@hidden> writes:

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

Actually, my fix was wrong/incomplete.  I can't send a new diff just now.

> 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.

That seems backwards to me.  Why penalize most modes?

In modes which actually need `font-lock-syntactic-keywords' treatment,
I suppose you could modify the behaviour depending on whether
font-lock is on.  Syntactification really should be divorced from

reply via email to

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