supercite - bug?
Andrey Slusar <[email protected]> Mon, 13 Sep 2004 14:34:17 +0300
| Newsgroups | gmane.emacs.xemacs.general |
|---|---|
| Organization | XEmacs User |
| Message-ID | <[email protected]> |
Hi,
i am reading sc manual:
,----
| For each of the actions - citing, unciting, and reciting - an alist
| is consulted to find the frame to use (`sc-cite-frame-alist',
| `sc-uncite-frame-alist', and `sc-recite-frame-alist' respectively).
| These frames can contain alists of the form:
|
| ((INFOKEY (REGEXP . FRAME) (REGEXP . FRAME) ...)
| (INFOKEY (REGEXP . FRAME) (REGEXP . FRAME) ...)
| (...))
|
| Where INFOKEY is a key suitable for `sc-mail-field', REGEXP is a
| regular expression which is `string-match''d against the value of the
| `sc-mail-field' key, and FRAME is the frame to use if a match occurred.
| FRAME can be a variable containing a frame or a frame in-lined.
`----
And:
,----
| sc-cite-frame-alist's value is shown below.
|
| Documentation:
| *Alist for frame selection during citing.
| Each element of this list has the following form:
| (INFOKEY ((REGEXP . FRAME)
| (REGEXP . FRAME)
| (...)))
|
| Where INFOKEY is a key for `sc-mail-field', REGEXP is a regular
| expression to match against the INFOKEY's value. FRAME is a citation
| frame, or a variable containing a citation frame.
`----
It's incorrect working.
Patch is fixed this bug:
--8<---------------cut here---------------start------------->8---
--- supercite.el.old Mon Sep 13 14:28:01 2004
+++ supercite.el Mon Sep 13 14:31:55 2004
@@ -1539,7 +1539,9 @@
`sc-pre-cite-hook'."
(interactive "r\nP")
(undo-boundary)
- (let ((frame (or (sc-scan-info-alist sc-cite-frame-alist)
+ (let ((frame (or ((lambda (symb)
+ (if (symbolp symb) (eval symb) symb))
+ (sc-scan-info-alist sc-cite-frame-alist))
sc-default-cite-frame))
(sc-confirm-always-p (if confirm-p t sc-confirm-always-p)))
(run-hooks 'sc-pre-cite-hook)
--8<---------------cut here---------------end--------------->8---
Regards,
Andrey.