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

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

bug#8141: 23.2.94; python-fill-paragraph


From: Stefan Monnier
Subject: bug#8141: 23.2.94; python-fill-paragraph
Date: Mon, 07 Mar 2011 21:08:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> with M-q resp. fill-paragraph it's fine here too.
> python-fill-paragraph displays the bug.
[...]
> AFAIS bug basically might reside in
> fill-paragraph, where

If calling fill-paragraph works while python-fill-paragraph doesn't, it
would rather seem to indicate that the bug is in python-fill-paragraph
(maybe the bug is that python-fill-paragraph should never be called
directly as a command, for example).

>    ;; 2. Try fill-paragraph-function.
>    (and (not (eq fill-paragraph-function t))
>         (or fill-paragraph-function
>             (and (minibufferp (current-buffer))
>                  (= 1 (point-min))))
>         (let ((function (or fill-paragraph-function


> should be written like

> (cond (fill-paragraph-function
>        DTRT)

>       (t everything else

No, the current definition is on purpose.  As the docstring of
fill-paragraph-function indicates:

   ...
   If the function returns nil, then `fill-paragraph' does its normal work.
   ...


-- Stefan





reply via email to

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