Move cursor forward when inserting link to current clock

This commit is contained in:
Daniel - 2021-03-20 15:45:15 +01:00
parent afb06fca59
commit 77920dd9a2
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 3 additions and 3 deletions

View File

@ -729,9 +729,9 @@ in an Org Mode buffer or when the clock is not active."
(user-error "No clocked-in task, aborting")) (user-error "No clocked-in task, aborting"))
(save-mark-and-excursion (save-mark-and-excursion
(org-with-point-at org-clock-marker (org-with-point-at org-clock-marker
(org-store-link nil t)) (org-store-link nil t)))
(pcase-let ((`(,location ,description) (cl-first org-stored-links))) (pcase-let ((`(,location ,description) (cl-first org-stored-links)))
(org-insert-link nil location description)))) (org-insert-link nil location description)))
;;; End ;;; End