summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-09 22:25:20 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-09 22:25:20 -0500
commit9c7b5d1c93f1634b82ed5e8ecfb50dd6b16e2247 (patch)
treeb0c926e8e027b0082e0448b0afa1bb35278f2f51
parentc9279118186fbcf1caa28baf12c7be8f922854e1 (diff)
downloadbog-9c7b5d1c93f1634b82ed5e8ecfb50dd6b16e2247.tar.gz
bog-citekey-tree-to-indirect-buffer: Widen buffer
-rw-r--r--bog.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/bog.el b/bog.el
index 877814e..944d9b0 100644
--- a/bog.el
+++ b/bog.el
@@ -838,10 +838,9 @@ If the citekey file prompt is slow to appear, consider enabling
(marker (bog--find-citekey-heading-in-notes citekey)))
(if marker
(with-current-buffer (marker-buffer marker)
- (save-excursion
- (save-restriction
- (goto-char marker)
- (org-tree-to-indirect-buffer))))
+ (org-with-wide-buffer
+ (goto-char marker)
+ (org-tree-to-indirect-buffer)))
(message "Heading for %s not found in notes" citekey))))
(defun bog-refile ()