.
correct g:nonw type of notelink and act on mark only if non-null