Function: org--check-org-structure-template-alist

org--check-org-structure-template-alist is a byte-compiled function defined in org.el.gz.

Signature

(org--check-org-structure-template-alist &optional CHECKLIST)

Documentation

Check whether org-structure-template-alist is set up correctly.

In particular, check if the Org 9.2 format is used as opposed to previous format.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org--check-org-structure-template-alist (&optional checklist)
  "Check whether `org-structure-template-alist' is set up correctly.
In particular, check if the Org 9.2 format is used as opposed to
previous format."
  (let ((elm (cl-remove-if-not (lambda (x) (listp (cdr x)))
			       (or (symbol-value checklist)
				   org-structure-template-alist))))
    (when elm
      (org-display-warning
       (format "
Please update the entries of `%s'.

In Org 9.2 the format was changed from something like

    (\"s\" \"#+BEGIN_SRC ?\\n#+END_SRC\")

to something like

    (\"s\" . \"src\")

Please refer to the documentation of `org-structure-template-alist'.

The following entries must be updated:

%s"
	       (or checklist 'org-structure-template-alist)
	       (pp-to-string elm))))))