[Top][All Lists]

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

bug#14381: 24.3; smie-auto-fill infinite loop

From: Stefan Monnier
Subject: bug#14381: 24.3; smie-auto-fill infinite loop
Date: Mon, 13 May 2013 11:43:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> Should enter an infinite loop.
> I would like to simplify and fix octave's fill-paragraph and auto-fill
> feature.

Very good idea (when I moved octave to SMIE, I wanted to do that as
well, but ended up leaving it for later).

> Could you help fix or direct me how to fix this bug and bug#14303?

I think to fix/simplify them well, you'll need to touch some of the
generic code.  For bug#14303, the first ting to do is to read the code
of comment-search-backward.

If I were you, I'd start with octave-auto-fill, trying to replace it
with something that hooks elsewhere, such as in fill-nobreak-predicate
and in comment-line-break-function.

For octave-fill-paragraph, I'm not sure what should be done there, but
the functionality looks like it could be useful in many
programming modes.  So maybe it should be moved to prog-mode.


reply via email to

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