all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Agenda and excursion
@ 2010-05-13  9:07 Tom
  2010-05-13 17:47 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Tom @ 2010-05-13  9:07 UTC (permalink / raw)
  To: emacs-orgmode

Often I do something in an org buffer and then display the
agenda to see my tasks. Then later I switch back to that buffer with 
switch-to-buffer and find that building of the agenda moved the cursor 
from the point I was to the end of the buffer.

It's a bit annoying. Shouldn't org-agenda use save-excursion in org
buffers, so the cursor is not moved from the point the user left it?

Building of the agenda shouldn't affect the buffer state this way
since it's a reading operation.

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

* Re: Agenda and excursion
  2010-05-13  9:07 Agenda and excursion Tom
@ 2010-05-13 17:47 ` Carsten Dominik
  2010-05-14  7:25   ` Tom
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-05-13 17:47 UTC (permalink / raw)
  To: Tom; +Cc: emacs-orgmode


On May 13, 2010, at 11:07 AM, Tom wrote:

> Often I do something in an org buffer and then display the
> agenda to see my tasks. Then later I switch back to that buffer with
> switch-to-buffer and find that building of the agenda moved the cursor
> from the point I was to the end of the buffer.

I have never seen this problem.

- Carsten

>
> It's a bit annoying. Shouldn't org-agenda use save-excursion in org
> buffers, so the cursor is not moved from the point the user left it?
>
> Building of the agenda shouldn't affect the buffer state this way
> since it's a reading operation.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Agenda and excursion
  2010-05-13 17:47 ` Carsten Dominik
@ 2010-05-14  7:25   ` Tom
  2010-05-14 11:33     ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Tom @ 2010-05-14  7:25 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> 
> 
> On May 13, 2010, at 11:07 AM, Tom wrote:
> 
> > Often I do something in an org buffer and then display the
> > agenda to see my tasks. Then later I switch back to that buffer with
> > switch-to-buffer and find that building of the agenda moved the cursor
> > from the point I was to the end of the buffer.
> 
> I have never seen this problem.
> 

Looks like it happens only if specify a skip function for the block agenda.
I'll try to narrow down the location and get back to you when I know more
about the problem.

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

* Re: Re: Agenda and excursion
  2010-05-14  7:25   ` Tom
@ 2010-05-14 11:33     ` Carsten Dominik
  2010-05-14 13:54       ` Tom
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2010-05-14 11:33 UTC (permalink / raw)
  To: Tom; +Cc: emacs-orgmode


On May 14, 2010, at 9:25 AM, Tom wrote:

> Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>
>>
>>
>> On May 13, 2010, at 11:07 AM, Tom wrote:
>>
>>> Often I do something in an org buffer and then display the
>>> agenda to see my tasks. Then later I switch back to that buffer with
>>> switch-to-buffer and find that building of the agenda moved the  
>>> cursor
>>> from the point I was to the end of the buffer.
>>
>> I have never seen this problem.
>>
>
> Looks like it happens only if specify a skip function for the block  
> agenda.
> I'll try to narrow down the location and get back to you when I know  
> more
> about the problem.

Ah, that is interesting.  Can I have a look at the full custom command  
definition you are using?

Thanks.

- Carsten

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

* Re: Agenda and excursion
  2010-05-14 11:33     ` Carsten Dominik
@ 2010-05-14 13:54       ` Tom
  2010-05-14 13:56         ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Tom @ 2010-05-14 13:54 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik <at> gmail.com> writes:

> Ah, that is interesting.  Can I have a look at the full custom command  
> definition you are using?

Turned out I called one of my own functions from the skip function with a
delay (so it ran after agenda construction finished) and that function 
moved the cursor, so org was innocent.

Sorry for the noise. I'll be more careful next time before reporting a 
problem.

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

* Re: Re: Agenda and excursion
  2010-05-14 13:54       ` Tom
@ 2010-05-14 13:56         ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2010-05-14 13:56 UTC (permalink / raw)
  To: Tom; +Cc: emacs-orgmode

Hi Tom, I am glad it is resolved.

- Carsten

On May 14, 2010, at 3:54 PM, Tom wrote:

> Carsten Dominik <carsten.dominik <at> gmail.com> writes:
>
>> Ah, that is interesting.  Can I have a look at the full custom  
>> command
>> definition you are using?
>
> Turned out I called one of my own functions from the skip function  
> with a
> delay (so it ran after agenda construction finished) and that function
> moved the cursor, so org was innocent.
>
> Sorry for the noise. I'll be more careful next time before reporting a
> problem.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

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

end of thread, other threads:[~2010-05-14 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13  9:07 Agenda and excursion Tom
2010-05-13 17:47 ` Carsten Dominik
2010-05-14  7:25   ` Tom
2010-05-14 11:33     ` Carsten Dominik
2010-05-14 13:54       ` Tom
2010-05-14 13:56         ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.