From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#33146: .authinfo.gpg not automatically loaded when using (dired) on macOS Date: Tue, 20 Nov 2018 09:30:15 +0100 Message-ID: <874lccywvc.fsf@gmx.de> References: <079d093d-f277-5601-fe15-f49cd41f247c@cvj.se> <875zxqjve1.fsf@gmx.de> <84d64b74-9746-3c2f-45bf-2c5f202bee22@cvj.se> <87muqxyp2s.fsf@gmx.de> <87ftwbn5oz.fsf@gmx.de> <87k1lmlh3m.fsf@gmx.de> <3a3f5eb8-63fd-1819-7237-c5f74af30600@cvj.se> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542702554 14565 195.159.176.226 (20 Nov 2018 08:29:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2018 08:29:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Ted Zlatanov , 33146@debbugs.gnu.org To: Christian Johansson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 20 09:29:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP1P9-0003cB-Sk for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2018 09:29:08 +0100 Original-Received: from localhost ([::1]:60772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP1RG-00031f-2K for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2018 03:31:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP1RA-000300-CM for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2018 03:31:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gP1R3-0006q2-64 for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2018 03:31:11 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gP1R1-0006p3-5P for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2018 03:31:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gP1R0-0005tI-4P for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2018 03:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Nov 2018 08:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33146 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33146-submit@debbugs.gnu.org id=B33146.154270262622597 (code B ref 33146); Tue, 20 Nov 2018 08:31:02 +0000 Original-Received: (at 33146) by debbugs.gnu.org; 20 Nov 2018 08:30:26 +0000 Original-Received: from localhost ([127.0.0.1]:33369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP1QP-0005sM-Q3 for submit@debbugs.gnu.org; Tue, 20 Nov 2018 03:30:26 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:51453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP1QN-0005s6-0l for 33146@debbugs.gnu.org; Tue, 20 Nov 2018 03:30:23 -0500 Original-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 In-Reply-To: <3a3f5eb8-63fd-1819-7237-c5f74af30600@cvj.se> (Christian Johansson's message of "Mon, 19 Nov 2018 17:50:52 +0100") X-Provags-ID: V03:K1:PwBPRmaTNoVAnXqXWSxHvKDmafv30xLOUH8tlooe9NW3qor1Nxh qov1JOhPpd5r4efl/FS093TMGDZfFEQykH0YhUIZ2DA8k1wYEy/Z1U3qppkB6zClOHQ9hOv MkYtmS+CDbMl/1van3p2uNq5vqZesNdstiUrcWt11mL/1ofprHlSxlmJgj/0ueDKNkkbD5A R5lPKGsfQPmnjXst65xSA== 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+2rZT7ptlK9AIdTgYgdrS79rbD9unvxwMRnSwlRMOw3oeshlAFS0oNGAoBBXDhJ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152560 Archived-At: Christian Johansson 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.