Skip to content

Commit

Permalink
(bibtex-completion-get-entry1): Position point correctly.
Browse files Browse the repository at this point in the history
Since parsebib 6.0, `parsebib-read-entry` expects point to be before the
entry to be read.

Also remove the let-binding for `entry-type`, since it's no longer needed.
  • Loading branch information
Joost Kremers committed Nov 15, 2024
1 parent 0c49950 commit 06261ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bibtex-completion.el
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ Fields from crossreferenced entries are appended to the requested entry."
"\\)[[:space:]]*[\(\{][[:space:]]*"
(regexp-quote entry-key) "[[:space:]]*,")
nil t)
(let ((entry-type (match-string 1)))
(progn
(goto-char (match-beginning 0))
(reverse (bibtex-completion-prepare-entry
(parsebib-read-entry nil bibtex-completion-string-hash-table) nil do-not-find-pdf)))
(progn
Expand Down

0 comments on commit 06261ee

Please sign in to comment.