mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-22 07:09:47 +00:00
Make sure the clock history only points to base buffers
This commit is contained in:
parent
e6182995d9
commit
1fc1dc389b
@ -314,7 +314,10 @@ of a different task.")
|
||||
(defun org-clock-history-push (&optional pos buffer)
|
||||
"Push a marker to the clock history."
|
||||
(setq org-clock-history-length (max 1 (min 35 org-clock-history-length)))
|
||||
(let ((m (move-marker (make-marker) (or pos (point)) buffer)) n l)
|
||||
(let ((m (move-marker (make-marker)
|
||||
(or pos (point)) (org-base-buffer
|
||||
(or buffer (current-buffer)))))
|
||||
n l)
|
||||
(while (setq n (member m org-clock-history))
|
||||
(move-marker (car n) nil))
|
||||
(setq org-clock-history
|
||||
|
Loading…
Reference in New Issue
Block a user