diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-02-12 00:53:49 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-02-12 01:05:45 -0500 |
commit | fab789a8758570d838dde74305fedeed106439b7 (patch) | |
tree | 09d67c1770dd465f7f18f697a49fa41716802745 /bog.el | |
parent | 3fd373e35aa56ec0034d7cc33d56d6bd76e423c3 (diff) | |
download | bog-fab789a8758570d838dde74305fedeed106439b7.tar.gz |
BUG: Fix logic in citekey selection
`bog-citekey-action' should not try to select a citekey from the note
context when ASK-FUNC returns non-nil.
Diffstat (limited to 'bog.el')
-rw-r--r-- | bog.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -162,9 +162,9 @@ from the text under point if it matches `bog-citekey-format' or using `bog-citekey-func'. ACTION will be called with the resulting citekey as an argument." - (let* ((citekey (and ask-citekey (funcall ask-func))) - (citekey (or (bog-citekey-at-point) - (funcall bog-citekey-func)))) + (let ((citekey (or (and ask-citekey (funcall ask-func)) + (bog-citekey-at-point) + (funcall bog-citekey-func)))) (funcall action citekey))) (defun bog-select-citekey (citekeys) |