From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: outline/allout/overlay performance (was: existing work on TODO items) Date: Wed, 11 Jan 2006 16:51:31 -0500 Message-ID: References: <2cd46e7f0601091127w7f988942w33a105481ccd02e0@mail.gmail.com> <2cd46e7f0601110821x5c97c63bj25d80df70240c80e@mail.gmail.com> <2cd46e7f0601111223m4e568b56n283d038ccfff6be0@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1137016324 31425 80.91.229.2 (11 Jan 2006 21:52:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 21:52:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 11 22:51:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ewnsk-00051r-KD for ged-emacs-devel@m.gmane.org; Wed, 11 Jan 2006 22:51:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ewnun-00078s-DC for ged-emacs-devel@m.gmane.org; Wed, 11 Jan 2006 16:53:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ewnuc-00078f-VA for emacs-devel@gnu.org; Wed, 11 Jan 2006 16:53:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ewnuc-00078S-Cv for emacs-devel@gnu.org; Wed, 11 Jan 2006 16:53:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ewnuc-00078P-7o for emacs-devel@gnu.org; Wed, 11 Jan 2006 16:53:46 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EwnxJ-0003aA-85 for emacs-devel@gnu.org; Wed, 11 Jan 2006 16:56:33 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E5B1433E601; Wed, 11 Jan 2006 16:51:37 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id DEADB4AC015; Wed, 11 Jan 2006 16:51:31 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id B9C09E6A42; Wed, 11 Jan 2006 16:51:31 -0500 (EST) Original-To: Ken Manheimer In-Reply-To: <2cd46e7f0601111223m4e568b56n283d038ccfff6be0@mail.gmail.com> (Ken Manheimer's message of "Wed, 11 Jan 2006 15:23:07 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.854, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48940 Archived-At: > i think i've surmounted the performance problem i was seeing, by > better stitching together the overlays. Good news. > where i'm getting to is a version of allout that uses a routine which > flags text for invisibility that is very like the one in outline-mode - > `outline-flag-region' - but uses a different routine to reconcile the > presentation after isearches - the `isearch-open-invisible' property. > i may want to use a special `isearch-open-invisible-temporary' property, > as well. You may want to check interaction with reveal-mode as well. > these choices are hard-coded in the current `outline-flag-region', so > i can't use it as stands. i could suggest a slightly modified version > which open-codes these choices so "derivative" outline modes can use it > directly while tailoring these aspects for their specific purposes. does > that seem like a reasonable way to go? I don't understand why outline-flag-region should have anything to do with the implementation of an isearch-open-invisible(-temporary) function, so I'm probably not understanding you well, but improving outline-flag-region so it stitches overlays together sounds like a good idea. Maybe it could be made into a generic function, much like remove-overlays and moved to subr.el. Stefan