diff options
author | Miles Bader <miles@gnu.org> | 2006-02-24 05:02:12 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2006-02-24 05:02:12 +0000 |
commit | 5f4264e54bb59b9b0590a113fbd015c3c0920f7a (patch) | |
tree | c837d5156b4a275296c31cdeb3ad9de46ef17a4d /lisp/gnus/flow-fill.el | |
parent | 9f261d3c1d29f48ca2f8f96e4809bccbe3c81e89 (diff) | |
download | emacs-5f4264e54bb59b9b0590a113fbd015c3c0920f7a.tar.gz emacs-5f4264e54bb59b9b0590a113fbd015c3c0920f7a.tar.bz2 emacs-5f4264e54bb59b9b0590a113fbd015c3c0920f7a.zip |
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-118
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 38-39)
- Update from CVS
Diffstat (limited to 'lisp/gnus/flow-fill.el')
-rw-r--r-- | lisp/gnus/flow-fill.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/gnus/flow-fill.el b/lisp/gnus/flow-fill.el index c3f7f7bb20e..480505549c9 100644 --- a/lisp/gnus/flow-fill.el +++ b/lisp/gnus/flow-fill.el @@ -113,10 +113,15 @@ RFC 2646 suggests 66 characters for readability." (save-excursion (set-buffer (or (current-buffer) buffer)) (goto-char (point-min)) + ;; Remove space stuffing. + (while (re-search-forward "^ " nil t) + (delete-char -1) + (forward-line 1)) + (goto-char (point-min)) (while (re-search-forward " $" nil t) (when (save-excursion (beginning-of-line) - (looking-at "^\\(>*\\)\\( ?\\)")) + (looking-at "^\\(>+\\)\\( ?\\)")) (let ((quote (match-string 1)) sig) (if (string= quote "") @@ -146,7 +151,8 @@ RFC 2646 suggests 66 characters for readability." (condition-case nil (let ((fill-prefix (when quote (concat quote " "))) (fill-column (eval fill-flowed-display-column)) - filladapt-mode) + filladapt-mode + adaptive-fill-mode) (fill-region (fill-flowed-point-at-bol) (min (1+ (fill-flowed-point-at-eol)) (point-max)) |