From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel,gmane.emacs.tramp Subject: Re: auth-source.el API change: Gnus and Emacs sync Date: Sat, 12 Feb 2011 12:00:00 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <874o89jfq7.fsf@lifelogs.com> References: <87oc6j8qjt.fsf@lifelogs.com> <87k4h7dlse.fsf@gmx.de> <87fwru8yn6.fsf@lifelogs.com> <87hbcacytm.fsf@gmx.de> <877hd61nwc.fsf@lifelogs.com> <87d3mxjrb9.fsf@lifelogs.com> <87zkq1bb68.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297533682 8981 80.91.229.12 (12 Feb 2011 18:01:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 18:01:22 +0000 (UTC) Cc: emacs-devel@gnu.org,tramp-devel@mail.freesoftware.fsf.org To: ding@gnus.org Original-X-From: ding-owner+M24950@lists.math.uh.edu Sat Feb 12 19:01:17 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 1PoJmW-0003Jz-Bb for ding-account@gmane.org; Sat, 12 Feb 2011 19:01:16 +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 1PoJlf-0006FI-F1; Sat, 12 Feb 2011 12:00:23 -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 1PoJlc-0006Ey-F7 for ding@lists.math.uh.edu; Sat, 12 Feb 2011 12:00:20 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PoJlZ-0004ip-Gj for ding@lists.math.uh.edu; Sat, 12 Feb 2011 12:00:19 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PoJlX-00036d-9j for ding@gnus.org; Sat, 12 Feb 2011 19:00:15 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PoJlX-0002up-7A for ding@gnus.org; Sat, 12 Feb 2011 19:00:15 +0100 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 19:00:15 +0100 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Feb 2011 19:00:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net 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" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:YgHVKQmdX+hNAv60niGCIovG2dM= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76607 gmane.emacs.devel:135949 gmane.emacs.tramp:7653 Archived-At: On Sat, 12 Feb 2011 15:05:35 +0100 Michael Albinus wrote: MA> Ted Zlatanov writes: TZ> How about this: >> TZ> (setq auth-info TZ> (tramp-compat-funcall TZ> 'auth-source-search TZ> :max 1 TZ> :user (or tramp-current-user t) TZ> :host tramp-current-host TZ> :port tramp-current-method)) >> TZ> That will match any user if tramp-current-user is nil. >> >> Michael, I'll wait for your reply before comitting my patch in Emacs. >> The backwards compatible wrapper of `auth-source-user-or-password' >> should be OK until then. MA> Sorry, I have overlooked your previous message. The patch looks OK. I comitted my patch with some fixes, including tramp.el. Until Katsumi Yamaoka merges the Gnus changes, the trunk will be broken because auth-source.el hasn't been updated from the Gnus trunk. If that's a problem, revert 103234. I put a lot of work into the `auth-source-search' docstring and would like to know if there's an easy way to carry that into auth.texi. Otherwise I'll be duplicating the text. For now I left it as a TODO. Thanks Ted