emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d54eb73: Respect the BUFFER parameter in `fill-flow


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master d54eb73: Respect the BUFFER parameter in `fill-flowed'
Date: Wed, 14 Aug 2019 20:20:37 -0400 (EDT)

branch: master
commit d54eb7347f8d53741337884c45dd96a72d701893
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Respect the BUFFER parameter in `fill-flowed'
    
    * 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 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/mail/flow-fill.el b/lisp/mail/flow-fill.el
index ed6a2df..948a7d7 100644
--- a/lisp/mail/flow-fill.el
+++ b/lisp/mail/flow-fill.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]