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-preload-bib-files: autoload safety predicate #297

Closed Hugo-Heagren closed 2 months ago

Hugo-Heagren commented 2 months ago

This is an improvement on #296.

Original commit message:

This is useful because the variable definition, including the :safe:' declaration, is only loaded as the package is loaded. If the user sets the variable locally (e.g. inLocal Variables') and then visits that file in a new session before opening ebib for the first time, the safe predicate won't be recognised and the user is prompted for whether to use the new value. Using an autoload is the solution to this suggested in the elisp manual `(elisp) File Local Variables'.