d...@teklibre.org (Dave Täht) writes:

> Matt Lundin <m...@imapmail.org> writes:
>
>> d...@teklibre.org (Dave Täht) writes:
>
>>> 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.
>>
>> http://www.gnu.org/software/emacs/elisp/html_node/Idle-Timers.html
>
> Bueno. Writing that bit of code right now. Hmmm... Maybe I can tie this into 
> erc
> which also has annoying blocking behavior on netsplits and lost connectivity.

First cut at making org more idle friendly.

It appears to be working... but I've been typing too much to really
notice. :)

See:

http://pastebin.com/dbb75ca

for details. I have not written much emacs lisp for years, so review
would be nice.

I changed it to actually try to reconstruct the agenda every 10 minutes
in this kinder, gentler fashion.

Still have a bit more to do but this takes out the main problem.


-- 
Dave Taht
http://the-edge.blogspot.com


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to