From 748dd4de1d0ca373f5510c0a4a1a29341c04ecb8 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Fri, 22 Dec 2017 22:14:13 -0500 Subject: [PATCH] Remove unnecessary defalias --- ox-hugo.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ox-hugo.el b/ox-hugo.el index 80fe4e3..15f18f9 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -885,11 +885,6 @@ contents according to the current headline." ;; {{ end }} "\n")))) -(defalias 'org-hugo--has-caption-p 'org-html--has-caption-p - "Non-nil when ELEMENT has a caption affiliated keyword. -This function is meant to be used as a predicate for -`org-export-get-ordinal'.") - (defun org-hugo--escape-hugo-shortcode (code lang) "Escape Hugo shortcodes if present in CODE string. @@ -1283,7 +1278,7 @@ and rewrite link paths to make blogging more seamless." (or (org-string-nw-p contents) (let ((number (org-export-get-ordinal destination info - nil #'org-hugo--has-caption-p))) + nil #'org-html--has-caption-p))) (cond ((not number) nil) ((atom number) (number-to-string number))