From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: SPECPDL_INDEX
Date: Tue, 06 Jan 2009 16:03:58 +0100 [thread overview]
Message-ID: <1231254304.21719@arno.fh-trier.de> (raw)
In-Reply-To: <mailman.4114.1231246917.26697.help-gnu-emacs@gnu.org>
A. Soare wrote:
> Can someone illuminate me what is the purpose of the `count' variable in the function `redisplay', please?
>
>
> Thanks in advance.
DEFUN ("redisplay", Fredisplay, Sredisplay, 0, 1, 0,
doc: /* Perform redisplay if no input is available.
If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil,
perform a full redisplay even if input is available.
Return t if redisplay was performed, nil otherwise. */)
(force)
Lisp_Object force;
{
int count;
swallow_events (1);
if ((detect_input_pending_run_timers (1)
&& NILP (force) && !redisplay_dont_pause)
|| !NILP (Vexecuting_kbd_macro))
return Qnil;
count = SPECPDL_INDEX ();
if (!NILP (force) && !redisplay_dont_pause)
specbind (Qredisplay_dont_pause, Qt);
redisplay_preserve_echo_area (2);
unbind_to (count, Qnil);
return Qt;
}
I think it's an index into the variable binding stack to which the
c-function unwind_to later restores state.
Maybe take a look at the definition of the let form in eval.c .
-ap
next parent reply other threads:[~2009-01-06 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4114.1231246917.26697.help-gnu-emacs@gnu.org>
2009-01-06 15:03 ` Andreas Politz [this message]
2009-01-06 13:01 SPECPDL_INDEX A. Soare
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=1231254304.21719@arno.fh-trier.de \
--to=politza@fh-trier.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).