emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] revering agenda files
@ 2010-04-12 19:31 Łukasz Stelmach
  2010-04-12 19:59 ` Richard Riley
  2010-04-12 20:00 ` Bernt Hansen
  0 siblings, 2 replies; 7+ messages in thread
From: Łukasz Stelmach @ 2010-04-12 19:31 UTC (permalink / raw)
  To: emacs-orgmode

Hello.

I'm not quite sure it is bug indeed but org-mode stops working as usual
when you change the agenda files behind the scenes. I sometimes do it
because I use org-mode on several machines and I keep my files
synchronised with git. Since git-vc.el doesn't provide interface for
git's push pull commands I have to invoke them from outside of Emacs.
When it happens that pull operation alters one of agenda files then:

1. When I ask to rebuild agenda I receive a question

       todo.org changed on disk; really edit the buffer? (y, n, r or C-h) 

   one file each time. The question is quite reasonable but it should
   pop up for every altered file upon the first attempt to rebuild
   agenda.

2. Every time I move cursor up or down I get

       if: Wrong type argument: stringp, nil

   when I click a heading, nothing happens and when i press RET on it

       let*: Wrong type argument: integer-or-marker-p, nil

   It stops after few rebuilds. "Few" means the number of updated files.


-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: [BUG] revering agenda files
  2010-04-12 19:31 [BUG] revering agenda files Łukasz Stelmach
@ 2010-04-12 19:59 ` Richard Riley
  2010-04-12 20:30   ` Łukasz Stelmach
  2010-04-12 20:00 ` Bernt Hansen
  1 sibling, 1 reply; 7+ messages in thread
From: Richard Riley @ 2010-04-12 19:59 UTC (permalink / raw)
  To: emacs-orgmode

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Hello.
>
> I'm not quite sure it is bug indeed but org-mode stops working as usual
> when you change the agenda files behind the scenes. I sometimes do it
> because I use org-mode on several machines and I keep my files
> synchronised with git. Since git-vc.el doesn't provide interface for
> git's push pull commands I have to invoke them from outside of Emacs.

Use magit perhaps? or egg.

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

* Re: [BUG] revering agenda files
  2010-04-12 19:31 [BUG] revering agenda files Łukasz Stelmach
  2010-04-12 19:59 ` Richard Riley
@ 2010-04-12 20:00 ` Bernt Hansen
  2010-04-12 20:26   ` Łukasz Stelmach
  1 sibling, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2010-04-12 20:00 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Hello.
>
> I'm not quite sure it is bug indeed but org-mode stops working as usual
> when you change the agenda files behind the scenes. I sometimes do it
> because I use org-mode on several machines and I keep my files
> synchronised with git. Since git-vc.el doesn't provide interface for
> git's push pull commands I have to invoke them from outside of Emacs.
> When it happens that pull operation alters one of agenda files then:
>
> 1. When I ask to rebuild agenda I receive a question
>
>        todo.org changed on disk; really edit the buffer? (y, n, r or C-h) 
>
>    one file each time. The question is quite reasonable but it should
>    pop up for every altered file upon the first attempt to rebuild
>    agenda.
>
> 2. Every time I move cursor up or down I get
>
>        if: Wrong type argument: stringp, nil
>
>    when I click a heading, nothing happens and when i press RET on it
>
>        let*: Wrong type argument: integer-or-marker-p, nil
>
>    It stops after few rebuilds. "Few" means the number of updated files.

My solution to this is

(global-auto-revert-mode t)

So if there are no modified buffers and the agenda file changes
externally it just automatically updates to what is on disk.  That got
rid of the annoying message for me.

-Bernt

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

* Re: [BUG] revering agenda files
  2010-04-12 20:00 ` Bernt Hansen
@ 2010-04-12 20:26   ` Łukasz Stelmach
  2010-04-12 21:20     ` Bernt Hansen
  0 siblings, 1 reply; 7+ messages in thread
From: Łukasz Stelmach @ 2010-04-12 20:26 UTC (permalink / raw)
  To: emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>
>> I'm not quite sure it is bug indeed but org-mode stops working as usual
>> when you change the agenda files behind the scenes.
[...]
> My solution to this is
>
> (global-auto-revert-mode t)
>
> So if there are no modified buffers and the agenda file changes
> externally it just automatically updates to what is on disk.  That got
> rid of the annoying message for me.

I don't want to get rid of those messages completely. Couple of times
they saved my work (at least) and I don't need to revert org-mode
buffers that often to feel anoyed by two or three questions. However,
I'd like them to be asked in one row.

-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: [BUG] revering agenda files
  2010-04-12 19:59 ` Richard Riley
@ 2010-04-12 20:30   ` Łukasz Stelmach
  2010-04-12 20:45     ` Dale P. Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Łukasz Stelmach @ 2010-04-12 20:30 UTC (permalink / raw)
  To: emacs-orgmode

Richard Riley <rileyrgdev@gmail.com> writes:

> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>> I'm not quite sure it is bug indeed but org-mode stops working as usual
>> when you change the agenda files behind the scenes. I sometimes do it
>> because I use org-mode on several machines and I keep my files
>> synchronised with git. Since git-vc.el doesn't provide interface for
>> git's push pull commands I have to invoke them from outside of Emacs.
>
> Use magit perhaps? or egg.

I'll give them a try. Thanks.

-- 
Miłego dnia,
Łukasz Stelmach

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

* Re: Re: [BUG] revering agenda files
  2010-04-12 20:30   ` Łukasz Stelmach
@ 2010-04-12 20:45     ` Dale P. Smith
  0 siblings, 0 replies; 7+ messages in thread
From: Dale P. Smith @ 2010-04-12 20:45 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode@gnu.org

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Richard Riley <rileyrgdev@gmail.com> writes:
>
>> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>>> I'm not quite sure it is bug indeed but org-mode stops working as usual
>>> when you change the agenda files behind the scenes. I sometimes do it
>>> because I use org-mode on several machines and I keep my files
>>> synchronised with git. Since git-vc.el doesn't provide interface for
>>> git's push pull commands I have to invoke them from outside of Emacs.
>>
>> Use magit perhaps? or egg.
>
> I'll give them a try. Thanks.

Magit is awesome.  I'd choose git for just so I can use magit.

-Dale

-- 
Dale P. Smith
dales@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

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

* Re: [BUG] revering agenda files
  2010-04-12 20:26   ` Łukasz Stelmach
@ 2010-04-12 21:20     ` Bernt Hansen
  0 siblings, 0 replies; 7+ messages in thread
From: Bernt Hansen @ 2010-04-12 21:20 UTC (permalink / raw)
  To: Łukasz Stelmach; +Cc: emacs-orgmode

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Bernt Hansen <bernt@norang.ca> writes:
>
>> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>>
>>> I'm not quite sure it is bug indeed but org-mode stops working as usual
>>> when you change the agenda files behind the scenes.
> [...]
>> My solution to this is
>>
>> (global-auto-revert-mode t)
>>
>> So if there are no modified buffers and the agenda file changes
>> externally it just automatically updates to what is on disk.  That got
>> rid of the annoying message for me.
>
> I don't want to get rid of those messages completely. Couple of times
> they saved my work (at least) and I don't need to revert org-mode
> buffers that often to feel anoyed by two or three questions. However,
> I'd like them to be asked in one row.

It only gets rid of the questions for buffers that are not modified.
It won't revert buffers if it destroys unsaved changes.
ie. if you modify an agenda file without changing it, then modify the
one on disk then you still get the question as you do now.

It only eliminates the questions for all of your agenda files that are
already saved to disk -- if the disk file changes we just update the
buffer in emacs too.

-Bernt

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

end of thread, other threads:[~2010-04-12 21:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 19:31 [BUG] revering agenda files Łukasz Stelmach
2010-04-12 19:59 ` Richard Riley
2010-04-12 20:30   ` Łukasz Stelmach
2010-04-12 20:45     ` Dale P. Smith
2010-04-12 20:00 ` Bernt Hansen
2010-04-12 20:26   ` Łukasz Stelmach
2010-04-12 21:20     ` Bernt Hansen

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