Hey ;), Bastien <bastien.gue...@wikimedia.fr> writes:
> Memnon Anon <gegendosenflei...@googlemail.com> writes: >> ;;MAN make sure time is at least 3 characters long or substring will fail >> => (when (< (length time) 3) (setq time (concat "00" time))) > I fixed this in a slightly different way: > - (setq time (int-to-string time)) > + (setq time (format "%2d" time)) Yes, I see. This prevents the error, however have a look at my agenda: My 'fix': Day-agenda (W35): Thursday 2 September 2010 0:00...... ---------------- 2:00...... ---------------- 4:00...... ---------------- 6:00...... ---------------- 8:00...... ---------------- 10:00...... ---------------- WORK: 11:25-12:00 XXXXXXXXXXXXXXXXXX :DUTY:WORK:: WORK: 12:00-15:00 XXXXXXXXXXXXXXXXXXXX :DUTY:WORK:: 12:00...... ---------------- 14:00...... ---------------- 16:00...... ---------------- 18:00...... ---------------- 20:00...... ---------------- 22:00...... ---------------- WORK: 22:15-22:59 [#A] XXXXXXXXXXXXX :DUTY:WORK:: WORK: 23:00-23:59 TODO [#A] Job: XXXXXXXXXXXXX :DUTY:WORK:: 23:59...... ---------------- DUTY: Scheduled: TODO [#A] XXXXXXXXXXXXXXXXXXXX :DUTY:REP::HOME: MAG: Sched. 3x: TODO XXXXXXXXXX :STUDIUM:: DUTY: Sched. 2x: TODO XXXXXXXXXXXXXXXXXXXX :DUTY:REP::HOME: DUTY: Sched. 2x: TODO XXXXXXXXXXXXXXXXXX :DUTY:REP::HOME: DUTY: Sched. 2x: TODO xxxxxxxxxxxxxx :DUTY:REP::HOME:DUTY: DUTY: Sched. 2x: TODO xxxxxxxxxxxxxxxxxxxx :DUTY::HOME:DUTY: FUN: Scheduled: TODO [#C] xxxxxxx :FUN:REP:: FUN: Scheduled: TODO [#C] xxxxxxxx :FUN:REP:: FUN: Scheduled: TODO [#C] xxxxxxxxx :FUN:REP:: FUN: Scheduled: STARTED [#C] Reading Mail/News :FUN:REP:: 126.% load: 415 minutes to be alloted, 328 minutes free today, -87 minutes difference Your fix: Day-agenda (W35): Thursday 2 September 2010 2:00...... ---------------- 4:00...... ---------------- 6:00...... ---------------- 8:00...... ---------------- 10:00...... ---------------- WORK: 11:25-12:00 DONE xxxxxxxxxxxxx :DUTY:WORK:: WORK: 12:00-15:00 DONE xxxxxxxxxxxxxxx :DUTY:WORK:: 12:00...... ---------------- 14:00...... ---------------- 16:00...... ---------------- 18:00...... ---------------- 20:00...... ---------------- 22:00...... ---------------- WORK: 22:15-22:59 [#A] xxxxxxxxxxxx :DUTY:WORK:: WORK: 23:00-23:59 TODO [#A] xxxxxxxxxxx :DUTY:WORK:: 23:59...... ---------------- DUTY: Scheduled: TODO [#A] xxxxxxxxx :DUTY:REP::HOME: MAG: Sched. 3x: TODO xxxxxxxx :STUDIUM:: DUTY: Sched. 2x: TODO xxxxxxxxxxxxxx :DUTY:REP::HOME: DUTY: Sched. 2x: TODO xxxxxxxxxxxx xxxxxx :DUTY:REP::HOME: DUTY: Scheduled: TODO [#C] xxxx xxxx :DUTY:REP::HOME: FUN: Scheduled: TODO [#C] xxxxxxxx :FUN:REP:: FUN: Scheduled: TODO [#C] xxxxxxxx :FUN:REP:: FUN: Scheduled: STARTED [#C] Reading Mail/News :FUN:REP:: ---------------- 126.% load: 415 minutes to be alloted, 327 minutes free today, -88 minutes difference Somehow, no 0:00 line on top, but a line (without hour) printed down at the bottom of the agenda (above the org-calculate-free-time line). However, calculations now are fine and thats for me the most important thing :). Thanks, Memnon _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode