diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2009-02-11 15:01:13 +0100 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2009-02-11 15:01:13 +0100 |
commit | f993ecd67d7fc5be4b688857fe3be0bf3aaa11f1 (patch) | |
tree | 01ea0c8b50b6aa932fb88d483293810a103621d0 | |
parent | 621bafc1b5a39f6fb3b924ccde15e4dfd1b5c449 (diff) | |
download | org-mode-f993ecd67d7fc5be4b688857fe3be0bf3aaa11f1.tar.gz |
Daniel Clemente writes:
Consider a file with 2 lines:
------------------
**** heading
------------------
Place the cursor at line 2 (where you can type). Then use C-c C-x C-i
to start a clock.
You have now 3 lines:
------------------
**** heading
CLOCK: [2009-02-07 sáb 01:06]
------------------
However, the cursor is still placed at line 2, like before. I think
it would be more useful if it were moved to line 3 so that you can
start writing right away, just as before. This saves you the C-n
needed to move again to a blank line.
This commit implements exactly this request.
-rwxr-xr-x | lisp/ChangeLog | 1 | ||||
-rw-r--r-- | lisp/org-clock.el | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 14427ec..7209a5e 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,7 @@ * org-clock.el (org-clock-find-position): Do not swallow an item less indented than the CLOCK line itself. + (org-clock-in): Push markers to lin after the clock line. * org-exp.el (org-html-level-start): Add a CSS class to section numbers. diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 7a79ab7..5f5e9d7 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -354,7 +354,8 @@ the clocking selection, associated with the letter `d'." (sit-for 2) (throw 'abort nil)) (t - (insert "\n") (backward-char 1) + (insert-before-markers "\n") + (backward-char 1) (org-indent-line-function) (insert org-clock-string " ") (setq org-clock-start-time (current-time)) |