emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Memnon Anon <gegendosenfleisch@googlemail.com>
To: Bastien <bastien.guerry@wikimedia.fr>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Setting org-agenda-time-grid: My day starts at midnight
Date: Thu, 02 Sep 2010 17:05:55 +0200	[thread overview]
Message-ID: <87k4n4fb0r.fsf@mean.albasani.net> (raw)
In-Reply-To: <87zkw01dqw.fsf@gnu.org> (Bastien's message of "Thu, 02 Sep 2010 15:22:46 +0200")

Hey ;),

Bastien <bastien.guerry@wikimedia.fr> writes:

> Memnon Anon <gegendosenfleisch@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

  reply	other threads:[~2010-09-02 15:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19  6:17 Setting org-agenda-time-grid: My day starts at midnight Memnon Anon
2010-08-22 10:25 ` [Bug] : org-agenda-time-grid (was: Setting org-agenda-time-grid: My day starts at midnight) Memnon Anon
2010-09-02 13:22 ` Setting org-agenda-time-grid: My day starts at midnight Bastien
2010-09-02 15:05   ` Memnon Anon [this message]
2010-09-02 15:48     ` Bastien
2010-09-02 17:02       ` Memnon Anon
2010-09-05 14:59       ` Memnon Anon
2010-09-05 19:10         ` Bastien
2010-09-05 19:57           ` [Squashed] (was: Setting org-agenda-time-grid: My day starts at midnight) Memnon Anon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4n4fb0r.fsf@mean.albasani.net \
    --to=gegendosenfleisch@googlemail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).