From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrey Slusar Newsgroups: gmane.emacs.bugs Subject: supercite bugfix. Date: Fri, 19 Nov 2004 20:32:27 +0200 Organization: Santinel Message-ID: <86pt29r8p0.fsf@santinel.home.ua> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100889194 25481 80.91.229.6 (19 Nov 2004 18:33:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2004 18:33:14 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 19 19:33:01 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVDZ7-00049Q-00 for ; Fri, 19 Nov 2004 19:33:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVDi1-0002YR-CN for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Nov 2004 13:42:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CVDhy-0002UV-TQ for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2004 13:42:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CVDhy-0002Tt-Br for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2004 13:42:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CVDhy-0002Tq-8u for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2004 13:42:10 -0500 Original-Received: from [195.248.176.165] (helo=mail-kv.alkar.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CVDYY-0005SU-6P for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2004 13:32:26 -0500 Original-Received: from [212.86.238.84] (helo=santinel.home.ua) by mail-kv.alkar.net with esmtp (Exim 4.34 (FreeBSD)) id 1CVDYW-000CXS-UE for bug-gnu-emacs@gnu.org; Fri, 19 Nov 2004 20:32:25 +0200 Original-Received: from anray by santinel.home.ua with local (Exim 4.43; FreeBSD) id 1CVDYZ-00019N-CF for ; Fri, 19 Nov 2004 20:32:27 +0200 Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.110003 (No Gnus v0.3) XEmacs/21.5 (chestnut, i386--freebsd) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9753 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9753 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 + + * 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.