diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-01-25 21:20:14 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-01-25 22:00:40 -0500 |
commit | ec834812f7db80fed63ee3d7393ac31a29eb01cf (patch) | |
tree | cf5a709bdd6eb58c5c7ceba64c1e6335de433ed2 | |
parent | 33e8a3b5d7baa5516f56d7f3d2fd098f214358f7 (diff) | |
download | org-mode-ec834812f7db80fed63ee3d7393ac31a29eb01cf.tar.gz |
org-clock: Correct file name in header
* lisp/org-clock.el (org-clock-save): Use the variable
org-clock-persist-file as the file name in the header rather than
hardcoding it to "org-persist.el".
From the introduction of org-clock-save in 6ca205398 (Add clock
persistence., 2008-10-23), the hardcoded file name did not match the
value of org-clock-persist-file.
-rw-r--r-- | lisp/org-clock.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 1d0728e..26d7a92 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -2920,7 +2920,8 @@ The details of what will be saved are regulated by the variable org-clock-has-been-used (not (file-exists-p org-clock-persist-file)))) (with-temp-file org-clock-persist-file - (insert (format ";; org-persist.el - %s at %s\n" + (insert (format ";; %s - %s at %s\n" + (file-name-nondirectory org-clock-persist-file) (system-name) (format-time-string (org-time-stamp-format t)))) ;; Store clock to be resumed. |