diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-01-19 21:23:02 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-01-19 21:23:02 -0500 |
commit | 4874f8e5de7d0f841acef32d909db9060600194e (patch) | |
tree | 9436ea69b55f6309b29e0075248702e1660e8b4d | |
parent | 818f80db9e4898ecd64d90299194f61751ab9080 (diff) | |
download | bog-4874f8e5de7d0f841acef32d909db9060600194e.tar.gz |
Use erase-buffer instead of delete-region
-rw-r--r-- | bog.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |