emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* emacsclient -e '(org-agenda)' sometimes displays stale agenda
@ 2009-11-10 20:24 Andrew J. Korty
  2009-11-10 21:15 ` Sebastian Rose
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew J. Korty @ 2009-11-10 20:24 UTC (permalink / raw)
  To: Org Mode

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?

ajk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: emacsclient -e '(org-agenda)' sometimes displays stale agenda
  2009-11-10 20:24 emacsclient -e '(org-agenda)' sometimes displays stale agenda Andrew J. Korty
@ 2009-11-10 21:15 ` Sebastian Rose
  2009-11-11 13:46   ` Andrew J. Korty
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Rose @ 2009-11-10 21:15 UTC (permalink / raw)
  To: Andrew J. Korty; +Cc: Org Mode

"Andrew J. Korty" <ajk@iu.edu> 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.


The function `org-agenda-redo'  rebuilds the agenda.


  
  Sebastian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: emacsclient -e '(org-agenda)' sometimes displays stale agenda
  2009-11-10 21:15 ` Sebastian Rose
@ 2009-11-11 13:46   ` Andrew J. Korty
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew J. Korty @ 2009-11-11 13:46 UTC (permalink / raw)
  To: Org Mode

On Nov 10, 2009, at 16:15 , Sebastian Rose wrote:

> "Andrew J. Korty" <ajk@iu.edu> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-11 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-10 20:24 emacsclient -e '(org-agenda)' sometimes displays stale agenda Andrew J. Korty
2009-11-10 21:15 ` Sebastian Rose
2009-11-11 13:46   ` Andrew J. Korty

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).