emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-clock-select-task: how does it work?


From: Tory S. Anderson
Subject: Re: [O] org-clock-select-task: how does it work?
Date: Wed, 28 Jan 2015 06:27:37 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Now I'm loving this tool but I'm looking for two tweaks that would make a big 
difference. 

1) I use "work.org" to track my weekly work hours; each week is mostly the same 
tasks, but new time frames. I need to be able to make sure my "recent clock 
list" is talking about the item for this week, not the identically named item 
for a previous week. If I could see the tree-path of the items (in the same way 
putting the point over an item in agenda shows you the hierarchy) that would be 
great. 

2) As Peter originally mentioned, I see only five tasks on the list; I have 
more than that each week. Can this be expanded with some variable? 

Having looked into problem 2 by going to `org-clock-select-task` in 
'org-clock.el', I found the following which is mostly beyond my current elisp 
capabilities: 

        (insert (org-add-props "Recent Tasks\n" nil 'face 'bold))
        (mapc
         (lambda (m)
           (when (marker-buffer m)
             (setq i (1+ i)
                   s (org-clock-insert-selection-line
                      (if (< i 10)
                          (+ i ?0)
                        (+ i (- ?A 10))) m))
             (if (fboundp 'int-to-char) (setf (car s) (int-to-char (car s))))
             (push s sel-list)))
         och)

While I'd love it if someone could explain to me what the "?" operator means 
with "?0" and "?A", one thing I get out of this is that a list length of 
something less than 10 seems hardcoded (right?). What would it take to be able 
customize this with a variable? 


Sebastien Vauban <address@hidden> writes:

> Peter Münster wrote:
>> On Sat, Jan 24 2015, Peter Münster wrote:
>>
>>> - There are duplicates in the list.
>>
>> Not reproducible.
>
> I still do have duplicates in my list as well.  It never has been fixed,
> but I don't have either a reproducible recipe.
>
> See https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg00568.html.
>
> Best regards,
>   Seb



reply via email to

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