From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76613 Path: news.gmane.org!not-for-mail From: Michael Piotrowski Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-sources default Date: Sat, 12 Feb 2011 17:19:30 -0500 Organization: dynalabs Network Research Unit Message-ID: References: <87vd0phqw9.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297549239 15804 80.91.229.12 (12 Feb 2011 22:20:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 22:20:39 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24956@lists.math.uh.edu Sat Feb 12 23:20:34 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 1PoNpQ-0004Em-1K for ding-account@gmane.org; Sat, 12 Feb 2011 23:20:32 +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 1PoNow-0007Md-K4; Sat, 12 Feb 2011 16:20:02 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PoNot-0007MH-1d for ding@lists.math.uh.edu; Sat, 12 Feb 2011 16:19:59 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PoNor-00082V-JT for ding@lists.math.uh.edu; Sat, 12 Feb 2011 16:19:58 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PoNop-0007BN-Cj for ding@gnus.org; Sat, 12 Feb 2011 23:19:55 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PoNon-00041a-Bt for ding@gnus.org; Sat, 12 Feb 2011 23:19:53 +0100 Original-Received: from 64.134.240.166 ([64.134.240.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 23:19:53 +0100 Original-Received: from mxp by 64.134.240.166 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 23:19:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 64.134.240.166 User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.22 (berkeley-unix) X-Face: %OvAx]kKl`N,i?yQ+$^p9w2oy)Yg|O}a_~6wtRQ@UTZ*(jSPubbonT]m++M>YBtJqkZZa!W"y5`aI.FoKO%$JHz=ws|i?y^o2bds(+pcp>gcX]H}?-tCzL^ABzJUWYzS{"!_hFg:JD)`kxRKLsNp X-Operating-System: NetBSD Content-Language: en Cancel-Lock: sha1:5PKqDmQAXiyBjtEMcMUVpYIPMUg= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76613 Archived-At: On 2011-02-12, Ted Zlatanov wrote: >> At least for me, the default setting of `auth-sources'--or any other >> setting where `auth-sources' just contains strings--doesn't seem to work >> in the new version of auth-sources.el. The problem seems to be in >> `auth-source-backend-parse': `auth-source-backend-parse-parameters' is >> called with the original entry (i.e., a plain string) in any case, and >> then `plist-get' fails. > >> As a workaround one can set `auth-sources' to a plist, but I guess it >> would be good if the default worked ;-) > > I'm not sure what you're seeing but it works for me: > > (auth-source-backend-parse "test") > > => [object auth-source-backend "test" netrc "test" t t t > auth-source-netrc-create auth-source-netrc-search] Well, I get Malformed property list: "test", "test" > Try to run this: > > (mapcar 'auth-source-backend-parse auth-sources) > > and check the output. It should be a list of backend instances like > above. Unfortunately not. It works when `auth-sources' is a plist such as (:source "~/.authinfo" :host t :protocol t) but not when it's a list of strings. I inserted (message "%S // %S" entry backend) at the start of `auth-source-backend-parse-parameters'. When evaluating (auth-source-backend-parse "test"), I get the following output: "test" // [object auth-source-backend "test" netrc "test" t t t auth-source-netrc-create auth-source-netrc-search] (:source "test") // [object auth-source-backend "test" netrc "test" t t t auth-source-netrc-create auth-source-netrc-search] > Maybe you still have an old .elc file? Or you're using Emacs' > auth-source.el, which hasn't been updated yet? No, I checked this. I'm using XEmacs 21.4.22; according to the documentation, GNU Emacs' `plist-get' "accepts a malformed plist argument". This is not the case in XEmacs--maybe that's the problem? Greetings -- Dr.-Ing. Michael Piotrowski, M.A. Public key at (ID 0x1614A044)