diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2018-01-12 17:55:56 +0000 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2018-01-12 17:55:56 +0000 |
commit | a7d1289dd7d9ef0b8dee1632533fbf16930f50d5 (patch) | |
tree | 3f0a809181353a2a4aea0324db7221df37975b8b | |
parent | da8e863c8997239706ee89a3150e13142d5bb233 (diff) | |
download | bog-a7d1289dd7d9ef0b8dee1632533fbf16930f50d5.tar.gz |
Minor optimisations
-rw-r--r-- | bog.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -747,7 +747,7 @@ Generate a file name with the form "Return a list of citekeys for files in `bog-file-directory'." (bog--with-citekey-cache 'files (bog--maybe-sort - (delq nil (delete-dups (mapcar #'bog-file-citekey + (delete-dups (delq nil (mapcar #'bog-file-citekey (bog-all-citekey-files))))))) (defun bog-file-citekey (file) @@ -978,7 +978,7 @@ instead of citekeys from file names in `bog-bib-directory'." (goto-char (point-min)) (org-mode) (pop-to-buffer (current-buffer))) - (let ((old-buf (get-buffer-create orphan-bufname))) + (let ((old-buf (get-buffer orphan-bufname))) (when old-buf (kill-buffer old-buf))) (message "No orphans found")))) |