Nicolas Goaziou
ddcd5d480f
org-list: rewrite of insert-item code.
...
* org-list.el (org-list-separating-blank-lines-number): use new
accessors.
(org-list-insert-item-generic): use list structures to insert a new
item.
(org-list-exchange-items): refactor and comment code. Now return new
struct instead of modifying it, as list sorting would sometimes eat
first item.
(org-move-item-down,org-move-item-up): reflect changes to
`org-list-exchange-items'.
(org-insert-item): as `org-in-item-p' also computes item beginning
when applicable, reuse the result.
* org-timer.el (org-timer-item): as `org-in-item-p' also computes item
beginning when applicable, reuse the result.
2011-02-18 12:45:08 +01:00
Bastien Guerry
846a2d13d3
Code cleanup: use (org-mode-p) when possible.
2011-02-15 05:18:22 +01:00
Carsten Dominik
3ceee2fefe
Timer: Run a hook when relative timer is continued
...
* lisp/org-timer.el (org-timer-continue-hook): Define the variable
(org-timer-pause-or-continue): Run hook after relative timer is
continued
There was a hook run when the relative timer is paused (and for most
other actions), but none for continuing afterwards.
One use for this would be to pause/continue playback in a media-player
app with the same keystroke used to pause/continue the timer.
TINYCHANGE
Patch by Christian Moe
2010-12-20 13:18:27 +01:00
Carsten Dominik
7666ba421f
Version number back to 7.4
2010-12-10 18:49:40 +01:00
Carsten Dominik
76a25715c9
Bump version number to 7.5
2010-12-10 18:43:10 +01:00
Bastien Guerry
6630edbd0f
Set version number to 7.3
2010-11-07 14:52:14 +01:00
Carsten Dominik
82af72eef7
Push version number to 7.02trans
2010-10-29 09:11:46 +02:00
Bastien Guerry
840570c2a3
Update Changes.org and org.texi to reflect changes in org-timer.el
...
Update org.texi with a new section: Countdown timer.
Update ORGWEBPAGE/Changes.org with a section about timer/clock.
Also fix a small typo in a org-timer.el.
2010-10-27 18:20:27 +02:00
Bastien Guerry
413caacfd7
Require org-clock.el where needed.
...
Also declare org-notify instead of org-show-notification.
This was reported by Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl>
See http://article.gmane.org/gmane.emacs.orgmode/29900
2010-09-07 02:28:06 +02:00
Bastien Guerry
7c73bf1f74
Remove bzg-test function.
2010-09-06 22:20:46 +02:00
Bastien Guerry
4f95c5469c
`org-timer-set-timer': allow to run even before the first heading.
...
In this case, the notification will tell the user in what file the timer
was set.
2010-09-03 15:35:15 +02:00
Bastien Guerry
8f173ce843
Make `org-timer-cancel-timer' turn off the modeline countdown.
...
Also bind `org-timer-cancel-timer' to `C-c C-x :' in org-mode.
We may want to bind this command in org-agenda-mode as well but
I don't have any good idea of a keybinding now.
2010-09-03 15:26:47 +02:00
Bastien Guerry
58a49d1739
`org-timer-set-timer': display a countdown in the modeline for.
...
This was requested long time ago by Frederic Couchet and more recently
by Łukasz Stelmach.
2010-09-02 23:40:44 +02:00
Bastien Guerry
f1d19d5e75
org-timer: Fix the docstring.
2010-09-02 22:32:32 +02:00
Nicolas Goaziou
eebd8eb022
Fixed bug in `org-in-item-p' with point at an heading just beyond list.
...
* org-list.el (org-in-item-p): Handle case when point is at an
heading.
* org-list.el (org-list-make-subtree): Add protection when used
outside of list
* org-list.el (org-insert-item): Removed useless hack now
`org-in-item-p' is fixed.
* org-timer.el (org-timer-item): Removed useless hack now
`org-in-item-p' is fixed.
2010-09-01 19:05:49 +02:00
Nicolas Goaziou
a42f8066d4
Can't insert new item after `org-list-bottom-point' anymore.
2010-09-01 19:05:48 +02:00
Nicolas Goaziou
abb490c572
Internal functions stay with org-list- prefix.
2010-09-01 19:05:47 +02:00
Nicolas Goaziou
905ad49e9a
Fixed some corner-case when inserting item.
2010-09-01 19:05:47 +02:00
Nicolas Goaziou
3dfc889cce
Refactoring.
2010-09-01 19:05:47 +02:00
Nicolas Goaziou
53c4b53e8f
Less latency in org-timer-item.
...
* org-timer.el (org-timer-item): Refactoring. Compute timer string
before inserting it in the buffer
* org-timer.el (org-timer): added an optional argument to return timer
string instead of inserting it.
2010-09-01 19:05:47 +02:00
Nicolas Goaziou
8eece59f9e
Refactoring and increased protection on item insertion.
...
* org-list.el (org-insert-item-internal): New function to handle
positionning and contents of an item being inserted at a specific
pos. It is not possible anymore to split a term in a description
list or a checkbox when inserting a new item.
* org-list.el (org-insert-item): Refactored by using the new
`org-insert-item-internal' function.
* org-timer.el (org-timer-item): Refactored by using the new
`org-insert-item-internal' function.
2010-09-01 19:05:46 +02:00
Nicolas Goaziou
2dd3b8a2a8
Better support for timer lists. Trying to insert a new item with point
...
in a special block now move before block.
* org-list.el (org-insert-item): Move before any special block in a
list prior to add a new item.
* org-timer.el (org-timer-item): When in a timer list, insert a new
timer item like `org-insert-item'. If in another list, send an
error. Otherwise, start a new timer list.
2010-09-01 19:05:46 +02:00
Nicolas Goaziou
2b8aa4c406
Position items with relative timer at the right place.
...
* org-timer.el (org-timer-item): Insert description list item at the
right column.
* org-list.el (org-insert-item): Insert the right number of blank
lines before a relative timer.
2010-09-01 19:05:46 +02:00
Carsten Dominik
6268cceec3
Mention release 7.01 on the website, push release number to 7.01trans
2010-07-19 08:33:24 +02:00
Phil Rooke
c0947c8d67
Docstring fixes part 6
2010-07-18 17:04:15 +02:00
David Maus
eecb03c9c6
Use correct variable when calculating `org-timer-start-time'
...
* org-timer.el (org-timer-start): Use correct variable when
calculating `org-timer-start-time'.
2010-07-18 07:54:48 +02:00
Bastien Guerry
a85cb37d47
* org-timer.el (org-timer-set-timer): Fix typo in the docstring.
2010-06-08 09:35:07 +02:00
Carsten Dominik
b27c1c5113
Fix whitespace problems
2010-06-07 08:35:10 +02:00
Bastien Guerry
59badeeaaf
`org-timer-set-timer': new prefix argument.
...
Called with a numeric prefix argument, `org-timer-set-timer' uses
this numeric value as the duration of the timer.
Called with a `C-u' prefix argument, use `org-timer-default-timer'
without prompting the user for a duration.
With two `C-u' prefix arguments, use `org-timer-default-timer'
without prompting the user for a duration and automatically
replace any running timer."
2010-05-28 12:38:29 +02:00
Bastien Guerry
3685d6b496
`org-timer-set-timer': fix bug about cancelling timer.
2010-05-24 15:11:14 +02:00
Bastien Guerry
baaf431f85
Use the type "number" for the new variable org-timer-default-timer
2010-05-20 16:24:44 +02:00
Bastien Guerry
3bf121f8b1
Define and use a new variable: org-timer-default-timer
...
This variable defaults to nil. When non-nil, this is the default
value when the user is prompted for a timer.
This patch also improves org-timer-set-timer so that the user can
replace the current timer by a new one.
2010-05-20 16:16:31 +02:00
Carsten Dominik
c86a3fc4aa
Push version number to 6.36trans
2010-05-09 06:24:20 +02:00
Carsten Dominik
88100d1580
Release 6.36a
2010-05-09 06:13:54 +02:00
Carsten Dominik
43bf1bbbd7
Push version number to 6.35trans
2010-04-15 12:24:55 +02:00
Carsten Dominik
6f3026edf1
Release 6.35g
2010-04-08 20:15:15 +02:00
Carsten Dominik
a589c7a22e
Release 6.35f
2010-04-08 10:36:32 +02:00
Carsten Dominik
50e5924d8a
Release 6.35e
2010-04-07 16:33:52 +02:00
Carsten Dominik
f722763f8a
Release 6.35d
2010-04-07 16:26:42 +02:00
Carsten Dominik
d65ed03be6
Update copyright notices and fix wrong version tags
2010-04-07 16:26:10 +02:00
Carsten Dominik
cafbe1d038
Release 6.35c
2010-04-07 08:58:25 +02:00
Carsten Dominik
b213c0f31e
Release 6.35b
2010-04-07 07:54:14 +02:00
Carsten Dominik
08d0d2fa20
Release 6.35
2010-04-06 09:16:36 +02:00
Bastien Guerry
1759ccd4db
Update org-timer.el so that we only allow one timer.
...
Also get rid of a bug: as timers where not properly canceled,
`org-timer-show-remaining-time' was not giving the proper result.
Thanks to Frédéric Couchet for this catch.
2010-02-25 16:03:38 +01:00
Carsten Dominik
91f5139273
One more hook in org-timer.el
2010-02-20 20:31:44 +01:00
Carsten Dominik
65561fc344
Cleanup
2010-02-20 18:04:24 +01:00
Carsten Dominik
73f85e8b65
Add some hooks to org-timer.el
...
Patch by Austin Frank.
2010-02-20 16:14:32 +01:00
Carsten Dominik
06e74afce3
Version number to 6.34trans
2010-01-20 10:13:21 +01:00
Carsten Dominik
a1709ba641
Release 6.34c
2010-01-18 00:10:11 +01:00
Carsten Dominik
2f2f9441d4
Release 6.34b
2010-01-14 23:06:55 +01:00
Carsten Dominik
c077142241
Release 6.34a
2010-01-12 08:53:44 +01:00
Carsten Dominik
288c724335
Release 6.34
2010-01-10 10:57:53 +01:00
Carsten Dominik
275b6627a6
Release 3.34
2010-01-10 10:54:52 +01:00
Carsten Dominik
62a7301a5e
Push release number to 6.33trans
2009-11-20 20:20:31 +01:00
Carsten Dominik
24061fddd1
Release 6.33f
2009-11-20 15:15:05 +01:00
Carsten Dominik
37e9b1c51f
Release 6.33e
2009-11-20 13:58:31 +01:00
Carsten Dominik
24a49967f1
Release 6.33d
2009-11-20 12:34:50 +01:00
Carsten Dominik
c7371cc7fe
Push version number to 6.33trans
2009-11-15 09:46:43 +01:00
Carsten Dominik
6bc6379dfe
Release 6.33c
2009-11-15 08:00:52 +01:00
Carsten Dominik
6c977c41c3
Release 6.33b
2009-11-14 16:25:31 +01:00
Carsten Dominik
b8a6721a68
Release 6.33a
2009-11-13 23:22:18 +01:00
Carsten Dominik
5ca6635993
Push version number to 6.33a
2009-11-13 22:54:22 +01:00
Carsten Dominik
82ee0cc583
Release 6.33
2009-11-13 07:10:51 +01:00
Bernt Hansen
0042080e4c
Fix spelling and grammar
2009-11-12 07:39:29 -05:00
Carsten Dominik
1962a53c80
Set variables org-timer-timer[123] correctly.
...
Patch by Stephan Schmitt
2009-11-05 16:11:57 +01:00
Carsten Dominik
58562167b4
Version number to 6.32trans
2009-10-27 18:23:19 +01:00
Carsten Dominik
e0949896f7
Release 6.32b
2009-10-27 18:22:28 +01:00
Carsten Dominik
037b685d50
Push version number to 6.32trans
2009-10-27 09:25:30 +01:00
Carsten Dominik
fcd2ef541f
Release 6.32
2009-10-26 08:57:21 +01:00
Carsten Dominik
6b0a251eea
Push version number to 6.31trans
2009-10-01 11:57:17 +02:00
Carsten Dominik
1b37d5e07c
Release 6.31a
2009-10-01 09:13:58 +02:00
Carsten Dominik
c11e0b44ae
Release 6.31
2009-09-30 16:03:17 +02:00
Carsten Dominik
291a6db848
Release number back to 6.30trans
2009-09-04 10:39:01 +02:00
Carsten Dominik
12ab55ca43
Release 6.30d
2009-09-03 13:53:46 +02:00
Carsten Dominik
adfa87282d
Push version number to 6.30trans
2009-09-03 08:10:36 +02:00
Carsten Dominik
63e1714288
Release 6.30c
2009-09-02 14:40:56 +02:00
Carsten Dominik
1152565013
Avoid using time-to-seconds
2009-09-02 14:37:47 +02:00
Carsten Dominik
fc332703bf
Release 6.30b
2009-09-02 11:33:10 +02:00
Carsten Dominik
1d04b205e6
Release 6.30a
2009-09-02 09:00:23 +02:00
Carsten Dominik
db70cdb13b
Release 6.30
2009-09-01 06:09:23 +02:00
Bastien Guerry
754694dd4b
Use org-notify to show a notification and possibly play a sound.
2009-08-24 02:44:29 +08:00
Carsten Dominik
bfdd3d3fd3
Push version number to 6.29trans
2009-08-06 12:07:20 +02:00
Carsten Dominik
0864163024
Release 6.29c
2009-08-06 06:26:23 +02:00
Carsten Dominik
d6b37ddbea
Release 6.29b
2009-08-05 12:34:30 +02:00
Carsten Dominik
1c25048e48
Release 6.29a
2009-08-04 23:54:22 +02:00
Carsten Dominik
d67a9be8a2
Release 6.29
2009-08-04 23:06:39 +02:00
Carsten Dominik
73b6d73aef
Minor fix
2009-08-04 13:10:36 +02:00
Carsten Dominik
2eecb4c43c
Fix white-space errors
2009-08-03 17:30:30 +02:00
Carsten Dominik
5dbc23baed
Keep compiler happy
2009-08-03 13:28:24 +02:00
Bastien Guerry
e06752ad53
Declare org-show-notification as a function of org-clock.el.
2009-07-30 01:37:55 +08:00
Bastien Guerry
4e27954130
Add autoload cookie to org-timer-set-timer.
2009-07-27 05:27:41 +08:00
Bastien Guerry
d8a0f2949d
Use the correct keybinding for org-timer-set-timer.
...
Also use the new variable `org-timer-last-timer' to fix a bug
in `org-timer-show-remaining-time' about not pick up the right
timer.
2009-07-27 04:12:31 +08:00
Bastien Guerry
7cdff7b1eb
New timer functionality to set a timer from a headline.
...
This commit defines three new functions in org-timer.el:
- org-timer-set-timer, bound to `C-c C-x ;' in Org buffers
and to `;' in Org agenda buffers. This function sets a
timer for the headline the cursor is currently it. Up to
three timers can be set.
- org-timer-show-remaining-time: this shows the remaining
time for the last set timer.
- org-timer-reset-timers: this reset all timers.
This functionality was requested by Samuel Wales and emulates
that of tea-time.el -- see the emacswiki doc about tea-time.el:
http://www.emacswiki.org/emacs/tea-time
2009-07-27 02:54:17 +08:00
Carsten Dominik
f648323253
Push version number to 6.28trans
2009-06-26 17:26:50 +02:00
Carsten Dominik
cd4e52a5ef
Release 6.28d
2009-06-26 17:23:27 +02:00
Carsten Dominik
00ddc4dba7
Release 6.28c
2009-06-26 09:27:50 +02:00
Carsten Dominik
e7ffcc1d4d
Release 6.28b
2009-06-25 09:01:20 +02:00
Carsten Dominik
7906427aa6
Release 6.28
2009-06-25 08:59:59 +02:00
Carsten Dominik
ae7b8f6b12
Push version number to 6.27trans
2009-05-26 15:41:44 +02:00
Carsten Dominik
0421dead4b
Release 6.27a
2009-05-25 16:04:45 +02:00
Carsten Dominik
b681c7b26e
Release 6.27
2009-05-23 08:22:04 +02:00
Carsten Dominik
69e6d249aa
Push version number to 6.26trans
2009-04-22 09:08:13 +02:00
Carsten Dominik
73854f435d
Release 6.26d
2009-04-22 06:42:17 +02:00
Carsten Dominik
595e9603ac
Release 6.26c
2009-04-21 20:26:27 +02:00
Carsten Dominik
e0cd12716a
Release 6.26b
2009-04-21 10:21:36 +02:00
Carsten Dominik
b8a5f1a7fc
Release 6.26a
2009-04-19 22:31:36 +02:00
Carsten Dominik
ba66d2c8ae
Release 6.26
2009-04-19 08:38:49 +02:00
Carsten Dominik
ef2ee3df5d
Version number pushed to 6.25trans
2009-04-07 18:43:42 +02:00
Carsten Dominik
eef47f820f
Release 6.25d
2009-04-05 15:29:45 +02:00
Carsten Dominik
e2eebc83a1
Release 6.25c
2009-04-05 08:45:39 +02:00
Carsten Dominik
5624263d97
Release 6.25b
2009-04-03 19:18:41 +02:00
Carsten Dominik
1426f8bcfd
Release 6.25a
2009-04-02 18:24:52 +02:00
Carsten Dominik
aeb5cb98d6
Release 6.25
2009-04-01 16:00:39 +02:00
Carsten Dominik
722fc9a490
Version number to 6.24trans
2009-03-14 08:03:10 +01:00
Carsten Dominik
c8b6a9cc60
Release 6.24c
2009-03-12 12:51:17 +01:00
Carsten Dominik
680d8cb440
Release 6.24b
2009-03-10 17:50:17 +01:00
Carsten Dominik
7e8a387184
Release 6.24a
2009-03-09 05:37:09 +01:00
Carsten Dominik
20828f3176
Release 6.24
2009-03-05 21:11:18 +01:00
Carsten Dominik
c91bca9d1c
Push version number to 6.23trans
2009-02-26 21:32:04 +01:00
Carsten Dominik
6c8beec225
Release 6.23b
2009-02-22 18:37:24 +01:00
Carsten Dominik
482216f300
Release 6.23a
2009-02-21 15:18:39 +01:00
Carsten Dominik
82f2fca21e
Release 6.23
2009-02-20 11:16:03 +01:00
Carsten Dominik
492a5b5ea9
Version number: Push to 6.22trans
2009-02-13 07:45:42 +01:00
Carsten Dominik
bc5b0056e7
Release 6.22b
2009-02-10 20:21:33 +01:00
Carsten Dominik
e592c77846
Release 6.22a
2009-02-10 10:11:23 +01:00
Carsten Dominik
8d213584ff
Release 6.22
2009-02-10 08:23:35 +01:00
Carsten Dominik
93ec228f36
Push version number to 6.21trans
2009-02-03 00:06:22 +01:00
Carsten Dominik
0b424cb238
Release 6.21b
2009-02-02 21:42:20 +01:00
Carsten Dominik
2fa17ebf74
Release 6.21a
2009-02-02 14:23:54 +01:00
Carsten Dominik
193fab0788
Release 6.21
2009-02-02 12:18:44 +01:00
Carsten Dominik
c1296074f2
Release 6.20i
2009-02-01 00:16:43 +01:00
Carsten Dominik
924110aecc
Release 6.20h
2009-01-30 18:31:37 +01:00
Carsten Dominik
f99b00f61c
Release 6.20g
2009-01-30 09:20:41 +01:00
Carsten Dominik
bb3570eae9
Release 6.20f
2009-01-29 15:29:07 +01:00
Carsten Dominik
11fa49dd21
Release 6.20e
2009-01-29 14:13:30 +01:00
Carsten Dominik
317f08c69b
Release 6.20d
2009-01-29 10:38:35 +01:00
Carsten Dominik
435ac059bf
Release 6.20c
2009-01-28 14:35:50 +01:00
Carsten Dominik
bc19e4df69
Release 6.20b
2009-01-28 14:04:56 +01:00
Carsten Dominik
16f7c4f384
Release 6.20a
2009-01-28 12:28:54 +01:00
Carsten Dominik
b81f597de0
Release 6.20
2009-01-28 09:30:12 +01:00
Carsten Dominik
78b4ca8cfc
Release 6.19e
2009-01-27 11:44:49 +01:00
Carsten Dominik
2860252c9e
Minor fixes, and release 6.19d
2009-01-27 09:11:34 +01:00
Carsten Dominik
c848dae4be
Release 6.19c
2009-01-27 09:02:13 +01:00
Carsten Dominik
ea446a6ff7
Release 6.19b
2009-01-26 08:22:14 +01:00
Carsten Dominik
5e965557b3
Release 6.19a
2009-01-25 16:08:16 +01:00
Carsten Dominik
41e51dfef4
Release 6.19
2009-01-25 13:41:09 +01:00
Carsten Dominik
19351e35c2
Version number: pushed to 6.18trans
2009-01-21 17:59:42 +01:00
Carsten Dominik
5f814319eb
Release 6.18c
2009-01-21 10:34:03 +01:00
Carsten Dominik
d164a22da6
Release 6.18a
2009-01-21 10:24:46 +01:00
Carsten Dominik
b76b28f2a7
Release 6.18
2009-01-20 10:23:26 +01:00