소스 검색

Remove the dependence on time-stamp.el.

Carsten Dominik 16 년 전
부모
커밋
7c40034fd8
2개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 0
      lisp/ChangeLog
  2. 3 3
      lisp/org-clock.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2008-10-28  Carsten Dominik  <dominik@science.uva.nl>
+
+	* org-clock.el (org-clock-save): Insert time stamp without
+	dependence on time-stamp.el.
 
 2008-10-27  Carsten Dominik  <dominik@science.uva.nl>
 

+ 3 - 3
lisp/org-clock.el

@@ -1016,7 +1016,9 @@ the currently selected interval size."
   (with-current-buffer (find-file (expand-file-name org-clock-persist-file))
     (progn (delete-region (point-min) (point-max))
 	   ;;Store clock
-	   (insert (format ";; org-persist.el - %s at %s\n" system-name (time-stamp-string)))
+	   (insert (format ";; org-persist.el - %s at %s\n"
+			   system-name (format-time-string
+					(cdr (org-time-stamp-formats)))))
 	   (if (and org-clock-persist (marker-buffer org-clock-marker)
 		    (or (not org-clock-persist-query-save)
 			(y-or-n-p (concat "Save current clock ("
@@ -1042,8 +1044,6 @@ the currently selected interval size."
 
 (defvar org-clock-loaded nil)
 
-(require 'timestamp)
-
 (defun org-clock-load ()
   "Load various clock-related data from disk, optionally resuming
 a stored clock"