This is clarified and improved with https://github.com/FriendCode/ace/commit/e76a389e88d5d0837cb39e19164a04c11672c9f3