emacs-devel
[Top][All Lists]
Advanced

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

Re: questions about correct reveal-mode usage to hide passwords


From: Clément Pit-Claudel
Subject: Re: questions about correct reveal-mode usage to hide passwords
Date: Thu, 11 Jun 2020 13:43:14 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 11/06/2020 13.33, Stefan Monnier wrote:
>>> One[1] uses font-lock mode to adapt to
>>> change dynamically, which works well for live editing, but you can't see
>>> the password when you're editing it.
>> font-lock is the perfect way to implement this, and it should be easy to
> 
> I'd recommend using jit-lock rather than font-lock.
> It might be a case of bikeshedding, but I think it will be both easier
> to implement and more robust.

Hmm.  I meant font-lock-keywords and text properties (which will benefit from 
jit-lock, of course), rather than hooking up directly into jit-lock and using 
overlays.  Is there something wrong with the text-properties approach?



reply via email to

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