>>>> "Stephen" == Stephen J Turnbull
<turnbull(a)sk.tsukuba.ac.jp> writes:
>>>> "drv" == Didier Verna
<didier(a)xemacs.org> writes:
drv> I don't use supercite myself, but
I'm reporting a
drv> problem encountered by a friend of mine whom I just convinced
drv> to switch to XEmacs.
drv> He has the following variable set, which is compliant with
drv> what the doc says.
drv> (setq sc-attrib-selection-list
drv> '(("sc-from-address"
drv> ((".*" . (bbdb/sc-consult-attr (sc-mail-field
"sc-from-address")))
drv> ))))
Stephen> Been there, done that, it doesn't work with the XEmacs version, and I
Stephen> made the change below, which works for me. I had no idea that that
Stephen> was the original code, or what was going on with the code either,
Stephen> didn't report the bug, and forgot to go back to the problem. :-(
Ok, I took a look at why I did this. I remember now that I switched
to using customize to set up sc-attrib-selection-list. I have some
code in there (pretty mangled):
[INS] [DEL] Cons-cell:
Regexp: \([^ ]+\) \([^ ]+\)
(\(EUS\|QCS\|ECS\|CRD\|EML\|LMC\|EED\|EIN\|EMN\|QML\|ERA\))
Choice: [Value Menu] Repeat:
[INS] [DEL] Repeat:
[INS] [DEL] Lisp expression: let
[INS] [DEL] Lisp expression: ((field (sc-mail-field
"from")))
[INS] [DEL] Lisp expression:
(string-match "\" ?\\([^ ]+\\) \\([^ ]+\\)
(\\(EUS\\|QCS\\|ECS\\|CRD\\|EML\\|LMC\\|EED\\|EIN\\|EMN\\|QML\\|ERA\\))"
field)
[INS] [DEL] Lisp expression: (match-string 1 field)
[INS]
[INS]
I really just wanted:
(let ((field (sc-mail-field "from")))
(string-match "\" ?\\([^ ]+\\) \\([^ ]+\\)
(\\(EUS\\|QCS\\|ECS\\|CRD\\|EML\\|LMC\\|EED\\|EIN\\|EMN\\|QML\\|ERA\\))"
field)
(match-string 1 field))
but couldn't get customize to insert it correctly. This was the only
way I could get customize to put in the code at that time. It seems
that an extra set of parens are inserted by customize so the change to
supercite was supposed to remove it.
I didn't understand customize but could fix supercite, so I did. :-(
I'm pretty sure I reported my problems to this list bug got no replies
on my customize problem so I hunted down the quick fix myself.
Stephen> Unless either Raymond or Barry has something to say about
Stephen> it, I would say submit a patch to xemacs-patches revert
Stephen> that section to the upstream original. For discussion
Stephen> purposes, here's my diff. The
Of course if you do this, you'll hose me! Unless customize handles
those lists better now....
Ray