From f444c8cd679dc488b1016074f1eb25c7c1b6f1af Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 16 Dec 2009 19:36:56 +0100 Subject: [PATCH] Export: Do not check for protectedness at the end of a line --- lisp/ChangeLog | 3 +++ lisp/org-exp.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b62837ac0..2681b6464 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-12-16 Carsten Dominik + * org-exp.el (org-export-target-internal-links): Check for + protectedness earlier in the string. + * org-agenda.el (org-agenda-highlight-todo): Match TODO keywords case sensitively. diff --git a/lisp/org-exp.el b/lisp/org-exp.el index cd129b91a..0ee82e485 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1508,7 +1508,7 @@ This function also handles the id links, if they have a match in the current file." (goto-char (point-min)) (while (re-search-forward org-bracket-link-regexp nil t) - (org-if-unprotected + (org-if-unprotected-at (match-beginning 1) (let* ((md (match-data)) (desc (match-end 2)) (link (org-link-unescape (match-string 1))) -- 2.11.4.GIT