name more functions in editor.c