From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: auth-source multiple accounts Date: Mon, 14 Feb 2011 16:15:15 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8762smntzg.fsf@lifelogs.com> References: <370a1897-25aa-418f-9631-1570dfa99de3@z7g2000yqb.googlegroups.com> <87633kaess.fsf@lifelogs.com> <8d7c78ee-6ba8-448a-8f86-3d585e1af77f@u32g2000vbc.googlegroups.com> <87vd8z2myy.fsf@lifelogs.com> <01ea3506-d715-491d-b360-3abf34e98013@i31g2000yqm.googlegroups.com> <87r5iq1hjk.fsf@lifelogs.com> <87630211kx.fsf_-_@lifelogs.com> <87mxtdvx2d.fsf@lifelogs.com> <87pqy8vmah.fsf@lifelogs.com> <87y6cvu53t.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297723693 20785 80.91.229.12 (14 Feb 2011 22:48:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Feb 2011 22:48:13 +0000 (UTC) Cc: u.s.reddy@cs.bham.ac.uk To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 14 23:48:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pp7DE-0002UL-JD for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 23:48:08 +0100 Original-Received: from localhost ([127.0.0.1]:36053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp76E-0007Ce-6h for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Feb 2011 17:40:54 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: news.albasani.net MfRQPbNVsoTRdKtTQFOitMEhtDi5M1BV74a5+9Ftnk41uEiGuriSUDy524wnae5uMjY/PeUUcuG2E1qALTSuTg== Original-NNTP-Posting-Date: Mon, 14 Feb 2011 22:15:15 +0000 (UTC) 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" Cancel-Lock: sha1:nUSzRh92gB6LIxBSe7aGfTn7OHY= sha1:3Nd7Ftfcghy/15DxsvD4lpc2lBg= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Injection-Info: news.albasani.net; logging-data="bJKzym/zQl093btyCwVty5/pPhJ6fPvEPVVmuhYwE8Gov1/yAnVP2mHnB93WyHQvmXagEajFAHAdp2ssU7cB6GVkORzgF6sLLBVI4PRY5lHAKLSwjr6ybjSe2U/mWcDf"; mail-complaints-to="abuse@albasani.net" Original-Xref: usenet.stanford.edu gnu.emacs.help:184953 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79118 Archived-At: On Wed, 28 Jul 2010 22:39:11 +0100 Uday S Reddy wrote: USR> On 7/28/2010 2:07 PM, Ted Zlatanov wrote: >> auth-source.el (specifically, auth-source-user-or-password) will work >> either way. The new query parameter is optional so at worst the user >> will get the wrong password. There will be no error. So you don't have >> to give up on old versions. Just warn the user that the account won't >> be part of the lookup. USR> Yes, but, if I call auth-source-user-or-password with the extra USR> parameter, and the user is using an old version of auth-source.el, USR> there will be an error. But the version number idea is good. I can USR> test for it before calling. USR> Let me know when you have the new version ready so that I can test it USR> along with VM. There's a much improved `auth-source-search' function in Emacs now. I think it will do what you need, and you can simply check if it exists and fall back on `auth-source-user-or-password' otherwise. The docstring is as complete as I could make it and I hope it answers any questions. Thanks Ted