1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-01-29 20:35:02 +00:00

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.
This commit is contained in:
Nicolas Goaziou 2013-02-23 16:26:27 +01:00
parent 43c8aa02cc
commit de4669d3b7

View File

@ -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)))))