[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 08:26:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Excellent answers, on both fronts. Thanks! I couldn't spot
`org-clock-history-length` in the code. That does the trick!
Thanks for the answer about the "?A". It's devilishly hard to Google that kind
of thing... time to RTM.
Marco Wahl <address@hidden> writes:
> Hi!
>
> address@hidden (Tory S. Anderson) writes:
>
>> 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?
>
> AFAICS this is variable org-clock-history-length.
>
>> 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?
>
> ?0 is the integer representing character "0" see (info "(elisp)Basic
> Char Syntax"). The above is a possibility to map the numbers 0, 1,...,
> 9, 10, ... onto the characters '1', '2', ..., 'A', 'B', .... AFAICS.
>
> The letters should come into play when you have more than 9 items in the
> clock-history.
>
>
> HTH, Marco
- [O] org-clock-select-task: how does it work?, Peter Münster, 2015/01/24
- Re: [O] org-clock-select-task: how does it work?, Tory S. Anderson, 2015/01/24
- Re: [O] org-clock-select-task: how does it work?, Peter Münster, 2015/01/24
- Re: [O] org-clock-select-task: how does it work?, Tory S. Anderson, 2015/01/24
- Re: [O] org-clock-select-task: how does it work?, Peter Münster, 2015/01/24
- Re: [O] org-clock-select-task: how does it work?, Peter Münster, 2015/01/24
- Re: [O] org-clock-select-task: how does it work?, Sebastien Vauban, 2015/01/27
- Re: [O] org-clock-select-task: how does it work?, Tory S. Anderson, 2015/01/28
- Re: [O] org-clock-select-task: how does it work?, Sebastien Vauban, 2015/01/28
- Re: [O] org-clock-select-task: how does it work?, Marco Wahl, 2015/01/28
- Re: [O] org-clock-select-task: how does it work?,
Tory S. Anderson <=