aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-03-05 03:44:04 +0000
committerGlenn Morris2009-03-05 03:44:04 +0000
commit137ea8af631cc8ce8ccf9be6d868791dac10ca43 (patch)
tree9cae0d288281efb08f4e7851dd8d4260d8c74934
parent26eb677a6e8674668cffc13b64f078ab9a1a2d97 (diff)
downloademacs-137ea8af631cc8ce8ccf9be6d868791dac10ca43.tar.gz
emacs-137ea8af631cc8ce8ccf9be6d868791dac10ca43.zip
(rmail-sort-messages): Use rmail-ensure-blank-line.
-rw-r--r--lisp/mail/rmailsort.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/mail/rmailsort.el b/lisp/mail/rmailsort.el
index cfc93985719..39244669928 100644
--- a/lisp/mail/rmailsort.el
+++ b/lisp/mail/rmailsort.el
@@ -220,10 +220,7 @@ Numeric keys are sorted numerically, all others as strings."
220 (insert-buffer-substring 220 (insert-buffer-substring
221 (current-buffer) (nth 2 msginfo) (nth 3 msginfo)) 221 (current-buffer) (nth 2 msginfo) (nth 3 msginfo))
222 ;; The last message may not have \n\n after it. 222 ;; The last message may not have \n\n after it.
223 (unless (bolp) 223 (rmail-ensure-blank-line)
224 (insert "\n"))
225 (unless (looking-back "\n\n")
226 (insert "\n"))
227 (delete-region (nth 2 msginfo) (nth 3 msginfo)) 224 (delete-region (nth 2 msginfo) (nth 3 msginfo))
228 ;; Is current message? 225 ;; Is current message?
229 (if (nth 1 msginfo) 226 (if (nth 1 msginfo)