Well, rm -rf .emacs.d/straight/ followed by repulling and rebuilding seemed to fix things. I am surprised that I still saw the same problem with emacs -Q but my simple-config.el did use straight. Perhaps straight in simple-config.el just ended up using the same build files that were corrupted... Anyways I guess mark this one frustrating but solved. Justin Ihor Radchenko writes: > Justin Silverman writes: > >> I am having a problem and getting a wrong-type-argument error when >> trying to run `org-beamer-export-to-pdf' on the attached file >> `debug.org' (see backtrace below). The problem also occurs when >> running `org-latex-export-to-pdf'. >> ... >> Backtrace: >> >> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >> jit-lock--run-functions(1218 1284) >> jit-lock-fontify-now(1218 #>) >> #(1218 #>) >> polymode-inhibit-during-initialization(# 1218 #>) > > The backtrace shows that you are using polymode. Does the problem > persist without polymode?