diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index dee8f12a3..e1757bdfe 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -7426,10 +7426,12 @@ the same tree node, and the headline of the tree node in the Org-mode file." (org-show-context 'agenda)) (save-excursion (and (outline-next-heading) - (org-flag-heading nil))) ; show the next heading + (org-flag-heading nil))) ; show the next heading (goto-char pos) (call-interactively 'org-set-effort) - (end-of-line 1))))) + (end-of-line 1) + (setq newhead (org-get-heading))) + (org-agenda-change-all-lines newhead hdmarker)))) (defun org-agenda-toggle-archive-tag () "Toggle the archive tag for the current entry."