TobiasZawada / texfrag

Emacs package for previewing LaTeX fragments such as in doxygen comments.
GNU General Public License v3.0
68 stars 4 forks source link

void function error in texfrag-document with old version of sx.el #5

Closed TobiasZawada closed 6 years ago

TobiasZawada commented 6 years ago

(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.