From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Question about org-agenda-goto-today (bug?) Date: Fri, 26 Apr 2013 18:09:00 +0200 Message-ID: <87mwslb7fn.fsf@bzg.ath.cx> References: <517A9F1F.906@sift.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVlCr-0002GF-Qe for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 12:09:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVlCq-00018U-G3 for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 12:09:05 -0400 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:57972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVlCq-00017k-9l for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 12:09:04 -0400 Received: by mail-we0-f175.google.com with SMTP id i48so619814wef.34 for ; Fri, 26 Apr 2013 09:09:03 -0700 (PDT) In-Reply-To: <517A9F1F.906@sift.info> (Robert Goldman's message of "Fri, 26 Apr 2013 10:37:03 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Robert Goldman Cc: Org Mode Hi Robert, Robert Goldman 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