unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: What function does a button click call?
Date: Sun, 26 Oct 2014 20:19:26 +0100	[thread overview]
Message-ID: <87lho2oczl.fsf@web.de> (raw)
In-Reply-To: 87r3xuoetu.fsf@web.de

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Try M-x debug-on-entry widget-button-click RET to find out what
> happens when pressing the button.

BTW, a good strategy to find out what happens after hitting some key is
to use C-c k to see which command will be invoked, and then to M-x
debug-on-entry this command.  I do that so often that I wrote an own
command doing that, and bound it to a simple key:

(defun my-debug-on-next-key ()
  "Enter the debugger for the next command."
  (interactive)
  (let* ((keys (read-key-sequence "Debugging next key sequence..."))
         (cmd (key-binding keys)))
    (debug-on-entry cmd)
    (unwind-protect
         (call-interactively cmd keys)
      (cancel-debug-on-entry cmd))))


Regards,

Michael.




      reply	other threads:[~2014-10-26 19:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 17:43 What function does a button click call? Raffaele Ricciardi
2014-10-26 18:39 ` Michael Heerdegen
2014-10-26 19:19   ` Michael Heerdegen [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87lho2oczl.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).