Hi!

torys.ander...@gmail.com (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
-- 
http://www.wahlzone.de
GPG: 0x49010A040A3AE6F2


Reply via email to