* flow-fill.el (fill-flowed): Make `delete-space' option correspond to
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>
Sat, 22 Jan 2011 19:48:19 +0000 (20:48 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2011 19:48:19 +0000 (20:48 +0100)
"DelSp" parameter in RFC3676.

lisp/ChangeLog
lisp/flow-fill.el

index db5792b..7b615cd 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-22  Kazuhiro Ito  <kzhr@d1.dion.ne.jp>
+
+       * flow-fill.el (fill-flowed): Make `delete-space' option correspond to
+       "DelSp" parameter in RFC3676.
+
 2011-01-22  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * message.el (message-check-recipients): Display the encoded version of
index 66422d2..76339c0 100644 (file)
@@ -124,8 +124,6 @@ RFC 2646 suggests 66 characters for readability."
       (forward-line 1))
     (goto-char (point-min))
     (while (re-search-forward " $" nil t)
-      (when delete-space
-       (delete-char -1))
       (when (save-excursion
              (beginning-of-line)
              (looking-at "^\\(>*\\)\\( ?\\)"))
@@ -153,6 +151,8 @@ RFC 2646 suggests 66 characters for readability."
              (replace-match (if (string= (match-string 2) " ")
                                 "" "\\2")))
            (backward-delete-char -1)
+           (when delete-space
+             (delete-char -1))
            (end-of-line))
          (unless sig
            (condition-case nil