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.
This commit is contained in:
parent
33e8a3b5d7
commit
ec834812f7
|
@ -2920,7 +2920,8 @@ The details of what will be saved are regulated by the variable
|
||||||
org-clock-has-been-used
|
org-clock-has-been-used
|
||||||
(not (file-exists-p org-clock-persist-file))))
|
(not (file-exists-p org-clock-persist-file))))
|
||||||
(with-temp-file 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)
|
(system-name)
|
||||||
(format-time-string (org-time-stamp-format t))))
|
(format-time-string (org-time-stamp-format t))))
|
||||||
;; Store clock to be resumed.
|
;; Store clock to be resumed.
|
||||||
|
|
Loading…
Reference in New Issue