org-mode/lisp
Carsten Dominik 3ce0a4a9e2 Fix position error when clocking in while buffer is narrowed
Bernt Hansen writes:

> If you narrow to subtree when there is a following task the narrowed
> buffer has a blank line at the end.  If you are on this line and
> clock-in it starts the clock for the _following_ task (outside the
> narrowed subtree) and not the task you are looking at.
>
> I stumbled across this today because the following task was already
> over the estimated limit when I clocked it in - which triggered my
> alarm sound.
>
> ,----[ test.org ]
> | #+STARTUP:
> | * TODO One
> | * TODO Two
> `----
>
> ,----[ minimal.emacs ]
> | (add-to-list 'load-path (expand-file-name "~/git/org-mode/lisp"))
> | (add-to-list 'auto-mode-alist
> |              '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))
> | (require 'org-install)
> |
> | (global-set-key "\C-cl" 'org-store-link)
> | (global-set-key "\C-ca" 'org-agenda)
> | (global-set-key "\C-cb" 'org-iswitchb)
> `----
>
> Key sequence to reproduce:
>
> $ emacs -q -l minimal.emacs test.org
>
> | Key                           | Notes                         |
> |-------------------------------+-------------------------------|
> | C-n                           | Go to first task '* TODO One' |
> | M-x org-narrow-to-subtree RET | Narrow to subtree             |
> | C-n                           | Move to last blank line       |
> | C-c C-x C-i                   | Clock in (next) task          |
> |-------------------------------+-------------------------------|
>
> -Bernt
>
> Emacs  : GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
> of 2008-11-09 on raven, modified by Debian
> Package: Org-mode version 6.31trans (release_6.31.8.g7485)
2009-10-02 08:40:02 +02:00
..
ChangeLog Fix position error when clocking in while buffer is narrowed 2009-10-02 08:40:02 +02:00
ChangeLog.01 Split ChangeLog file into parts. 2008-05-08 08:16:38 +02:00
org-agenda.el Fix typos 2009-10-02 08:30:18 +02:00
org-archive.el Don't mark items DONE when archiving them 2009-10-02 06:47:30 +02:00
org-ascii.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-attach.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-bbdb.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-bibtex.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-clock.el Fix position error when clocking in while buffer is narrowed 2009-10-02 08:40:02 +02:00
org-colview-xemacs.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-colview.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-compat.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-crypt.el Fix copyright in org-crypt.el 2009-10-01 20:04:42 +02:00
org-docbook.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-exp-blocks.el Apply fixes from downstream Emacs 2009-09-30 09:20:28 +02:00
org-exp.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-faces.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-feed.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-footnote.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-gnus.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-html.el Don't wrap figures without captions 2009-10-02 08:29:21 +02:00
org-icalendar.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-id.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-indent.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-info.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-inlinetask.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-irc.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-jsinfo.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-latex.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-list.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-mac-message.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-macs.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-mew.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-mhe.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-mobile.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-mouse.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-plot.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-protocol.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-publish.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-remember.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-rmail.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-src.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-table.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-timer.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-vm.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-w3m.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-wl.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org-xoxo.el Push version number to 6.31trans 2009-10-01 11:57:17 +02:00
org.el Fix bug in org-context at beginning-of-buffer 2009-10-01 20:03:29 +02:00