From b93aa7055144c07abffb8b4adb26f31e3294d6d9 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 3 Feb 2011 17:59:56 +0100 Subject: [PATCH] Fix bug in org-export-target-internal-links. * org-exp.el (org-export-target-internal-links): Locally turn on `org-link-search-must-match-exact-headline' to match exact internal links. Thanks to Jambunathan K for spotting this. --- lisp/org-exp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index 0af56fe0d..96aded35e 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -1306,7 +1306,8 @@ the current file." (goto-char (point-min)) (while (re-search-forward org-bracket-link-regexp nil t) (org-if-unprotected-at (1+ (match-beginning 0)) - (let* ((md (match-data)) + (let* ((org-link-search-must-match-exact-headline t) + (md (match-data)) (desc (match-end 2)) (link (org-link-unescape (match-string 1))) (slink (org-solidify-link-text link)) -- 2.11.4.GIT