From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76923 Path: news.gmane.org!not-for-mail From: Raphael Kubo da Costa Newsgroups: gmane.emacs.gnus.general Subject: Re: Using the new auth-source Date: Fri, 18 Feb 2011 13:47:03 -0200 Message-ID: References: <87d3mq9stp.fsf@gnus.org> <878vxe9s81.fsf@gnus.org> <8739nm9qcw.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: dough.gmane.org 1298044545 9562 80.91.229.12 (18 Feb 2011 15:55:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 15:55:45 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25261@lists.math.uh.edu Fri Feb 18 16:55:41 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PqSgG-0007CK-KH for ding-account@gmane.org; Fri, 18 Feb 2011 16:55:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PqSfY-0005p1-7J; Fri, 18 Feb 2011 09:54:56 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PqSYE-0005mv-FZ for ding@lists.math.uh.edu; Fri, 18 Feb 2011 09:47:22 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PqSYD-0006hG-9C for ding@lists.math.uh.edu; Fri, 18 Feb 2011 09:47:22 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PqSYB-0006mS-Tt for ding@gnus.org; Fri, 18 Feb 2011 16:47:19 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PqSYB-0001Tm-0u for ding@gnus.org; Fri, 18 Feb 2011 16:47:19 +0100 Original-Received: from 201.82.25.112 ([201.82.25.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 16:47:19 +0100 Original-Received: from kubito by 201.82.25.112 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 16:47:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.emacs.gnus.general Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 201.82.25.112 User-Agent: KNode/4.4.10 X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-815--2515h-0s--0d--HX-Complaints-To:sk:usenet@, 0.000-814--2513h-0s--0d--H*r:sk:1AlnuQ-, 0.000-814--2513h-0s--0d--HX-Spam-Relays-External:80.91.229.12, 0.000-814--2513h-0s--0d--H*r:0.1, 0.000-814--2513h-0s--0d--HX-Injected-Via-Gmane:gmane.org Spam tokens: 0.869-2289--11072h-130512s--0d--H*c:ISO-8859-1, 0.868-629--3112h-36537s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.868-629--3112h-36537s--0d--H*RU:quimby.gnus.org, 0.858-334--3329h-35782s--0d--HTo:D*gnus.org, 0.847-28--3798h-37365s--0d--HX-Spam-Relays-Internal:quimby.gnus.org Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (kubito[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76923 Archived-At: Raphael Kubo da Costa wrote: > Katsumi Yamaoka wrote: > >> Raphael Kubo da Costa wrote: >>> I get the following warnings when byte-compiling Gnus: >> >>> In auth-source-search: >>> auth-source.el:581:39:Warning: reference to free variable `backend' >>> auth-source.el:567:31:Warning: assignment to free variable `backend' >> >> Mee too. I'm not sure of it but this seems to solve the problem: >> >> --- auth-source.el~ 2011-02-18 01:46:05.637646083 +0000 >> +++ auth-source.el 2011-02-18 12:09:34.784606979 +0000 >> @@ -511,5 +511,5 @@ >> collect (nth i spec))) >> (found (auth-source-recall spec)) >> - filtered-backends accessor-key found-here goal matches) >> + backend filtered-backends accessor-key found-here goal matches) >> >> (if (and found auth-source-do-cache) > > I can confirm it solves the warnings ant the error I was getting. Now I > get the following error when starting Gnus: > > Unable to open server nnimap+Personal due to: Wrong type argument: (or > eieio-object-p class-p), nil OK, so the problems seems to be here (in auth-source-search): ;; If we didn't find anything, then we allow the backend(s) to ;; create the entries. (when (and create (not matches)) (let ((match (apply (slot-value backend 'search-function) :backend backend :create create :delete delete spec))) (when match (push (list backend match) matches)))) `backend' should probably be referenced inside a loop (such as the `dolist' loop before the code I've pasted). OTOH, if I do enclose the `let' call in a (dolist backend filtered-backends), I am prompted twice for the same data here (I'm finally able to connect to the IMAP server, though).