+ /* Set editor */
+ if (!(cp = getenv("MMHEDITOR")) || !*cp) {
+ if (!(cp = context_find("editor")) || !*cp) {
+ if (!(cp = getenv("VISUAL")) || !*cp) {
+ if (!(cp = getenv("EDITOR")) || !*cp) {
+ cp = defaulteditor;
+ }
+ }
+ }
+ }
+ defaulteditor = cp;
+