emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lisp-friendly backtraces [was: Lispy backtraces]


From: Clément Pit--Claudel
Subject: Lisp-friendly backtraces [was: Lispy backtraces]
Date: Mon, 5 Dec 2016 01:02:23 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1

On 2016-12-04 22:30, Eli Zaretskii wrote:
>>> So would it perhaps make sense to rename 'backtrace' into something
>>> like 'backtrace--internal', and make it accept one more argument, the
>>> function to apply to each frame, which is now hard-coded as 'prin1'?
>>> Would that allow you to implement 'backtrace' in Lisp and also
>>> implement whatever application you had in mind, by calling
>>> 'backtrace--internal' passing it your own function instead of 'prin1'?
>>
>> Quite possibly!
>
> Will you be working on this idea at some point?

Yup.  I've attached a rough patch, and an ELisp file showing what calling the 
new function (mapbacktrace) looks like.

Let me know if this direction makes sense.  If so, I will write the 
corresponding documentation, a Changelog entry, and a proper commit message.

(CC Alan, since you recently expressed frustration with the contents of the 
*Backtrace* buffer; hopefully this new function will help with implementing a 
more flexible *Backtrace* buffer?)

Cheers,
Clément.

Attachment: 0001-New-function-mapbacktrace.patch
Description: Text Data

Attachment: bt.el
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]