Skip to content

Commit

Permalink
Fix bug in emacs-citar#482.
Browse files Browse the repository at this point in the history
`citar-file--make-file-predicate` should be `citar-file--has-file`.
  • Loading branch information
roshanshariff authored and bdarcus committed Dec 12, 2021
1 parent bd49a91 commit 7740300
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions citar.el
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ non-nil when the entry has associated files, either in
Note: for performance reasons, this function should be called
once per command; the function it returns can be called
repeatedly."
(citar-file--make-file-predicate citar-library-paths
citar-file-extensions
citar-file-variable))
(citar-file--has-file citar-library-paths
citar-file-extensions
citar-file-variable))

(defun citar-has-note ()
"Return predicate testing whether entry has associated notes.
Expand All @@ -548,8 +548,8 @@ non-nil when the entry has associated notes in `citar-notes-paths`.
Note: for performance reasons, this function should be called
once per command; the function it returns can be called
repeatedly."
(citar-file--make-file-predicate citar-notes-paths
citar-file-note-extensions))
(citar-file--has-file citar-notes-paths
citar-file-note-extensions))

(defun citar--format-candidates (bib-files &optional context)
"Format candidates from BIB-FILES, with optional hidden CONTEXT metadata.
Expand Down

0 comments on commit 7740300

Please sign in to comment.