mu4e: improve mu4e-fill-paragraph

Improve mu4e-fill-paragraph for some corner-cases where there is
trailing whitespace. Patch by holtzermann17.
This commit is contained in:
djcb 2016-08-27 19:06:10 +03:00
parent ae7f649a4a
commit 37f11d642f
1 changed files with 3 additions and 1 deletions

View File

@ -354,8 +354,10 @@ simply executes `fill-paragraph'."
(interactive (progn (barf-if-buffer-read-only) '(t)))
(if mu4e-compose-format-flowed
(let ((fill-column (point-max))
(use-hard-newlines nil)); rfill "across" hard newlines
(use-hard-newlines nil)); rfill "across" hard newlines
(delete-trailing-whitespace)
(fill-paragraph nil region))
(delete-trailing-whitespace)
(fill-paragraph nil region)))
(defun mu4e-toggle-use-hard-newlines ()