]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix "C-c C-r" in mail-mode invoked from Rmail.
authorEli Zaretskii <eliz@gnu.org>
Fri, 18 May 2012 09:41:42 +0000 (12:41 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 18 May 2012 09:41:42 +0000 (12:41 +0300)
 lisp/mail/sendmail.el (mail-yank-region): Recognize
 rmail-yank-current-message in addition to insert-buffer.  Fixes
 mail-mode's "C-c C-r" that otherwise does nothing when invoked in
 a *mail* buffer created through rmail-start-mail with sendmail as
 mail-user-agent.

lisp/ChangeLog
lisp/mail/sendmail.el

index ac5783b7951d9ff0992a1e48991bdf9248d565f5..5b27dcfb52e20bb25ae4afa5f2086a583789917c 100644 (file)
@@ -1,3 +1,11 @@
+2012-05-18  Eli Zaretskii  <eliz@gnu.org>
+
+       * mail/sendmail.el (mail-yank-region): Recognize
+       rmail-yank-current-message in addition to insert-buffer.  Fixes
+       mail-mode's "C-c C-r" that otherwise does nothing when invoked in
+       a *mail* buffer created through rmail-start-mail with sendmail as
+       mail-user-agent.
+
 2012-05-17  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/cl-macs.el (cl-transform-lambda): Don't add spurious
index 1ecae9faa59c39affddcebb38fa0281f348923f1..5ae4c44060f871a023973f5929fa98da55f2d527 100644 (file)
@@ -1679,7 +1679,8 @@ Just \\[universal-argument] as argument means don't indent, insert no prefix,
 and don't delete any header fields."
   (interactive "P")
   (and (consp mail-reply-action)
-       (eq (car mail-reply-action) 'insert-buffer)
+       (memq (car mail-reply-action)
+            '(rmail-yank-current-message insert-buffer))
        (with-current-buffer (nth 1 mail-reply-action)
         (or (mark t)
             (error "No mark set: %S" (current-buffer))))