GNU bug report logs - #33146
.authinfo.gpg not automatically loaded when using (dired) on macOS

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Christian Johansson <christian@HIDDEN>; dated Thu, 25 Oct 2018 05:28:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 20 Nov 2018 08:30:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 20 03:30:26 2018
Received: from localhost ([127.0.0.1]:33369 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gP1QP-0005sM-Q3
	for submit <at> debbugs.gnu.org; Tue, 20 Nov 2018 03:30:26 -0500
Received: from mout.gmx.net ([212.227.15.19]:51453)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1gP1QN-0005s6-0l
 for 33146 <at> debbugs.gnu.org; Tue, 20 Nov 2018 03:30:23 -0500
Received: from detlef.gmx.de ([212.91.249.116]) by mail.gmx.com (mrgmx003
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LedVG-1ffI9B44Jq-00qW1U; Tue, 20
 Nov 2018 09:30:16 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Christian Johansson <christian@HIDDEN>
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
 <87muqxyp2s.fsf@HIDDEN> <87ftwbn5oz.fsf@HIDDEN>
 <c5824b3f-650e-ef61-153d-3923485da31b@HIDDEN> <87k1lmlh3m.fsf@HIDDEN>
 <a7m6m4ri.fsf@HIDDEN>
 <3a3f5eb8-63fd-1819-7237-c5f74af30600@HIDDEN>
Date: Tue, 20 Nov 2018 09:30:15 +0100
In-Reply-To: <3a3f5eb8-63fd-1819-7237-c5f74af30600@HIDDEN> (Christian
 Johansson's message of "Mon, 19 Nov 2018 17:50:52 +0100")
Message-ID: <874lccywvc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:PwBPRmaTNoVAnXqXWSxHvKDmafv30xLOUH8tlooe9NW3qor1Nxh
 qov1JOhPpd5r4efl/FS093TMGDZfFEQykH0YhUIZ2DA8k1wYEy/Z1U3qppkB6zClOHQ9hOv
 MkYtmS+CDbMl/1van3p2uNq5vqZesNdstiUrcWt11mL/1ofprHlSxlmJgj/0ueDKNkkbD5A
 R5lPKGsfQPmnjXst65xSA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V01:K0:lDoBsHCf2Vo=:Np7Hb47536JgJtmIrVxuQY
 PuK2wi+Ci+m1dsu+ch5cZp85ma0kzWrxbm/pc9i2GBuC9m0TV0Tfw0H2Y9QQW0RJ2etSDLRPv
 ny98UUIG/s/06wVerDUq4p+pqZW+Le4CvcOKj/9g/xRJIUZgllvKlaeFWMY0jDNKJInmnCmcI
 1/Gc1zUnrVdnAoI0awiIm+0ReUQPuVbmEvgOq+e3A9BdwgvAuSfOmQrldtuL71O9SLYjeglFM
 6xq4PzAIyJuVHs6Rt815ettIsiKQ1o7mCAwryrXwxE+OlLNnKKvzaxn83gYioOwViDv0MjtWa
 f4FQ/FtmjnQdyvpHaKhldQC5RJeTalstbbioJJYve03QYrilXpgoEfpyrkNrMk9JpNGw9oIFo
 OrJwqy0+f9ytNGTeSuuh/H4Ci30EIFeEZyInIu4mPmo3pbpZ/nurnEer8SPfvBx9BL2T/VGuy
 aVVFm863g0N1P50zEPy2s/U/MLt1rLBGiOwrS3rzYCMcgLT8lSX2khNpOkdJqGpmXnBroL4fS
 YaOikgtmlfz2jNcW6T4u51XzaP+Sf/HUD6XEzhGqR1GtVcGV2JoxQoZsWJnP/Hhn1qFoPcr/u
 5FCc3o3mjB0xH4u8GM0luajqdgoNREWMyqzzZVKiA9QsYxfTx8QqTlFHj1YaT8VhVoDdQGsR4
 sQbuC2IZ1/a/DZjXCs9ZjchW0qAzKJVFzLznteYt8V2KQfKL3JmwdwgBCsDsdC832KMeZxR1X
 kAzD9lZwQ+2rZT7ptlK9AIdTgYgdrS79rbD9unvxwMRnSwlRMOw3oeshlAFS0oNGAoBBXDhJS
 P6qLloBhsb5Wg9lqiSOhVRZVYQPbd1CaBHyf6dnrWY/KvyOr/HpVY43pmoyL9CZM6fcyztKgj
 Dw5TkPAQq8+uGIOMBrzMu0QO8c8xQClX7VV+K3gAsMbXHmErQKd/kas6GlVS2/izBrJrokcod
 6PrR6vjh3bg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33146
Cc: Ted Zlatanov <tzz@HIDDEN>, 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Christian Johansson <christian@HIDDEN> writes:

> Hi again

Hi Christian,

> I stumbled on this alternative solution from the user-guide to John
> Wiegley async.el:
> https://github.com/jwiegley/emacs-async
>
> They instead suggest using:
> (setq auth-sources '("~/.authinfo.gpg" "~/.netrc"))
>
> instead of:
> (setq ange-ftp-netrc-filename "~/.authinfo.gpg")
>
> to avoid the problem of unnecessary user-interaction, especially in
> the case of async.el since it's spawned process doesn't support
> user-interaction.

That's the goal of making ange-ftp aware of auth-source.el.

> Maybe both solutions are equivalent in solving the problem that
> authinfo doesn't automatically work with .netrc files and ange-ftp
> doesn't work with .authinfo files?

Yes. In general, I believe the auth-source.el solution is superior,
because you could manage all your passwords wherever you want, even in
the Gnome Password Manager (in case you use the secrets.el backend of
auth-sources).

> I think most people just use the tokens: machine, default, port,
> login, password and they seem to work already after setting either
> ange-ftp-netrc-filename or auth-sources variable.

Right.

> Can you make one of those solution a default configuration and then
> perhaps add a override for people that want to use tokens that have
> special meaning the context of ange-ftp or authinfo it they are not
> fully compatible? Maybe there could be warnings occuring when authinfo
> stumbles upon a token it doesn't support and vice versa for ange-ftp?

In general, I don't want to support two different ways to handle
passwords in ange-ftp. That sounds good for trouble, because it
increases configuration complexity.

I prefer to switch to the auth-source.el solution in ange-ftp. With the
help of Ted, this shall be possible.

> Regards
> Christian

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 19 Nov 2018 16:51:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 19 11:51:06 2018
Received: from localhost ([127.0.0.1]:32937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gOmlO-0008Qp-Km
	for submit <at> debbugs.gnu.org; Mon, 19 Nov 2018 11:51:06 -0500
Received: from cvj.se ([31.192.230.63]:57872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christian@HIDDEN>) id 1gOmlM-0008Qg-Al
 for 33146 <at> debbugs.gnu.org; Mon, 19 Nov 2018 11:51:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x;
 h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject;
 bh=catt2HSH8JOa3kFBkWYOu/UO7ZQTAoR/8ZJRfxEFz0U=; 
 b=pE0hSqhZJiIUM1DrSDVDllBxdCNuYjg4JAtbMW4YBO+Nb3RuIrDyLtpiMytQLOemG4K/fygJaQveU7uLg5rRs3+yrA63H90mnvKQHX8r3z7Nnj6RXeQxalaZNeuNTlXaUxR88nsE09EpvNa7nD85Q2PQVJys/M8koak+gzNpNTI=;
Received: from m77-218-247-216.cust.tele2.se ([77.218.247.216]
 helo=Christians-MacBook-Air.local)
 by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <christian@HIDDEN>)
 id 1gOmlJ-0005b0-Rv; Mon, 19 Nov 2018 17:51:02 +0100
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
To: Ted Zlatanov <tzz@HIDDEN>, Michael Albinus <michael.albinus@HIDDEN>
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
 <87muqxyp2s.fsf@HIDDEN> <87ftwbn5oz.fsf@HIDDEN>
 <c5824b3f-650e-ef61-153d-3923485da31b@HIDDEN> <87k1lmlh3m.fsf@HIDDEN>
 <a7m6m4ri.fsf@HIDDEN>
From: Christian Johansson <christian@HIDDEN>
Message-ID: <3a3f5eb8-63fd-1819-7237-c5f74af30600@HIDDEN>
Date: Mon, 19 Nov 2018 17:50:52 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0)
 Gecko/20100101 Thunderbird/60.3.0
MIME-Version: 1.0
In-Reply-To: <a7m6m4ri.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi again

I stumbled on this alternative solution from the user-guide to John 
Wiegley async.el:
https://github.com/jwiegley/emacs-async

They instead suggest using:
(setq auth-sources '("~/.authinfo.gpg" "~/.netrc"))

instead of:
(setq ange-ftp-netrc-filename "~/.authinfo.gpg")

to avoid the problem of unnecessary user-interaction, especially in the 
case of async.el since it's spawned process doesn't support 
user-interaction.

Maybe both solutions are equivalent in solving the problem that authinfo 
doesn't automatically work with .netrc files and ange-ftp doesn't work 
with .authinfo files?

I think most people just use the tokens: machine, default, port, login, 
password and they seem to work already after setting either 
ange-ftp-netrc-filename or auth-sources variable.

Can you make one of those solution a default configuration and then 
perhaps add a override for people that want to use tokens that have 
special meaning the context of ange-ftp or authinfo it they are not 
fully compatible? Maybe there could be warnings occuring when authinfo 
stumbles upon a token it doesn't support and vice versa for ange-ftp?

Regards
Christian

On 2018-11-18 22:53, Ted Zlatanov wrote:
> On Fri, 09 Nov 2018 10:45:17 +0100 Michael Albinus <michael.albinus@HIDDEN> wrote:
>
> MA> Requirements from ange-ftp.el would be at least
>
> MA> - Support of the "account" token.
> MA> - Support of the "default" token.
> MA> - Check of proper file permissions of "~/.netrc" or whatever file is
> MA>   specified (see ange-ftp-disable-netrc-security-check).
>
> MA> The "account" token is already parsed in auth-source.el, but it is not
> MA> divided from the "login" token. Both are handled via the common keyword
> MA> :user.
>
> MA> The "default" token is already parsed in auth-source.el, but I'm not
> MA> sure it is used in the sense ange-ftp.el expects it. In auth-source.el
> MA> this token is expanded to an entry of its own, with an unspecified
> MA> "machine". In ange-ftp.el, the tokens of "default" are used for all
> MA> other entries, replacing missing tokens. AFAIU.
>
> MA> Once this is prepared in auth-source.el, I would be able to integrate it
> MA> in ange-ftp.el. That is a more simple task; I've done this already for Tramp.
>
> Hi Michael,
>
> if you or a user could define the desired behavior as tests against
> auth-source.el (we already have that set up in the core), I'd be happy
> to implement them. Something like "for this call, with this
> authinfo/netrc content, I expect to get back this data."
>
> I wasn't able to deduce the desired behavior on my own, unfortunately.
>
> Checking the permissions of the netrc file sounds like a good feature.
> For a GPG file it's not so important.
>
> MA> - Everything I have forgotten to tell here ...
>
> There's always a few of those... :)
>
> Ted




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 18 Nov 2018 21:53:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 18 16:53:47 2018
Received: from localhost ([127.0.0.1]:59400 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gOV0k-0004KU-Vt
	for submit <at> debbugs.gnu.org; Sun, 18 Nov 2018 16:53:47 -0500
Received: from mail-qk1-f170.google.com ([209.85.222.170]:40310)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tzz@HIDDEN>) id 1gOV0j-0004KH-6n
 for 33146 <at> debbugs.gnu.org; Sun, 18 Nov 2018 16:53:45 -0500
Received: by mail-qk1-f170.google.com with SMTP id y16so45802458qki.7
 for <33146 <at> debbugs.gnu.org>; Sun, 18 Nov 2018 13:53:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google;
 h=from:to:cc:subject:organization:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=iVBQR0C60XDcBtXI8y8YwdGlbhVFeYkDNnH6+JmG6gA=;
 b=uEu2zBuyn56eQldNduZO1mw7vLhDJW3hLe1Z+NttMPYxZDuoE0tm1rsmZ9WV/xpfSr
 b/IQk1bxJV3U+TyYIn8rtEfYU+Z+QgCklpK1lYHwLqYqBxFQ/uXmhDjRUfuahdbC+8aJ
 v0OEC6G+u9Q9wTD+EbsHZOzCZRXh0VIkvKsOw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:organization:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=iVBQR0C60XDcBtXI8y8YwdGlbhVFeYkDNnH6+JmG6gA=;
 b=mMEryRQZF2xuaeQcIiScC8zG+L8xIBoA214tyiFA5JUpIIMrDMzYksRn6Lbkt9YyXH
 M8JTyRl69pF3SJeohBPFg721BwRR43/fwwWs7szt7IojtFM+TmAW5ZoJVVVG0/qjsJ5R
 T2k0YiPlk2LUxYOtkYrAkI7ncU/NeH2poqRUDiehLqLaufLsDztdzQedj5ft1ei7nuT8
 44K6KzKT9+P+wK2GWuQhgxr8jhWKGaRXXo4xReR7KgpqV7I+EKg3QtRWxr92YVbkHizq
 lW9AgT4QmIBNf/q/+GPl7P3ewefYy7949arAFT0FkwdHF82uUN7y1764PIIhcw6xP/+n
 2iKg==
X-Gm-Message-State: AGRZ1gJB/trrWPbyM8ZXIzyoDvP7WhU4fFuLijINInXfIXYKp68Avi8s
 ZFFE0/Y3+w4AmFoUxPHrfdtSrFVA23bmJw==
X-Google-Smtp-Source: AJdET5dC/GYo6E8Ufz9TVLL/wpouM/O7cvQcsCqoVdqBoulxqEXv/E9nhcXbn2/d3Vem0TeRJqXBHw==
X-Received: by 2002:a0c:d174:: with SMTP id c49mr18879834qvh.231.1542578019462; 
 Sun, 18 Nov 2018 13:53:39 -0800 (PST)
Received: from flea (c-76-28-41-155.hsd1.ma.comcast.net. [76.28.41.155])
 by smtp.gmail.com with ESMTPSA id h187sm18214963qke.46.2018.11.18.13.53.38
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 18 Nov 2018 13:53:38 -0800 (PST)
From: Ted Zlatanov <tzz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
 <87muqxyp2s.fsf@HIDDEN> <87ftwbn5oz.fsf@HIDDEN>
 <c5824b3f-650e-ef61-153d-3923485da31b@HIDDEN> <87k1lmlh3m.fsf@HIDDEN>
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"
Date: Sun, 18 Nov 2018 21:53:37 +0000
In-Reply-To: <87k1lmlh3m.fsf@HIDDEN> (Michael Albinus's message of "Fri, 09
 Nov 2018 10:45:17 +0100")
Message-ID: <a7m6m4ri.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33146
Cc: Christian Johansson <christian@HIDDEN>, 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, 09 Nov 2018 10:45:17 +0100 Michael Albinus <michael.albinus@HIDDEN> wrote: 

MA> Requirements from ange-ftp.el would be at least

MA> - Support of the "account" token.
MA> - Support of the "default" token.
MA> - Check of proper file permissions of "~/.netrc" or whatever file is
MA>   specified (see ange-ftp-disable-netrc-security-check).

MA> The "account" token is already parsed in auth-source.el, but it is not
MA> divided from the "login" token. Both are handled via the common keyword
MA> :user.

MA> The "default" token is already parsed in auth-source.el, but I'm not
MA> sure it is used in the sense ange-ftp.el expects it. In auth-source.el
MA> this token is expanded to an entry of its own, with an unspecified
MA> "machine". In ange-ftp.el, the tokens of "default" are used for all
MA> other entries, replacing missing tokens. AFAIU.

MA> Once this is prepared in auth-source.el, I would be able to integrate it
MA> in ange-ftp.el. That is a more simple task; I've done this already for Tramp.

Hi Michael,

if you or a user could define the desired behavior as tests against
auth-source.el (we already have that set up in the core), I'd be happy
to implement them. Something like "for this call, with this
authinfo/netrc content, I expect to get back this data."

I wasn't able to deduce the desired behavior on my own, unfortunately.

Checking the permissions of the netrc file sounds like a good feature.
For a GPG file it's not so important.

MA> - Everything I have forgotten to tell here ...

There's always a few of those... :)

Ted




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.
Removed tag(s) wontfix. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 9 Nov 2018 09:45:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 09 04:45:30 2018
Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gL3M2-0003Wz-9t
	for submit <at> debbugs.gnu.org; Fri, 09 Nov 2018 04:45:30 -0500
Received: from mout.gmx.net ([212.227.17.20]:58519)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1gL3Ly-0003Wm-4b
 for 33146 <at> debbugs.gnu.org; Fri, 09 Nov 2018 04:45:28 -0500
Received: from detlef.gmx.de ([213.220.146.46]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M6O1v-1fbBlU1SA7-00yOW2; Fri, 09
 Nov 2018 10:45:19 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Christian Johansson <christian@HIDDEN>
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
 <87muqxyp2s.fsf@HIDDEN> <87ftwbn5oz.fsf@HIDDEN>
 <c5824b3f-650e-ef61-153d-3923485da31b@HIDDEN>
Date: Fri, 09 Nov 2018 10:45:17 +0100
In-Reply-To: <c5824b3f-650e-ef61-153d-3923485da31b@HIDDEN> (Christian
 Johansson's message of "Thu, 8 Nov 2018 16:37:09 +0100")
Message-ID: <87k1lmlh3m.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:XroxpVb5XiN3yF2EKY1YdXRMaE3SdRzAwGITs16LVzKKHkqB9Lo
 bBpUHJeX3R3QfvKMybjsBv0HmMK/Fp7mr8JGKAjtckCcMmNbaFdAPweJplbqvhKPTbHaD2T
 qWRpDXpKhc3xWl3W7Xaxl1pMM/XGDdotoYnw+cz71w5A4gU02O7kL5k6jSRFdewr+4EO44W
 ZAlzKKXFU72OSkpBVf+ww==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V01:K0:E/L99Vn3uQg=:Sl/9hzE0ICC9UlD6Q566O0
 KbTro2Bd0JpaMgOUlvrsiYKdCwQrh9nZVKGPc484S/7+D9z+RetqBuc0RdM9Yr+iZHtUQddxl
 F+5mOMOywgJwDi0DghkdFqMvnckoplSJhdgjUFxc9iMdVIQfbttLEpNHDPzNNZNfRUIcSVxEC
 Zhbr7XEF42Zx4KV5FaqiLnlRjA3EtlFZZVC0KjsBsuLXH4tkbAfZc9njmg51kcroTV8q57vur
 q2OnC5MoebQ4XFhNdXbbrd4MBsIwG3IHfO+1lGjrltuawxKJCQHx/zJD6cvE5Bm6mhbD8r5hT
 XZkM+7dsF2Dnip6h9LsqdYdNT1n1NygPA39fepIGCgyTJn9dREH4gIB47W9JiDYgj2bkbRsbF
 kfXA4cV1BGhgjwLKxxVDWNtdh+lRac9d0EjspZMvf42v0w1FPQeH53V1IvwWC9moPEbdLYCd5
 cuqjj7JNwJJSrmw/T4lgSfUSF7nTEUBzzJd49DX/BPpJsYxN6TwMlm+LavnIcHGtTlduEhwqD
 YBbaKXkVW8Mj88D3yXHgcMAQlYFZWY2vSAo7HDp2KJfioK0t7zOpKnIzSwpWlYcKs7iOAXtDK
 JxXItzZoVhQWDTj24fwqYPSDvgMOK6ZnBceqDLrhcjdab1BtlDjng841ZVE8nmr6Z5zDmWgKF
 OHpVAfKLB4S2qfKg3hS6QM4B+BDkIrXClfLO2Y2WmnUS631shdGjPvmq+Djx29YoSmV3w/y0f
 xOozdei523GiTVfs+LDLHHd3iOZ3c1cKTBoe1RHeNdgbwovqfvK8HakqQJirpZE0BDoLrFyaq
 rmhbRqH31AvwJTaciQKAFLV36GSgAo8+kqYdgD5NEn5OKoHh/vR0yr5xTpIocpQtK6tYWRAuD
 G6Q/Uji2Pbf/ipgCdr3oR7fHAOsbM4Kk4oiaWZZ9x4sxIuYal6SvmwfAh/CM5ot2zcIwD+YJ2
 WaA8dGDKDwg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org, Teodor Zlatanov <tzz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Christian Johansson <christian@HIDDEN> writes:

> Hi Michael

Hi Christian,

> Would it be a huge task extending auto-source.el to make it compatible
> with ange-ftp as well?

It is more complex than I expected initially, that's why I haven't
started it. And honestly, I'm rather an auth-source.el user than a
developer; I'm not very familiar with that code. That's why it might be
better if somebody else does it.

Requirements from ange-ftp.el would be at least

- Support of the "account" token.
- Support of the "default" token.
- Check of proper file permissions of "~/.netrc" or whatever file is
  specified (see ange-ftp-disable-netrc-security-check).
- Everything I have forgotten to tell here ...

The "account" token is already parsed in auth-source.el, but it is not
divided from the "login" token. Both are handled via the common keyword
:user.

The "default" token is already parsed in auth-source.el, but I'm not
sure it is used in the sense ange-ftp.el expects it. In auth-source.el
this token is expanded to an entry of its own, with an unspecified
"machine". In ange-ftp.el, the tokens of "default" are used for all
other entries, replacing missing tokens. AFAIU.

Once this is prepared in auth-source.el, I would be able to integrate it
in ange-ftp.el. That is a more simple task; I've done this already for Tramp.

> I think many people would appreciate that feature, but it's not really
> a bug rather a feature request

Agreed. Let's keep this bug (wishlist) open, maybe somebody takes over
the task. I'm Cc'ing Ted Zlatanov, the author of auth-source.el.

> Regards
> Christian

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 8 Nov 2018 15:37:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 08 10:37:20 2018
Received: from localhost ([127.0.0.1]:41818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gKmMx-0000ad-WA
	for submit <at> debbugs.gnu.org; Thu, 08 Nov 2018 10:37:20 -0500
Received: from cvj.se ([31.192.230.63]:39646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christian@HIDDEN>) id 1gKmMw-0000aU-8h
 for 33146 <at> debbugs.gnu.org; Thu, 08 Nov 2018 10:37:19 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x;
 h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject;
 bh=wgfgE/qtTBgPyxp4SrP+6vBfZPa2k6N/oNQaN2sE4c4=; 
 b=QWv0ErnCx09KXZ/empIfOEAdJGhK8nJ+iyA9UlHd1r/zDIEly3ms2jijnoMRGuKRkK2FYbfqNEAvns7q+tkX1U0S5oEFHKCd87hf1DE4a1TcMEYrO3mghdSlNhukF4/r4RXx4YRF1Q3NhehvrMPDTDiqN1r2grsLr6fzhPFCEvA=;
Received: from m77-218-245-1.cust.tele2.se ([77.218.245.1]
 helo=Christians-MacBook-Air.local)
 by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <christian@HIDDEN>)
 id 1gKmMu-0007Rp-0y; Thu, 08 Nov 2018 16:37:16 +0100
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
To: Michael Albinus <michael.albinus@HIDDEN>
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
 <87muqxyp2s.fsf@HIDDEN> <87ftwbn5oz.fsf@HIDDEN>
From: Christian Johansson <christian@HIDDEN>
Message-ID: <c5824b3f-650e-ef61-153d-3923485da31b@HIDDEN>
Date: Thu, 8 Nov 2018 16:37:09 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0)
 Gecko/20100101 Thunderbird/60.2.1
MIME-Version: 1.0
In-Reply-To: <87ftwbn5oz.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Michael

Would it be a huge task extending auto-source.el to make it compatible 
with ange-ftp as well?

I think many people would appreciate that feature, but it's not really a 
bug rather a feature request

Sounds good to improve the documentation about the possible work-around

Regards
Christian

On 2018-11-08 12:56, Michael Albinus wrote:
> Michael Albinus <michael.albinus@HIDDEN> writes:
>
> Hi Christian,
>
>>> Alright, that worked. Would it be possible to make ange-ftp.el
>>> automatically aware of .authinfo files?
>>> I think that would improve user experience a lot.
>> Finally, it means that ange-ftp.el uses auth-source.el. Anything goes,
>> but somebody must implement it. And auth-source.el has its own
>> interpretation of the "port" element in .netrc/.authinfo lines, which is
>> kind of incompatible.
>>
>> I'll mark this bug report as wishlist. If nobody beats me I'll could do
>> it, but it will take time (too many other open requests). And for the
>> time being, you'll be able to apply the workaround.
> I have checked ange-ftp.el, and it does much more with the netrc file
> than auth-sources.el. For example, it handles also the "account" token.
>
> Therefore I have decided not to touch this. Instead, I have added the
> following text to the Tramp manual, section "5.12.1 Using an
> authentication file":
>
> --8<---------------cut here---------------start------------->8---
>     *Note* that ‘auth-source.el’ is not used for ‘ftp’ connections,
> because TRAMP passes the work to Ange FTP.  If you want, for example,
> use your ‘~/.authinfo.gpg’ authentication file, you must customize
> ‘ange-ftp-netrc-filename’:
>
>       (customize-set-variable 'ange-ftp-netrc-filename "~/.authinfo.gpg")
> --8<---------------cut here---------------end--------------->8---
>
> If you agree, I would close this bug.
>
>>> Regards
>>> Christian
> Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.
Added tag(s) wontfix. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 8 Nov 2018 11:56:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 08 06:56:39 2018
Received: from localhost ([127.0.0.1]:40359 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gKivO-00076W-Qc
	for submit <at> debbugs.gnu.org; Thu, 08 Nov 2018 06:56:39 -0500
Received: from mout.gmx.net ([212.227.15.19]:46907)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1gKivM-00076J-Qp
 for 33146 <at> debbugs.gnu.org; Thu, 08 Nov 2018 06:56:37 -0500
Received: from detlef.gmx.de ([79.140.117.112]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LwqwS-1fRvPB2exU-016Pl1; Thu, 08
 Nov 2018 12:56:29 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Christian Johansson <christian@HIDDEN>
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
 <87muqxyp2s.fsf@HIDDEN>
Date: Thu, 08 Nov 2018 12:56:28 +0100
In-Reply-To: <87muqxyp2s.fsf@HIDDEN> (Michael Albinus's message of "Mon, 29
 Oct 2018 12:22:51 +0100")
Message-ID: <87ftwbn5oz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:N4uEiCZLsVLjM7grLnonrRFhSI5viR/xvBnf2nmnq6WLwcRl1Jp
 qgkdfXIgaKpGEOztKh9SBrvo1TfP316o4ceyx94N57n/o3xDV17xiXEJwdzWrNS8ZNIHYYF
 eqnlMfHg+VRcplEE60SizHDnuM8Bb70eaa6jZwtDbKcXceBHAFjkG0JiYilt3BPfpDSQdQW
 Uw9fQ9ng4j7t3nERJYDZQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V01:K0:GDTP0ggt/bs=:kybP5alYxgJb2NV2G9Pjud
 M6HUUz4fZ7vFJB9IUFnVmE1KW0NPFfDEE0juQtNNldkPC9c8KRfCXOrhsl9CIDTtE1497tN4q
 HBjC/LT1/Y5AYp3m8rVGXNhU4LeoMWIe2XdmLoTKWTvZJeRN8/0NkuC2j1r0pMiQWklR9YPC4
 GQOQTNNH/9VfBwQyAdCkeYL73dfV04KthRSYn3J1hE1kzHf66V+KiizT3lT1SkqysIOv6Xmvd
 jj1P1wVUXfo4IwM8OynWFY6pEKNdkLUlaNLlREZwGbEwtZhBq7cdsdtppNLpdG1uhAumQnXbM
 kpW0KOXLKqC0tPnAz7MsZ0sv/UlPVwdSaMnduShbzzEtWzvjHVOl2/jYBv1QKFvAdAuohp0xa
 xO6s8qy9YS5lOjTWZRKque4GbolKsMFRVZbyJbXpeqmqOww3qwTh/ntdGMl1gy6Ewp43J7NDr
 z4ofY5+ysWLxfzcUZUWe4vQ/d8lFsyOFuYCLhmITdKOk2AUrgTMMLkJdxhX8z2OMvVsH/hYYe
 kukx03FodHGP56RwzUbWpECiuzJXnjRv9F2PHuGjMwpRNEZhhQylOA5S982fLyyPplaUY/JbD
 JkBSciB0fl7qhljGidflDkEhPlNoWDAVLU0IEI89mzgNXLlKm5AQI6TD9ivPs76Du1ETFKqyt
 iwmvE5R0u1TPla0DRwvOBc14/GAP1+gDOkrGodZk/YmvtF5b4KHZJDX0w8fZz6pt2c5N8YnqW
 Qbieyf1ZtMtEP9Ws74pqwoDUB3vT4Xu6EmAHWAM9EobIsjq24i8pCFIQMgJpE4Elh1wVyVFQf
 BzKcTPTWklz9t7m/s1j5nkFW1LkXkYZwCbuCJN5p+4kpcqpVDtQhjJiaGuOdgxvncV+S2BgZc
 y5jGpWx+H4SbL+ohKxjdnbKBuhPWTeTYEscUDYnRyV2bIvHqQBgYf43cLIfPCLkHYSYr8EqOD
 9el58HC4gzw==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Michael Albinus <michael.albinus@HIDDEN> writes:

Hi Christian,

>> Alright, that worked. Would it be possible to make ange-ftp.el
>> automatically aware of .authinfo files?
>> I think that would improve user experience a lot.
>
> Finally, it means that ange-ftp.el uses auth-source.el. Anything goes,
> but somebody must implement it. And auth-source.el has its own
> interpretation of the "port" element in .netrc/.authinfo lines, which is
> kind of incompatible.
>
> I'll mark this bug report as wishlist. If nobody beats me I'll could do
> it, but it will take time (too many other open requests). And for the
> time being, you'll be able to apply the workaround.

I have checked ange-ftp.el, and it does much more with the netrc file
than auth-sources.el. For example, it handles also the "account" token.

Therefore I have decided not to touch this. Instead, I have added the
following text to the Tramp manual, section "5.12.1 Using an
authentication file":

--8<---------------cut here---------------start------------->8---
   *Note* that =E2=80=98auth-source.el=E2=80=99 is not used for =E2=80=98ft=
p=E2=80=99 connections,
because TRAMP passes the work to Ange FTP.  If you want, for example,
use your =E2=80=98~/.authinfo.gpg=E2=80=99 authentication file, you must cu=
stomize
=E2=80=98ange-ftp-netrc-filename=E2=80=99:

     (customize-set-variable 'ange-ftp-netrc-filename "~/.authinfo.gpg")
--8<---------------cut here---------------end--------------->8---

If you agree, I would close this bug.

>> Regards
>> Christian

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 29 Oct 2018 11:23:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 29 07:23:00 2018
Received: from localhost ([127.0.0.1]:49960 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gH5dM-0006tI-JM
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2018 07:23:00 -0400
Received: from mout.gmx.net ([212.227.15.19]:59373)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1gH5dL-0006t6-3y
 for 33146 <at> debbugs.gnu.org; Mon, 29 Oct 2018 07:22:59 -0400
Received: from detlef.gmx.de ([79.140.117.1]) by mail.gmx.com (mrgmx001
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M2L2a-1fOyyW40ai-00s9iO; Mon, 29
 Oct 2018 12:22:53 +0100
Received: from detlef.gmx.de ([79.140.117.1]) by mail.gmx.com (mrgmx001
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M2L2a-1fOyyW40ai-00s9iO; Mon, 29
 Oct 2018 12:22:53 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Christian Johansson <christian@HIDDEN>
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN> <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
Date: Mon, 29 Oct 2018 12:22:51 +0100
In-Reply-To: <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN> (Christian
 Johansson's message of "Mon, 29 Oct 2018 11:57:36 +0100")
Message-ID: <87muqxyp2s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:jO2RW1IEdGW3Ppls9IflzQkrPeFKLne16iJMb616W5LtMY7w8e2
 VfxRgGXFGTfDiUZcPNc6yivCGIlCYCcJrI7aTD+tkm+A6F/6C+my2e6lEtd477D1HCZP2/j
 ZZvJrJyYH+ljAwPA+J1IyqkR/bDi4ZryJb7KE+0hu5A3C4/XOeJTWg3bGnxjI+zf4wYrzgh
 zmNLidQkHbFkMGuGlMxPQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V01:K0:GV1qbCcQlMI=:bPKyp4oFIaLmJGZ4lnZcc/
 HVPft4QhO0Vxju3j1Ex3fI9MFaBlynxUYK5fgDDuSWmSiDph9JHf20Ez83peD/GBf86lUloe5
 NqfddkpOr8HEEwx3ffm4nd4LyYgnEZA4QHXV5jPJ7m9aXt/Bf7Llr37/frpQoCWUStBPASzbT
 IP5dtunEUOHUJeqqDwqOd12q54/SfyrKtzfw0z0IptYFgxwd4xjmNCB0Byn5Q7+COnTGWFXlB
 F2SSFNfujyFSnxohPbLwrIjNWJp9ybqpUexbaJDON3hIXA9uukgVL6Ny4AxFbT7FeJxyPURxX
 a3w9wwVJin9VMtlNrzVz82wrRE9UC946R9TGybALMQKuTbj1s/gS/a9SijRsPZI31k+rFjHXY
 MYEGCNsLKKvt1O3CQytgLpwzyj5e+9EvBO/huxJ5ErAcgg88u+qSoF+sXbcM0lSNsJt13QLWB
 ZAPRbWRNJHnVaTUlQVneKFIzPD9slVEHzPlWfpdXAlO7nSh8ANhjB2MIAh12yBF+X2azBPxCE
 q89uuNHkoh2YHeDZAu/tUXp3CJnoudZx2wcmfwv559JXCPMQD1KburCaA8J/pG4IUaqcUgoN6
 z9zpXlxnLkAw2oWTgVSqoJS6JQ+KbPENndanXmnUDbF86I+lgIwzSwKvBFAq71XcNRpyIw5YI
 db0QJdF6v5DOhwEnSg6OUaXHw3EdK9r56x3/97IMAN5uoJCDejxxKraXoNPOTT8UP6yPcOeJ+
 85oM45T+k71tk48h1ouLkJy3oFh3R800Ze21FQYjWj1o9dYhJ5TJ0QF+sQaqgfh9LeiS2cJrT
 RGmY1NHJGAG2VvgEaZjXgrFCNibqLe3nc0OsBjfPwhsoalz2Kc=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Christian Johansson <christian@HIDDEN> writes:

> Hi!

Hi Christian,

> Alright, that worked. Would it be possible to make ange-ftp.el
> automatically aware of .authinfo files?
> I think that would improve user experience a lot.

Finally, it means that ange-ftp.el uses auth-source.el. Anything goes,
but somebody must implement it. And auth-source.el has its own
interpretation of the "port" element in .netrc/.authinfo lines, which is
kind of incompatible.

I'll mark this bug report as wishlist. If nobody beats me I'll could do
it, but it will take time (too many other open requests). And for the
time being, you'll be able to apply the workaround.

> I can try adding support for that if it's possible

You could try it yourself :-)

Otherwise, I will ask you at least for tests, when the implementation
happens.

> Regards
> Christian

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 29 Oct 2018 10:57:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 29 06:57:49 2018
Received: from localhost ([127.0.0.1]:49941 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gH5Ez-0006Ei-Kg
	for submit <at> debbugs.gnu.org; Mon, 29 Oct 2018 06:57:49 -0400
Received: from cvj.se ([31.192.230.63]:46833)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christian@HIDDEN>) id 1gH5Ex-0006EZ-2e
 for 33146 <at> debbugs.gnu.org; Mon, 29 Oct 2018 06:57:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x;
 h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject;
 bh=NjXAtyk12NoGigWZrl01s5iI08suzTNFoHNsNPi8kEM=; 
 b=fX6AF1d5iaGcCPtyppM2c4MWfmrZik6X9sTpyxIlrGwEYywd8lu/jZ4SjLbpSLyidYGMSGn02EJjex3NVVEBs+pianDdzl1PeerfGHFlJyRolsrNhNs3hfkWXNUyJLiadiZV6tM7dZugulTGaKiOQCNB7Q5AkS0wvlVZuiwCTro=;
Received: from g238.broadband3.quicknet.se ([46.17.190.238]
 helo=[192.168.1.160])
 by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <christian@HIDDEN>)
 id 1gH5Ev-0004O3-9L; Mon, 29 Oct 2018 11:57:45 +0100
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
To: Michael Albinus <michael.albinus@HIDDEN>
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
 <875zxqjve1.fsf@HIDDEN>
From: Christian Johansson <christian@HIDDEN>
Message-ID: <84d64b74-9746-3c2f-45bf-2c5f202bee22@HIDDEN>
Date: Mon, 29 Oct 2018 11:57:36 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0)
 Gecko/20100101 Thunderbird/60.2.1
MIME-Version: 1.0
In-Reply-To: <875zxqjve1.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi!

Alright, that worked. Would it be possible to make ange-ftp.el 
automatically aware of .authinfo files?
I think that would improve user experience a lot.

I can try adding support for that if it's possible

Regards
Christian

On 2018-10-25 10:14, Michael Albinus wrote:
> Christian Johansson <christian@HIDDEN> writes:
>
>> Hi!
> Hi Christian,
>
>> ~/.authinfo.gpg seems to be loaded automatically for TRAMP sometimes
>> but not always, (dired) seems to be one command that doesn't load
>> .authinfo.gpg automatically.
> ~/.authinfo (and its different versions) are taken by the auth-sourc.el
> package. Tramp is aware of it, and uses its mechanisms.
>
>> 5. Paste: (dired "/ftp:dlpuser@HIDDEN@ftp.dlptest.com:/")
> As said before, "ftp" based methods are delegated via Tramp to
> ange-ftp.el. That package does not know auth-source.el, instead it has
> implemented its own parsing of ~/.netrc style files.
>
> Set ange-ftp-netrc-filename to "~/.authinfo.gpg", this should work.
>
>> Regards
>> Christian
> Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.

Message received at 33146 <at> debbugs.gnu.org:


Received: (at 33146) by debbugs.gnu.org; 25 Oct 2018 08:14:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 25 04:14:25 2018
Received: from localhost ([127.0.0.1]:41185 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gFame-0001bM-Tx
	for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 04:14:25 -0400
Received: from mout.gmx.net ([212.227.17.20]:35131)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1gFamd-0001b7-3Q
 for 33146 <at> debbugs.gnu.org; Thu, 25 Oct 2018 04:14:23 -0400
Received: from detlef.gmx.de ([212.91.243.74]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M4Wwq-1fNk8a223g-00ylnT; Thu, 25
 Oct 2018 10:14:16 +0200
Received: from detlef.gmx.de ([212.91.243.74]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M4Wwq-1fNk8a223g-00ylnT; Thu, 25
 Oct 2018 10:14:16 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Christian Johansson <christian@HIDDEN>
Subject: Re: bug#33146: .authinfo.gpg not automatically loaded when using
 (dired) on macOS
References: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
Date: Thu, 25 Oct 2018 10:14:14 +0200
In-Reply-To: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN> (Christian
 Johansson's message of "Thu, 25 Oct 2018 07:22:49 +0200")
Message-ID: <875zxqjve1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:qLvzuzvYcHHN41j5V5Ioe7NzOwV93JeCzwKSkMT9muAq2Vqk4Ct
 QcKyc3PuQax7NfRee0gbmthTMJoqQQYtwIqgOUUViA6BqGQff86x4UW2XpN4Ly6sxbP+C5E
 RmiOSyCHjp6Mx1qdoF1ipzKxmn5+f78FmXLDsVGf8xOAYgVhJDKfNLODmXM+3OJt8o5a2iz
 K6qdgZD6L4tOcVWhh9JXg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V01:K0:Z+QkEvj7s10=:xOSs9XaGGxFWzt6bWH65xm
 6PlTUt1dGSQjIYgYjX/aSLCNvI2cJ6YnBzAKwSBWhUDkXM+up6NAJ8XHcKTfki2n5OiLXtky5
 LVmHvFzvimaCCgaC2OwnENSGvk+v9O04waqUzDc+NMqxCJuAwiTaJnuO8AI2zIsNf5dxZ9Zga
 yV71x6H5PhmxTCQVQmdM8jdR1xXpja+zEPO11f0F15Sash4hfsEgO9UlbmQ3/KgHdm73zD878
 tqHi+vpnyh5LleCGh2Q27Ry/d3Cz4L512lifUCxxQ2J4va5cc1LwTeeVx3eB14Iy2t/QS+uHq
 putcXZUdRuafNUZ+LTdLX2S0cc4h0P/j7Zcw1t15Flo4z0j9t2qhIeWJGAb9+qR6m+QNUSsxK
 rJKP4Q4RViX//ieoAK41U7+F1lgT2q4NzULJcr4WmcZWOzI0zZSXLeGojrdecXs1MVwImLzm9
 ZKbtif1lnCWepeI9x9nBXUr5dYEdQVx8XWEochOZavh2ppQjD4oxWDTNRqQlu5pwnSEoDROgW
 EFl9e/krwM7TEYliLvfkmvdpSsKXeyXoHzwSY/KLnC6nuyhPTn4T1bSfI9ZYmODZlq/nhuMO1
 bdlo31Bm5LBqkflswWzCoqaSIXGdJDN0L9VRm5UjCtPVB20PnceRhdJJe1ZEVWhWeJ9B5+dOi
 59Uqv8yhl7mfIOzaH9ekUGswqm5/575PFFuYlQCQgGn55kZFUO6qS3pg+2D+AmgsxhofwZhj/
 q4ducmqTJQ9MwvucF3qDIZM6RJLP02XHtpPwnP5YOBwXggBy2twZVHYBl4LNKJSExrkogbJ15
 eAG2f1pSZZo/eQCX7KgAK52B9tghFwn/rTQtg8jwCVsXtSjGXs=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33146
Cc: 33146 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Christian Johansson <christian@HIDDEN> writes:

> Hi!

Hi Christian,

> ~/.authinfo.gpg seems to be loaded automatically for TRAMP sometimes
> but not always, (dired) seems to be one command that doesn't load
> .authinfo.gpg automatically.

~/.authinfo (and its different versions) are taken by the auth-sourc.el
package. Tramp is aware of it, and uses its mechanisms.

> 5. Paste: (dired "/ftp:dlpuser@HIDDEN@ftp.dlptest.com:/")

As said before, "ftp" based methods are delegated via Tramp to
ange-ftp.el. That package does not know auth-source.el, instead it has
implemented its own parsing of ~/.netrc style files.

Set ange-ftp-netrc-filename to "~/.authinfo.gpg", this should work.

> Regards
> Christian

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Oct 2018 05:27:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 25 01:27:23 2018
Received: from localhost ([127.0.0.1]:41138 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gFYB0-00060i-KI
	for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 01:27:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56319)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <christian@HIDDEN>) id 1gFYAy-00060U-LX
 for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 01:27:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <christian@HIDDEN>) id 1gFYAs-0002ij-HX
 for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 01:27:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38541)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <christian@HIDDEN>) id 1gFYAs-0002iQ-E4
 for submit <at> debbugs.gnu.org; Thu, 25 Oct 2018 01:27:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37642)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <christian@HIDDEN>) id 1gFYAp-0004uz-1M
 for bug-gnu-emacs@HIDDEN; Thu, 25 Oct 2018 01:27:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <christian@HIDDEN>) id 1gFY7m-0001Pe-FP
 for bug-gnu-emacs@HIDDEN; Thu, 25 Oct 2018 01:24:05 -0400
Received: from cvj.se ([31.192.230.63]:44631)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <christian@HIDDEN>) id 1gFY7m-0001On-5l
 for bug-gnu-emacs@HIDDEN; Thu, 25 Oct 2018 01:24:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cvj.se; s=x;
 h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To;
 bh=HIkv0jmdtWxCdW3YVEE8K5N/OgCEnOsv0jTr9F1GhiU=; 
 b=KO02x//v4Ja41p9dpWa6CexR5eEBYyp+smFtpkitJZPjOAPoCArC3Axw/34Ry4G2sAJAyiwM5dcYRdkHquAsjtHPHLmjcZHbb3Vr+Sa5r8MUJWe8MAfCU6gpXN8/8lXnzQa7s5i81bhOY2gpM1qalri7yLFL5oVhnOO6pZBghp4=;
Received: from m77-218-250-3.cust.tele2.se ([77.218.250.3]
 helo=Christians-MacBook-Air.local)
 by cvj.se with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <christian@HIDDEN>) id 1gFY6i-0000tC-Tz
 for bug-gnu-emacs@HIDDEN; Thu, 25 Oct 2018 07:22:57 +0200
To: bug-gnu-emacs@HIDDEN
From: Christian Johansson <christian@HIDDEN>
Subject: .authinfo.gpg not automatically loaded when using (dired) on macOS
Message-ID: <079d093d-f277-5601-fe15-f49cd41f247c@HIDDEN>
Date: Thu, 25 Oct 2018 07:22:49 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0)
 Gecko/20100101 Thunderbird/60.2.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)

Hi!

~/.authinfo.gpg seems to be loaded automatically for TRAMP sometimes but 
not always, (dired) seems to be one command that doesn't load 
.authinfo.gpg automatically.

Steps to reproduce:
1. Open emacs with src/emacs -Q
2. Open ~/.authinfo.gpg
3. Make sure this line exists: machine ftp.dlptest.com login 
dlpuserdlpuser@HIDDEN port ftp password e73jzTRTNqCN9PYAAjjn
4. Open *scratch* buffer
5. Paste: (dired "/ftp:dlpuser@HIDDEN@ftp.dlptest.com:/")
6. Run M-x "eval-buffer"
7. Notice the request for password in the mini-buffer even though 
password is already available in .authinfo.gpg

Regards
Christian

In GNU Emacs 27.0.50 (build 3, x86_64-apple-darwin17.6.0, NS 
appkit-1561.40 Version 10.13.5 (Build 17F77))
  of 2018-06-30 built on Christians-MacBook-Air.local
Repository revision: ed65ea18152636500399a7b6b75c87bac7d4ef2b
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14

Recent messages:
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/mail/emacsbug.el’ newer 
than byte-compiled file
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/mail/sendmail.el’ newer 
than byte-compiled file
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/gnus/message.el’ newer 
than byte-compiled file
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/mail/mailabbrev.el’ 
newer than byte-compiled file
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/gnus/gnus-util.el’ newer 
than byte-compiled file
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/mail/rmail.el’ newer 
than byte-compiled file
Source file ‘/Users/christianjohansson/Documents/emacs/lisp/epg.el’ 
newer than byte-compiled file
Source file 
‘/Users/christianjohansson/Documents/emacs/lisp/epg-config.el’ newer 
than byte-compiled file
s-b is undefined [2 times]
funcall-interactively: End of buffer

Configured features:
RSVG IMAGEMAGICK DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS
NS THREADS

Important settings:
   value of $LC_CTYPE: UTF-8
   value of $LANG: en_SE.UTF-8
   locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
   shell-dirtrack-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml easymenu
mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils conf-mode ange-ftp tramp-ftp tramp trampver tramp-compat
tramp-loaddefs shell pcomplete comint ansi-color ring parse-time
format-spec advice auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json map seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs elec-pair
time-date tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote dbusbind kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 222461 11024)
  (symbols 48 22158 1)
  (miscs 40 38 188)
  (strings 32 36026 1980)
  (string-bytes 1 1003870)
  (vectors 16 38793)
  (vector-slots 8 764344 15208)
  (floats 8 56 100)
  (intervals 56 244 0)
  (buffers 992 14))





Acknowledgement sent to Christian Johansson <christian@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#33146; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.