1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-01-29 20:35:02 +00:00

`org-timer-set-timer': fix bug about cancelling timer.

This commit is contained in:
Bastien Guerry 2010-05-24 15:11:14 +02:00
parent 7096609182
commit 3685d6b496
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-24 Bastien Guerry <bzg@altern.org>
* org-timer.el (org-timer-set-timer): Fix bug about cancelling
timers.
2010-05-21 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-emph-re): Document the match groups.

View File

@ -338,7 +338,8 @@ VALUE can be `on', `off', or `pause'."
(y-or-n-p "Replace current timer? "))
(not org-timer-current-timer))
(progn
(cancel-timer org-timer-current-timer)
(when org-timer-current-timer
(cancel-timer org-timer-current-timer))
(setq org-timer-current-timer
(run-with-timer
secs nil `(lambda ()