all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: 10669@debbugs.gnu.org
Subject: bug#10669: More debugging
Date: Sun, 05 Feb 2012 03:49:43 -0500	[thread overview]
Message-ID: <878vkhis0o.fsf@maru.md5i.com> (raw)
In-Reply-To: <87ipjsg5ut.fsf@maru.md5i.com>

Okay.  Here's what the infinite loop actually is:

The C function 'command_loop' calls 'top_level_1', which eventually
evals 'top-level', which is 'normal-top-level'.  'normal-top-level'
notes that 'command-line-processed' is t, calls (message "Back to top
level."), and then returns.

Back to 'command_loop, which then calls 'command_loop_2', which calls
command_loop_1', which calls 'read_key_sequence', which calls
'read_char'.

'read_char' eventually calls 'kbd_buffer_get_event' at keyboard.c:2797.
This ends up calling getchar(), since we are running as a daemon
(keyboard.c:3796).  This getchar() returns -1.  'read_char' returns this
-1.

'read_key_sequence' takes this -1, and sets its return value to 0
(keyboard.c:9373).

'command_loop_1' takes this 0, and returns nil (keyboard.c:1463).
'command_loop_2' returns nil on nil.

'command_loop' then continues in its loop, calling 'top_level_1' again,
followed by 'command_loop_2'.

-- 
Michael Welsh Duggan
(md5i@md5i.com)





  parent reply	other threads:[~2012-02-05  8:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30 22:53 bug#10669: 24.0.93; Emacs daemon high CPU load Michael Welsh Duggan
2012-01-30 23:55 ` Michael Welsh Duggan
2012-01-31  0:44   ` Glenn Morris
2012-01-31  0:51     ` Michael Welsh Duggan
2012-01-31  0:58       ` Glenn Morris
2012-01-31  1:02         ` Michael Welsh Duggan
2012-02-01 17:37     ` Jan Djärv
2012-02-02  1:28       ` Michael Welsh Duggan
2012-01-31  6:22 ` Chong Yidong
2012-02-01  1:27   ` Michael Welsh Duggan
2012-02-05  8:49 ` Michael Welsh Duggan [this message]
2012-02-05 21:38   ` bug#10669: More debugging Michael Welsh Duggan
2020-08-07 10:52     ` Stefan Kangas
2020-08-14 14:32       ` Michael Welsh Duggan
2020-08-14 14:50         ` bug#5535: " Stefan Kangas
     [not found]   ` <mailman.3257.1328477962.15002.bug-gnu-emacs@gnu.org>
2012-05-08 14:50     ` scytale

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=878vkhis0o.fsf@maru.md5i.com \
    --to=md5i@md5i.com \
    --cc=10669@debbugs.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.