From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrew Psaltis Newsgroups: gmane.lisp.guile.bugs Subject: bug#10581: exit-hook is undocumented and is not called from a non-interactive environment Date: Sun, 5 Feb 2012 14:20:13 -0500 Message-ID: References: <87r4y9h52o.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328469685 19509 80.91.229.3 (5 Feb 2012 19:21:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2012 19:21:25 +0000 (UTC) Cc: 10581@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Feb 05 20:21:24 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ru7eL-0004Sw-9r for guile-bugs@m.gmane.org; Sun, 05 Feb 2012 20:21:21 +0100 Original-Received: from localhost ([::1]:41568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru7eK-0001Pk-Lw for guile-bugs@m.gmane.org; Sun, 05 Feb 2012 14:21:20 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru7eH-0001PR-TK for bug-guile@gnu.org; Sun, 05 Feb 2012 14:21:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ru7eG-00054C-J2 for bug-guile@gnu.org; Sun, 05 Feb 2012 14:21:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ru7eG-00053z-G4 for bug-guile@gnu.org; Sun, 05 Feb 2012 14:21:16 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ru7ez-0005Vs-OV for bug-guile@gnu.org; Sun, 05 Feb 2012 14:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Psaltis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 05 Feb 2012 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10581 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 10581-submit@debbugs.gnu.org id=B10581.132846966821127 (code B ref 10581); Sun, 05 Feb 2012 19:22:01 +0000 Original-Received: (at 10581) by debbugs.gnu.org; 5 Feb 2012 19:21:08 +0000 Original-Received: from localhost ([127.0.0.1]:55841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ru7e7-0005Uh-EA for submit@debbugs.gnu.org; Sun, 05 Feb 2012 14:21:08 -0500 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:48600) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ru7e5-0005UE-LA for 10581@debbugs.gnu.org; Sun, 05 Feb 2012 14:21:06 -0500 Original-Received: by werm10 with SMTP id m10so3872219wer.3 for <10581@debbugs.gnu.org>; Sun, 05 Feb 2012 11:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=lTauh4XghpOqp8K2AmIntUXQpcYqomXPTyrO/OZbWp0=; b=OyBs7wdJpcszLlDU4HXeH2A780mMxLDsxfdVcFAjJlvOSXqRg4GajmOq9gjpjobUL9 79xTUVekPAgMkUpXb7oyw9OsFSQPk9WuSFGlG4eGaSTb7jx3aWBerm9fUkFnAsJAEy5o oeqq6HjC7tjyYV+9DSTj2MpoylHBV6v2epiOc= Original-Received: by 10.216.132.148 with SMTP id o20mr2247380wei.33.1328469613704; Sun, 05 Feb 2012 11:20:13 -0800 (PST) Original-Received: by 10.180.96.225 with HTTP; Sun, 5 Feb 2012 11:20:13 -0800 (PST) In-Reply-To: <87r4y9h52o.fsf@pobox.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6204 Archived-At: On Sun, Feb 5, 2012 at 06:50, Andy Wingo wrote: > Hi Andrew, > > On Sun 22 Jan 2012 20:58, Andrew Psaltis writes: > >> After doing some web searches, I found an answer in "exit-hook", >> except that it was not clear from the Guile reference manual that it >> existed. =C2=A0It should probably be documented a little more clearly. > > It's not documented at all, actually. =C2=A0It was added in 1998 to > boot-9.scm with the following comment: > > =C2=A0;;; This hook is run at the very end of an interactive session. > =C2=A0;;; > =C2=A0(define exit-hook (make-hook)) > > It has not been changed since then. > Ah, yes. >> When I write a scheme script that adds some function to exit-hook, it >> is not invoked from a non-interactive call to guile. > > Indeed, as the comment notes. > > I think it's fair to say that this is a historical interface, and that > it probably shouldn't be changed. > > Why not use atexit(), if you need to clean up the C library? =C2=A0Just > wondering. > That would be because I forgot that it existed. I probably should just use that instead. Thanks. ~Andrew