>From 7ae2fd392aaa5f76f65f4c88a0b1286167d6732a Mon Sep 17 00:00:00 2001 From: Rasmus
Date: Sun, 27 May 2018 14:44:49 +0200 Subject: [PATCH] Check format of org-structure-template-alist * org.el (org--check-org-structure-template-alist): New function yielding user-error if using old org-structure-template-alist format. (org--insert-structure-template-mks): * org-tempo.el (org-tempo-add-templates): Use new function --- lisp/org-tempo.el | 2 ++ lisp/org.el | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/lisp/org-tempo.el b/lisp/org-tempo.el index b9a554ff7..a651c7b37 100644 --- a/lisp/org-tempo.el +++ b/lisp/org-tempo.el @@ -102,6 +102,8 @@ Tempo templates will be added." Go through `org-structure-template-alist' and `org-tempo-keywords-alist' and update tempo templates." + (mapc 'org--check-org-structure-template-alist '(org-structure-template-alist + org-tempo-keywords-alist)) (let ((keys (org-tempo--keys))) ;; Check for duplicated snippet keys and warn if any are found. (when (> (length keys) (length (delete-dups keys))) diff --git a/lisp/org.el b/lisp/org.el index b05acd78a..c67e91489 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -11727,6 +11727,41 @@ block can be inserted by pressing TAB after the string \"