From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76583 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.emacs.tramp,gmane.emacs.gnus.general Subject: Re: auth-source.el API change: Gnus and Emacs sync Date: Fri, 11 Feb 2011 17:37:09 +0100 Message-ID: <87hbcacytm.fsf@gmx.de> References: <87oc6j8qjt.fsf@lifelogs.com> <87k4h7dlse.fsf@gmx.de> <87fwru8yn6.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297442266 29076 80.91.229.12 (11 Feb 2011 16:37:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Feb 2011 16:37:46 +0000 (UTC) Cc: tramp-devel@mail.freesoftware.fsf.org, ding@gnus.org, emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 11 17:37:39 2011 Return-path: Envelope-to: ged-emacs-devel@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 1Pnw00-0002AT-63 for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 17:37:36 +0100 Original-Received: from localhost ([127.0.0.1]:35561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnvzz-0007Un-Nu for ged-emacs-devel@m.gmane.org; Fri, 11 Feb 2011 11:37:35 -0500 Original-Received: from [140.186.70.92] (port=44057 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pnvzp-0007Tk-D5 for emacs-devel@gnu.org; Fri, 11 Feb 2011 11:37:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pnvzo-0005WD-6J for emacs-devel@gnu.org; Fri, 11 Feb 2011 11:37:25 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:45437) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pnvzn-0005W9-OS for emacs-devel@gnu.org; Fri, 11 Feb 2011 11:37:24 -0500 Original-Received: (qmail invoked by alias); 11 Feb 2011 16:37:19 -0000 Original-Received: from p57BB9277.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.146.119] by mail.gmx.net (mp020) with SMTP; 11 Feb 2011 17:37:19 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19g1W8x6ltgOf/hRXZXvOKQTKWVFM1xhdkb5dpMRG kdhOIAYOjFzRs+ In-Reply-To: <87fwru8yn6.fsf@lifelogs.com> (Ted Zlatanov's message of "Fri, 11 Feb 2011 07:54:37 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135898 gmane.emacs.tramp:7645 gmane.emacs.gnus.general:76583 Archived-At: Ted Zlatanov writes: > I attach a revised patch against Emacs that DTRT inside tramp.el itself > (I think). Please check the logic because I don't know the Tramp > internals so well. Also we could pass `tramp-current-user' with the > :user search key to `auth-source-search', if it's known. I don't know > if that's TRT for Tramp. You're patch looks OK to me (but I haven't tested). If a user is given in the remote file name, it is set in `tramp-current-user', indeed; otherwise `tramp-current-user' is nil. So you could check it and use it when non-nil. > MA> I also believe, that tramp-imap.el shall not use auth-source-* > MA> directly. It might be better to use tramp-enter-password (or > MA> tramp-read-passwd). Maybe we could clean it up. > > If you can offer a suggestion for the code, that's fine. I think, > actually, that it may be a good idea to see how many people are using > tramp-imap.el. I have no bugs or suggestions since I wrote it, except > from you, so perhaps we should ask the community and remove it from > Tramp. If no one needs a feature... Maybe you start a poll on emacs-devel and tramp-devel? > Ted Best regards, Michael.