Lines Matching defs:editor
64 #define DEFEDITOR "ed" /* default editor *should* be $EDITOR */
252 const char *editor = NULL;
277 editor = shoptarg;
300 if (lflg == 0 || editor || sflg) {
321 * Set editor.
324 if (editor == NULL &&
325 (editor = bltinlookup("FCEDIT", 1)) == NULL &&
326 (editor = bltinlookup("EDITOR", 1)) == NULL)
327 editor = DEFEDITOR;
328 if (editor[0] == '-' && editor[1] == '\0') {
330 editor = NULL;
379 if (editor) {
394 * do it now. Otherwise, put into temp file and call the editor
442 if (editor) {
447 editcmd = stalloc(strlen(editor) + strlen(editfile) + 2);
448 sprintf(editcmd, "%s %s", editor, editfile);