modify directly takes a Modification as parameter
write_debug writes in a Scratch buffer named '*debug*', so that debug messages are accessibles from within kakoune