From fab789a8758570d838dde74305fedeed106439b7 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 12 Feb 2014 00:53:49 -0500 Subject: 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. --- bog.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bog.el') diff --git a/bog.el b/bog.el index 5441fd8..0c6befd 100644 --- a/bog.el +++ b/bog.el @@ -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) -- cgit v1.2.3