From mboxrd@z Thu Jan 1 00:00:00 1970 From: SAKURAI Masashi Subject: Re: Calendar-like view of the org-agenda Date: Thu, 07 Jul 2011 13:21:34 +0900 Message-ID: <20110707042134.C49B013C56D@vps1.kiwanami.net> References: <87pqlu5quz.fsf@gnu.org> <87zkky48ol.wl%markert.michael@googlemail.com> <87tyb2qs39.fsf@isil.kanru.info> <8762nigeuk.wl%markert.michael@googlemail.com> <8739iklkgq.fsf@grumps.lan> <878vsbube7.fsf@member.fsf.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qeg5s-0004yF-JM for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 00:21:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qeg5r-0003XI-0e for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 00:21:40 -0400 Received: from vps1.kiwanami.net ([182.48.41.71]:44729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qeg5q-0003VK-IP for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 00:21:38 -0400 In-Reply-To: <878vsbube7.fsf@member.fsf.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: tassilo@member.fsf.org Cc: emacs-orgmode@gnu.org At Wed, 06 Jul 2011 09:16:32 +0200, Tassilo Horn wrote: > : > Christopher Allan Webber writes: > > Hi Christopher, > > > Also, cfw:open-org-calendar works, but things seem really slow... it > > looks like you're recalculating the entire orgmode agenda for every > > day. I wonder if things could be sped up if the orgmode agenda was > > calculated for the entire period all at once and then broke that up > > into days? > > For me, creating a custom org agenda with the next 21 days takes not > much less than building an calfw calendar buffer with 42 days. It's > about one second for the former and 2 seconds for the latter, so it > seems calfw does the right thing. Thank you for your confirming. I implemented calfw-org with consultation of the code of org-agenda-list. I think it is difficult to make the speed faster with a simple way, the re-design of the whole org-agenda-list algorithm seems to be needed, because the key function org-agenda-get-day-entries requires only one date and the subsequent dependent functions also are designed by the API. > One thing which I'm currently missing is that the calfw entries gathered > from org are missing the times (if that's specified using the 'time text > property) and are sorted in an order I can't understand. For example, > : Yes. The current implementation, calfw sorts the items by alphabet, i.e. string-less, in one date cell. This is intent to sort the items which has time header like "10:00 meeting" "13:00 go to airport" "16:00 meeting". It is not so difficult to add a customize of the sort criteria. And you can try your custom summary format, modifying cfw:org-summary-format. In the function, you can get the time value from the text property.