supercite with vm 7.19 and "lastname, first" citation problem
Hi all,
I know (or suspect) that this isn't really a VM issue, but since the Supercite mailing list is dead... I figured I'd ask here.
I'm still running VM 8.1.1 (also tested with 7.19) on Emacs 22 (and Emacs 21), along with supercite 3.1 and I've run into a problem citing when users have their name in the format of:
"Last, First (Something)" <email address hidden>
The yanked email gets correctly cited, but it brings along the trailing comma, so email looks like:
Last,> start of message
Last,> more lines
and when I goto fill the paragraph, supercite bombs out and just does a crappy job. My elisp-fu is *very* weak, so I'm not sure how I'd fix this issue to strip the comma ou by default.
I've got the following in my .emacs file, which is probably ancient legacy supercite stuff, but it's worked for years and years.
(add-hook 'mail-yank-hooks 'sc-cite-original)
; sc-name-
'("via" "origin" "status" "received" "remailed" "cc"
"sender" "replied" "organization" "keywords"
"distribution" "xref" "references" "expires"
"approved" "summary" "precedence" "subject"
"newsgroup[s]?"
"\\(
"x-[a-z0-9-]+"
"[a-
"\\(
"\\(
"\\(
"\\(
"content"
"\\mime-.*"
"content-type"
"content-
)))
(setq sc-attribs-
'(lambda()
(if (string-match "'s$" attribution)
(setq attribution
(substring attribution 0 (- (length attribution) 2))
citation (sc-make-citation attribution))
)
(if (string-match "^\"" attribution)
(setq attribution
(substring attribution 1 (length attribution))
citation (sc-make-citation attribution))
)
))
Thanks for any help you can give me.
John
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- VM Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Arik
- Solved:
- Last query:
- Last reply: