Browse Source

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.
Bastien Guerry 12 years ago
parent
commit
5501df1199
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org.el

+ 3 - 1
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))