mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 08:49:14 +00:00
org-fold-initialize: Ensure back-compatibility when using overlays
* lisp/org-fold.el (org-fold-initialize): Use back-compatible property values for overlays folds.
This commit is contained in:
parent
15658b8665
commit
01d84f2e50
|
@ -217,7 +217,7 @@ smart Make point visible, and do insertion/deletion if it is
|
|||
;; overlays for isearch.
|
||||
(setq-local org-fold-core--isearch-special-specs '(org-link))
|
||||
(org-fold-core-initialize
|
||||
`((org-fold-outline
|
||||
`((,(if (eq org-fold-core-style 'text-properties) 'org-fold-outline 'outline)
|
||||
(:ellipsis . ,ellipsis)
|
||||
(:fragile . ,#'org-fold--reveal-outline-maybe)
|
||||
(:isearch-open . t)
|
||||
|
@ -230,7 +230,7 @@ smart Make point visible, and do insertion/deletion if it is
|
|||
(:rear-sticky . nil)
|
||||
(:font-lock-skip . t)
|
||||
(:alias . (headline heading outline inlinetask plain-list)))
|
||||
(org-fold-block
|
||||
(,(if (eq org-fold-core-style 'text-properties) 'org-fold-block 'org-hide-block)
|
||||
(:ellipsis . ,ellipsis)
|
||||
(:fragile . ,#'org-fold--reveal-drawer-or-block-maybe)
|
||||
(:isearch-open . t)
|
||||
|
@ -239,7 +239,7 @@ smart Make point visible, and do insertion/deletion if it is
|
|||
dynamic-block example-block export-block
|
||||
quote-block special-block src-block
|
||||
verse-block)))
|
||||
(org-fold-drawer
|
||||
(,(if (eq org-fold-core-style 'text-properties) 'org-fold-drawer 'org-hide-drawer)
|
||||
(:ellipsis . ,ellipsis)
|
||||
(:fragile . ,#'org-fold--reveal-drawer-or-block-maybe)
|
||||
(:isearch-open . t)
|
||||
|
|
Loading…
Reference in a new issue