(void function nil) error in texfrag-document with pre-#336 versions of sx.el.
The pre-#336 version of sx.el does not have sx-question-mode-after-print-hook. It must use a function advice for sx-question-mode--print-question. But that cannot be applied buffer-locally.
Therefore, if one switches texfrag on in one buffer texfrag-sx-after-print is also called in other buffers where texfrag-mode is not properly setup. Especially texfrag-preview-region-function is nil.
(void function nil)
error intexfrag-document
with pre-#336 versions of sx.el.The pre-#336 version of sx.el does not have
sx-question-mode-after-print-hook
. It must use a function advice forsx-question-mode--print-question
. But that cannot be applied buffer-locally.Therefore, if one switches texfrag on in one buffer
texfrag-sx-after-print
is also called in other buffers where texfrag-mode is not properly setup. Especiallytexfrag-preview-region-function
is nil.