org-clock: Fix org-agenda-prepare-buffers call
commit11e874910275c27d77a0293d0c720a92f50e2b0a
authorKyle Meyer <kyle@kyleam.com>
Mon, 10 Aug 2015 01:29:14 +0000 (9 21:29 -0400)
committerKyle Meyer <kyle@kyleam.com>
Mon, 10 Aug 2015 01:39:18 +0000 (9 21:39 -0400)
tree9522c11b4a78d097165ed731d335a5cd32b0d919
parent04aea5ea6fffb6442fa22677176ebd43c37e10a1
org-clock: Fix org-agenda-prepare-buffers call

* lisp/org-clock.el (org-dblock-write:clocktable): Pass buffer to
  org-agenda-prepare-buffers when buffer is not visiting file.

This surfaced as an error when 05efa7a ("Backport commit 3a5f751 from
Emacs master branch", 2015-08-08) replaced a
'(while (setq VAR (pop LIST)) BODY)' with '(dolist (VAR LIST) BODY)',
resulting in the body being executed when '(nil)' was passed to
org-agenda-prepare-buffers.
lisp/org-clock.el