Fix `org-outline-overlay-data' marker insertion-type
* org.el (org-outline-overlay-data): Set the insertion-type of end bound marker of the function to t (means marker advances when you insert text at it) This is to conserve outline visibility property when changes are made at the end bound of the data. For example: try `org-babel-execute-subtree' on a folded outline: The new result will be shown after the folded part of the outline whereas the outline body should not be visible. TINYCHANGE
This commit is contained in:
parent
5f04b3815f
commit
5a2d47e1ba
|
@ -7184,8 +7184,8 @@ If USE-MARKERS is set, return the positions as markers."
|
||||||
end (overlay-end o))
|
end (overlay-end o))
|
||||||
(and beg end (> end beg)
|
(and beg end (> end beg)
|
||||||
(if use-markers
|
(if use-markers
|
||||||
(cons (move-marker (make-marker) beg)
|
(cons (copy-marker beg)
|
||||||
(move-marker (make-marker) end))
|
(copy-marker end t))
|
||||||
(cons beg end)))))
|
(cons beg end)))))
|
||||||
(overlays-in (point-min) (point-max))))))))
|
(overlays-in (point-min) (point-max))))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue