branch: externals/tempel commit 93c792aca66f8230a6ece6bfb53b2ec9918f2fc6 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
tempel-expand: Call tempel--save --- tempel.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tempel.el b/tempel.el index 7e1c96adb7..c3c6bc0156 100644 --- a/tempel.el +++ b/tempel.el @@ -678,6 +678,8 @@ If you want to select from a list of templates, use acts like a Capf, otherwise like an interactive completion command." (interactive (list t)) + (when interactive + (tempel--save)) (if-let ((templates (tempel--templates)) (bounds (tempel--prefix-bounds)) (name (buffer-substring-no-properties @@ -705,9 +707,9 @@ Capf, otherwise like an interactive completion command." (if interactive (let ((completion-at-point-functions (list #'tempel-complete)) completion-cycle-threshold) + (tempel--save) (when (and tempel-trigger-prefix (not (tempel--prefix-bounds))) (insert tempel-trigger-prefix)) - (tempel--save) (unless (completion-at-point) (user-error "tempel-complete: No matching templates"))) (let ((region (tempel--region)))