0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-15 15:46:27 +00:00
org-mode/lisp
Carsten Dominik 633e8cdd90 Clock: Fix bugs when resuming the clock.
Adam Elliot writes:

>  Automatically resuming the clock after an Emacs restart
>  fails under the following cases:
>
>  1. If org-log-states-order-reversed set to t (default), and
>     a state change line precedes the clock line to resume.
>     Error message is "Cannot restart clock because task does
>     not contain unfinished clock".
>
[...]
>  2. If org-log-states-order-reversed set to nil.  Error
>     message is the same.  Reason: point is placed *after*
>     last clock line and so fails looking-at test.
>

This commit fixes the problem, in a slightly different way
than Adam proposed.  Instead of trying to fix the old way to
find the position of the clock, we now simple search the
entry if there is an unfinished clock and go there.  Since
new clocks are added before older ones, this should be a
safe bet.
2009-04-14 09:50:05 +02:00
..
ChangeLog Clock: Fix bugs when resuming the clock. 2009-04-14 09:50:05 +02:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Dependencies: New property NOBLOCKING 2009-04-08 17:01:54 +02:00
org-archive.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-ascii.el HTML export: moved functions to separate file. 2009-04-07 20:00:31 +02:00
org-attach.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-bbdb.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-bibtex.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-clock.el Clock: Fix bugs when resuming the clock. 2009-04-14 09:50:05 +02:00
org-colview-xemacs.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-colview.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-compat.el Compatibility: define sha1-string for Emacs 22. 2009-04-08 08:54:31 +02:00
org-docbook.el Export: Start paragraphs after the end of literal examples. 2009-04-09 09:09:34 +02:00
org-exp.el Fix the previous fix. 2009-04-12 20:00:39 +02:00
org-faces.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-feed.el org-feed.el: Fix an undefined-variable bug 2009-04-09 17:26:49 +02:00
org-footnote.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-gnus.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-html.el Export: Start paragraphs after the end of literal examples. 2009-04-09 09:09:34 +02:00
org-icalendar.el iCalendar and XOXO export: Functions moved to new files. 2009-04-07 19:08:24 +02:00
org-id.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-info.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-inlinetask.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-irc.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-jsinfo.el HTML export: moved functions to separate file. 2009-04-07 20:00:31 +02:00
org-latex.el LaTeX export: Format time stamps 2009-04-13 08:53:58 +02:00
org-list.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-mac-message.el org-mac-message: More fixes, and growl integration 2009-04-08 15:05:48 +02:00
org-macs.el Add intangible property for emacs 23 2009-04-13 08:48:12 +02:00
org-mew.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-mhe.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-mouse.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-plot.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-protocol.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-publish.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-remember.el org-remember: Skip creation of the default '* Notes' task 2009-04-10 10:26:57 +02:00
org-rmail.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-table.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-timer.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-vm.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-w3m.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-wl.el Version number pushed to 6.25trans 2009-04-07 18:43:42 +02:00
org-xoxo.el iCalendar and XOXO export: Functions moved to new files. 2009-04-07 19:08:24 +02:00
org.el LaTeX export: Format time stamps 2009-04-13 08:53:58 +02:00