[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regression: filling comments in C++ code (today's CVS)
From: |
Martin Stjernholm |
Subject: |
Re: regression: filling comments in C++ code (today's CVS) |
Date: |
24 Jan 2003 03:45:45 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
"Stefan Monnier" <monnier+gnu/address@hidden> wrote:
> Ah, so it's because filladapt does not faithfully implement the
> fill-paragraph interface.
Well, it's not that Kyle E Jones just was being stupid when he wrote
filladapt. He can't do it any better way since there's no hook to
replace fill-context-prefix which implements adaptive-fill-mode.
It'd be nice if fill.el provided a function that only did the pure
text filling between two positions, preferably also with the option to
keep a fill postfix or to fill inside a rectangle. Doing the actual
filling is pretty messy, so other packages rather device various
kludges to avoid duplicating that code.
> For the sake of correctness in cases other than filladapt, how about
> setting fill-paragraph-function (while still keeping the rebinding
> of M-q) so that calling fill-paragraph DTRT.
That wouldn't work when filladapt is used, but it's perhaps good
enough for your purposes. A more thorough solution would be to put an
advice around fill-paragraph.
Re: regression: filling comments in C++ code (today's CVS), Stefan Monnier, 2003/01/18