0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-19 22:39:58 +00:00
org-mode/testing/lisp
Kyle Meyer 173b0cb6d6 org-timer.el: Merge API for the two timers
* lisp/org-timer.el (org-timer-stop): Support countdown timers in addition
to relative timers.

* lisp/org-timer.el (org-timer-cancel-timer): Remove function.

* lisp/org-timer.el (org-timer-pause-or-continue): Support countdown
timers in addition to relative timers.

* testing/lisp/test-org-timer.el: New file.

* doc/org.texi: Merge relative and countdown timer nodes.

Several previous issues are fixed with these changes.

- org-timer-set-timer and org-timer-cancel-timer did not reset
  org-timer-start-time after countdown completed.

- Because org-timer-start did not return org-timer-pause-time to nil,
  the modeline remained stuck at the paused time.

- When org-timer-start was called with a countdown timer, the modeline
  was updated for the new relative timer, but the countdown timer
  remained scheduled.

- When org-timer-pause-or-continue was called with a countdown timer
  running, the modeline was put in a paused state, but the countdown
  timer remained scheduled.

- When org-timer-stop was called with a countdown timer running, the
  timer was removed from the modeline, but the countdown timer remained
  scheduled.

- When org-timer-set-timer was called with a paused relative timer, the
  relative timer was not reset properly (org-timer-pause-time was still
  non-nil) and the modeline remained in the paused state of the relative
  timer, even though the countdown timer was scheduled with
  run-with-timer.

- Running org-timer-set-timer at the beginning of an empty buffer
  resulted in an args-out-of-range error (due to the org-get-at-eol
  call).
2014-12-09 10:13:29 +01:00
..
test-ob-awk.el awk code blocks handle tabular input 2014-06-07 11:16:55 -04:00
test-ob-C.el Babel C, C++, D support for non-homogeneous input tables 2014-06-08 19:20:16 -04:00
test-ob-emacs-lisp.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-exp.el Merge branch 'maint' 2014-09-20 21:55:09 +02:00
test-ob-fortran.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-header-arg-defaults.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-lilypond.el ob-lilypond: Code cleanup 2014-08-20 22:24:01 +02:00
test-ob-lob.el ob-ref: Properly resolve references in ":post" arguments 2014-03-19 21:34:56 +01:00
test-ob-maxima.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-octave.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-perl.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-python.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-R.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-ruby.el ob-ruby: clean up the session code some more and work around an I/O sync problem in comint 2014-09-21 17:59:49 +02:00
test-ob-shell.el ob-shell.el: export vars as arrays for 'sh' code blocks 2014-04-14 21:24:00 -06:00
test-ob-table.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob-tangle.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-ob.el ob: Support for exporting inline source code 2014-08-22 14:39:38 +02:00
test-org-clock.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-element.el Merge branch 'maint' 2014-11-18 19:46:44 +01:00
test-org-footnote.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-list.el org-list: Fix failing test 2014-08-15 21:51:42 +02:00
test-org-macro.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-src.el Update copyright years again. 2014-01-07 14:18:17 +01:00
test-org-table.el test-org-table: Fix spurious failure in older Emacsen 2014-12-08 20:41:41 +01:00
test-org-timer.el org-timer.el: Merge API for the two timers 2014-12-09 10:13:29 +01:00
test-org.el Fix Sparse trees properties matches 2014-12-06 21:20:55 +01:00
test-ox.el ox: Fix failing test 2014-10-12 23:18:40 +02:00
test-property-inheritance.el Update copyright years again. 2014-01-07 14:18:17 +01:00