all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: get backtrace of handle-switch-frame
Date: Mon, 25 Mar 2019 08:24:24 -0400	[thread overview]
Message-ID: <jwvtvfr6t8f.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 87tvfs2kwj.fsf@gmail.com

> 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




      parent reply	other threads:[~2019-03-25 12:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-24 18:21 get backtrace of handle-switch-frame Amos Bird
2019-03-24 18:43 ` রে: " Ghosh, Partha
2019-03-24 18:51 ` Eli Zaretskii
2019-03-24 19:39   ` রে: " Ghosh, Partha
2019-03-24 19:54     ` Eli Zaretskii
2019-03-25 12:24 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtvfr6t8f.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.