summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1999-01-02 00:14:41 +0000
committerRichard M. Stallman <rms@gnu.org>1999-01-02 00:14:41 +0000
commit75e4db343eedd95bc89dcbe06469295337c408eb (patch)
treee85788e97e9b96e01531d24b5830c1128e56992a /lisp
parent759860a6af74f327a9b1b4ddb49a42929e10f92e (diff)
downloademacs-75e4db343eedd95bc89dcbe06469295337c408eb.tar.gz
emacs-75e4db343eedd95bc89dcbe06469295337c408eb.tar.bz2
emacs-75e4db343eedd95bc89dcbe06469295337c408eb.zip
(mail-mode): Eliminate ambiguous match from paragraph-start.
(mail-yank-original): Remove text properties after insertion. (mail-yank-region): Barf if no mark is set in the message being replied to.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 049132dc6e4..e9540f17145 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -453,7 +453,7 @@ Here are commands that move to a header field (and create it if there isn't):
;; Lines containing just >= 3 dashes, perhaps after whitespace,
;; are also sometimes used and should be separators.
(setq paragraph-start (concat (regexp-quote mail-header-separator)
- "$\\|[ \t]*\\([-|#;>*]+ *\\|(?[0-9]+[.)] *\\)*$"
+ "$\\|\t*\\([-|#;>* ]\\|(?[0-9]+[.)]\\)+$"
"\\|[ \t]*[a-z0-9A-Z]*>+[ \t]*$\\|[ \t]*$\\|"
"-- $\\|---+$\\|"
page-delimiter))
@@ -1204,7 +1204,8 @@ and don't delete any header fields."
;; delete that window to save screen space.
;; t means don't alter other frames.
(delete-windows-on original t)
- (insert-buffer original))
+ (insert-buffer original)
+ (set-text-properties (point) (mark t) nil))
(if (consp arg)
nil
(goto-char start)
@@ -1265,6 +1266,9 @@ and don't delete any header fields."
(interactive "P")
(and (consp mail-reply-action)
(eq (car mail-reply-action) 'insert-buffer)
+ (with-current-buffer (nth 1 mail-reply-action)
+ (or (mark t)
+ (error "No mark set: %S" (current-buffer))))
(let ((buffer (nth 1 mail-reply-action))
(start (point))
;; Avoid error in Transient Mark mode