emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Issue when jumping from agenda view to clock line


From: Francesco Pizzolante
Subject: Re: [O] Issue when jumping from agenda view to clock line
Date: Fri, 16 Nov 2012 13:27:24 +0100
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.2 (windows-nt)

Hi,

> Here's a small example.
>
> #+begin_src org
> * My tasks
>
> ** First task
>    :LOGBOOK:
>    CLOCK: [2012-10-22 Mon 13:00]--[2012-10-22 Mon 14:30] =>  1:00
>    CLOCK: [2012-10-23 Tue 13:00]--[2012-10-23 Tue 14:30] =>  1:00
>    CLOCK: [2012-10-24 Wed 13:00]--[2012-10-24 Wed 14:30] =>  1:00
>    :END:
> #+end_src
>
> In the agenda view (C-c a a) for Wed 24, enable the check view (v c), then
> press ENTER on the log line for "First task", you jump to the corresponding
> heading (First task) but it positions the cursor just after the :LOGBOOK:
> keyword and the drawer remains closed.

Just to let you know that I found the issue...

It was coming from the following code I was using (taken from Worg:
http://orgmode.org/worg/org-configs/org-hooks.html):

    ╭────
    │       ;; get a compact view during follow mode in the agenda
    │         (defun my-compact-follow ()
    │           "Make the view compact, then show the necessary minimum."
    │           (ignore-errors
    │             (save-excursion
    │               (while (org-up-heading-safe))
    │               (hide-subtree)))
    │           (let ((org-show-siblings nil)
    │                 (org-show-hierarchy-above t))
    │             (org-reveal))
    │           (save-excursion
    │             (org-back-to-heading t)
    │             (show-children)))
    │
    │        (add-hook 'org-agenda-after-show-hook 'my-compact-follow)
    ╰────

But I don't understand the cause of it.

Thanks,
 Francesco



reply via email to

[Prev in Thread] Current Thread [Next in Thread]