From 2b6c49882e8724b9a2e365311e9812785386932d Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 6 Mar 2016 01:23:55 -0500 Subject: bog-citekey-tree-to-indirect-buffer: Cosmetics --- bog.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bog.el') diff --git a/bog.el b/bog.el index 41cc99d..d0aa2b7 100644 --- a/bog.el +++ b/bog.el @@ -1100,9 +1100,10 @@ If the citekey prompt is slow to appear, consider enabling the (if (and (not bog-keep-indirect) (eq bog--last-indirect-buffer orig-buf)) 'current-window - 'other-window)) - (last-buf-p (not (buffer-live-p bog--last-indirect-buffer)))) - (org-tree-to-indirect-buffer (or bog-keep-indirect last-buf-p)) + 'other-window))) + (org-tree-to-indirect-buffer + (or bog-keep-indirect + (not (buffer-live-p bog--last-indirect-buffer)))) (setq bog--last-indirect-buffer org-last-indirect-buffer)))) (message "Heading for %s not found in notes" citekey)))) -- cgit v1.2.3