diff options
| author | Eli Zaretskii | 2012-05-18 12:41:42 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-05-18 12:41:42 +0300 |
| commit | b30b64b9096c0ffd4070259fa17b1d365865e94b (patch) | |
| tree | a3b695e708c33f9361d37a7ed7662b9a10c068f7 | |
| parent | ce1287227544c3a131e002352cff2a01276f2e24 (diff) | |
| download | emacs-b30b64b9096c0ffd4070259fa17b1d365865e94b.tar.gz emacs-b30b64b9096c0ffd4070259fa17b1d365865e94b.zip | |
Fix "C-c C-r" in mail-mode invoked from Rmail.
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.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac5783b7951..5b27dcfb52e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-05-18 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/sendmail.el (mail-yank-region): Recognize | ||
| 4 | rmail-yank-current-message in addition to insert-buffer. Fixes | ||
| 5 | mail-mode's "C-c C-r" that otherwise does nothing when invoked in | ||
| 6 | a *mail* buffer created through rmail-start-mail with sendmail as | ||
| 7 | mail-user-agent. | ||
| 8 | |||
| 1 | 2012-05-17 Stefan Monnier <monnier@iro.umontreal.ca> | 9 | 2012-05-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 10 | ||
| 3 | * emacs-lisp/cl-macs.el (cl-transform-lambda): Don't add spurious | 11 | * emacs-lisp/cl-macs.el (cl-transform-lambda): Don't add spurious |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 1ecae9faa59..5ae4c44060f 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1679,7 +1679,8 @@ Just \\[universal-argument] as argument means don't indent, insert no prefix, | |||
| 1679 | and don't delete any header fields." | 1679 | and don't delete any header fields." |
| 1680 | (interactive "P") | 1680 | (interactive "P") |
| 1681 | (and (consp mail-reply-action) | 1681 | (and (consp mail-reply-action) |
| 1682 | (eq (car mail-reply-action) 'insert-buffer) | 1682 | (memq (car mail-reply-action) |
| 1683 | '(rmail-yank-current-message insert-buffer)) | ||
| 1683 | (with-current-buffer (nth 1 mail-reply-action) | 1684 | (with-current-buffer (nth 1 mail-reply-action) |
| 1684 | (or (mark t) | 1685 | (or (mark t) |
| 1685 | (error "No mark set: %S" (current-buffer)))) | 1686 | (error "No mark set: %S" (current-buffer)))) |