From: Nick Dokos <nicholas.dokos@hp.com>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
Kiwon Um <um.kiwon@gmail.com>
Subject: Re: org-agenda-show-current-time-in-grid and automatic refresh
Date: Wed, 12 Jan 2011 03:23:44 -0500 [thread overview]
Message-ID: <23120.1294820624@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Suvayu Ali <fatkasuvayu+linux@gmail.com> of "Tue, 11 Jan 2011 23:19:09 PST." <20110111231909.2338897e@bhishma.homelinux.net>
Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> Hi Kiwon,
>
> On Wed, 12 Jan 2011 12:23:48 +0900
> Kiwon Um <um.kiwon@gmail.com> wrote:
>
> > Dear org users,
> >
> > The recent function for showing current time in agenda view is quite
> > cool. I have a question about it. When the agenda view is being shown,
> > is there any way to refresh it automatically so that makes the current
> > time line always recent?
> >
>
> I have thought about that, I even worked up a small minor mode for that
> (attached). But it doesn't seem to work very well. It updates only the
> first time but fails subsequently. I am still a lisp newbie. If someone
> could guide me, I could give it another try.
>
> Right now it only updates if any of the agenda file buffers change but I
> would also like to put a timer. Then if no agenda files have been edited
> in a while (say 5 mins) the agenda buffer is refreshed anyway. But I
> don't know how to do that. Any suggestions would be welcome.
>
You can probably use run-with-timer or run-with-idle-timer to do things
like this, but I'm with Detlef Steuer: pressing 'g' in the agenda to
refresh it is simple and does not consume any extra resources - you do
it when you need to and it's done. I just find the idea of running a
timer in order to update a time line in the agenda every once in a while
somewhat distasteful, but maybe it's just me.
OTOH, I'm being somewhat hypocritical here because I run two visible
clocks: one in the gnome panel and one in the emacs mode line with
display-time. Having three of them however is clearly overkill :-)
Nick
next prev parent reply other threads:[~2011-01-12 8:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 3:23 org-agenda-show-current-time-in-grid and automatic refresh Kiwon Um
2011-01-12 7:19 ` Suvayu Ali
2011-01-12 8:23 ` Nick Dokos [this message]
2011-01-12 21:33 ` Suvayu Ali
2011-01-13 4:56 ` Kiwon Um
2011-01-13 6:36 ` Michael Brand
2011-01-15 11:35 ` Bastien
2011-01-18 9:58 ` Carsten Dominik
2011-01-12 7:58 ` Detlef Steuer
-- strict thread matches above, loose matches on Subject: below --
2011-01-13 1:43 Tommy Stanton
2011-01-13 8:41 ` Sébastien Vauban
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=23120.1294820624@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=fatkasuvayu+linux@gmail.com \
--cc=um.kiwon@gmail.com \
/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).