all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: debugging.texi
Date: Sat, 11 Jun 2005 19:16:26 -0400	[thread overview]
Message-ID: <E1DhFDG-0006qP-Vr@fencepost.gnu.org> (raw)
In-Reply-To: <200506110330.j5B3UrX05905@raven.dms.auburn.edu> (message from Luc Teirlinck on Fri, 10 Jun 2005 22:30:53 -0500 (CDT))

      (defun debug-on-entry (function)
	"Request FUNCTION to invoke debugger each time it is called.
    + When called interactively, prompt for FUNCTION in the minibuffer.

That is useful to add.

      If you tell the debugger to continue, FUNCTION's execution proceeds.
      This works by modifying the definition of FUNCTION,
      which must be written in Lisp, not predefined.
      Use \\[cancel-debug-on-entry] to cancel the effect of this command.
    ! Redefining FUNCTION also cancels it.  This command returns FUNCTION."

There's no need for that change.

      (defun cancel-debug-on-entry (&optional function)
	"Undo effect of \\[debug-on-entry] on FUNCTION.
    ! If argument is nil or an empty string, cancel for all functions.
    ! When called interactively, prompt for FUNCTION in the minibuffer.
    ! To specify a nil argument interactively, exit with an empty minibuffer.

That is useful.

    ! 
    ! If specified, FUNCTION must be a symbol with a function definition,
    ! nil, or an empty string.  If FUNCTION is a non-nil symbol with
    ! a function definition, the return value is FUNCTION, even if FUNCTION
    ! was not previously set up to break on entry.  If FUNCTION is omitted,
    ! nil, or an empty string the return value is a list of all functions
    ! for which break-on-entry was canceled."

That is not needed.

  parent reply	other threads:[~2005-06-11 23:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-09 22:36 debugging.texi Luc Teirlinck
2005-06-10 13:30 ` debugging.texi Richard Stallman
2005-06-11  3:30   ` debugging.texi Luc Teirlinck
2005-06-11  7:30     ` debugging.texi Lute Kamstra
2005-06-11 23:16       ` debugging.texi Richard Stallman
2005-06-11 23:16     ` Richard Stallman [this message]
2005-06-12  1:26       ` debugging.texi Luc Teirlinck
2005-06-12  8:19         ` debugging.texi Lute Kamstra
2005-06-11 12:18   ` debugging.texi Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-06-15 18:50 debugging.texi Luc Teirlinck
2005-06-15 22:36 ` debugging.texi Lute Kamstra
2005-06-15 23:31   ` debugging.texi Luc Teirlinck
2005-06-16  8:54     ` debugging.texi Lute Kamstra

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=E1DhFDG-0006qP-Vr@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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.