ox-publish: signal org-link-broken for broken fuzzy links
* lisp/ox-publish.el (org-publish-resolve-external-link): Signal `org-link-broken' when `org-link-search' fails to resolve a link. Without this change, a broken fuzzy link will always abort the export even when `org-export-with-broken-links' is non-nil.
This commit is contained in:
parent
d215c3a8c0
commit
d1c9e1de68
|
@ -1171,7 +1171,10 @@ references with `org-export-get-reference'."
|
|||
(with-current-buffer (find-file-noselect file)
|
||||
(org-with-point-at 1
|
||||
(let ((org-link-search-must-match-exact-headline t))
|
||||
(org-link-search search nil t))
|
||||
(condition-case err
|
||||
(org-link-search search nil t)
|
||||
(error
|
||||
(signal 'org-link-broken (cdr err)))))
|
||||
(and (org-at-heading-p)
|
||||
(org-string-nw-p (org-entry-get (point) "CUSTOM_ID"))))))))
|
||||
((not org-publish-cache)
|
||||
|
|
Loading…
Reference in New Issue