summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-09-27 23:29:01 +0200
committerBastien Guerry <bzg@altern.org>2012-09-27 23:29:01 +0200
commit5501df119990521e8acb6954c38efc855447db39 (patch)
tree360f31033ad406693a5ec2a3774fd9a23c3600be
parent453be213cec00167c043d7db2dae5cc9c7503f32 (diff)
downloadorg-mode-5501df119990521e8acb6954c38efc855447db39.tar.gz
org.el (org-open-at-point): Don't follow timestamp within bracket links
* org.el (org-open-at-point): Don't follow timestamp within bracket links.
-rw-r--r--lisp/org.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index ee316c4..4659931 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9778,7 +9778,9 @@ application the system uses for this file type."
(or (org-offer-links-in-entry arg)
(progn (require 'org-attach) (org-attach-reveal 'if-exists))))
((run-hook-with-args-until-success 'org-open-at-point-functions))
- ((org-at-timestamp-p t) (org-follow-timestamp-link))
+ ((and (org-at-timestamp-p t)
+ (not (org-in-regexp org-bracket-link-regexp)))
+ (org-follow-timestamp-link))
((and (or (org-footnote-at-reference-p) (org-footnote-at-definition-p))
(not (org-in-regexp org-bracket-link-regexp)))
(org-footnote-action))