From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Question about org-agenda-goto-today (bug?) Date: Fri, 26 Apr 2013 10:37:03 -0500 Message-ID: <517A9F1F.906@sift.info> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVl1B-0003Yq-EP for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:57:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVl19-0004Uw-VI for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:57:01 -0400 Received: from 23-25-144-217-static.hfc.comcastbusiness.net ([23.25.144.217]:53379 helo=mpls.sift.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVkhu-0007S1-Mf for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 11:37:06 -0400 Received: from rpgoldman-3.local (216.243.156.16.real-time.com [216.243.156.16]) by mpls.sift.net (Postfix) with ESMTPSA id 1566E724A8 for ; Fri, 26 Apr 2013 10:37:04 -0500 (CDT) 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: 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?