Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CCA Emacs: Speedup Kills Apropos

1 view
Skip to first unread message

Steve Zimmerman

unread,
Nov 29, 1984, 9:10:33 AM11/29/84
to
> A while ago we received some changes to speed up emacs and then some
> changes to take care of problems .cshrc produced output.
>
> Once these changes are incorporated ? does not print the full help
> message until after ?I has been typed. Likewise ?A leads to an
> inglorious death for emacs unless ?I is first entered.
>
> The reason is that the above changes made efgets look for
> ".cshrc sourced" when a file is being read in. There is an assumption
> that the file being read has been `globbed' for * or ? or escape
> completion which would have meant sourcing .cshrc.


The real problem is that efgets() is looking for ".cshrc sourced" from
all streams, not just the C shell pipe. This problem was noted early on
and a fix was sent out; you apparently didn't get it. The fix is to
replace the "do" loop in efgets() with the following:

do {
if (iop == cshout && sindex(s, ".cshrc sourced"))
srclook = 0;
cs = s;
while (--n>0 && (c = getc(iop))>=0) {
*cs++ = c;
if (c=='\n')
break;
}
if (c<0 && cs==s)
return(NULL);
*cs++ = '\0';
} while (srclook && iop == cshout);


Steve Zimmerman

0 new messages