>> I am trying to redefine the ’open_read_file’ callback. > > [...] > direct callback access is disabled. There are usually some layers > of abstraction on top of them, different ones for different > callbacks. Mapping them all is a huge effort, so best refer to > the source. > > In your case the function resolvers.openers.helpers.textopener() > takes the place of the open_read_file callback. It can be found > in data-tex.lua.
Shall I simply do something like this? local function textopener(tag, filename, filehandle, coding) result = old_textopener(tag, filename, filehandle, coding) -- Do lots of things return result end resolvers.openers.helpers.textopener = textopener Thank you, André Caldas. ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________