joostkremers / ebib

A BibTeX database manager for Emacs.
https://joostkremers.github.io/ebib/
BSD 3-Clause "New" or "Revised" License
272 stars 37 forks source link

ebib--get-field-highlighted: replace `object-intervals' #276

Closed Hugo-Heagren closed 1 year ago

Hugo-Heagren commented 1 year ago

Fix #275.

This is a slightly hacky way of providing compatibility with versions of Emacs without object-intervals. I've done this (rather than properly refactoring the code) because I think that in a few years, when `object-intervals is part of the emacs most people are using, it would be a good idea to go back (the operation is relatively slow and the current code is ugly, so going to a native solution which does exactly what we need, written in C, would be perfect).

joostkremers commented 1 year ago

@Hugo-Heagren Thanks, BTW, for providing such a quick fix!