Re: [SLE] Message refilling [was: Re: [SLE] Infamous pppd died unexpectedlly]
Stefan Troeger <stefan.troeger@wirtschaft.tu-chemnitz.de> écrit:
By the way, I just shared with a few friends the following piece of Emacs LISP, maybe it might be useful to some of you as well. The idea is that the `M-q' command, in Emacs, refills a paragraph by considering one line at a time, and this does not yield very satisfying results. The GNU `fmt' program, contributed by Ross Paterson, does much better, and relies on techniques published by Donald Knuth, in which the whole paragraph is taken under consideration to make the right ragging less apparent, as well as the fact that lines are better cut after some punctuation, and such things. `fmt' uses a (Dreyfus) dynamic programming engine if I remember well. So I managed to substitute the `M-q' processing with a connection to that external program.
Another possibility is to turn mail-mode on.
I'm sorry, Stefan, but I do not understand your suggestion. Using mail-mode does not give us the Knuth refilling algorithm. -- François Pinard http://www.iro.umontreal.ca/~pinard -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Fri, Mar 31 2000 at 08:41 -0500, François Pinard wrote:
Another possibility is to turn mail-mode on.
I'm sorry, Stefan, but I do not understand your suggestion. Using mail-mode does not give us the Knuth refilling algorithm.
It allows to rewrap quoted mail. Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
pinard@IRO.UMontreal.CA
-
stefan.troeger@wirtschaft.tu-chemnitz.de