ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: The very last macro
Date: Thu, 26 Mar 2009 15:53:02 +0100	[thread overview]
Message-ID: <49CB96CE.4020601@wxs.nl> (raw)
In-Reply-To: <fe8d59da0903260714q3e300fd8v8736f15f6f6f36fe@mail.gmail.com>

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
___________________________________________________________________________________


  reply	other threads:[~2009-03-26 14:53 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25  9:21 luigi scarso
2009-03-25 12:01 ` Wolfgang Schuster
2009-03-25 12:35   ` luigi scarso
2009-03-25 12:41     ` Wolfgang Schuster
2009-03-25 12:52       ` luigi scarso
2009-03-25 12:57         ` Wolfgang Schuster
2009-03-25 13:11           ` luigi scarso
2009-03-25 13:19             ` Wolfgang Schuster
2009-03-25 14:00               ` luigi scarso
2009-03-25 14:44                 ` Wolfgang Schuster
2009-03-25 15:01                   ` luigi scarso
2009-03-25 15:25                     ` Peter Rolf
2009-03-25 15:31                       ` luigi scarso
2009-03-25 15:40                         ` Peter Rolf
2009-03-25 15:53                         ` Aditya Mahajan
2009-03-25 16:13                           ` luigi scarso
2009-03-26  8:56                             ` Hans Hagen
2009-03-26  9:20                               ` luigi scarso
2009-03-26  9:33                                 ` luigi scarso
2009-03-26  9:52                                   ` Hans Hagen
2009-03-26 10:19                                     ` luigi scarso
2009-03-26 10:50                                       ` Hans Hagen
2009-03-26 13:08                                         ` luigi scarso
2009-03-26 13:58                                           ` Hans Hagen
2009-03-26 14:14                                             ` luigi scarso
2009-03-26 14:53                                               ` Hans Hagen [this message]
2009-03-26 15:39                                                 ` luigi scarso
2009-03-26 17:06                                                   ` luigi scarso

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=49CB96CE.4020601@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /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 NNTP newsgroup(s).