From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77643 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-source-search Date: Wed, 9 Mar 2011 11:38:32 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877hc8p52f.fsf@lifelogs.com> References: <87zkpbzwar.fsf@lifelogs.com> <6eoc5r6vrq.fsf@news.eternal-september.org> <87pqq77x68.fsf@lifelogs.com> <87pqq225cf.fsf@lifelogs.com> <87r5agpakb.fsf@lifelogs.com> <14vczs2spa.fsf@news.eternal-september.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299692342 11764 80.91.229.12 (9 Mar 2011 17:39:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2011 17:39:02 +0000 (UTC) Cc: Ding Mailing List To: Richard Riley Original-X-From: ding-owner+M25966@lists.math.uh.edu Wed Mar 09 18:38:58 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 1PxNLY-0003xk-7e for ding-account@gmane.org; Wed, 09 Mar 2011 18:38:52 +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 1PxNLQ-0001sW-8M; Wed, 09 Mar 2011 11:38:44 -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 1PxNLO-0001sA-I2 for ding@lists.math.uh.edu; Wed, 09 Mar 2011 11:38:42 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PxNLN-0003ap-I1 for ding@lists.math.uh.edu; Wed, 09 Mar 2011 11:38:42 -0600 Original-Received: from chirelay1o.jumptrading.com ([38.98.147.153] helo=chirelay1.jumptrading.com) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PxNLM-0004gv-Hb for ding@gnus.org; Wed, 09 Mar 2011 18:38:40 +0100 Original-Received: from chirelay1.jumptrading.com (unknown [127.0.0.1]) by chirelay1.jumptrading.com (Symantec Mail Security) with ESMTP id 36EBD320033 for ; Wed, 9 Mar 2011 11:38:34 -0600 (CST) X-AuditID: 26629395-9f425bb000001fd1-a2-4d77bb1a4f68 Original-Received: from chiexchange02.w2k.jumptrading.com (unknown [38.98.147.140]) by chirelay1.jumptrading.com (Symantec Mail Security) with ESMTP id F14512DC00E for ; Wed, 9 Mar 2011 11:38:33 -0600 (CST) Original-Received: from internalsmtp.w2k.jumptrading.com (10.2.4.29) by chiexchange02.w2k.jumptrading.com (10.2.4.71) with Microsoft SMTP Server id 8.1.291.1; Wed, 9 Mar 2011 11:38:33 -0600 Original-Received: from tzlatanov-ubuntu-desktop.jumptrading.com ([10.2.14.81]) by internalsmtp.w2k.jumptrading.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 9 Mar 2011 11:38:33 -0600 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" In-Reply-To: <14vczs2spa.fsf@news.eternal-september.org> (Richard Riley's message of "Wed, 09 Mar 2011 16:56:33 +0100") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) X-OriginalArrivalTime: 09 Mar 2011 17:38:33.0564 (UTC) FILETIME=[CFEAC1C0:01CBDE80] X-Brightmail-Tracker: AAAAAA== X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77643 Archived-At: (Richard, I'd prefer keeping the discussion on the list. I hope that's OK with you.) On Wed, 09 Mar 2011 16:56:33 +0100 Richard Riley wrote: RR> Ted Zlatanov writes: RR> If not already done, How about an auth-get-password function? I'm OK with naming it `auth-source-pick-first-password' but just `auth-get-password' is misleading. RR> it makes it so much clearer and easier for third party apps to use RR> without having to understand the rather complex API to RR> auth-search. e.g I would then use it to get my erc, identica, RR> bitblbee etc passwords from a single .authinfo.gpg. ... RR> (auth-get-password "orgmobile") for example where the corresponding RR> .authinfo line is RR> ,---- RR> | machine orgmobile login rgr password mypassword RR> `---- I'd rather not make it a host lookup only so you can say (auth-source-pick-first-password :host "orgmobile" :user rgr) as well. So you'll have to use (auth-source-pick-first-password :host "orgmobile") which I think is just as simple and IMHO better in every way because it's clear what the parameters mean. So, with a bug fix on the function parameters, I committed it. Ted