]> git.eshelyaron.com Git - emacs.git/commitdiff
Respect the BUFFER parameter in `fill-flowed'
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 15 Aug 2019 00:16:37 +0000 (17:16 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 15 Aug 2019 00:16:37 +0000 (17:16 -0700)
* lisp/mail/flow-fill.el (fill-flowed): `current-buffer' is always
non-nil, so respect the BUFFER parameter.  Also add a doc string.

lisp/mail/flow-fill.el

index ed6a2df87dc4374281df2841311a6b0c67bf6fc3..948a7d799f567333880c5098d06f8eb452e8e745 100644 (file)
@@ -114,7 +114,12 @@ RFC 2646 suggests 66 characters for readability."
 
 ;;;###autoload
 (defun fill-flowed (&optional buffer delete-space)
-  (with-current-buffer (or (current-buffer) buffer)
+  "Apply RFC2646 decoding to BUFFER.
+If BUFFER is nil, default to the current buffer.
+
+If DELETE-SPACE, delete RFC2646 spaces padding at the end of
+lines."
+  (with-current-buffer (or buffer (current-buffer))
     (goto-char (point-min))
     ;; Remove space stuffing.
     (while (re-search-forward "^\\( \\|>+ $\\)" nil t)