From: "Ken Manheimer" <ken.manheimer@gmail.com>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: two related edebug problems
Date: Wed, 9 Aug 2006 15:42:39 -0400 [thread overview]
Message-ID: <2cd46e7f0608091242t3cd240br601b97e0535d6024@mail.gmail.com> (raw)
In-Reply-To: <87hd0mhswu.fsf@stupidchicken.com>
thanks for investigating!
commenting out the code you identify does alleviate the problem for me.
i notice that i still need to hit 'f' twice each time i want to
traverse an sexp. i also now notice that there's a spurious pause of
two or three seconds after each 'f' that actually does traversal,
before the "Break" message is displayed. (and, of course, stepping
into C level functions continue to cause an odd traceback - though i
realize your investigation wasn't concerned with that problem.)
altogether, navigating the current problems in edebug makes debugging
difficult. i'm very glad to have a workaround for the insistent
single-stepping - thanks!
ken
On 8/9/06, Chong Yidong <cyd@stupidchicken.com> wrote:
> "Ken Manheimer" <ken.manheimer@gmail.com> writes:
>
> > i am able to reliably reproduce the first problem (always single
> > stepping). i open a new emacs session with emacs -Q, find the
> > standard `newline' function (in simple.el - i just use
> > `find-function'), edebug-defun it, then do a newline in the scratch
> > buffer. if i just use "f" to step through, it almost immediately goes
> > into the always-single-step mode - after `(barf-if-buffer-read-only)'.
> > "c", "o", "f", "h", all work like hitting the space bar.
>
> This seems to be triggered by the following code in edebug-display:
>
> (if (edebug-input-pending-p)
> (progn
> (setq edebug-execution-mode 'step
> edebug-stop t)
> (edebug-stop)
> ;; (discard-input) ; is this unfriendly??
> ))
>
> Commenting this out removes the problem, but this is probably not what
> we want. My guess is that input-pending-p is returning spuriously (it
> does not guarantee that there is really input pending).
>
> One possibility is to make use of the sit-for statements further down
> in edebug-display. Since sit-for now returns iff there is real input,
> we could capture the return value and use that to determine whether to
> stop execution.
>
--
ken
ken.manheimer@gmail.com
http://myriadicity.net
next prev parent reply other threads:[~2006-08-09 19:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 18:30 two related edebug problems Ken Manheimer
2006-08-08 18:02 ` Richard Stallman
2006-08-08 19:26 ` Ken Manheimer
2006-08-09 14:42 ` Chong Yidong
2006-08-09 19:42 ` Ken Manheimer [this message]
2006-08-10 1:13 ` Richard Stallman
2006-08-10 16:08 ` Chong Yidong
2006-08-11 22:34 ` Stefan Monnier
2006-08-12 0:19 ` Kim F. Storm
2006-08-12 21:50 ` Richard Stallman
2006-08-12 4:02 ` Chong Yidong
2006-08-12 21:50 ` Richard Stallman
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=2cd46e7f0608091242t3cd240br601b97e0535d6024@mail.gmail.com \
--to=ken.manheimer@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=rms@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 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).