From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: A question about overlays and performance. Date: Sun, 26 Jul 2020 16:56:22 +0300 Message-ID: <83pn8ibcs9.fsf@gnu.org> References: <835zabcz8d.fsf@gnu.org> <87365foyam.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19599"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jnorden@math.tntech.edu, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 26 15:57:13 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 1jzh9M-000505-VN for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jul 2020 15:57:12 +0200 Original-Received: from localhost ([::1]:33028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzh9M-0000w9-0g for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jul 2020 09:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzh8k-0000TC-AB for emacs-devel@gnu.org; Sun, 26 Jul 2020 09:56:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35260) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzh8j-0007yb-Q8; Sun, 26 Jul 2020 09:56:33 -0400 Original-Received: from [176.228.60.248] (port=4427 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jzh8i-0004Qg-Db; Sun, 26 Jul 2020 09:56:33 -0400 In-Reply-To: <87365foyam.fsf@localhost> (message from Ihor Radchenko on Sun, 26 Jul 2020 09:33:21 +0800) 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:253251 Archived-At: > From: Ihor Radchenko > Cc: emacs-devel@gnu.org > Date: Sun, 26 Jul 2020 09:33:21 +0800 > > Not directly related to the initial question here, but may I ask if > there are any practical guidelines to convert overlays to text > properties? I am specifically concerned about two issues when we want to > use text properties instead of overlays to hide text in buffer (pointing > at org-mode): > - text hidden via text properties is not well-handled by isearch. For > overlays, isearch can temporary reveal the hidden text, which is not > the case for text hidden using 'invisible text property. > - text properties are not buffer-local in indirect buffers. With > overlays, it is possible to have define hidden text in basic and > indirect buffer independently. However, text properties will always be > shared and the text hidden in indirect buffer will automatically be > hidden in the base buffer as well. So what kind of guidelines did you want to hear regarding these issues?