By Claude:
translate_file, compile_file and compfile stop with a Lisp error and write no Lisp file when the code assigns or binds one of many option variables, such as ratfac, ratvars, listconstvars or fpprintprec. A file a.mac with this one line is enough:
f() := (ratfac : false, 1)$
(%i1) translate_file("a.mac");
translator: begin translating .../a.mac.
Maxima encountered a Lisp error:
#<function (lambda (name val)
:in
".../src/globals.lisp") {536FD0CB}> cannot be printed readably.
With listarith in place of ratfac it works, and translate(f) and compile(f) in the session work too. In share/, translate_file fails this way for simplification/functs.mac, simplification/facexp.mac and vector/vect.mac. Maxima 5.46.0 translates all of these; 5.47.0, 5.48.1, 5.49.0 and master fail. Seen with SBCL.