Просмотр исходного кода

Fix a compiler warning

* lisp/org-clock.el (org-clock-timestamps-change): Switch to the
  seasonable interface for subtracting times.
Marco Wahl 10 лет назад
Родитель
Сommit
1aef73caa4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lisp/org-clock.el

+ 1 - 1
lisp/org-clock.el

@@ -1688,7 +1688,7 @@ Optional argument N tells to change by that many units."
 	(let ((ts (if updatets1 ts2 ts1))
 	(let ((ts (if updatets1 ts2 ts1))
 	      (begts (if updatets1 begts1 begts2)))
 	      (begts (if updatets1 begts1 begts2)))
 	  (setq tdiff
 	  (setq tdiff
-		(subtract-time
+		(time-subtract
 		 (org-time-string-to-time org-last-changed-timestamp)
 		 (org-time-string-to-time org-last-changed-timestamp)
 		 (org-time-string-to-time ts)))
 		 (org-time-string-to-time ts)))
 	  (save-excursion
 	  (save-excursion