From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48804 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: The very last macro Date: Thu, 26 Mar 2009 15:53:02 +0100 Message-ID: <49CB96CE.4020601@wxs.nl> References: <49CB4342.3050609@wxs.nl> <49CB504F.7080706@wxs.nl> <49CB5DE3.3060408@wxs.nl> <49CB89F4.1010005@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238079247 22045 80.91.229.12 (26 Mar 2009 14:54:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Mar 2009 14:54:07 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 26 15:55:25 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LmqzJ-0006Lg-9M for gctc-ntg-context-518@m.gmane.org; Thu, 26 Mar 2009 15:55:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3B7931FBBD; Thu, 26 Mar 2009 15:53:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10745-01; Thu, 26 Mar 2009 15:53:16 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2277B1FB71; Thu, 26 Mar 2009 15:53:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F63B1FB71 for ; Thu, 26 Mar 2009 15:53:14 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06532-04-3 for ; Thu, 26 Mar 2009 15:53:04 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id D52701FB64 for ; Thu, 26 Mar 2009 15:53:04 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2QEqx6T003344 for ; Thu, 26 Mar 2009 15:53:02 +0100 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 23064-1840426 for ; Thu, 26 Mar 2009 15:52:58 +0100 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 199613209 - 6cf313caab3c - 20090326 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48804 Archived-At: luigi scarso wrote: >> why, what do you want to achieve; there are already such hooks > The original request was > sorry for the noise : > is there in mkiv a very last macro ? > I mean something like > \IamCallAtTheReallyEnd{..} > which does absolutly nothing to the pdf , and after which mkiv ends > without calls any other macro > > Peter suggest to use \everylastshipout; > but this > > \def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something > Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}} > > \appendtoks\LuigisWhateverShouldHappen \to \everylastshipout > \starttext > hello > \stoptext > > write > Something Luigi want to do for some unknown reason. > > near the bottom of pdf (and I don't want it) > and BOOM! on log (which is a way to say that this macro was called) the problem is in your definition of 'end' and 'bottom' the real final thing is \end and \everygoodbye happens just before that (the only calls after it are postponed error messages, which have no consequence for any pdf and the primitive \end which is really needed) of course there can be pending conditional branches that needs to be finished; just try \appendtoks\tracingall\to\everygoodbye You can also do something \startluacode table.insert(input.stop_actions, function() texio.write_nl("I still have no clue why you need it.") end) \stopluacode any other hook in itself will introduce a new situation of 'something done before the real \end' Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________