From de4669d3b75f61c153a38242b1b32f79104a7d36 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 23 Feb 2013 16:26:27 +0100 Subject: [PATCH] ox-publish: No error when resolving external fuzzy links outside publishing * lisp/ox-publish.el (org-publish-resolve-external-fuzzy-link): No error when resolving external fuzzy links outside publishing. Though search option for these links will not be resolved. --- lisp/ox-publish.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 370825d39..2a8916762 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -1051,10 +1051,11 @@ Return value is a list of numbers, or nil. This function allows to resolve external fuzzy links like: [[file.org::*fuzzy][description]" - (cdr (assoc (org-split-string - (if (eq (aref fuzzy 0) ?*) (substring fuzzy 1) fuzzy)) - (org-publish-cache-get-file-property - (expand-file-name file) :numbering nil t)))) + (when org-publish-cache + (cdr (assoc (org-split-string + (if (eq (aref fuzzy 0) ?*) (substring fuzzy 1) fuzzy)) + (org-publish-cache-get-file-property + (expand-file-name file) :numbering nil t)))))