summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-19 21:23:02 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-19 21:23:02 -0500
commit4874f8e5de7d0f841acef32d909db9060600194e (patch)
tree9436ea69b55f6309b29e0075248702e1660e8b4d /bog.el
parent818f80db9e4898ecd64d90299194f61751ab9080 (diff)
downloadbog-4874f8e5de7d0f841acef32d909db9060600194e.tar.gz
Use erase-buffer instead of delete-region
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/bog.el b/bog.el
index 70e9aae..79c1e4a 100644
--- a/bog.el
+++ b/bog.el
@@ -373,7 +373,7 @@ With prefix FILE, include only orphan citekeys from that file."
(heading-cks (bog-all-heading-citekeys))
cks)
(with-current-buffer (get-buffer-create "*Bog orphan citekeys*")
- (delete-region (point-min) (point-max))
+ (erase-buffer)
(insert "\n")
(-each files
(lambda (f)
@@ -599,7 +599,7 @@ one entry per BibTeX file."
(-map #'bog-citekey-as-bib
(-distinct (--sort (string-lessp it other) citekeys))))
(with-current-buffer (get-buffer-create bib-buffer-name)
- (delete-region (point-min) (point-max))
+ (erase-buffer)
(--each bib-files
(cond
((file-exists-p it)