branch: externals/tempel
commit 9a93580c6aef88fc5267d6df13c9331eb7021081
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Make sure that named variables are initialized to non-nil
    
    Fix #193
---
 tempel.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tempel.el b/tempel.el
index 7e81d3c08a..0752b1d249 100644
--- a/tempel.el
+++ b/tempel.el
@@ -324,8 +324,8 @@ Return the added field."
     (push ov (cdar st))
     (when name
       (overlay-put ov 'tempel--name name)
-      (setq init (or init (alist-get name (cdr st))))
-      (setf (alist-get name (cdr st)) init))
+      (setf init (or init (alist-get name (cdr st) ""))
+            (alist-get name (cdr st)) init))
     (when (and init (not (equal init "")))
       (insert init)
       (move-overlay ov (overlay-start ov) (point)))

Reply via email to