query_editing
Returns 1 if the ob is interactive and currently editing with ed(E). If ed(E) was called with a function name as second argument, the object where ed(E) was called is returned, else 0.
ob
ed
ed(E)