From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrew J. Korty" Subject: Re: emacsclient -e '(org-agenda)' sometimes displays stale agenda Date: Wed, 11 Nov 2009 08:46:21 -0500 Message-ID: References: <34365D60-42BE-4B3B-8188-0DBDCC094897@iu.edu> <87ws1yytc6.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8DWp-0006iL-Ug for emacs-orgmode@gnu.org; Wed, 11 Nov 2009 08:46:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8DWl-0006cQ-5r for emacs-orgmode@gnu.org; Wed, 11 Nov 2009 08:46:31 -0500 Received: from [199.232.76.173] (port=37263 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8DWk-0006c4-U9 for emacs-orgmode@gnu.org; Wed, 11 Nov 2009 08:46:27 -0500 Received: from belushi.uits.indiana.edu ([129.79.1.188]:58361) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8DWi-0003rK-QB for emacs-orgmode@gnu.org; Wed, 11 Nov 2009 08:46:26 -0500 Received: from mail-relay.iu.edu (candy.uits.indiana.edu [129.79.1.201]) by belushi.uits.indiana.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id nABDkM3K025802 for ; Wed, 11 Nov 2009 08:46:23 -0500 Received: from 149-166-143-159.dhcp-in.iupui.edu (149-166-143-159.dhcp-in.iupui.edu [149.166.143.159]) (authenticated bits=0) by mail-relay.iu.edu (8.14.2/8.13.8/IU Messaging Team Submission) with ESMTP id nABDkLMs011522 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 11 Nov 2009 08:46:22 -0500 In-Reply-To: <87ws1yytc6.fsf@gmx.de> 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: Org Mode On Nov 10, 2009, at 16:15 , Sebastian Rose wrote: > "Andrew J. Korty" writes: >> Calling org-agenda from emacsclient doesn't always seem to generate >> a fresh >> agenda the way it does when called from a key binding or M-x. >> Anyone know why? > > I think the agenda is rebuild, if you quit it and restart it again. In > many cases, this makes absolutely sense. I have quite a few agenda > files > in use and some of them grow since 2 years now. Say I use M-x org-agenda and press M to do a tag TODO query. I get the results in the *Org Agenda* buffer. Then I do M-x org-agenda RET M again with a different tag. The contents of the *Org Agenda* buffer are replaced with the results of the new query. But if I do all that by calling org-agenda from emacsclient, the contents of the *Org Agenda* buffer don't get replaced when I do the second query. They still contain the results of the first query. ajk