From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: questions about correct reveal-mode usage to hide passwords Date: Thu, 11 Jun 2020 10:21:45 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85409"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 11 16:22:29 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjO69-000M9A-3x for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 16:22:29 +0200 Original-Received: from localhost ([::1]:52938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjO68-0001kD-5c for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 10:22:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjO5b-0001Ki-5a for emacs-devel@gnu.org; Thu, 11 Jun 2020 10:21:55 -0400 Original-Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:43733) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjO5a-0007Li-Cf for emacs-devel@gnu.org; Thu, 11 Jun 2020 10:21:54 -0400 Original-Received: by mail-qk1-x732.google.com with SMTP id v79so5671023qkb.10 for ; Thu, 11 Jun 2020 07:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=GTnS+fKgUG//J2h9P8jDikl0Rg8Kw4wk/TfE/seTSWs=; b=VJ3R45+zsDMyRjVxIgtT/AAeivYshmKXR4S4cgpFCOHt7DOHifXcHdjQCqo7UNe3aR OIsP9aIpPwP0lZ2JETUB+6pBnLchVXoRkyCtKlkAc1bmm962fUHNBtGxE5sdQymLZ7uQ HVrvrYrd+N2wtqjx3IVCIZjPzTpnhp/WGxlO15vuiTDFhJTbxIdrTDPcjKcJQ6g44aAG ENVIxzMWidO5Bs87Y4mlfM7rK6+xS71hiepJeEilyZFgHzOlV/7qGULI+nrOcHVbpXKS ZdniUSCZmPaCFPPAeoigyMMJ+ylJV86ousZURRvNWnFlODV+d21Z7ALA6WsZRdPea+rg HTbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GTnS+fKgUG//J2h9P8jDikl0Rg8Kw4wk/TfE/seTSWs=; b=LmUNgmVv6/MjbYKdqlD+u5I/J+wGGt87XG5hTqy4sjB7+UnSBzsc5qGW+/FI8+G94D TBPeGy9Q2yCAhgc5KHWww+lMSPmWaT9GB+KLU++l3icK9ozVsXEK64OV4HdKp/xuOTi9 TSrbxuInch6lMGpEzIhuAUmqYNnOHeJlVP4g+YF0TE9oPgT++W1lJCDkBR97/UozeGhQ BrXFx/diqkCqalRefUUYkWZqmKElzSZrdnbDOWLRr9cfOW0c3yEFBCNBU1m/WHuWwz4t dKaB4gp/8t8HuWvojw7j0imfsK6696/BU57Okp8We/mIBIyKQfEB/xDFWDA8tmVuTWrW NZFg== X-Gm-Message-State: AOAM533chV9qXRqz7uj021Mlz4S3r2tfza7fj5uetpPnwsE+0fCYE10L oO8rwKVS3CGba7jjcnY7JZRN64zd X-Google-Smtp-Source: ABdhPJwmfd4+xMguEQGHkg1FspOErrIZmjkVOHvP0P4wwAB3zm0oeCCOg0vsxwrY4i1bMXkpGI0c/w== X-Received: by 2002:a05:620a:20d6:: with SMTP id f22mr8020910qka.294.1591885307438; Thu, 11 Jun 2020 07:21:47 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:7d16:396:5437:aae1? ([2601:184:4180:66e7:7d16:396:5437:aae1]) by smtp.googlemail.com with ESMTPSA id m94sm2559546qtd.29.2020.06.11.07.21.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jun 2020 07:21:46 -0700 (PDT) In-Reply-To: Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=cpitclaudel@gmail.com; helo=mail-qk1-x732.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252113 Archived-At: On 11/06/2020 10.09, Ted Zlatanov 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 tweak it to reveal passwords at point. Look at how prettify-symbols-mode works for inspiration (it uses fontlock and it removes the font-locking when prettify-symbols-unprettify-at-point is set)