Arash Esbati <[email protected]> writes: > "Paul D. Nelson" <[email protected]> writes: > >> How about: >> >> - (when (require 'buframe nil t) ...) in preview--update-buframe >> >> - A variable watcher that, when 'preview-at-point-placement' is changed >> to 'buframe, tries to require 'buframe and signals a user-error on >> failure. >> >> This would explain the problem without rewriting any user options. > > (defun preview--update-buframe > (if (and (eq preview-at-point-placement 'buframe) > (not (locate-library "buframe"))) > (error "%s" "Couldn't find the buframe library") > (require 'buframe) > ...)) > > ?
Here I worry about repeated failures in a hot execution path (echoing Al's earlier comment). Calling (require ...) is cheap once buframe is loaded, but if buframe is nowhere to be found, then I don't think we want 'preview--update-buframe' to repeatedly signal an error, right? _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
