Fix bug with radio targets.

The variable containing the regexp for radio target matches was not
buffer-local, causing all sorts of problems.
This commit is contained in:
Carsten Dominik 2008-12-05 08:16:55 +01:00
parent db782da26b
commit 4298df987b
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-12-05 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-target-link-regexp): Make buffer-local.
2008-12-04 Carsten Dominik <carsten.dominik@gmail.com>
* org-faces.el (org-set-tag-faces): New function.

View File

@ -3721,6 +3721,7 @@ will be prompted for."
(defvar org-target-link-regexp nil
"Regular expression matching radio targets in plain text.")
(make-variable-buffer-local 'org-target-link-regexp)
(defvar org-target-regexp "<<\\([^<>\n\r]+\\)>>"
"Regular expression matching a link target.")
(defvar org-radio-target-regexp "<<<\\([^<>\n\r]+\\)>>>"