From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.devel Subject: Re: master 893111f 2/2: Hide passwords in .authinfo and .netrc files Date: Sun, 22 Sep 2019 22:06:49 -0400 Message-ID: <874l13dava.fsf@fencepost.gnu.org> References: <20190921100408.13688.51289@vcs0.savannah.gnu.org> <20190921100410.7BD4A20520@vcs0.savannah.gnu.org> <875zllkamn.fsf@fencepost.gnu.org> <87lfugwlrv.fsf@gnus.org> <8736gocvgr.fsf@fencepost.gnu.org> <87impkutzi.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128399"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 23 04:07:00 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCDkh-000XEE-Rd for ged-emacs-devel@m.gmane.org; Mon, 23 Sep 2019 04:06:59 +0200 Original-Received: from localhost ([::1]:51780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCDkg-0002Px-BX for ged-emacs-devel@m.gmane.org; Sun, 22 Sep 2019 22:06:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCDkZ-0002Pa-R9 for emacs-devel@gnu.org; Sun, 22 Sep 2019 22:06:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iCDkZ-0003r3-Ka; Sun, 22 Sep 2019 22:06:51 -0400 Original-Received: from [2607:fea8:3b80:1ea:3905:65a1:aed0:b6fb] (port=42322 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iCDkZ-0007cx-BW; Sun, 22 Sep 2019 22:06:51 -0400 In-Reply-To: <87impkutzi.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240255 Archived-At: Lars Ingebrigtsen writes: [...] > Yes, makes sense. Should that just be a list of tokens, or a regexp? > If a regexp, I guess the function would have to be somewhat more > rewritten to keep the bit that matches the secret bit in the right > regexp grouping... Cool. I think having a regexp would be great in terms of flexibility, but maybe not if it causes too much added complexity? Having a list would probably be simpler to implement and/or use. But of course, if we do go with a regexp, the user could always use C-h f regexp-opt RET to automatically generate a regexp from a list of strings, rather than hand-write it. I guess my vote would be a regexp, if it doesn=E2=80=99t ma= ke authinfo--hide-passwords overly complicated. Thanks for working on this, Lars.