summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-10-15 02:25:27 -0400
committerKyle Meyer <kyle@kyleam.com>2014-10-15 02:28:05 -0400
commite26c39c06fc5085ba48d3e5b0df5ceb64ee5f02d (patch)
tree05c4de39866e5d9833d7064484e2f136e6ac6424 /bog.el
parent7beb3da254b9fe6462e78384597828fea3c09571 (diff)
downloadbog-e26c39c06fc5085ba48d3e5b0df5ceb64ee5f02d.tar.gz
bog-selection-method: Add docstring
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/bog.el b/bog.el
index 89c777f..25f89ba 100644
--- a/bog.el
+++ b/bog.el
@@ -182,6 +182,11 @@ level to operate on."
;;; Citekey methods
(defmacro bog-selection-method (name context-method collection-method)
+ "Create citekey selection function.
+Function will be named bog-citekey-from-NAME and will take one
+argument (NO-CONTEXT). If NO-CONTEXT is nil, CONTEXT-METHOD will
+be called with no arguments. If
+"
`(defun ,(intern (concat "bog-citekey-from-" name)) (no-context)
(or (and no-context (bog-select-citekey (,collection-method)))
(,context-method)