Browse Source

org-timer: User can always set timer by prefix arg

* lisp/org-timer.el (org-timer-set-timer): The user can always set the
  timer with a numeric prefix argument.

Before, when the effort property has been set, the user lost control to
explicitly set the timer to a different time.
Marco Wahl 8 years ago
parent
commit
2c4e13c56a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/org-timer.el

+ 2 - 2
lisp/org-timer.el

@@ -433,10 +433,10 @@ using three `C-u' prefix arguments."
 	       (number-to-string org-timer-default-timer)
 	     org-timer-default-timer))
 	 (effort-minutes (ignore-errors (org-get-at-eol 'effort-minutes 1)))
-	 (minutes (or (and (not (equal opt '(64)))
+	 (minutes (or (and (numberp opt) (number-to-string opt))
+		      (and (not (equal opt '(64)))
 			   effort-minutes
 			   (number-to-string effort-minutes))
-		      (and (numberp opt) (number-to-string opt))
 		      (and (consp opt) default-timer)
 		      (and (stringp opt) opt)
 		      (read-from-minibuffer