From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Roland Everaert Newsgroups: gmane.emacs.bugs Subject: bug#35419: [O] bug#35419: [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter) Date: Fri, 26 Apr 2019 14:05:03 +0200 Message-ID: <877ebhnf9s.fsf__49724.122630299$1556289355$gmane$org@gmail.com> References: <87sgu6rhkt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="240039"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.2.0; emacs 26.1 Cc: npostavs@gmail.com To: 35419@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 26 16:35:50 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK1x6-0010IC-Hw for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2019 16:35:48 +0200 Original-Received: from localhost ([127.0.0.1]:48008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hK1x5-0003F8-Ej for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2019 10:35:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hK1uV-0000wU-8T for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 10:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hK1uU-0005VV-9J for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 10:33:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hK1uS-0005Ug-4y; Fri, 26 Apr 2019 10:33:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hK1uS-00060v-1R; Fri, 26 Apr 2019 10:33:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roland Everaert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Fri, 26 Apr 2019 14:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35419 X-GNU-PR-Package: emacs,org-mode X-Debbugs-Original-To: emacs-orgmode@gnu.org X-Debbugs-Original-Cc: Noam Postavsky , 35419@debbugs.gnu.org Original-Received: via spool by 35419-submit@debbugs.gnu.org id=B35419.155628913123023 (code B ref 35419); Fri, 26 Apr 2019 14:33:03 +0000 Original-Received: (at 35419) by debbugs.gnu.org; 26 Apr 2019 14:32:11 +0000 Original-Received: from localhost ([127.0.0.1]:33339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hK1ta-0005zH-MC for submit@debbugs.gnu.org; Fri, 26 Apr 2019 10:32:11 -0400 Original-Received: from mail-wm1-f51.google.com ([209.85.128.51]:35241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJzbQ-00025r-9F for 35419@debbugs.gnu.org; Fri, 26 Apr 2019 08:05:16 -0400 Original-Received: by mail-wm1-f51.google.com with SMTP id y197so4080574wmd.0 for <35419@debbugs.gnu.org>; Fri, 26 Apr 2019 05:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=dY4OQlwC8QSchy5HjJQrYpB/TEv5tR8N5NdlPu+pqTY=; b=S8znrufFzepBi+8dmpD0SBAoC98a+Bx2A0UUzkKLiHK2GXNH4Y1HQMpM55+t7BIT1J QJghMGzVyVu5buQg77A9tmDEJJYS9tfs3e5o68urwn2hj4QdO7UW4iEp2QBfz6h+DMGo H+5l0imT4h70peEsZ/exGfYQOGCkqvNraXhS0jNxHnRWW5UPMA47NZxxSRwDhFdpxpsO LJ0Sv5lhSaEzoRwAw+UYel4C6nGmUSKDCFQFq6Q8RrSl8HWUsAkdinlzPmpxUg4PX1oP tE8nw5Ct6yV8dTnYQ2keUcoH/v8DgdRvQDM304Y50wBfrPUaZ/52b8JROMzDtb8Sew01 6vyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=dY4OQlwC8QSchy5HjJQrYpB/TEv5tR8N5NdlPu+pqTY=; b=A5rALZoL2Gzp1YCSvuMGnFPTtB2j+tZssEVzokeO8dJehDgE7EU3DkHaWz15MLL79o 3mLBmY0XmnbQktMnDYSs/aG/EHLZiCK5hGELP9r8adauPBrxK8Of4rAewM6lZkfNA7/a elJmWi/NeESLWfE2x84a82JIL5uehGfatyZAN2AUToQ3qKYO8tVq6w+ML9EcejcuMCSR pWXDLX0QDeppb/xFJ+Jm2ZB1c/br0qnulCyF+ALLAcGaJuIku9nmfuXOJJM7GukfT27T P+7RE98DmPxRMiG2j/AagYhd0d6bnxZA++K0BG1XHD1hilSW4LtWAXmtmYMch6GW9eDm Bomg== X-Gm-Message-State: APjAAAUppSRzFkuooxou3rWdEAsSUKiQ84JT6bXoeAwaOV7BpT6AGsbt 4m6e82Pzmkc/wLVcROWQrsn5tpjD X-Google-Smtp-Source: APXvYqySBwlNghIz2GnEsmO3oKaNp9GYCztZujnIJCACdyBVRqpez/hYbY6t4R5Q8u3F6ZmjjLBU6A== X-Received: by 2002:a1c:55c3:: with SMTP id j186mr7019893wmb.127.1556280310374; Fri, 26 Apr 2019 05:05:10 -0700 (PDT) Original-Received: from tanko ([85.91.180.112]) by smtp.gmail.com with ESMTPSA id u189sm32303683wme.25.2019.04.26.05.05.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 05:05:09 -0700 (PDT) In-reply-to: X-Mailman-Approved-At: Fri, 26 Apr 2019 10:32:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158299 Archived-At: I see lens to be useful for the eev mode, too. Roland. Dmitrii Korobeinikov writes: >> Have you looked at Phil Lord's lentic package? I think it implements a >> lot of what you're talking about. > >> https://github.com/phillord/lentic > > This is nice to see! > Indeed, except for embedding, there is a large overlap with what I > described as buffer lenses. > > BTW, judging by this description: "changes percolation now happens > incrementally, so only those parts of the buffer are updated. As a result, > lentic now cope with long files with little noticable delay", the buffers > don't share any data and need to sync with the master [linked] buffer. > Is this the best solution? I have imagined that at the low level there is > an actual data structure that keeps the raw textual data and it could be > directly shared by multiple buffers. I mean, when a buffer is saved to a > file, the text doesn't need to be stripped of properties beforehand, righ= t? > > =D1=87=D1=82, 25 =D0=B0=D0=BF=D1=80. 2019 =D0=B3. =D0=B2 07:37, Noam Post= avsky : > >> Dmitrii Korobeinikov writes: >> >> > * Implementation >> > >> > I am not familiar with Emacs internals to say what's feasible of the >> > proposed structure. >> >> Have you looked at Phil Lord's lentic package? I think it implements a >> lot of what you're talking about. >> >> https://github.com/phillord/lentic >> --=20 Luke, use the FOSS Sent from Emacs