From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76604 Path: news.gmane.org!not-for-mail From: Michael Albinus 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 15:05:35 +0100 Message-ID: <87zkq1bb68.fsf@gmx.de> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297519566 6652 80.91.229.12 (12 Feb 2011 14:06:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 14:06:06 +0000 (UTC) Cc: emacs-devel@gnu.org, tramp-devel@mail.freesoftware.fsf.org, ding@gnus.org To: Ted Zlatanov Original-X-From: ding-owner+M24946@lists.math.uh.edu Sat Feb 12 15:06:01 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 1PoG6q-0002XC-9E for ding-account@gmane.org; Sat, 12 Feb 2011 15:06:00 +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 1PoG6k-0005ES-4r; Sat, 12 Feb 2011 08:05:54 -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 1PoG6i-0005E6-5G for ding@lists.math.uh.edu; Sat, 12 Feb 2011 08:05:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PoG6g-000479-Uk for ding@lists.math.uh.edu; Sat, 12 Feb 2011 08:05:51 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by quimby.gnus.org with smtp (Exim 4.72) (envelope-from ) id 1PoG6f-0007ss-L7 for ding@gnus.org; Sat, 12 Feb 2011 15:05:49 +0100 Original-Received: (qmail invoked by alias); 12 Feb 2011 14:05:43 -0000 Original-Received: from p57BB8480.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.132.128] by mail.gmx.net (mp025) with SMTP; 12 Feb 2011 15:05:43 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18PIoRWQvwPirnIm9ylYvTp+eutxskELwCgC7e3O4 JOMzq1d1BjQwde In-Reply-To: <87d3mxjrb9.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 12 Feb 2011 07:49:46 -0600") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76604 gmane.emacs.devel:135945 gmane.emacs.tramp:7652 Archived-At: 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. Sorry, I have overlooked your previous message. The patch looks OK. > Thanks > Ted Best regards, Michael.