Small fixes

Here are fixes I find useful about priority command and editor call.