From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: 'Ihor Radchenko' Newsgroups: gmane.emacs.bugs Subject: bug#35419: Fwd: Re: [O] [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter) Date: Thu, 25 Apr 2019 15:11:50 +0800 Message-ID: <87lfzyo8y1.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87v9z2ojf8.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="157320"; mail-complaints-to="usenet@blaine.gmane.org" To: 35419@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 25 16:25:23 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 1hJfJR-000ekX-PC for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 16:25:22 +0200 Original-Received: from localhost ([127.0.0.1]:58471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJfJQ-0001FX-HR for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Apr 2019 10:25:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJfJC-0001DM-6z for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 10:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJfJB-0005Jq-7U for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2019 10:25:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hJfJ8-0005HM-Om; Thu, 25 Apr 2019 10:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hJfJ8-0004hI-Jt; Thu, 25 Apr 2019 10:25:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: 'Ihor Radchenko' Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, emacs-orgmode@gnu.org Resent-Date: Thu, 25 Apr 2019 14:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35419 X-GNU-PR-Package: emacs,org-mode Original-Received: via spool by 35419-submit@debbugs.gnu.org id=B35419.155620227318002 (code B ref 35419); Thu, 25 Apr 2019 14:25:02 +0000 Original-Received: (at 35419) by debbugs.gnu.org; 25 Apr 2019 14:24:33 +0000 Original-Received: from localhost ([127.0.0.1]:59072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJfIe-0004gI-Un for submit@debbugs.gnu.org; Thu, 25 Apr 2019 10:24:33 -0400 Original-Received: from mail-pg1-f170.google.com ([209.85.215.170]:45456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJbQP-0004jh-Ju for 35419@debbugs.gnu.org; Thu, 25 Apr 2019 06:16:18 -0400 Original-Received: by mail-pg1-f170.google.com with SMTP id y3so10952389pgk.12 for <35419@debbugs.gnu.org>; Thu, 25 Apr 2019 03:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=resent-to:resent-from:resent-date:resent-message-id:from:to:subject :references:date:message-id:mime-version; bh=dOeMOXC0gCi5/T9uPXxMZIXUQvRG7ETcrVQ1Tw+EErU=; b=IytniqdbIklV2carXvxbxzB+r8Kv0pkPAv9Y5FyeeelOuuGkBvTVYcJrh8vioFmM3V sD0HJKEkEYd7qo6oXVgQeCKh3OcIHFIX0ic+zPQE2Sv3Bug0PS0iorai5Z1uYn2ySbp7 mYJaexDGGCmhTMCvMQG60qY0n59u1a/gO5dhToFcgpqL7vBdGLbtz9k/5Bfd9jW8pYVA 7AuKWkZoTLIDakC2qZaMeUZJ4iSPSt4a2/UcA9wl4GRO7ExJ21wiyew0NpfQRTX7qicT tRWwcl9xyyI/wC2RjFWSXqT7e3ViFr/nyzycCgXalJCBICAE4m32THsMywiPS3rDFjJ0 hufw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:resent-to:resent-from:resent-date :resent-message-id:from:to:subject:references:date:message-id :mime-version; bh=dOeMOXC0gCi5/T9uPXxMZIXUQvRG7ETcrVQ1Tw+EErU=; b=EaJYWI1S3R7atHvnHT/hd/xYc8nqkRT4cbUuGutN162CfkmiE4bsDAPiveCGSH/8Mq ZK2+8SeNk26vLKplzHXe0Ni0VObu3CK1z8wYf11egqW5GzPa7wSfLYRsBSLZAgd3Jywv Drfte/A3J1YthvfNbX1wze4exfn2Uj9SYg/PiopZCWD0OkiLh/GAe2yK8XRC5jE1QUxF VgBJWvUwGP/DOTgTgG1EkV73IzZixF8HSFfFpr16hIWDoXKDbcLt4NPiP0hf9SZaXXpB EKQFqpWXVOpB/sgJCe6yPIn+QiTj9Dzhjqbi7KaP+qDK9ZVcqcqZRieB6/qC6pd6siwm vAxg== X-Gm-Message-State: APjAAAVmEKKfQhzAl2kElsMJ6/JeTHLbgdqrdB/fsg3SdQOHY6XbWCCt ++Vu8whxS9r0rkM6zd4fOMrtn1UzdVBOzg== X-Google-Smtp-Source: APXvYqzpg2FdGC/oCqDKAxvYoA1FpRNT40dc1VT0wZA2XKplEr2FfoXOjTNRjEJudiEd0ekwzUX0fw== X-Received: by 2002:aa7:8282:: with SMTP id s2mr38995593pfm.7.1556187371316; Thu, 25 Apr 2019 03:16:11 -0700 (PDT) Original-Received: from localhost ([45.56.183.45]) by smtp.gmail.com with ESMTPSA id a80sm44142448pfj.61.2019.04.25.03.16.09 for <35419@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 03:16:10 -0700 (PDT) Resent-To: 35419@debbugs.gnu.org Resent-From: Ihor Radchenko Resent-Date: Thu, 25 Apr 2019 18:15:13 +0800 Resent-Message-ID: <87mukel7bi.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> X-Mailman-Approved-At: Thu, 25 Apr 2019 10:24:32 -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:158249 Archived-At: --===-=-= Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 8bit From: Ihor Radchenko To: Dmitrii Korobeinikov , emacs-orgmode Subject: Re: [O] [Proposal] Buffer Lenses and the Case of Org-Mode (also, Jupyter) In-Reply-To: References: Date: Thu, 25 Apr 2019 11:25:31 +0800 Message-ID: <87v9z2ojf8.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Dear Dmitrii, I strongly support the proposal. Another use case for me is to speed up agenda creation. I usually do not like to split my org files into too many. However, it results in very large and slow org buffers later. If I can store some parts of the org files externally and only show them if some condition is met (say, for certain todo state of the parent entry), it would speed up my agenda and the buffer navigation quite significantly. Example: #+begin_src org * Projects ** 2019 *** TODO Project 1 :ORG: # the project contents is stored in an external file :PROPERTIES: :ORG-FILE: project1.org :END: # beginning of a lense, which is linked to project1.org **** Heading 1 **** Heading 2 And many headings below # ... # end of the lense *** HOLD Project 2 :ORG: :PROPERTIES: :ORG-FILE: project2.org :END: # beginning of another lense # nothing is included here because the project state is =3DHOLD=3D # end of the lense #+end_src Let me put some historical context to this proposal. There was a discussion of similar feature in emacs-dev last year. The idea was to implement nested buffers: https://lists.gnu.org/archive/html/emacs-devel/2018-07/msg00863.html=20 There are also several projects, which implement part of the functionality you described: =2D mmm-mode: https://github.com/purcell/mmm-mode =2D polymode: https://github.com/polymode/polymode Best, Ihor Dmitrii Korobeinikov writes: > I have written a proposal for buffer lenses which could prove useful in > Org-mode, especially for interacting with code. > If you are interested, please, see this link: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35419 =2D-=20 Ihor Radchenko, --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEERZAHPFbUe3JemmzmZHB2Kn2hHYsFAlzBKLIACgkQZHB2Kn2h HYtj9Af+KZCoKd0VpVeEIwMqBz6ZR85QivbX4XAmPVYNPPkYtCRhMU57DUqZ07ds jLo17wWoeS5Rxn3rLRZlWc9b1xYM3eLEl9LCiFKXoTALDVUKvyFSlVTqWiyRzEH6 wFSGj+PYwgcholtWD7GXL+S+VI4TG4UdfFhV+PlUtxtHwGk5A5UnwpeuUEngCE5K iJruXKyOioxrUdNbSuqehj56sWDivamacCfPNOPu4AIsjhA3++xivw17mD5Ss7Np dIr1EVCQfIlv3Hg+5LaOMRzwbJJEum7FnYPlI8ez7qyGm/qZATyEsyt4D7alqxq7 AiMfGILsiMtsy+fiycBkfuc8zFf81g== =rJlB -----END PGP SIGNATURE----- --=-=-=-- --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Ihor Radchenko, --==-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEERZAHPFbUe3JemmzmZHB2Kn2hHYsFAlzBXbcACgkQZHB2Kn2h HYsdLQgAt+ddSsWcyLYmPVpzUWBB6BEsxrIh1m3LWWzugYJhl5Mw3CHtJbSyAZR0 Xy5a8nXLq0snlgDU6Gfiq3YRmU4fbdotGhmuwOyEgtUWabD0fQJ87cKjOsu6wPin Fk2w3J4SUB5v6zK6bZczL5rYtFVWY+xhwZeKqJRBfv7azVWm2dnuwbuakPhUuTKn Fa8JKtoBfcI7kpuI5JhJb+GMORCskbUv8ryL1XjmdYMGLF2Exdq5cR0V+UVZ6DYN R2F7t1lZRfnIzMZrfuzvBSr4v9C+p34x3EdF1vXIS+VqqRsGG4koyhx5oKKjS7bE ryr+LKp5zAWs/WSwAtpt5t9B+zuFBg== =rpgv -----END PGP SIGNATURE----- --===-=-=--