From 05b0a237fa5c8a1da9551618ff8f241bc8638d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= Date: Sat, 9 Oct 2021 16:20:51 +0300 Subject: [PATCH 50/76] Deprecate org-latex-format-headline-function. --- lisp/org-compat.el | 2 ++ lisp/ox-latex.el | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index a8aaa67d9..4038deb49 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -398,6 +398,8 @@ Counting starts at 1." 'org-koma-letter-heading-is-opening-maybe "9.5") (define-obsolete-function-alias 'org-latex-format-headline-default-function 'org-latex-format-heading-default-function "9.5") +(define-obsolete-variable-alias 'org-latex-format-headline-function + 'org-latex-format-heading-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-latex.el b/lisp/ox-latex.el index fb5205053..21d600672 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -127,7 +127,7 @@ (:latex-footnote-defined-format nil nil org-latex-footnote-defined-format) (:latex-footnote-separator nil nil org-latex-footnote-separator) (:latex-format-drawer-function nil nil org-latex-format-drawer-function) - (:latex-format-headline-function nil nil org-latex-format-headline-function) + (:latex-format-headline-function nil nil org-latex-format-heading-function) (:latex-format-inlinetask-function nil nil org-latex-format-inlinetask-function) (:latex-hyperref-template nil nil org-latex-hyperref-template t) (:latex-image-default-scale nil nil org-latex-image-default-scale) @@ -645,7 +645,7 @@ precedence over this variable." ;;;; Heading -(defcustom org-latex-format-headline-function +(defcustom org-latex-format-heading-function 'org-latex-format-heading-default-function "Function for formatting the heading's text. @@ -2085,7 +2085,7 @@ holding contextual information." (defun org-latex-format-heading-default-function (todo _todo-type priority text tags _info) "Default format function for a heading. -See `org-latex-format-headline-function' for details." +See `org-latex-format-heading-function' for details." (concat (and todo (format "{\\bfseries\\sffamily %s} " todo)) (and priority (format "\\framebox{\\#%c} " priority)) -- 2.33.0