From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: scratch/tzz/auth-source-reveal-mode 4a7c98d 3/3: Create and document auth-source-reveal-mode Date: Wed, 24 Jun 2020 19:04:10 +0000 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <20200622191653.26453.39420@vcs0.savannah.gnu.org> <20200622191656.2D20920A26@vcs0.savannah.gnu.org> <83a70sts32.fsf@gnu.org> <83v9jgs43x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70774"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 24 21:13:55 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 1joAqI-000IJs-9d for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jun 2020 21:13:54 +0200 Original-Received: from localhost ([::1]:50180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joAqH-0004fY-Ap for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Jun 2020 15:13:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35940) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joAh0-0000jq-6K for emacs-devel@gnu.org; Wed, 24 Jun 2020 15:04:19 -0400 Original-Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:36804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joAgw-0005mn-C8 for emacs-devel@gnu.org; Wed, 24 Jun 2020 15:04:17 -0400 Original-Received: by mail-qv1-xf2f.google.com with SMTP id h18so1578413qvl.3 for ; Wed, 24 Jun 2020 12:04:13 -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=vUg+48I10j0Jgl5DP2JUX/D3HudJW/yn4JrQCIHA09k=; b=JWYdn7uDIIUFh/x4ZBuD1qPeED19ZiMfwPzaCBRjYw+NXuYRctkYJOX3cVE9smKmap 6ARpYURX/La/72h7bWTDixG6kEI2u/YxNY6/ewcdONkfqKQgBILgNaKg32l4FFN2WoXF 4QHRwLyzXu7HqExH5Hn8Blc9rRFM2YWJABwGM= 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=vUg+48I10j0Jgl5DP2JUX/D3HudJW/yn4JrQCIHA09k=; b=YdBbV7x+Nywdh7FXVKpwMZio5oqvTzD5yeSLdVUrwWu/V9SaGE4g0FOB/SNyU7EMms WdTL32NKaxcLI5j+NskTF81vLg0DFJAYk8bhK0hMnwsr5p5Ni4emocGC+ayZeB4H00qT VbHZWiVfN8HRKKe/Wxmdj6nkWIuUa5Q8+ZLjaScDz2t3ZtwpSnoVoQRuT70Ti2etU8XW c2+TCOI1u81Wg9uu1naI4PyvOFCwLjMHT6EtCwY+wN4XHamPN/B9bG+nTPll7lR+42a0 IHTxOMzxGK9MOo3wuwJwbvqkYKYFcl4j7rmdFI+EUEjxF8aOoLxkAN8qPKyKO5y8KX+y T87w== X-Gm-Message-State: AOAM5312JApQHjyLBrK+KkeBMxBm2ingFRah4/LY/5E4o1HkSXG+0OhO 8RiTAJZo0rAKbh/fQYc+zAtou29/vf9LMg== X-Google-Smtp-Source: ABdhPJw9stbj3L3tGjlx0Yr3bzXocturymo0ck8quehy7/TgrN5RbI2fRPiFNEWY604acQ+3rM5aKw== X-Received: by 2002:a0c:e311:: with SMTP id s17mr20903859qvl.172.1593025452276; Wed, 24 Jun 2020 12:04:12 -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 u5sm4017964qke.32.2020.06.24.12.04.10 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jun 2020 12:04:11 -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: <83v9jgs43x.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 24 Jun 2020 21:36:34 +0300") Received-SPF: none client-ip=2607:f8b0:4864:20::f2f; envelope-from=tzz@lifelogs.com; helo=mail-qv1-xf2f.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=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:252531 Archived-At: On Wed, 24 Jun 2020 21:36:34 +0300 Eli Zaretskii wrote: >> From: Ted Zlatanov >> Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org >> Date: Wed, 24 Jun 2020 18:15:05 +0000 >> EZ> Alternatively, if the purpose is to display some text as something EZ> else, we already have display properties and overlays that can be (and EZ> are) used for implementing such features; why not use them instead? >> >> I would welcome help in implementing the prettify-text-* internals >> better (supporting bidirectional script and anything else you would >> consider required) and asked for help with it earlier. I'll need a hand >> from someone knowledgeable, or at least a pointer to code that provides >> the same functionality as `prettify-symbols-mode' in a way that's >> acceptable. I listed the functionality in (1) above. EZ> I would like first to understand why you thought about using the EZ> prettify-symbols-mode technique for this. Well, it did exactly what I needed and worked well in my testing. See thread "Re: questions about correct reveal-mode usage to hide passwords": On Thu, 11 Jun 2020 15:51:27 -0400 Stefan Monnier wrote: > Ted wrote: >> Is there an example using jit-lock that behaves like >> prettify-symbols-mode in the following cases? >> >> * transforms the text when outside it >> * temporarily shows the original text when inside it or on its right edge >> * updates when the user makes changes SM> Maybe if you look at the `csv-align-mode` in GNU ELPA's `csv-mode.el` SM> (tho it mixes the job of aligning columns and of truncating/hiding the SM> text of columns that are too wide). EZ> The natural features to use EZ> for displaying some text instead of what's in the buffer are 'display' EZ> text properties and overlay strings, and the natural feature for EZ> hiding some text is the 'invisible' text property. So why didn't you EZ> use these features to begin with? What am I missing? I spent several fruitless hours in that direction. Since I didn't have more hours to spend, I went with the working solution I could understand. This didn't happen in a vacuum, I posted my questions to emacs-devel in the thread above. Ted