help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: get backtrace of handle-switch-frame


From: Stefan Monnier
Subject: Re: get backtrace of handle-switch-frame
Date: Mon, 25 Mar 2019 08:24:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Hello, is it possble to get the backtrace of function `handle-switch-frame`
> so that I can find out the cause of an unexpected frame switch event?

I'm not completely sure what you mean by "the backtrace of function
<...>", but I assume you want to get the backtrace at the point where
the function is called.
`M-x debug-on-entry RET handle-switch-frame RET` should do just that.

But I think you'll be very disappointed with the result: this is
a function bound to an event, and these are decoupled from the code that
generates/triggers the event by a buffer (this is the buffer that's used
to remember the keys you pressed while a long-running command is still
ongoing).

So the backtrace will likely tell you very little and specifically it
will not tell you the cause of the unexpected frame switch event.


        Stefan




reply via email to

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