bugfix - don't let chronometrist-refresh modify other buffers

This commit is contained in:
Kashish Sharma 2018-09-28 02:54:52 +05:30
parent ffe28109d8
commit 469002210d
1 changed files with 6 additions and 5 deletions

View File

@ -215,11 +215,12 @@ there is no corresponding project."
(defun chronometrist-refresh ()
(timeclock-reread-log) ;; required when we create a new activity
;; Trying to update partially doesn't update the activity indicator. Why?
(tabulated-list-print t nil)
(chronometrist-print-non-tabular)
(chronometrist-goto-last-project)
(chronometrist-maybe-start-timer))
(with-current-buffer chronometrist-buffer-name
;; Trying to update partially doesn't update the activity indicator. Why?
(tabulated-list-print t nil)
(chronometrist-print-non-tabular)
(chronometrist-goto-last-project)
(chronometrist-maybe-start-timer)))
(defun chronometrist-run-project-start-hook (project)
(run-hook-with-args 'chronometrist-project-start-hook project))