Arash Esbati <[email protected]> writes: > Al Haji-Ali <[email protected]> writes: > >> We can do the following: >> >> - Add a setter code to `preview-at-point-placement` to require buframe >> and issue an error if it's not available. >> - To deal with the case of the variable being set directly (without >> calling the setter code), we can issue an error and override the value >> of preview-at-point-placement back to its default value to avoid >> further errors. >> >> What do you think? > > I think I have a preference for the latter; user could then still use > `setq' and not `setopt'. > > Best, Arash >
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. _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
