]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-cease-edit): Add additional quotes to quoted From lines.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 29 Jan 2009 03:02:39 +0000 (03:02 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 29 Jan 2009 03:02:39 +0000 (03:02 +0000)
lisp/mail/rmailedit.el

index 79091200eee14564d193fb26b0237cbbae21f51e..1c0d63b5aef86098f4a0532b5bbe622955db7e96 100644 (file)
@@ -112,9 +112,10 @@ This functions runs the normal hook `rmail-edit-mode-hook'.
   ;; Disguise any "From " lines so they don't start a new message.
   (save-excursion
     (goto-char (point-min))
-    (while (search-forward "\nFrom " nil t)
+    (while (re-search-forward "^>*From " nil t)
       (beginning-of-line)
-      (insert ">")))
+      (insert ">")
+      (forward-line)))
   ;; Make sure buffer ends with a blank line
   ;; so as not to run this message together with the following one.
   (save-excursion