From d122c2b5b41cd0df6431683242e0fa0f4303d863 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 1 Dec 2022 17:26:01 -0500 Subject: [PATCH] ox-md: Tweak a defcustom type for compatibility with Emacs<28 * lisp/ox-md.el (org-md-toplevel-hlevel): Change the type from natnum to integer, which is less accurate but compatible with all Emacs versions that Org supports. This is a follow-up to the recent port of 4b2f5425d. --- lisp/ox-md.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ox-md.el b/lisp/ox-md.el index 01e0aa049..dcd95e987 100644 --- a/lisp/ox-md.el +++ b/lisp/ox-md.el @@ -87,7 +87,8 @@ included into another document or application that reserves top-level headings for its own use." :group 'org-export-md :package-version '(Org . "9.6") - :type 'natnum) + ;; Avoid `natnum' because that's not available until Emacs 28.1. + :type 'integer)