dandavison / xenops

An editing environment for LaTeX mathematical documents
MIT License
228 stars 14 forks source link

xenops-render doesn't work in modes derived from org #61

Open xaltsc opened 2 years ago

xaltsc commented 2 years ago

For some reason, xenops-render refuses to work in modes derived from org. The error is:

Error running timer ‘funcall’: (wrong-type-argument stringp nil)

Minimal config to reproduce the issue:

(require 'org)
(require 'xenops)
(define-derived-mode org-derived-mode org-mode "org derived")

Then visit an org file with latex inside, switch to org-derived-mode, run xenops-render.

xaltsc commented 2 years ago

I've tried to change the eq tests in xenops-math and xenops-math-latex to derived-mode-p 'org-mode without effect