summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-29 00:59:56 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-29 00:59:56 -0500
commit862d3ddbb71a1968741933f16782924f696b70ea (patch)
tree7530c1cbf82702a6864c61f0253dddec3048652e
parent6d3a411272b554e76374c1dd7180b13caa4dde94 (diff)
downloadbog-862d3ddbb71a1968741933f16782924f696b70ea.tar.gz
bog-goto-citekey-heading-in-notes: Use pop-to-buffer
-rw-r--r--bog.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/bog.el b/bog.el
index ead8221..2ccaa32 100644
--- a/bog.el
+++ b/bog.el
@@ -789,7 +789,7 @@ buffer, the narrowing is removed."
(bog--find-citekey-heading-in-notes citekey))))
(if marker
(progn
- (switch-to-buffer (marker-buffer marker))
+ (pop-to-buffer (marker-buffer marker))
(when (or (< marker (point-min))
(> marker (point-max)))
(widen))