all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Question about org-agenda-goto-today (bug?)
@ 2013-04-26 15:37 Robert Goldman
  2013-04-26 16:09 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Goldman @ 2013-04-26 15:37 UTC (permalink / raw)
  To: Org Mode

I am finding that when I use this command (bound to "." in the org
agenda), I often do NOT go to today.

Looking at the code, it seems like org-mode may be guessing today based
on text markup:

(let ((tdpos (text-property-any (point-min) (point-max) 'org-today t)))

We jump to this position, instead of checking the clock, if we can find it.

If it helps, I often leave emacs running for days at a time, which I
suspect could be confusing it about what today is.  E.g., this just
happened to me when I tried to update my org-agenda after having been
away from it overnight.

Perhaps it would be an improvement to look at what we find at TDPOS and
check to verify that it corresponds somehow to org-today?

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

* Re: Question about org-agenda-goto-today (bug?)
  2013-04-26 15:37 Question about org-agenda-goto-today (bug?) Robert Goldman
@ 2013-04-26 16:09 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-04-26 16:09 UTC (permalink / raw)
  To: Robert Goldman; +Cc: Org Mode

Hi Robert,

Robert Goldman <rpgoldman@sift.info> writes:

> I am finding that when I use this command (bound to "." in the org
> agenda), I often do NOT go to today.
>
> Looking at the code, it seems like org-mode may be guessing today based
> on text markup:
>
> (let ((tdpos (text-property-any (point-min) (point-max) 'org-today t)))
>
> We jump to this position, instead of checking the clock, if we can find it.
>
> If it helps, I often leave emacs running for days at a time, which I
> suspect could be confusing it about what today is.  

Indeed.

I suggest to simply refresh the agenda before jumping to today's date.

> Perhaps it would be an improvement to look at what we find at TDPOS and
> check to verify that it corresponds somehow to org-today?

We could do that, but it would solve only half of the problem, as you
would still need to jump to today's date... and this date is set when
the agenda is generated.

-- 
 Bastien

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

end of thread, other threads:[~2013-04-26 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 15:37 Question about org-agenda-goto-today (bug?) Robert Goldman
2013-04-26 16:09 ` Bastien

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.