2010-10-31 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * gnus-cite.el (gnus-article-foldable-buffer): Refactor out.
+
* gnus-sum.el (gnus-summary-show-article): Add `C-u C-u g' for showing
the raw article, and change `C-u g' to show the article without doing
treatments.
(concat (cdar marks) " ")))
(do-fill (not long-lines))
use-hard-newlines)
- (goto-char (point-min))
(unless do-fill
- (while (not (eobp))
- (end-of-line)
- (when (> (current-column) (frame-width))
- (setq do-fill t))
- (forward-line 1)))
+ (setq do-fill (gnus-article-foldable-buffer)))
(when do-fill
(fill-region (point-min) (point-max))))
(set-marker (caar marks) nil)
gnus-cite-loose-attribution-alist nil
gnus-cite-article nil)))))
+(defun gnus-article-foldable-buffer ()
+ (goto-char (point-min))
+ (while (not (eobp))
+ (end-of-line)
+ (when (> (current-column) (frame-width))
+ (setq do-fill t))
+ (forward-line 1))
+ do-fill)
+
(defun gnus-article-natural-long-line-p ()
"Return true if the current line is long, and it's natural text."
(save-excursion