mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(rmail-forward): Quote lines with `- ' when necessary.
This commit is contained in:
parent
e63574d79b
commit
c8a428c4e3
1 changed files with 9 additions and 1 deletions
|
|
@ -2251,7 +2251,15 @@ see the documentation of `rmail-resend'."
|
|||
(concat "^" (regexp-quote mail-header-separator) "$"))
|
||||
(forward-line 1)
|
||||
(insert "------- Start of forwarded message -------\n")
|
||||
(insert-buffer-substring forward-buffer)
|
||||
;; Quote lines with `- ' if they start with `-'.
|
||||
(let ((beg (point)) end)
|
||||
(insert-buffer-substring forward-buffer)
|
||||
(goto-char beg)
|
||||
(while (re-search-forward "^-" nil t)
|
||||
(beginning-of-line)
|
||||
(insert "- ")
|
||||
(forward-line 1))
|
||||
(goto-char (point-max)))
|
||||
(let ((end (point)))
|
||||
(skip-chars-backward "\n")
|
||||
(if (< (point) end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue