Mercurial > emacs
comparison lisp/mail/rmailedit.el @ 102407:4c603ec78d71
(rmail-cease-edit): Use rmail-ensure-blank-line.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 05 Mar 2009 03:45:51 +0000 |
parents | b5125b379b62 |
children | f4571df6b6cc |
comparison
equal
deleted
inserted
replaced
102406:8717f0e9d25a | 102407:4c603ec78d71 |
---|---|
123 (or rmail-old-pruned (forward-line 1)) | 123 (or rmail-old-pruned (forward-line 1)) |
124 (while (re-search-forward "^>*From " nil t) | 124 (while (re-search-forward "^>*From " nil t) |
125 (beginning-of-line) | 125 (beginning-of-line) |
126 (insert ">") | 126 (insert ">") |
127 (forward-line))) | 127 (forward-line))) |
128 ;; Make sure buffer ends with a blank line | 128 ;; Make sure buffer ends with a blank line so as not to run this |
129 ;; so as not to run this message together with the following one. | 129 ;; message together with the following one. |
130 (save-excursion | 130 (save-excursion |
131 (goto-char (point-max)) | 131 (goto-char (point-max)) |
132 (if (/= (preceding-char) ?\n) | 132 (rmail-ensure-blank-line)) |
133 (insert "\n")) | |
134 (unless (looking-back "\n\n") | |
135 (insert "\n"))) | |
136 (let ((old rmail-old-text) | 133 (let ((old rmail-old-text) |
137 (pruned rmail-old-pruned) | 134 (pruned rmail-old-pruned) |
138 ;; People who know what they are doing might have modified the | 135 ;; People who know what they are doing might have modified the |
139 ;; buffer's encoding if editing the message included inserting | 136 ;; buffer's encoding if editing the message included inserting |
140 ;; characters that were unencodable by the original message's | 137 ;; characters that were unencodable by the original message's |