From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: A question about overlays and performance. Date: Sun, 26 Jul 2020 22:19:52 +0800 Message-ID: <87y2n6nyt3.fsf@localhost> References: <835zabcz8d.fsf@gnu.org> <87365foyam.fsf@localhost> <83pn8ibcs9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jnorden@math.tntech.edu, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 26 16:21:12 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 1jzhWa-0000pc-Bm for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jul 2020 16:21:12 +0200 Original-Received: from localhost ([::1]:43454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzhWZ-0006su-EM for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Jul 2020 10:21:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzhW3-0006ST-Pq for emacs-devel@gnu.org; Sun, 26 Jul 2020 10:20:39 -0400 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]:56042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzhW2-0002Mr-1W; Sun, 26 Jul 2020 10:20:39 -0400 Original-Received: by mail-pj1-x102c.google.com with SMTP id k1so7775739pjt.5; Sun, 26 Jul 2020 07:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=tScrjxtK4GZF5f0SA+tMOw6nLv6mEctsytUcDidRnXA=; b=it6LSqbn5L5NZCPOV8WqAsYvo88KpT8GOOrtLDau4q/AW05W6Nva5BoFsSIhR5qWVq KZjYBqcCfhLL5VGZo/P8Nq/2ZxSjl49TqBMYF5iNqUZvzwaRRjd3BFElN5IHzihvdZOE x6oDmeEpxNAtLpoaBFlIYeFn/5R5ZCPHNZlYNI/5I/yV0pRgXpuTeyRoKAynpOvJZYTq DvCDXTw25/PZ4pzd9smqaAxEXLyBRy/yAeY0cDjVv1pw3oVo8KW+gpmmGHWRHN/nakwl Cs3AdNcyJni4gWX15zJl8bsSS+z+gTHGc6tfWTPKvGiAqvECsG0N7/Jdk0RbqW+bsQnu Nk8A== 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:in-reply-to:references:date :message-id:mime-version; bh=tScrjxtK4GZF5f0SA+tMOw6nLv6mEctsytUcDidRnXA=; b=kMJtI8amyKkQSYUSIecjIMG/ABz5UB8Q851H+UG366h9qclA+/pL8xQkCaNVlaosqY HP4TW5+KFRJEjNb7JpPyN5p7PaGnWJEsM9ozVbegCotoRfw5tzwdIIAEW6h+hzibc5Wh 5GDNdAn/dI4r4wUnuXsO+quftCEigCu75KoqnrJ4MIVOhEEfYA7iCgBIELwWjzrW7SSL 3l8bgrqNMvnXDuBon10g2JLOS9GLdXEqsgb9tnPWeCDINzU8TlVfSo4yUlO/E7gW+La7 OPUC+6vi7DGq4x2iNLDbHF8Jg4pKKYc75G9v726sn4djm7uR2WL1DNSRf7jz03HOsHJN nILw== X-Gm-Message-State: AOAM531hTy2m+P9Hbc3LlBABuOakKfeB7ncim2fY1z139L28bErtn92f 9JpHaQaI/hOFDDVHIhQ3yEm44CJgjDUypg== X-Google-Smtp-Source: ABdhPJx/X99W2m2M+VyG2oHtlwoHaoJcU8qzDQD3UxLPMWHGPgKGPwf2thzS12ca9eety9b49o8LCw== X-Received: by 2002:a17:902:b58f:: with SMTP id a15mr15734047pls.87.1595773235921; Sun, 26 Jul 2020 07:20:35 -0700 (PDT) Original-Received: from localhost ([23.27.206.164]) by smtp.gmail.com with ESMTPSA id p12sm11404252pgk.40.2020.07.26.07.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 07:20:35 -0700 (PDT) In-Reply-To: <83pn8ibcs9.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102c.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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:253255 Archived-At: > So what kind of guidelines did you want to hear regarding these > issues? Mostly wanted to know if there is a known way to solve these issues. If there is, it may be a good idea to describe it briefly in the manual. If not, I was thinking about writing a patch/feature request to solve these issues. Eli Zaretskii writes: >> 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? -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg