diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-12 11:49:50 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-01-12 11:49:50 +0100 |
commit | f9596eb47219794ae66c29bf4a091c478ccf5830 (patch) | |
tree | 872f63e350c9dd50b69fa7f80110f5b0a6c838d2 | |
parent | ae497f365ee0aaf5af57821a2faf4e19183970e4 (diff) | |
download | org-mode-f9596eb47219794ae66c29bf4a091c478ccf5830.tar.gz |
Fix following timestamp in planning lines
* lisp/org.el (org-open-at-point): Open calendar when called on
a timestamp in a planning line.
Reported-by: Bob Hepple <bob.hepple@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00158.html>
-rw-r--r-- | lisp/org.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index c6bd702..2c841ab 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10208,7 +10208,7 @@ a link." (org-element-context) '(clock comment comment-block footnote-definition footnote-reference headline inline-src-block inlinetask - keyword link node-property src-block timestamp) + keyword link node-property planning src-block timestamp) t)) (type (org-element-type context)) (value (org-element-property :value context))) @@ -10251,6 +10251,10 @@ a link." (= (org-element-property :post-affiliated context) (line-beginning-position))))))) (org-footnote-action)) + ;; On a planning line. Check if we are really on a timestamp. + ((and (eq type 'planning) + (org-in-regexp org-ts-regexp-both nil t)) + (org-follow-timestamp-link)) ;; On a clock line, make sure point is on the timestamp ;; before opening it. ((and (eq type 'clock) |