From mboxrd@z Thu Jan 1 00:00:00 1970 From: d@teklibre.org (Dave =?utf-8?Q?T=C3=A4ht?=) Subject: Re: Re: Scaling org-mode Date: Sun, 13 Sep 2009 12:58:28 -0600 Message-ID: <871vmafz8r.fsf@mahal.sjds.teklibre.org> References: <87my4zfleg.fsf@mahal.sjds.teklibre.org> <87ab0yg3kj.fsf@mahal.sjds.teklibre.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmuID-0005oD-CW for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 14:59:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmuI8-0005hr-Mx for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 14:59:20 -0400 Received: from [199.232.76.173] (port=50716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmuI8-0005hj-Ci for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 14:59:16 -0400 Received: from toutatis.isc.org ([149.20.54.64]:43276 helo=mainmail.teklibre.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MmuI7-0001Yd-U5 for emacs-orgmode@gnu.org; Sun, 13 Sep 2009 14:59:16 -0400 Received: from localhost (localhost [127.0.0.1]) by mainmail.teklibre.org (Postfix) with ESMTP id 0EC4C12B787 for ; Sun, 13 Sep 2009 11:59:55 -0700 (PDT) Received: from mainmail.teklibre.org ([127.0.0.1]) by localhost (toutatis.sql1.isc.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9942LH5nFDcQ for ; Sun, 13 Sep 2009 11:59:54 -0700 (PDT) Received: from mail3.teklibre.org (mail3.teklibre.org [IPv6:2001:470:b9d7::31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail3.teklibre.org", Issuer "CA Cert Signing Authority" (verified OK)) by mainmail.teklibre.org (Postfix) with ESMTPS id B817512B790 for ; Sun, 13 Sep 2009 11:59:54 -0700 (PDT) In-Reply-To: <87ab0yg3kj.fsf@mahal.sjds.teklibre.org> ("Dave =?utf-8?Q?T?= =?utf-8?Q?=C3=A4ht=22's?= message of "Sun, 13 Sep 2009 11:25:00 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Lundin Cc: emacs-orgmode@gnu.org d@teklibre.org (Dave T=C3=A4ht) writes: > Matt Lundin writes: > >> d@teklibre.org (Dave T=C3=A4ht) 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 i= nto erc > which also has annoying blocking behavior on netsplits and lost connectiv= ity. 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. --=20 Dave Taht http://the-edge.blogspot.com