On 2016-12-01 21:24, Stefan Monnier wrote: >> The discussion below seems to indicate that there's very little missing at >> the Lisp level to be able to implement `backtrace' in Lisp; is that right? > > Indeed, I think all the info needed is provided by backtrace-frame. The C implementation of backtrace-frame seems to be linear in the index of the requested frame, so a Lisp implementation of backtrace would be quadratic in the depth of the stack trace. Would a new function backtrace-frames that returns all frames at once be acceptable? Clément