Fix `org-open-at-point' on planning lines
authorNicolas Goaziou <n.goaziou@gmail.com>
Tue, 25 Feb 2014 16:49:22 +0000 (25 17:49 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Tue, 25 Feb 2014 16:49:22 +0000 (25 17:49 +0100)
* lisp/org.el (org-open-at-point): Open timestamps on planning
  lines.  This is a regression introduced in fc9ce8.

lisp/org.el

index 3800d80..b5b7d0e 100644 (file)
@@ -10482,7 +10482,7 @@ is used internally by `org-open-link-from-string'."
            (require 'org-attach)
            (org-attach-reveal 'if-exists))))
        ((run-hook-with-args-until-success 'org-open-at-point-functions))
-       ((eq type 'timestamp) (org-follow-timestamp-link))
+       ((memq type '(planning timestamp)) (org-follow-timestamp-link))
        ;; On tags within a headline or an inlinetask.
        ((save-excursion (beginning-of-line)
                         (and (looking-at org-complex-heading-regexp)