]> git.eshelyaron.com Git - emacs.git/commitdiff
* mail/rmail.el (rmail-yank-current-message): Leave point at correct position.
authorGlenn Morris <rgm@gnu.org>
Sun, 10 Jun 2012 04:37:41 +0000 (21:37 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 10 Jun 2012 04:37:41 +0000 (21:37 -0700)
Fixes: debbugs:11660
lisp/ChangeLog
lisp/mail/rmail.el

index d788989396a6bde34afe7b48e6783491f3ab3ed4..6a6b29e2fe0ba4e14c36c45eb6012a95b87e51c9 100644 (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
index f8e7b405b96c032437c6e9a31258a81a4b115c0a..18f89737f199e9d83b71925564af6bf2b1f69adc 100644 (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.