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

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

Re: cperl-fill-paragraph broken


From: Stefan Monnier
Subject: Re: cperl-fill-paragraph broken
Date: 03 Nov 2003 09:53:47 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I do mean both. When auto-fill-mode is turned on in cperl-mode, the function
> cperl-do-auto-fill is called and this one calls cperl-fill-paragraph, which
> in turn calls (after mangling the next comment line) fill-paragraph.

Oh, I see, thanks.  That's unusual of cperl-mode to do that, but it's
probably a good idea.

Stefan> If set to nil, it should work 100% as before.  Can you investigate
Stefan> or at least give me some vague indication of when was the last
Stefan> time it worked?

> well I guess I have to debug fill-paragraph then. The only thing I know is
> that it works in 21.3

No need to debug.  Just check out old versions of fill.el from the Emacs
CVS repository and try them, using the "binary search" approach.

There's been 33 versions since Emacs-21.3, so a binary search will tell
you which version is the culprit (if the culprit is in fill.el) in
only 5 steps.

Stefan> That's the goal, but inspection of cperl code is needed to figure
Stefan> out whether the generic code is as good as the cperl code (it sadly
Stefan> sounds unlikely).

> not really. As I said in my previous post, filling works (at least for the
> example), if I use fill-paragraph instead of cperl-fill-paragraph.

Sure, fill-paragraph should work fine in 90% of the cases, but
cperl-fill-paragraph probably handles a few more special cases.
Then again, maybe not (but Ilya is usually pretty thorough).


        Stefan




reply via email to

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