[comp.unix.sysv386] Emacs 18.57, ISC 2.2.1, Protocol rev, TERM variable

leo@aai.com (04/05/91)

I just built Emacs 18.57 on my 486/25 running 2.2.1.

When I start emacs under X (I built it with X support), it usually starts
and runs fine - the first time.  But, more often than not, I get the error:

	Warning: Client built for newer server!
	Warning: Protocol rev. of client does not match server!

and Emacs sits there eating up cpu cycles but without creating a window or
doing anything useful.  What I find most puzzling is that SOMETIMES it
works and doesn't give any error messages!  Any clues as to what the
problem is?  I'm using ISC's X11 development system.

When running emacs outside X, it works properly but the termcap stuff seems
a little messed up.  The mode line isn't reverse video, has "RD" at the
beginning of it, and the refreshing doesn't always happen when it should.
I tried changing my TERM variable from at386 to at386-M and that seemed to
be better as far as refresh is concerned.  What do others use when running
emacs?  Are there any new termcap entries I need?

Thanks for any help!

-- 
Leo	leo@aai.com   leo%aai@uunet.uu.net   ...uunet!aai!leo

kayvan@satyr.UUCP (Kayvan Sylvan) (04/06/91)

In article <1991Apr5.015243.9461@aai.com> leo@aai.com writes:

   When running emacs outside X, it works properly but the termcap stuff seems
   a little messed up.  The mode line isn't reverse video, has "RD" at the
   beginning of it, and the refreshing doesn't always happen when it should.
   I tried changing my TERM variable from at386 to at386-M and that seemed to
   be better as far as refresh is concerned.  What do others use when running
   emacs?  Are there any new termcap entries I need?

This is a bug in the terminfo entry.

Here's a working at386 terminfo entry:

AT386|at386|386AT|386at|at/386 console,
	am, bw, eo, xon,
	colors#8, cols#80, lines#25, ncv#3, pairs#64,
	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H,
	cr=\r, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB,
	cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
	cup=\E[%i%p1%02d;%p2%02dH, cuu=\E[%p1%dA, cuu1=\E[A,
	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[1M,
	ed=\E[J, el=\E[K, flash=^G, home=\E[H, ht=\t,
	ich=\E[%p1%d@, ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L,
	ind=\E[S, indn=\E[%P1%dS, invis=\E[9m,
	is2=\E[0;10;39m, kbs=\b, kcbt=^], kclr=\E[2J,
	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
	kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ,
	kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
	kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H,
	kich1=\E[@, knp=\E[U, kpp=\E[V, krmir=\E0, op=\E[0m,
	rev=\E[7m, rin=\E[T, rmacs=\E[10m, rmso=\E[m,
	rmul=\E[m,
	setb=\E[%?%p1%{0}%=%t40m%e%p1%{1}%=%t44m%e%p1%{2}%=%t42m%e%p1%{3}%=%t46m%e%p1%{4}%=%t41m%e%p1%{5}%=%t45m%e%p1%{6}%=%t43m%e%p1%{7}%=%t47m%;,
	setf=\E[%?%p1%{0}%=%t30m%e%p1%{1}%=%t34m%e%p1%{2}%=%t32m%e%p1%{3}%=%t36m%e%p1%{4}%=%t31m%e%p1%{5}%=%t35m%e%p1%{6}%=%t33m%e%p1%{6}%=%t33m%e%p1%{7}%=%t37m%;,
	sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?%p9%t;12%;%?%p7%t;9%;m,
	sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,

-- 
| Kayvan Sylvan          Consulting/Training              879 Lewiston Drive |
| Sylvan Associates      Unix and Mac Programming         San Jose, CA 95136 |
| "Think Globally,       GNU tools, GUIs, Databases       (408) 978-1407     |
|  Act Locally."         Unify User's Group Librarian     apple!satyr!kayvan |

leo@aai.com (04/09/91)

I wrote:

>I just built Emacs 18.57 on my 486/25 running 2.2.1.

>When I start emacs under X (I built it with X support), it usually starts
>and runs fine - the first time.  But, more often than not, I get the error:

>	Warning: Client built for newer server!
>	Warning: Protocol rev. of client does not match server!

>and Emacs sits there eating up cpu cycles but without creating a window or
>doing anything useful.  What I find most puzzling is that SOMETIMES it
>works and doesn't give any error messages!  Any clues as to what the
>problem is?  I'm using ISC's X11 development system.

Thanks to Phil Kemp for relaying the fix to me!
Uncomment or add the line

#define HAVE_SELECT

to config.h and it creates windows in X properly on ISC 2.2.1.  Apparently,
on SCO, there may be some other changes necessary.  Phil said:

> The calls to select are not right for SYSV. Look at
> the calls made in x11fns.c and make all other select calls look like
> that. I can't just remember the field but it had a variable address
> and needed a '0'...
--------------------------------------------------------------------------
I wrote:

>When running emacs outside X, it works properly but the termcap stuff seems
>a little messed up.  The mode line isn't reverse video, has "RD" at the
>beginning of it, and the refreshing doesn't always happen when it should.
>I tried changing my TERM variable from at386 to at386-M and that seemed to
>be better as far as refresh is concerned.  What do others use when running
>emacs?  Are there any new termcap entries I need?

Thanks to Chris Weiner for sending me a new at386 termcap entry that works
properly!  He posted it as well, but I'll include it here in case you
missed it.  It's not very long.

AT386|at386|386AT|386at|at/386 console,
	am, bw, eo, km, xon,
	colors#8, cols#80, lines#25, ncv#3, pairs#64,
	acsc=``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~,
	bel=^G, blink=\E[5m, bold=\E[1m, clear=\E[2J\E[H,
	cr=\r, cub=\E[%p1%dD, cub1=\E[D, cud=\E[%p1%dB,
	cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
	cup=\E[%i%p1%02d;%p2%02dH, cuu=\E[%p1%dA, cuu1=\E[A,
	dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[1M,
	ed=\E[J, el=\E[K, flash=^G, home=\E[H, ich=\E[%p1%d@,
	ich1=\E[1@, il=\E[%p1%dL, il1=\E[1L, ind=\E[S,
	indn=\E[%p1%dS, kbs=\b, kcbt=^], kclr=\E[2J,
	kcub1=\E[D, kcud1=\E[B, kcuf1=\E[C, kcuu1=\E[A,
	kdch1=\E[P, kend=\E[Y, kf1=\EOP, kf10=\EOY, kf11=\EOZ,
	kf12=\EOA, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\EOT,
	kf6=\EOU, kf7=\EOV, kf8=\EOW, kf9=\EOX, khome=\E[H,
	kich1=\E[@, knp=\E[U, kpp=\E[V, krmir=\E0, op=\E[0m,
	rev=\E[7m, ri=\E[T, rin=\E[%p1%dT, rmacs=\E[10m,
	rmso=\E[m, rmul=\E[m,
	setb=\E[%?%p1%{0}%=%t40m%e%p1%{1}%=%t44m%e%p1%{2}%=%t42m%e%p1%{3}%=%t46m%e%p1%{4}%=%t41m%e%p1%{5}%=%t45m%e%p1%{6}%=%t43m%e%p1%{7}%=%t47m%;,
	setf=\E[%?%p1%{0}%=%t30m%e%p1%{1}%=%t34m%e%p1%{2}%=%t32m%e%p1%{3}%=%t36m%e%p1%{4}%=%t31m%e%p1%{5}%=%t35m%e%p1%{6}%=%t33m%e%p1%{6}%=%t33m%e%p1%{7}%=%t37m%;,
	sgr=\E[10m\E[0%?%p1%p3%|%t;7%;%?%p2%t;4%;%?%p4%t;5%;%?%p6%t;1%;%?%p9%t;12%;%?%p7%t;9%;m,
	sgr0=\E[0;10m, smacs=\E[12m, smso=\E[7m, smul=\E[4m,
-- 
Leo	leo@aai.com   leo%aai@uunet.uu.net   ...uunet!aai!leo

b2676870@rick.cs.ubc.ca (wilson w ma) (04/10/91)

I encountered a very similar problem with that particular message but I
noticed something else when I put in a #define HAVE_SELECT.  At that point,
Emacs had no problems coming up but none of the shells would work properly.
If I ran the TeX-shell, it would run TeX but the shell did not terminate TeX
completely and I would have to kill the shell before running TeX again.  I
think I have resolved the problem, but I would like to know if you have
encountered any similar problems, what you did to resolve them and why those
problems occurred (I personally fiddled around with the PTY stuff).  I have
not had the time to research the source enough to formulate the proper reasons
why it works now.  Perhaps you have been enlightened more than I have ;)

Wilson