unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Subject: Re: debug-on-entry question
Date: Sun, 19 Jun 2005 17:03:38 +0300	[thread overview]
Message-ID: <873breo37h.fsf@jurta.org> (raw)
In-Reply-To: <m3vf4c2d8s.fsf@jrwork.burla> (Yoni Rabkin Katzenell's message of "Sat, 18 Jun 2005 13:03:31 +0300")

> Is there an existing function which performs the following?
>
> (defun debug-on-entry-at-point ()
>   "Perform \\[debug-on-entry] on the function at point."
>   (let ((fn (function-called-at-point)))
>     (if fn
> 	(debug-on-entry fn)
>       (message "No function at point"))))

A better way to do this is to change the interactive specification of
`debug-on-entry' to call `function-called-at-point'.

For post-release: it would be good to rewrite the function
`call-interactively' in Lisp which will allow easy modification of
reading arguments according to code letters (e.g. in this particular
case adding a call to `function-called-at-point' for the code letter `a').

-- 
Juri Linkov
http://www.jurta.org/emacs/

  parent reply	other threads:[~2005-06-19 14:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-18 10:03 debug-on-entry question Yoni Rabkin Katzenell
2005-06-18 11:23 ` David Kastrup
2005-06-18 11:47   ` Yoni Rabkin Katzenell
2005-06-19 14:03 ` Juri Linkov [this message]
2005-06-19 17:24   ` Drew Adams
2005-06-19 17:48     ` David Kastrup
2005-06-19 18:07       ` Drew Adams
2005-06-20  4:59     ` Juri Linkov
2005-06-20 15:42       ` Drew Adams
2005-06-21  2:00       ` Richard Stallman
2005-06-20  3:50   ` Richard Stallman
2005-06-20 17:41   ` Lute Kamstra
2005-06-21 16:32     ` Juri Linkov
2005-06-22  3:40       ` Richard M. Stallman
2005-06-22  8:32         ` Lute Kamstra
2005-06-23  0:54           ` Richard M. Stallman
2005-06-22 13:12         ` Juri Linkov
2005-06-23 14:38           ` Drew Adams

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=873breo37h.fsf@jurta.org \
    --to=juri@jurta.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 public inbox

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

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).