When I change line 317 in strc-not.lua to read
local function notes.deltapage(tag,n)

and run context --make,

I get

system          > tex > error on line 1701 in file /Applications/ConTeXt/tex/texmf-context/tex/context/base/strc-not.mkvi: LuaTeX error  ...

1691       {\let\strc_notes_set_bodyfont\relax
1692        \restoreglobalbodyfont
1693        \switchtobodyfont[\noteparameter\c!bodyfont]%
1694        \setupalign[\noteparameter\c!align]}
1695     
1696     %D The footnote mechanism defaults to a traditional one
1697     %D column way of showing them. By default we precede them by
1698     %D a small line.
1699     
1700     \definenote [\v!footnote]
1701 >>  \definenote [\v!endnote ] [\c!location=\v!none] % else no break
1702     
1703     %D Compatibility macros:
1704     
1705     \unexpanded\def\setupfootnotedefinition{\setupnotedefinition                           [\v!footnote]}
1706     \unexpanded\def\setupfootnotes         {\setupnote                                     [\v!footnote]}
1707                \def\footnotetext           {\setnotetext                                   [\v!footnote]}
1708     \unexpanded\def\placefootnotes         {\dodoubleempty\strc_notes_place_footnotes      [\v!footnote]}
1709     \unexpanded\def\placelocalfootnotes    {\dodoubleempty\strc_notes_place_local_footnotes[\v!footnote]}
1710     \unexpanded\def\startlocalfootnotes    {\startlocalnotes                               [\v!footnote]} %  alleen footnote
1711     \unexpanded\def\stoplocalfootnotes     {\stoplocalnotes }


\ctxcommand ...\directlua \zerocount {commands.#1}
                                                  
<inserted text> ...insertionnumber \currentnote )}
                                                  \ifx \currentnoteparent \e...
\define_note ...te }\fi \fi \the \everydefinenote 
                                                  \let \currentnote \saved_d...
\syst_helpers_triple_empty_two_spaced ...{#2}][][]
                                                   
<to be read again> 
                   \definenote 
l.1701 \definenote
                   [\v!endnote ] [\c!location=\v!none] % else no break
?

Alan

On Fri, Aug 3, 2012 at 1:03 PM, Sietse Brouwer <sbbrouwer@gmail.com> wrote:
Sietse wrote (at 17:00):
>> so I suggest turning L317 into
>>     local function getdeltapage(tag,n)

Alan Bowen <bowenalan03@gmail.com> wrote (at 17:42):
> local function getdeltapage(tag,n)
> seems to mess up \definenote
> (the error appears when running context --make).
> And if one plows ahead anyway, the original error remains.

No error here. What \definenote-related error do you get when running
context --make?

Cheers,
Sietse
___________________________________________________________________________________
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
___________________________________________________________________________________