org-agenda.el: Speedup redisplay of an agenda item after it has been modified

* org-agenda.el (org-agenda-change-all-lines): Speedup
refresh of a single line of agenda by narrowing the agenda
buffer to just that line before calling `org-agenda-finalize'.
This commit is contained in:
Max Mikhanosha 2012-09-28 09:02:07 -04:00 committed by Bastien Guerry
parent d43f7eb475
commit 0be5a4e0ff

View file

@ -8033,9 +8033,11 @@ If FORCE-TAGS is non nil, the car of it returns the new tags."
undone-face done-face))))
(org-agenda-highlight-todo 'line)
(beginning-of-line 1))
(t (error "Line update did not work"))))
(beginning-of-line 0)))
(org-agenda-finalize)))
(t (error "Line update did not work")))
(save-restriction
(narrow-to-region (point-at-bol) (point-at-eol))
(org-agenda-finalize)))
(beginning-of-line 0)))))
(defun org-agenda-align-tags (&optional line)
"Align all tags in agenda items to `org-agenda-tags-column'."