[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New folding backend & outline (was: [PATCH 22/35] ORG-NEWS: Add list
From: |
Ihor Radchenko |
Subject: |
Re: New folding backend & outline (was: [PATCH 22/35] ORG-NEWS: Add list of changes) |
Date: |
Sun, 30 Jan 2022 10:15:27 +0800 |
Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:
> From the perspective of a heavy outline-minor-mode user, who dreams of
> Org "backporting" its great outlining features to outline.el, that's a
> bit disheartening, since IIUC this will cause Org and outline.el to
> drift further apart?
We already had some subtle (yet important) deviations between Org mode
and outline.el, which made using outline-* functions in Org buffers
unreliable at times. This patch just makes the already existing trend
more prominent.
> I realize this question might sound outlandish, but I'll ask it anyway:
> would it be feasible (and relevant) to add this new folding backend to
> outline.el, so that (1) /both/ Org and outline(-minor)-mode benefit from
> it, (2) outline.el functions keep working in Org?
>
> (Assuming outline.el could be turned into a :core GNU ELPA package, and
> Org would tolerate adding this dependency)
Sure. I kept this idea in mind when developing the branch.
org-fold-core.el is written in such a way that it can be used by an
arbitrary major or minor mode:
;; This file contains library to control temporary invisibility
;; (folding and unfolding) of text in buffers.
;; The file implements the following functionality:
;;
;; - Folding/unfolding regions of text
;; - Searching and examining boundaries of folded text
;; - Interactive searching in folded text (via isearch)
;; - Handling edits in folded text
;; - Killing/yanking (copying/pasting) of the folded text
;; - Fontification of the folded text
If desired, outline.el can be rather trivially converted to use
org-fold-core.
> I hope this doesn't come across as negative criticism; the amount of
> work that went into this branch is astounding, and as an Org user I'm
> indebted to the developers for the energy that goes into maintaining it.
>
> Lest I let this message end on that sour note: great work, and thanks
> for the energy you put into Org!
Thanks!
Best,
Ihor
- [PATCH 13/35] Fix subtle differences between overlays and invisible text properties, (continued)
- [PATCH 13/35] Fix subtle differences between overlays and invisible text properties, Ihor Radchenko, 2022/01/29
- [PATCH 15/35] Alias new org-fold functions to their old shorter names, Ihor Radchenko, 2022/01/29
- [PATCH 16/35] Obsolete old function names that are now in org-fold, Ihor Radchenko, 2022/01/29
- [PATCH 17/35] org-compat: Work around some third-party packages using outline-* functions, Ihor Radchenko, 2022/01/29
- [PATCH 18/35] Move `org-buffer-list' to org-macs.el, Ihor Radchenko, 2022/01/29
- [PATCH 19/35] Restore old visibility behaviour of org-refile, Ihor Radchenko, 2022/01/29
- [PATCH 20/35] Add org-fold-related tests, Ihor Radchenko, 2022/01/29
- [PATCH 21/35] org-manual: Update to new org-fold function names, Ihor Radchenko, 2022/01/29
- [PATCH 22/35] ORG-NEWS: Add list of changes, Ihor Radchenko, 2022/01/29
- [PATCH 23/35] Backport contributed commits, Ihor Radchenko, 2022/01/29
- [PATCH 24/35] Fix typo: delete-duplicates → delete-dups, Ihor Radchenko, 2022/01/29
- [PATCH 25/35] Fix bug in org-get-heading, Ihor Radchenko, 2022/01/29
- [PATCH 26/35] Rename remaining org-force-cycle-archived → org-cycle-force-archived, Ihor Radchenko, 2022/01/29
- [PATCH 28/35] org-string-width: Handle undefined behaviour in older Emacs, Ihor Radchenko, 2022/01/29
- [PATCH 29/35] org-string-width: Work around `window-pixel-width' bug in old Emacs, Ihor Radchenko, 2022/01/29
- [PATCH 27/35] Fix org-fold--hide-drawers--overlays, Ihor Radchenko, 2022/01/29
- [PATCH 30/35] org-fold-show-set-visibility: Fix edge case when folded region is at BOB, Ihor Radchenko, 2022/01/29
- [PATCH 31/35] org-fold-core: Fix fontification inside folded regions, Ihor Radchenko, 2022/01/29
- [PATCH 32/35] test-org/string-width: Add tests for strings with prefix properties, Ihor Radchenko, 2022/01/29