From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Hiding passords in authinfo Date: Sun, 14 Oct 2018 19:31:23 +0000 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <87bmelj0p4.fsf@mouse.gnus.org> <83sh18twoe.fsf@gnu.org> <87bmelj0p4.fsf@mouse.gnus.org> <87vacthkpc.fsf@mouse.gnus.org> <1sctj9q1.fsf@lifelogs.com> <3ea6abeb-49c6-81b1-5cf2-ec9abf14fcf6@gmail.com> <866fec51-cd9b-7bbf-9e31-b71bf9786efc@gmail.com> <1s91z1rs.fsf@lifelogs.com> <83sh18twoe.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539545382 29871 195.159.176.226 (14 Oct 2018 19:29:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2018 19:29:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 14 21:29:38 2018 Return-path: Envelope-to: ged-emacs-devel@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 1gBm53-0007eb-Hz for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2018 21:29:37 +0200 Original-Received: from localhost ([::1]:49316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBm7A-0005kZ-5J for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2018 15:31:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBm70-0005kH-Sn for emacs-devel@gnu.org; Sun, 14 Oct 2018 15:31:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBm6v-0005oS-GD for emacs-devel@gnu.org; Sun, 14 Oct 2018 15:31:38 -0400 Original-Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:46944) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBm6v-0005mI-9q for emacs-devel@gnu.org; Sun, 14 Oct 2018 15:31:33 -0400 Original-Received: by mail-yb1-xb2b.google.com with SMTP id o8-v6so6727933ybk.13 for ; Sun, 14 Oct 2018 12:31:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to:date :in-reply-to:message-id:user-agent:mime-version; bh=lTQDNwr26slqVrH+Hp08so73LVDAEa+CwkzVsVB3Z28=; b=ibf+PKOQt1bj83LBo1ooVQ6rQjcg1d3XcJnNo6l8iKymK4S8XUiJQz8efPAZaAj7Fp 7PGgMqvOzrHZfNZ/aWD2p6XK2R8ey2mSuj0tIRysk1zZvsIKzE7qGCwDyDMf/a4DIpoR isF4RjlXYHrtwU/3NrMwX8I16lxe3A2DtLtFk= 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 :mail-copies-to:date:in-reply-to:message-id:user-agent:mime-version; bh=lTQDNwr26slqVrH+Hp08so73LVDAEa+CwkzVsVB3Z28=; b=BYMyI/i1i1rP/2vltD65QbRQsHzI3L3SMh8cjjAYhMWRsUBr3hPYAh9y+CahBQWQ47 a2lCFVDT5vv7aIWYHc6NUemnfifnEfd7233ZsQeKKres08KkM/fTO24xEI1kpOUjlpfG TG1CWlVSCni6ouW8m/JNmEnjgBfp+RF0vAgdnWtgfmbWFITJNnMXY7g6KLt2ZUAotnfc 8E46sPnTI3Sz+XHJeiJbWPghXy7lv6U54bx5yqnvm0a8VClNkUIJttCghnHzD2Zz3cj2 fD7kWtjn+yTmvAOz42sxLOP75kqOlZUCfTHOTwblolLbUk0gCRbVAT+O0gGDFDoWgBVL wlAw== X-Gm-Message-State: ABuFfojDIDoz5cVEWPS2uueg8hr5BpGFUZwpeNoAyNkopjOaF/rh9oNA gtCCgDT+MwKJDX3NyjqaERp1QvpormnWTQ== X-Google-Smtp-Source: ACcGV60P42YV19xImJ8nxYZOk0OS7WCPuvOPyEatf+MCLkr2YUhvr64NVoYEyG4r0pVnKyK3VKjrow== X-Received: by 2002:a25:d893:: with SMTP id p141-v6mr7719626ybg.446.1539545486968; Sun, 14 Oct 2018 12:31:26 -0700 (PDT) Original-Received: from flea (c-76-28-41-155.hsd1.ma.comcast.net. [76.28.41.155]) by smtp.gmail.com with ESMTPSA id j8-v6sm2184845ywa.17.2018.10.14.12.31.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Oct 2018 12:31:25 -0700 (PDT) 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" Mail-Copies-To: never In-Reply-To: (Stefan Monnier's message of "Sun, 14 Oct 2018 14:23:57 -0400, Sun, 14 Oct 2018 19:05:40 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::b2b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:230389 Archived-At: On Sun, 14 Oct 2018 14:23:57 -0400 Stefan Monnier wrote: >> When I open a file such as authinfo.json.gpg, the passwords are clearly >> visible to anyone that can see my screen. I'd like to hide them >> visually. SM> I'd recommend to do this via jit-lock-register. OK, glasses.el seems to use it in a similar way to what I'm trying to do. >> Ideally in a way that reveals them when I move inside them, >> like `prettify-symbols-mode` does. Stefan suggested `reveal-mode` may be >> the right place to do this work, so I investigated a little. SM> No, I suggested reveal-mode might be the right thing to use to do that SM> "reveal" part. reveal-mode doesn't deal with hiding, only with revealing. Right. I tried to find a standard way to do the hiding part, especially one that would work with `reveal-mode`, and failed. Would doing it with `jit-lock-register` work with `reveal-mode` automatically? On Sun, 14 Oct 2018 19:05:40 +0300 Eli Zaretskii wrote: EZ> OK, but what, if anything, does that have to do with "automatic minor EZ> modes", something that sounds like a much more general subject? I apologize for not changing the thread subject sooner. Stefan has done that, fortunately. Ted