emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp ChangeLog mail/unrmail.el


From: Chong Yidong
Subject: [Emacs-diffs] emacs/lisp ChangeLog mail/unrmail.el
Date: Wed, 08 Jul 2009 03:10:14 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      09/07/08 03:10:14

Modified files:
        lisp           : ChangeLog 
        lisp/mail      : unrmail.el 

Log message:
        * mail/unrmail.el (unrmail): Make sure the message ends with two
        newlines (Bug#3769).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/ChangeLog?cvsroot=emacs&r1=1.15786&r2=1.15787
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/mail/unrmail.el?cvsroot=emacs&r1=1.38&r2=1.39

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.15786
retrieving revision 1.15787
diff -u -b -r1.15786 -r1.15787
--- ChangeLog   8 Jul 2009 02:48:11 -0000       1.15786
+++ ChangeLog   8 Jul 2009 03:10:10 -0000       1.15787
@@ -1,3 +1,8 @@
+2009-07-08  E. Jay Berkenbilt  <address@hidden>  (tiny change)
+
+       * mail/unrmail.el (unrmail): Make sure the message ends with two
+       newlines (Bug#3769).
+
 2009-07-08  Glenn Morris  <address@hidden>
 
        * calendar/calendar.el (calendar-current-date): Rework previous change.

Index: mail/unrmail.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/mail/unrmail.el,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- mail/unrmail.el     10 Apr 2009 11:53:59 -0000      1.38
+++ mail/unrmail.el     8 Jul 2009 03:10:13 -0000       1.39
@@ -232,6 +232,10 @@
              (while (search-forward "\nFrom " nil t)
                (forward-char -5)
                (insert ?>)))
+           ;; Make sure the message ends with two newlines
+           (goto-char (point-max))
+           (unless (looking-back "\n\n")
+             (insert "\n"))
            ;; Write it to the output file, suitably encoded.
            (let ((coding-system-for-write coding))
              (write-region (point-min) (point-max) to-file t




reply via email to

[Prev in Thread] Current Thread [Next in Thread]