From ac381e1a33e263552a7e219d100d336146b18fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20A=2E=20Gomes?= Date: Fri, 8 Oct 2021 23:23:54 +0300 Subject: [PATCH 48/76] Deprecate org-koma-letter-headline-is-opening-maybe. --- lisp/org-compat.el | 2 ++ lisp/ox-koma-letter.el | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index c881fc787..45c15aadb 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -394,6 +394,8 @@ Counting starts at 1." 'org-indent-notify-modified-heading "9.5") (define-obsolete-function-alias 'org-koma-letter-headline 'org-koma-letter-heading "9.5") +(define-obsolete-variable-alias 'org-koma-letter-headline-is-opening-maybe + 'org-koma-letter-heading-is-opening-maybe "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-koma-letter.el b/lisp/ox-koma-letter.el index 9a87366f2..2499a65cd 100644 --- a/lisp/ox-koma-letter.el +++ b/lisp/ox-koma-letter.el @@ -265,7 +265,7 @@ This option can also be set with the OPENING keyword. Moreover, when: (1) Either `org-koma-letter-prefer-special-headings' is non-nil or the CLOSING keyword is empty - (2) `org-koma-letter-headline-is-opening-maybe' is non-nil; + (2) `org-koma-letter-heading-is-opening-maybe' is non-nil; (3) the letter contains a heading without a special tag (e.g. \"to\" or \"ps\"); then the opening will be implicitly set as the untagged heading title." @@ -277,7 +277,7 @@ This option can also be set with the CLOSING keyword. Moreover, when: (1) Either `org-koma-letter-prefer-special-headings' is non-nil or the CLOSING keyword is empty; - (2) `org-koma-letter-headline-is-opening-maybe' is non-nil; + (2) `org-koma-letter-heading-is-opening-maybe' is non-nil; (3) the letter contains a heading with the special tag \"closing\"; then the opening will be set as the title of the closing special @@ -290,7 +290,7 @@ This option can also be set with the SIGNATURE keyword. Moreover, when: (1) Either `org-koma-letter-prefer-special-headings' is non-nil or there is no CLOSING keyword or the CLOSING keyword is empty; - (2) `org-koma-letter-headline-is-opening-maybe' is non-nil; + (2) `org-koma-letter-heading-is-opening-maybe' is non-nil; (3) the letter contains a heading with the special tag \"closing\"; then the signature will be set as the content of the @@ -435,7 +435,7 @@ This option can also be set with the OPTIONS keyword, e.g.: The value must be a member of `org-latex-classes'." :type 'string) -(defcustom org-koma-letter-headline-is-opening-maybe t +(defcustom org-koma-letter-heading-is-opening-maybe t "Non-nil means a heading may be used as an opening and closing. See also `org-koma-letter-opening' and `org-koma-letter-closing'." @@ -499,7 +499,7 @@ e.g. \"title-subject:t\"." (:with-place nil "place" org-koma-letter-use-place) (:with-subject nil "subject" org-koma-letter-subject-format) (:with-title-as-subject nil "title-subject" org-koma-letter-prefer-subject) - (:with-headline-opening nil nil org-koma-letter-headline-is-opening-maybe) + (:with-headline-opening nil nil org-koma-letter-heading-is-opening-maybe) ;; Special properties non-nil when a setting happened in buffer. ;; They are used to prioritize in-buffer settings over "lco" ;; files. See `org-koma-letter-template'. -- 2.33.0