Mercurial > hg > xemacs-beta
diff lisp/vm/vm-digest.el @ 140:585fb297b004 r20-2b4
Import from CVS: tag r20-2b4
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:32:43 +0200 |
parents | b980b6286996 |
children | 2af401a6ecca |
line wrap: on
line diff
--- a/lisp/vm/vm-digest.el Mon Aug 13 09:31:48 2007 +0200 +++ b/lisp/vm/vm-digest.el Mon Aug 13 09:32:43 2007 +0200 @@ -433,19 +433,22 @@ nil t)))))) (setq prev-sep (point) after-prev-sep (point)) - ;; eat preceding newlines - (while (= (preceding-char) ?\n) - (delete-char -1)) - ;; put one back - (insert ?\n) - ;; delete the digest separator - ;; insert a trailing message separator - ;; insert the leading separator + ;; if this isn't the first message, delete the + ;; digest separator goop and insert a trailing message + ;; separator of the proper type. (if prev-sep (progn + ;; eat preceding newlines + (while (= (preceding-char) ?\n) + (delete-char -1)) + ;; put one back + (insert ?\n) + ;; delete the digest separator (delete-region (match-beginning 0) (point)) + ;; insert a trailing message separator (insert (vm-trailing-message-separator folder-type)))) (setq prev-sep (point)) + ;; insert the leading separator (insert (vm-leading-message-separator folder-type)) (setq after-prev-sep (point)) ;; eat trailing newlines