emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding passords in authinfo


From: Ted Zlatanov
Subject: Re: Hiding passords in authinfo
Date: Sun, 14 Oct 2018 19:31:23 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

On Sun, 14 Oct 2018 14:23:57 -0400 Stefan Monnier <address@hidden> 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 <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]