From: Nick Dokos <nicholas.dokos@hp.com>
To: Dave =?utf-8?Q?T=C3=A4ht?= <d@teklibre.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Scaling org-mode
Date: Sun, 13 Sep 2009 12:52:58 -0400 [thread overview]
Message-ID: <12636.1252860778@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from d@teklibre.org (Dave =?utf-8?Q?T=C3=A4ht?=) of "Sat\, 12 Sep 2009 23\:45\:11 MDT." <87my4zfleg.fsf@mahal.sjds.teklibre.org>
Dave Täht <d@teklibre.org> wrote:
> ...
> so thought 2) would be to have it only attempt to construct background
> agendas when the system is otherwise idle for a few minutes. I don't
> know how to do that, I figure wrapping this bit with something that
> could detect idleness instead of just running arbitrarily would be good.
>
> (run-at-time nil 3600 'org-agenda-to-appt)
>
> don't know how to detect idleness.
>
[Apologies if this is off-topic - I haven't read your message carefully,
as I was catching up on email between jobs.]
Not sure whether it'll work any better, but there is run-with-idle-timer.
C-h f run-with-idle-timer <RET> says:
,----
| run-with-idle-timer is an interactive compiled Lisp function in
| `timer.el'.
|
| (run-with-idle-timer SECS REPEAT FUNCTION &rest ARGS)
|
| Perform an action the next time Emacs is idle for SECS seconds.
| The action is to call FUNCTION with arguments ARGS.
| SECS may be an integer, a floating point number, or the internal
| time format (HIGH LOW USECS) returned by, e.g., `current-idle-time'.
| If Emacs is currently idle, and has been idle for N seconds (N < SECS),
| then it will call FUNCTION in SECS - N seconds from now.
|
| If REPEAT is non-nil, do the action each time Emacs has been idle for
| exactly SECS seconds (that is, only once for each time Emacs becomes idle).
|
| This function returns a timer object which you can use in `cancel-timer'.
`----
HTH,
Nick
next prev parent reply other threads:[~2009-09-13 16:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-13 5:45 Scaling org-mode Dave Täht
2009-09-13 14:04 ` Matt Lundin
2009-09-13 17:25 ` Dave Täht
2009-09-13 18:58 ` Dave Täht
2009-09-13 16:52 ` Nick Dokos [this message]
2009-09-13 23:30 ` Productiviy tools (was: Scaling org-mode) Daniel Clemente
2009-09-14 0:21 ` Productiviy tools Dave Täht
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=12636.1252860778@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=d@teklibre.org \
--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).