From 58a5bd067d317d779c95068932410e323deefd3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= Date: Fri, 8 Oct 2021 18:37:40 +0300 Subject: [PATCH 26/76] Deprecate org-export-filter-headline-functions. --- lisp/org-compat.el | 2 ++ lisp/ox.el | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 02370b3fb..f8725cf39 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -358,6 +358,8 @@ Counting starts at 1." 'org-element-heading-parser "9.5") (define-obsolete-function-alias 'org-export-collect-headlines 'org-export-collect-headings "9.5") +(define-obsolete-variable-alias 'org-export-filter-headline-functions + 'org-export-filter-heading-functions "9.5") (defun org-in-fixed-width-region-p () "Non-nil if point in a fixed-width region." diff --git a/lisp/ox.el b/lisp/ox.el index b9863d7e5..1c9bfdc2c 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -195,7 +195,7 @@ Properties redefined there have precedence over these.") (:filter-fixed-width . org-export-filter-fixed-width-functions) (:filter-footnote-definition . org-export-filter-footnote-definition-functions) (:filter-footnote-reference . org-export-filter-footnote-reference-functions) - (:filter-headline . org-export-filter-headline-functions) + (:filter-headline . org-export-filter-heading-functions) (:filter-horizontal-rule . org-export-filter-horizontal-rule-functions) (:filter-inline-babel-call . org-export-filter-inline-babel-call-functions) (:filter-inline-src-block . org-export-filter-inline-src-block-functions) @@ -2195,7 +2195,7 @@ Each filter is called with three arguments: the transcoded data, as a string, the back-end, as a symbol, and the communication channel, as a plist. It must return a string or nil.") -(defvar org-export-filter-headline-functions nil +(defvar org-export-filter-heading-functions nil "List of functions applied to a transcoded heading. Each filter is called with three arguments: the transcoded data, as a string, the back-end, as a symbol, and the communication -- 2.33.0