summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-03-06 01:23:55 -0500
committerKyle Meyer <kyle@kyleam.com>2016-03-06 01:23:55 -0500
commit2b6c49882e8724b9a2e365311e9812785386932d (patch)
treeb1963a670808935e76d984a16eed97e9c0fa8377 /bog.el
parent3443b74c66f2a01b79c7322b3908ae797b6bda1b (diff)
downloadbog-2b6c49882e8724b9a2e365311e9812785386932d.tar.gz
bog-citekey-tree-to-indirect-buffer: Cosmetics
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el7
1 files changed, 4 insertions, 3 deletions
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))))