mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-30 04:27:48 +00:00
Fix not updating org-clock-marker after refiling from indirect buffer
* lisp/org.el (org-check-and-save-marker): Save markers in base buffer of indirect buffer in addition to markers in current buffer. Fixes bug reported in https://orgmode.org/list/CABa5=g4bvYQoTbBn96tFi9K827u_A+MweqYWWpib_tyFLBdG3g@mail.gmail.com/T/#t
This commit is contained in:
parent
d8b9bd05ba
commit
97de19f659
|
@ -7811,7 +7811,8 @@ called immediately, to move the markers with the entries."
|
||||||
"Check if MARKER is between BEG and END.
|
"Check if MARKER is between BEG and END.
|
||||||
If yes, remember the marker and the distance to BEG."
|
If yes, remember the marker and the distance to BEG."
|
||||||
(when (and (marker-buffer marker)
|
(when (and (marker-buffer marker)
|
||||||
(equal (marker-buffer marker) (current-buffer))
|
(or (equal (marker-buffer marker) (current-buffer))
|
||||||
|
(equal (marker-buffer marker) (buffer-base-buffer (current-buffer))))
|
||||||
(>= marker beg) (< marker end))
|
(>= marker beg) (< marker end))
|
||||||
(push (cons marker (- marker beg)) org-markers-to-move)))
|
(push (cons marker (- marker beg)) org-markers-to-move)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue