Checks whether a generic edit command would succeed for the editor. This check is especially useful for enabling and disabling menus on demand.
See do-edit-operation for information about the op and recursive? arguments.