[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11660: 24.1; Supercite doesn't work with RMAIL in 24.1
From: |
Glenn Morris |
Subject: |
bug#11660: 24.1; Supercite doesn't work with RMAIL in 24.1 |
Date: |
Sat, 09 Jun 2012 14:29:22 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Kenichi Handa wrote:
> With the release candidata of 24.1, supercite doesn't work
> with RMAIL.
This simple patch fixes it. Tested with and without supercite, and with
sendmail- and message- user-agents.
To test, apply the 4 possible forms for eval:
emacs -Q --eval "(progn (add-hook 'mail-citation-hook 'sc-cite-original)
(setq mail-user-agent 'sendmail-user-agent))"
C-u M-x rmail RET /path/to/mbox RET
r
C-c C-y
(The message and mail citation commands leave point in different
positions, but they did in 23.4 too.)
Should this be installed in emacs-24?
*** lisp/mail/rmail.el 2012-05-04 11:17:28 +0000
--- lisp/mail/rmail.el 2012-06-09 18:19:56 +0000
***************
*** 3567,3573 ****
(with-current-buffer buffer
(unless (rmail-buffers-swapped-p)
(setq buffer rmail-view-buffer)))
! (insert-buffer 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.
--- 3567,3573 ----
(with-current-buffer buffer
(unless (rmail-buffers-swapped-p)
(setq buffer rmail-view-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.