advice auto-fill

Uwe Brauer oub at mat.ucm.es
Tue May 25 09:51:50 EDT 2004


Hello

I would  like to advice  the auto-fill  function, such that  after the
auto-fill  function     is   executed,   fill-paragraph-or-region   is
executed. (This will result in a sort of  poor's man refill, or maniac
mode.)

However I tried things like

(defadvice auto-fill-function (after my-fill  compile)
"Try to justify after auto-filling"
(interactive
 (fill-paragraph-or-region 1)))


And it did not work, so I think I don't understand 
defadvice completely. I looked up the documentation and it is still
not clear to my how this should be done.

Can somebody help me?

Thanks

Uwe Brauer 




More information about the XEmacs-Beta mailing list