From cb6e51f5ba25b0d6a108a10ee5c4754fc48d0e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= Date: Fri, 8 Oct 2021 19:47:38 +0300 Subject: [PATCH 39/76] Deprecate org-html-format-headline-default-function. --- lisp/org-compat.el | 2 ++ lisp/ox-html.el | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 86a50e473..0f412b6a8 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -378,6 +378,8 @@ Counting starts at 1." 'org-fontify-done-heading "9.5") (define-obsolete-variable-alias 'org-fontify-todo-headline 'org-fontify-todo-heading "9.5") +(define-obsolete-function-alias 'org-html-format-headline-default-function + 'org-html-format-heading-default-function "9.5") (define-obsolete-face-alias 'org-headline-done 'org-heading-done "9.5") (define-obsolete-face-alias 'org-headline-todo 'org-heading-todo "9.5") diff --git a/lisp/ox-html.el b/lisp/ox-html.el index cd25d0557..4d1694a23 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -703,7 +703,7 @@ document title." :type 'integer) (defcustom org-html-format-headline-function - 'org-html-format-headline-default-function + 'org-html-format-heading-default-function "Function to format heading text. This function will be called with six arguments: @@ -2673,7 +2673,7 @@ holding contextual information." (concat (org-html-section first-content "" info) contents)) (org-html--container heading info))))))) -(defun org-html-format-headline-default-function +(defun org-html-format-heading-default-function (todo _todo-type priority text tags info) "Default format function for a heading. See `org-html-format-headline-function' for details." @@ -2736,7 +2736,7 @@ holding contextual information." "Default format function for inlinetasks. See `org-html-format-inlinetask-function' for details." (format "
\n%s%s\n%s
" - (org-html-format-headline-default-function + (org-html-format-heading-default-function todo todo-type priority text tags info) (org-html-close-tag "br" nil info) contents)) -- 2.33.0