mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 17:32:51 +00:00
Bug fix with starting clock at end of buffer.
There was a problem that in this case the first CLOCK time stamp is entered in the headline. Reported by Sebastian Rose.
This commit is contained in:
parent
9b661ddca2
commit
ef7472779f
|
@ -1,3 +1,8 @@
|
|||
2008-03-18 Carsten Dominik <dominik@science.uva.nl>
|
||||
|
||||
* org.el (org-clock-find-position): Handle special case at end of
|
||||
buffer.
|
||||
|
||||
2008-03-17 Carsten Dominik <dominik@science.uva.nl>
|
||||
|
||||
* org.el (org-scheduled-past-days): Respect
|
||||
|
|
6
org.el
6
org.el
|
@ -18605,7 +18605,11 @@ If necessary, clock-out of the currently active clock."
|
|||
"Find the location where the next clock line should be inserted."
|
||||
(org-back-to-heading t)
|
||||
(catch 'exit
|
||||
(let ((beg (point-at-bol 2)) (end (progn (outline-next-heading) (point)))
|
||||
(let ((beg (save-excursion
|
||||
(beginning-of-line 2)
|
||||
(or (bolp) (newline))
|
||||
(point)))
|
||||
(end (progn (outline-next-heading) (point)))
|
||||
(re (concat "^[ \t]*" org-clock-string))
|
||||
(cnt 0)
|
||||
first last)
|
||||
|
|
Loading…
Reference in a new issue