diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-05-01 21:54:06 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-05-01 21:54:06 -0400 |
commit | 82d2c01e913434cc95a3750259e3ed250e17d398 (patch) | |
tree | 053dc908341e3f0cd2ae244ce6acac2666e4391e /bog.el | |
parent | e2a8724d9ced7f15559481adbaf4381e51d7ce25 (diff) | |
download | bog-82d2c01e913434cc95a3750259e3ed250e17d398.tar.gz |
Use find-buffer-visiting to check if buffer open
Diffstat (limited to 'bog.el')
-rw-r--r-- | bog.el | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |