From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: scratch/tzz/auth-source-reveal-mode 4a7c98d 3/3: Create and document auth-source-reveal-mode Date: Thu, 25 Jun 2020 16:31:02 +0300 Message-ID: <83sgejs25l.fsf@gnu.org> 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; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 25 15:32:52 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 1joRzo-000TrG-0O for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Jun 2020 15:32:52 +0200 Original-Received: from localhost ([::1]:43190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joRzn-0001Ey-2u for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Jun 2020 09:32:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joRyM-000876-RK for emacs-devel@gnu.org; Thu, 25 Jun 2020 09:31:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39586) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joRyM-0005iN-02; Thu, 25 Jun 2020 09:31:22 -0400 Original-Received: from [176.228.60.248] (port=2350 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joRyL-0007Zt-Bv; Thu, 25 Jun 2020 09:31:21 -0400 In-Reply-To: (message from Ted Zlatanov on Wed, 24 Jun 2020 19:04:10 +0000) 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:252534 Archived-At: > From: Ted Zlatanov > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Wed, 24 Jun 2020 19:04:10 +0000 > > 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. I'm very sorry that I couldn't participate in that discussion. I did read its beginning, and at the time it looked to me that you were getting good advice from Stefan and Clément. I missed the point where you decided to switch to prettify-symbols-mode as your basis; I should have chimed in right there and then. Can you please tell in more detail what caused you problems when you tried using overlays and invisible text properties? It surprises me that you encountered such difficulties, as there are quite a few features which use those facilities for similar purposes. As a random example, hl-line-mode moves an overlay as result of user commands, which sounds similar to what you need to do. Perhaps if you describe the difficulties you bumped into in more detail, we could help you overcome them? AFAICT, you never actually described the specific problems you had. prettify-symbols-mode (and static compositions in general) just aren't the right tool for such jobs; we have much better tools for that, and they work well for many other features. I'd be very surprised if those tools couldn't support your use cases. Thanks.