summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-11-05 21:54:12 +0100
committerBastien Guerry <bzg@altern.org>2013-11-05 21:54:12 +0100
commit06ae4f07a1c5cfd4f89a96b74234751c7e9453c5 (patch)
treeafa22dd63c67cc20042531dabcfdb32d9d37b716
parent8ae106907af2b43f6b5f8cd1bb8753d28bf56afc (diff)
downloadorg-mode-06ae4f07a1c5cfd4f89a96b74234751c7e9453c5.tar.gz
org.el (org-insert-link): Don't remove brackets when they belong to a timestamp in a headline
* org.el (org-insert-link): Don't remove brackets when they belong to a timestamp in a headline. Thanks to David Belohrad for spotting this.
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 6ff655b..7b68ba1 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10013,7 +10013,8 @@ Use TAB to complete link prefixes, then RET for type-specific completion support
(setq org-stored-links (delq (assoc link org-stored-links)
org-stored-links)))
- (if (string-match org-plain-link-re link)
+ (if (and (string-match org-plain-link-re link)
+ (not (string-match org-ts-regexp link)))
;; URL-like link, normalize the use of angular brackets.
(setq link (org-remove-angle-brackets link)))