From: Antoine Levitt <email@example.com>
Subject: Re: Custom time display in mode-line
Date: Tue, 1 May 2012 14:46:03 +0000 (UTC) [thread overview]
Message-ID: <loom.20120501T163902firstname.lastname@example.org> (raw)
Daniel Clemente <n142857 <at> gmail.com> writes:
> org-clock-modeline-total now accepts following values: current, today,
repeat, all, auto.
> It would be useful to allow it to accept either a custom function or a
format string which composes a text
> string like:
> "0:10 (tot: 1:10/2:00)"
> meaning: „clocking 10 minutes in this session, but the total clocked time
(including those 10min) is
> 1:10, and the effort estimate is 2:00“.
> Not all entries have a „total clocked time“ (: entries clocked for the first
time) and not all entries
> have an estimate.
> - Either many format strings must be given (_simple, _with_total,
> _with_total_and_estimate), e.g. ("%current" "%current (tot: %total)"
> "%current (tot:%total/%estimate)")
> - … or we must cope with results like "0:10 (tot: /)"
> - … or a custom function must be used to do those conditionals.
> Accepting a function would be like redefining org-clock-get-clock-string but
without touching org's core.
> I tried to change the code but I'm confused as to why org-clock-modeline-
total (a mere
> visualization/„view“ setting) is read in org-clock-get-sum-start (which is a
> function and therefore not tied to any particular „view“). I think org-clock-
> should be read just in org-clock-get-clock-string.
> Documentation of org-clock-get-clocked-time is also wrong („The time
returned includes the time
> spent on this task in previous clocking intervals.“) since this depends on
> org-clock-get-sum-start did.
I just started using org-clock, and that seems like a major issue (from an emacs
user perspective, who is used to be able to modify everything that gets
displayed, especially such an important part). The code is a bit messy and I
don't understand everything, so I'm not able to write a patch for this, but can
someone look into that? Ideally, org-clock-modeline-total would be obsoleted and
replaced by a org-clock-modeline-format that'd get passed to format-spec.
next prev parent reply other threads:[~2012-05-01 14:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-17 10:50 Custom time display in mode-line Daniel Clemente
2012-05-01 14:46 ` Antoine Levitt [this message]
2012-05-01 17:41 ` Bastien
2012-05-01 18:05 ` Antoine Levitt
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).