summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-11-22 03:08:31 -0500
committerKyle Meyer <kyle@kyleam.com>2014-11-22 03:08:31 -0500
commitd6113ea3b19508feb3b9a7e7b6c22977f920a541 (patch)
tree9b095bf613b59a69197ac46378bd9931ff97e064
parentdc88b649bf84c26fb957e1f5092347a2f0a0a5af (diff)
downloadbog-d6113ea3b19508feb3b9a7e7b6c22977f920a541.tar.gz
Generate docstring for citekey selection functions
-rw-r--r--bog.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/bog.el b/bog.el
index 1891eec..5d20cfe 100644
--- a/bog.el
+++ b/bog.el
@@ -194,6 +194,10 @@ be called with no arguments. If CONTEXT-METHOD returns nil or if
NO-CONTEXT is non-nil, the user will be prompted with citekeys
gathered by COLLECTION-METHOD."
`(defun ,(intern (concat "bog-citekey-from-" name)) (no-context)
+ ,(format "Select citekey with `%s', falling back on `%s'.
+If NO-CONTEXT is non-nil, immediately fall back."
+ (symbol-name context-method)
+ (symbol-name collection-method))
(or (and no-context (bog-select-citekey (,collection-method)))
(,context-method)
(bog-select-citekey (,collection-method)))))