unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* please help concerning specpdl
@ 2010-12-04  5:33 Alin Soare
  2010-12-06 16:22 ` Davis Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Alin Soare @ 2010-12-04  5:33 UTC (permalink / raw)
  To: Emacs Dev

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

Many functions in emacs contain the sequence
{
count = SPECPDL_INDEX ();
record_unwind_protect
val = Fprogn (args);
return unbind_to (count, val);
}


like the  function attached below,

Can you explain me the logic of specpdl please ?



DEFUN ("save-current-buffer", Fsave_current_buffer, Ssave_current_buffer, 0,
UNEVALLED, 0,
....
  (Lisp_Object args)
{
  Lisp_Object val;
  int count = SPECPDL_INDEX ();

  record_unwind_protect (set_buffer_if_live, Fcurrent_buffer ());

  val = Fprogn (args);
  return unbind_to (count, val);
}

[-- Attachment #2: Type: text/html, Size: 656 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-15  0:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-04  5:33 please help concerning specpdl Alin Soare
2010-12-06 16:22 ` Davis Herring
2010-12-14 21:25   ` Alin Soare
2010-12-15  0:14     ` Davis Herring
2010-12-15  0:53       ` Ken Raeburn

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