mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-21 06:55:35 +00:00
fixup! org-fold-core: Respect 'ignore-indirect optimization better
This commit is contained in:
parent
e9781f1c08
commit
fe1f4f2ccf
@ -461,7 +461,9 @@ If GLOBAL is non-nil, do not make the property unique in the BUFFER."
|
||||
;; Using buffer-name is safe, since the only place where
|
||||
;; buffer-local text property actually matters is an indirect
|
||||
;; buffer, where the name cannot be same anyway.
|
||||
(if global 'global
|
||||
(if (or global
|
||||
(memql 'ignore-indirect org-fold-core--optimise-for-huge-buffers))
|
||||
'global
|
||||
(sxhash (buffer-name (or buffer (current-buffer)))))))))
|
||||
|
||||
(defsubst org-fold-core-get-folding-spec-from-folding-prop (folding-prop)
|
||||
@ -552,8 +554,7 @@ unless RETURN-ONLY is non-nil."
|
||||
org-fold-core--property-symbol-cache))))
|
||||
(prog1
|
||||
local-prop
|
||||
(unless (or return-only
|
||||
(memql 'ignore-indirect org-fold-core--optimise-for-huge-buffers))
|
||||
(unless return-only
|
||||
(with-current-buffer buf
|
||||
;; Update folding properties carried over from other
|
||||
;; buffer (implying that current buffer is indirect
|
||||
|
Loading…
Reference in New Issue
Block a user