Use el_source() so we pick up .editrc

This commit is contained in:
Matthew N. Dodd 1999-08-19 04:10:33 +00:00
parent b32ba21dfd
commit 43d79ae9ef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50042
4 changed files with 6 additions and 2 deletions

View File

@ -135,6 +135,7 @@ nslookup_yy_input(buf, result, max_size, intr)
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, nslookup_prompt);
el_set(el, EL_SIGNAL, 1);
el_source(el, NULL);
}
if ((bp = el_gets(el, &num)) == NULL || num == 0) {

View File

@ -20,7 +20,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: cdcontrol.c,v 1.18 1999/01/31 15:30:21 billf Exp $";
"$Id: cdcontrol.c,v 1.19 1999/08/19 03:29:11 mdodd Exp $";
#endif /* not lint */
#include <ctype.h>
@ -950,6 +950,7 @@ input (int *cmd)
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, cdcontrol_prompt);
el_set(el, EL_SIGNAL, 1);
el_source(el, NULL);
}
if ((bp = el_gets(el, &num)) == NULL || num == 0)
return (0);

View File

@ -43,7 +43,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)lpc.c 8.3 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
"$Id: lpc.c,v 1.8 1998/09/11 18:49:31 wollman Exp $";
"$Id: lpc.c,v 1.9 1999/08/19 03:29:13 mdodd Exp $";
#endif /* not lint */
#include <sys/param.h>
@ -165,6 +165,7 @@ cmdscanner()
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, lpc_prompt);
el_set(el, EL_SIGNAL, 1);
el_source(el, NULL);
}
if ((bp = el_gets(el, &num)) == NULL || num == 0)
return;

View File

@ -820,6 +820,7 @@ getcmds()
el_set(el, EL_EDITOR, "emacs");
el_set(el, EL_PROMPT, xntpdc_prompt);
el_set(el, EL_SIGNAL, 1);
el_source(el, NULL);
}
if ((bp = el_gets(el, &num)) == NULL || num == 0)
return;