From 1afcf2c9aaf2c97cde0cbd94141eefe4d376166d Mon Sep 17 00:00:00 2001 From: Chunyang Xu Date: Sun, 28 May 2017 12:21:55 +0800 Subject: [PATCH] Exclude '[' and ']' in `org-plain-link-re' * lisp/org.el (org-make-link-regexps): Do it. TINYCHANGE --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index a7abc0e4f..8aa68b9cf 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5847,7 +5847,7 @@ This should be called after the variable `org-link-parameters' has changed." org-plain-link-re (concat "\\<" types-re ":" - "\\([^ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)") + "\\([^][ \t\n()<>]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\)") ;; "\\([^]\t\n\r<>() ]+[^]\t\n\r<>,.;() ]\\)") org-bracket-link-regexp "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]"