* mail/rmail.el (rmail-yank-current-message): Leave point at correct position.

Fixes: debbugs:11660
This commit is contained in:
Glenn Morris 2012-06-09 21:37:41 -07:00
parent 00cd0305d5
commit 9e1b8ec4c1
2 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,11 @@
* Version 24.1 released.
2012-06-01 Glenn Morris <rgm@gnu.org>
* mail/rmail.el (rmail-yank-current-message):
Leave point at correct position. (Bug#11660)
2012-06-01 Chong Yidong <cyd@gnu.org>
* allout-widgets.el: Fix code header

View file

@ -3567,7 +3567,7 @@ If BUFFER is not swapped, yank out of its message viewer buffer."
(with-current-buffer buffer
(unless (rmail-buffers-swapped-p)
(setq buffer rmail-view-buffer)))
(insert-buffer buffer)
(insert-buffer-substring buffer)
;; If they yank the text of BUFFER, the encoding of BUFFER is a
;; better default for the reply message than the default value of
;; buffer-file-coding-system.