all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrey Slusar <anray@inet.ua>
Subject: supercite bugfix.
Date: Fri, 19 Nov 2004 20:32:27 +0200	[thread overview]
Message-ID: <86pt29r8p0.fsf@santinel.home.ua> (raw)


Hi,

See:
,----[ C-h v sc-cite-frame-alist RET ]
| `sc-cite-frame-alist' is a variable declared in Lisp.
|   -- loaded from "supercite"
| 
| Value: nil
| 
| 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.
`----
If FRAME is a variable containing a citation frame, when running
(sc-scan-info-alist 'FRAME). This is a bug.

 Patch, fixed this bug:

--- lisp/ChangeLog.orig	Fri Nov 19 14:54:39 2004
+++ lisp/ChangeLog	Fri Nov 19 14:58:40 2004
@@ -0,0 +1,5 @@
+2004-11-19  Andrey Slusar  <anray@inet.ua>
+
+	* mail/supercite.el (sc-cite-region): Fix bug, when FRAME is a variable
+	containing a citation frame.
+
--- lisp/mail/supercite.el.orig	Fri Nov 12 22:15:00 2004
+++ lisp/mail/supercite.el	Fri Nov 19 14:51:29 2004
@@ -1434,7 +1434,9 @@
 and that means call `sc-select-attribution' too."
   (interactive "r\nP\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)


-- 
Regards,
Andrey.

             reply	other threads:[~2004-11-19 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-19 18:32 Andrey Slusar [this message]
     [not found] <mailman.36.1100889732.27204.bug-gnu-emacs@gnu.org>
2004-11-19 20:01 ` supercite bugfix Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86pt29r8p0.fsf@santinel.home.ua \
    --to=anray@inet.ua \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.