From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Lohmar Subject: PATCH: follow timestamp link also in heading Date: Wed, 23 May 2012 19:48:42 +0300 Message-ID: <87wr42etcl.fsf@acer.localhost.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXEk2-0008EJ-26 for emacs-orgmode@gnu.org; Wed, 23 May 2012 12:48:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXEjz-0004SB-Aj for emacs-orgmode@gnu.org; Wed, 23 May 2012 12:48:53 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:53076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXEjz-0004RE-1i for emacs-orgmode@gnu.org; Wed, 23 May 2012 12:48:51 -0400 Received: by wgbds1 with SMTP id ds1so5588475wgb.30 for ; Wed, 23 May 2012 09:48:48 -0700 (PDT) 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: emacs-orgmode@gnu.org Hi there, I stumbled upon the functionality to open the agenda for a timestamp using org-open-at-point. That is really sweet, but as it turns out, it does not work in a headline (as of 7.8.10, with no changes to the relevant code since then). I cannot see a good reason for this, and it is a one-line patch to fix it. Sorry for not using the development version proper, hence just a unified diff (below). It would be great if this could be included! Ingo --- a/lisp/org.el +++ b/lisp/org.el @@ -9606,6 +9606,7 @@ (org-remove-occur-highlights nil nil t) (cond ((and (org-at-heading-p) + (not (org-at-timestamp-p)) (not (org-in-regexp (concat org-plain-link-re "\\|" org-bracket-link-regexp "\\|"