branch: externals/tempel
commit 01e74303430b2d2756a41c318e20fc5bfc7a95c1
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
Add docstrings
---
tempel.el | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/tempel.el b/tempel.el
index 56a275a83e..3d091762dc 100644
--- a/tempel.el
+++ b/tempel.el
@@ -63,10 +63,19 @@
(defface tempel-form '((t :inherit region))
"Face used for evaluated forms.")
-(defvar tempel--templates nil)
-(defvar tempel--modified nil)
-(defvar tempel--history nil)
-(defvar-local tempel--active nil)
+(defvar tempel--templates nil
+ "Templates loaded from the `tempel-file'.")
+
+(defvar tempel--modified nil
+ "Modification time of `tempel-file' at the last load.")
+
+(defvar tempel--history nil
+ "Completion history used by `tempel-insert'.")
+
+(defvar-local tempel--active nil
+ "List of active templates.
+Each template state is a pair, where the car is a list of overlays and
+the cdr is an alist of variable bindings.")
(defvar tempel-map
(let ((map (make-sparse-keymap)))