From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: A question about overlays and performance. Date: Tue, 28 Jul 2020 10:05:26 -0700 Message-ID: <874kprr2nd.fsf@ericabrahamsen.net> References: <6B777B7E-1584-4E8D-A0A7-594E46C8687A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40576"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: eliz@gnu.org, monnier@iro.umontreal.ca, Ihor Radchenko , Jeff Norden , emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 28 19:06:10 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 1k0T3K-000AQK-Jn for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Jul 2020 19:06:10 +0200 Original-Received: from localhost ([::1]:60118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0T3J-0004Yx-GP for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Jul 2020 13:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0T2m-00048q-1G for emacs-devel@gnu.org; Tue, 28 Jul 2020 13:05:36 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:34972 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0T2j-0000pQ-7D; Tue, 28 Jul 2020 13:05:35 -0400 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id B04B0FA07F; Tue, 28 Jul 2020 17:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1595955929; bh=+f9RpwP5agCzwNwvbABFMg7unPEhsuQD1paWU4muOcw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MUn7fHF2ocTvs7+YEISGtqCD+iZtMD5DJ09wd53SbKbZ4N6sCnNlNWbqr8NcW1Zwm TXHkjaIWluOgRToIhff3h5APh4Su/LgzcjHeH9IhOZqgaxXHHE4oU48VsiTsnbP15j 8Op1pnIlPHktlLpdCxpf+6eIcFPWqpcvzR1VgIa4= In-Reply-To: <6B777B7E-1584-4E8D-A0A7-594E46C8687A@gmail.com> (Yuan Fu's message of "Tue, 28 Jul 2020 12:58:02 -0400") Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 13:05:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:253311 Archived-At: Yuan Fu writes: >> On Jul 28, 2020, at 12:43 PM, Jeff Norden wrote: >> >> From what little I've seen of them, I'm quite inclined to agree with >> Stefan's opinion about indirect buffers. Is their main use in org to >> provide multiple views of a buffer with different foldings? > > AFAIK org-sidebar relies on that: the sidebar showing headings is an indirect buffer. An important use is the capture system: when capturing text to be inserted in an Org buffer, the text is entered in an indirect buffer, so that it's already in place as the user is typing. The old system used a temporary buffer, then inserted the text on finalization. I don't remember the whole history, but I do remember that switching to indirect buffers solved several issues, and ended up being a pretty clean solution to the problem. I think they still have their uses.