diff --git a/lisp/org.el b/lisp/org.el index cba8c302a..e485c9e90 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7184,8 +7184,8 @@ If USE-MARKERS is set, return the positions as markers." end (overlay-end o)) (and beg end (> end beg) (if use-markers - (cons (move-marker (make-marker) beg) - (move-marker (make-marker) end)) + (cons (copy-marker beg) + (copy-marker end t)) (cons beg end))))) (overlays-in (point-min) (point-max))))))))