From:	MERC::"uunet!VM1.NoDak.EDU!ANU-NEWS" 28-APR-1992 20:43:14.16
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@VM1.NoDak.EDU>
CC:	
Subj:	Re: Bug report: NEWS V6.1a4 and callable EDT

In article <1992Apr27.153837.1957@memstvx1.memst.edu>, flowers@memstvx1.memst.ed
u (Harry Flowers) writes:
>> Running NEWS V6.1a4 using callable EDT as the editor no longer works.
>> It gives the following error:
>> %DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters
>>  \SYS$SCRATCH\
>
> I've further tracked this down to the fact that "edt" is stored as the
> Edit_Cmd if you specify "edt" or "callable_edt", and is supposed to use
> callable EDT either way.  However, in the invoke_editor routine, it's
> looking for "callable_" in Edit_Cmd to determine whether to call an
> editor.  Either invoke_editor in NEWSCALLEDIT needs to be fixed, or
> the routines in NEWSPROFILE and NEWSSITE which explicitly store "edt"
> as the editor.

     Apply the following fix and you should be OK.  At least I'm
[barely] managing to use EDT to compose this followup after applying it.

                Pat Rankin, rankin@eql.caltech.edu

*** newscalledit.c
--- newscalledit.c-fix
**************
*** 174,180
    logicalP = (Edit_Cmd && *Edit_Cmd) ? Edit_Cmd : "callable_tpu";

      /* Should we try for a callable editor? Or, go for a subprocess? */
!   t = strlen(callable_prefixP);
    if (strncmp(logicalP,callable_prefixP,t) == 0) {

        /*
--- 174,180 -----
    logicalP = (Edit_Cmd && *Edit_Cmd) ? Edit_Cmd : "callable_tpu";

      /* Should we try for a callable editor? Or, go for a subprocess? */
!   t = (strcmp(logicalP,"edt") == 0) ? 0 : strlen(callable_prefixP);
    if (strncmp(logicalP,callable_prefixP,t) == 0) {

        /*
