info-gnus-english
[Top][All Lists]
Advanced

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

fill long lines in article


From: William Xu
Subject: fill long lines in article
Date: Thu, 14 May 2009 22:16:41 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin)

Hi, 

Suppose there is one long line in the article buffer: 

    >> In 2007, Wired ran another article about GTD and Allen,[15] quoting him 
as saying "the workings of an automatictransmission are more complicated than a 
manual transmission,

Now, try `W Q' (or M-x gnus-article-fill-long-lines), it will filled as: 

    >> In 2007, Wired ran another article about GTD and
Allen,[15] quoting him as saying "the workings of an
automatictransmission are more complicated than a manual
transmission,

This doesn't look beautiful, right? Especially when there are other
following replies.  It would be better to format it like this: 

    >> In 2007, Wired ran another article about GTD and
    >> Allen,[15] quoting him as saying "the workings of an
    >> automatictransmission are more complicated than a manual
    >> transmission,

What do you think? 


Patch: 

*** /var/folders/5L/5Lqwwr4OEeyej3oIBAFBiU+++TI/-Tmp-/ediff253FJo       
2009-05-14 22:14:26.000000000 +0800
--- /Users/william/repo/git/emacs/lisp/gnus/gnus-art.el 2009-05-14 
22:11:37.000000000 +0800
***************
*** 2288,2293 ****
--- 2288,2296 ----
              (narrow-to-region (min (1+ (point)) (point-max))
                                (point-at-bol))
                (let ((goback (point-marker)))
+                 (back-to-indentation)
+                 (skip-chars-forward "> ")
+                 (set-fill-prefix)
                  (fill-paragraph nil)
                  (goto-char (marker-position goback)))
              (widen))

-- 
William

http://xwl.appspot.com





reply via email to

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