summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-17 01:05:19 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-17 01:54:39 -0500
commit16b8a782adace8044406308049e41c3f572acb91 (patch)
treee284707c04199a0f418716ba1a6c84fe8948c975
parent31c69ad222427851f85c8297bd6d8d1dd8863acf (diff)
downloadbog-16b8a782adace8044406308049e41c3f572acb91.tar.gz
Fix warnings during byte compilation
-rw-r--r--bog.el34
1 files changed, 19 insertions, 15 deletions
diff --git a/bog.el b/bog.el
index 317adf4..18b3e93 100644
--- a/bog.el
+++ b/bog.el
@@ -30,8 +30,11 @@
;;; Code:
+(require 'bibtex)
(require 'dash)
+(require 'dired)
(require 'org)
+(require 'org-agenda)
(eval-when-compile
(require 'cl))
@@ -851,21 +854,22 @@ context fails.
If the citekey file prompt is slow to appear, consider enabling
`bog-use-citekey-cache'."
(interactive "P")
- (-if-let* ((orig-buf (current-buffer))
- (citekey (bog-citekey-from-point-or-all-headings no-context))
- (marker (bog--find-citekey-heading-in-notes citekey)))
- (with-current-buffer (marker-buffer marker)
- (org-with-wide-buffer
- (goto-char marker)
- (let ((org-indirect-buffer-display
- (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))
- (setq bog--last-indirect-buffer org-last-indirect-buffer))))
- (message "Heading for %s not found in notes" citekey)))
+ (let* ((orig-buf (current-buffer))
+ (citekey (bog-citekey-from-point-or-all-headings no-context))
+ (marker (bog--find-citekey-heading-in-notes citekey)))
+ (if marker
+ (with-current-buffer (marker-buffer marker)
+ (org-with-wide-buffer
+ (goto-char marker)
+ (let ((org-indirect-buffer-display
+ (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))
+ (setq bog--last-indirect-buffer org-last-indirect-buffer))))
+ (message "Heading for %s not found in notes" citekey))))
(defun bog-refile ()
"Refile heading within notes.