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: Request for pointers and advice: displaying several buffers inside a single window Date: Sat, 11 Apr 2020 12:25:24 +0300 Message-ID: <83sghal6gr.fsf@gnu.org> References: <83a73swwd7.fsf@gnu.org> <87wo6nxsjz.fsf@localhost> <83d08fmgul.fsf@gnu.org> <87tv1rxmgc.fsf@localhost> <83a73jmcyo.fsf@gnu.org> <87pncfxk4m.fsf@localhost> <837dynm9yb.fsf@gnu.org> <87h7xrxhh5.fsf@localhost> <831roumq6n.fsf@gnu.org> <87blnyxvv5.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="50083"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dim1212k@gmail.com, adam@alphapapa.net, casouri@gmail.com, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Apr 11 11:26:20 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 1jNCP6-000CvK-Cl for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Apr 2020 11:26:20 +0200 Original-Received: from localhost ([::1]:50204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNCP5-0005mk-EJ for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Apr 2020 05:26:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39149) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNCOV-0005N6-8m for emacs-devel@gnu.org; Sat, 11 Apr 2020 05:25:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNCOU-0002r1-S9; Sat, 11 Apr 2020 05:25:42 -0400 Original-Received: from [176.228.60.248] (port=1135 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jNCOR-0004Vf-89; Sat, 11 Apr 2020 05:25:39 -0400 In-Reply-To: <87blnyxvv5.fsf@localhost> (message from Ihor Radchenko on Sat, 11 Apr 2020 16:35:58 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:246828 Archived-At: > From: Ihor Radchenko > Cc: casouri@gmail.com, dim1212k@gmail.com, adam@alphapapa.net, > emacs-devel@gnu.org > Date: Sat, 11 Apr 2020 16:35:58 +0800 > > > That's not the definition I'd use. The gap is a way of making text > > insertion less expensive. If you insert characters one by one, each > > insertion needs to move the characters after the insertion point, > > which is expensive. Having the gap allows us to perform this movement > > only after relatively large amounts of text were inserted; for smaller > > insertions we just make the gap smaller. > > Do you mean that the gap is specially allocated memory space associated > with buffer point where you can insert characters without a need to > shift the tail of the char array containing buffer string? Yes. Except that point doesn't need to be at that place, because we can insert at position that is not necessarily that of point; we move the gap to the insertion place when we need.