Procházet zdrojové kódy

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.
Bastien Guerry před 12 roky
rodič
revize
06ae4f07a1
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      lisp/org.el

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