Summary: | app-emacs/vm-8.0.12 does not work with Supercite anymore | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ulrich Müller <ulm> |
Component: | Current packages | Assignee: | Emacs project <emacs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | REGRESSION |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
"test1" VM folder
VM state information vm-8.0.12-fix-supercite-yank.patch Updated patch with MIME header decoding |
Description
Ulrich Müller
2009-01-30 07:02:39 UTC
Created attachment 180220 [details]
"test1" VM folder
Created attachment 180221 [details]
VM state information
Created attachment 180226 [details, diff]
vm-8.0.12-fix-supercite-yank.patch
Seems the problem is in function vm-yank-message, which doesn't work
as documented:
,----
| All message headers are yanked along with the text. Point is
| left before the inserted text, the mark after. Any hook
| functions bound to `mail-citation-hook' are run, after inserting
| the text and setting point and mark.
`----
(See also sc.info, node "Hints to MUA Authors".)
But vm-yank message includes the headers only in the non-MIME case:
(if (eq layout 'none)
(vm-insert-region-from-buffer (vm-buffer-of message)
(vm-headers-of message)
(vm-text-end-of message))
(vm-decode-mime-layout layout)
(if vm-mime-yank-attachments
(vm-decode-postponed-mime-message))))
Inserting another "vm-insert-region-from-buffer" command (but with a
third argument "(vm-text-of message)") at the beginning of the "else"
part, as in attached patch, seems to fix the Supercite problem.
However, I don't understand the code well enough to decide if this is
a proper fix, or has other undesired side effects. (For example, what
is function "vm-decode-mime-layout" supposed to do? It is rather long
and has no documentation.)
> Created an attachment (id=180226) [edit] > vm-8.0.12-fix-supercite-yank.patch > However, I don't understand the code well enough to decide if this is > a proper fix, or has other undesired side effects. Committed as -r2, as I'm using this myself since quite some time and haven't had any problems with it. VM should also decode the headers before calling mail-citation-hook. See <http://thread.gmane.org/gmane.emacs.devel/116483>. Reopening. Created attachment 209113 [details, diff]
Updated patch with MIME header decoding
Fixed in vm-8.0.12-r6. |