ox: Preserve compatibility for Emacs 24.3

This commit is contained in:
Nicolas Goaziou 2015-10-18 11:02:51 +02:00
parent af4e118870
commit c2eeaca0ca
1 changed files with 4 additions and 1 deletions

View File

@ -4044,7 +4044,10 @@ meant to be translated with `org-export-data' or alike."
;; `org-export-data' for further processing, depending on
;; `org-export-with-broken-links' value.
(define-error 'org-link-broken "Unable to resolve link; aborting")
(if (version< emacs-version "24.4") ; `define-error' is 24.4+.
(put 'org-link-broken 'error-conditions
(copy-sequence (cons 'org-link-broken (get 'error 'error-conditions))))
(define-error 'org-link-broken "Unable to resolve link; aborting"))
(defun org-export-custom-protocol-maybe (link desc backend)
"Try exporting LINK with a dedicated function.