diff options
author | Chunyang Xu <mail@xuchunyang.me> | 2017-05-28 12:21:55 +0800 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-05-28 09:39:29 +0200 |
commit | 1afcf2c9aaf2c97cde0cbd94141eefe4d376166d (patch) | |
tree | ecf5fece42ce7a4879c3ea1025bbee71933786d7 | |
parent | 75e9fdac6c4f9b1b433c5bbdc734e4afb6c8bc1d (diff) | |
download | org-mode-1afcf2c9aaf2c97cde0cbd94141eefe4d376166d.tar.gz |
Exclude '[' and ']' in `org-plain-link-re'
* lisp/org.el (org-make-link-regexps): Do it.
TINYCHANGE
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index a7abc0e..8aa68b9 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 "\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]" |