(fill-flowed): Remove space stuffing, and only do
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 24 Jul 2004 22:10:20 +0000 (22:10 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 24 Jul 2004 22:10:20 +0000 (22:10 +0000)
quotes that actually start with ">" at the beginning of the
lines.

lisp/ChangeLog
lisp/flow-fill.el

index 046ec18..696daf1 100644 (file)
@@ -1,3 +1,9 @@
+2004-07-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * flow-fill.el (fill-flowed): Remove space stuffing, and only do
+       quotes that actually start with ">" at the beginning of the
+       lines. 
+
 2004-07-23  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * rfc2047.el (rfc2047-encode-region): Fix last change.
index adba76c..3ecb06f 100644 (file)
@@ -97,10 +97,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 "")