add lydocument.cursor, returning a ly.document.Cursor