summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-05-01 21:54:06 -0400
committerKyle Meyer <kyle@kyleam.com>2014-05-01 21:54:06 -0400
commit82d2c01e913434cc95a3750259e3ed250e17d398 (patch)
tree053dc908341e3f0cd2ae244ce6acac2666e4391e
parente2a8724d9ced7f15559481adbaf4381e51d7ce25 (diff)
downloadbog-82d2c01e913434cc95a3750259e3ed250e17d398.tar.gz
Use find-buffer-visiting to check if buffer open
-rw-r--r--bog.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/bog.el b/bog.el
index 3aab863..b8ed18c 100644
--- a/bog.el
+++ b/bog.el
@@ -432,7 +432,7 @@ one entry per BibTeX file."
(bog-prepare-bib-file it t bog-bib-directory))))
(defun bog-prepare-bib-file (file &optional new-key new-directory)
- (let ((was-open (get-file-buffer file))
+ (let ((was-open (find-buffer-visiting file))
(buffer (find-file-noselect file)))
(with-current-buffer buffer
(save-excursion