Skip to content

Commit

Permalink
remove lambda from extract-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarcus committed Sep 14, 2021
1 parent 4947f64 commit 276af4c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bibtex-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,10 @@ If FORCE-REBUILD-CACHE is t, force reload the cache."
(when field
(concat base-url (bibtex-actions-get-value field entry)))))

(defun bibtex-actions--extract-keys (keys-entries)
"Extract list of keys from KEYS-ENTRIES alist."
(seq-map #'car keys-entries))

;;;###autoload
(defun bibtex-actions-insert-preset ()
"Prompt for and insert a predefined search."
Expand Down Expand Up @@ -760,12 +764,5 @@ With prefix, rebuild the cache before offering candidates."
;; FIX how?
(bibtex-actions-run-default-action keys)))

(defun bibtex-actions--extract-keys (keys-entries)
"Extract list of keys from KEYS-ENTRIES alist."
(seq-map
(lambda (key-entry)
(car key-entry))
keys-entries))

(provide 'bibtex-actions)
;;; bibtex-actions.el ends here

0 comments on commit 276af4c

Please sign in to comment.