[gnu.emacs.bug] Possible display bug in Emacs 18.52.1 on Sun3's and Sun386i's

pineda@RONIS.CHEM.MCGILL.CA (Andrew C. Pineda) (02/22/89)

Dear Sirs,

    We have discovered a rather unusual, intermittent and very
annoying display bug in Emacs 18.52.1 on our Suns (a Sun386i
running SunOs 4.0, and a Sun3/50 running SunOs 4.2 Release 3.4).

    The mode line does not always get drawn properly.  (It would
seem that one raster line at the top of the mode line is
partially missing, frequently leaving the display wider at the %
display.)  As one scrolls through text, thin bits and pieces of
the mode line will break off at almost random times, in some
cases leaving one with a mess of thin black lines on the screen
in addition to the text.  (This almost random property makes the
bug difficult to reproduce.)  The lines do not seem appear while
running Emacstool in SunView/Suntools, but only when we are
running Emacs outside of the windowing environment. The bug also
only seems to appear when with the scroll-step variable set to a
small number like 1 or 2.  I have managed to reproduce the bug on
our Sun3 by doing the following:

(1) Start Emacs with a .emacs file containing the following lines:
(setq scroll-step 1)
(display-time)
(setq display-time-day-and-date t)
(2) Start the tutorial with C-h t.
(3) Slowly step through the text with C-n paying attention to the
 percentage display on the right side of the mode line. You should
 see something happen while the percentage is 1%. If you repeat
 the above dropping (display-time) and (setq display....), then
 funny stuff should happen when the percentage in the mode line
 reaches 13% (and again at 15%).

    It would seem to be a termcap bug, but as far as I can tell
 we are using the termcap entry exactly as it is given in the file
 /etc/SUN-SUPPORT.

    For some reason the problem seems to be far worse on our
Sun3. On the Sun386i the piece that "breaks off" typically is
only the 1/4 inch above the percentage line, but on the Sun3 a
thin piece several inches long can break off from almost
anywhere. The thin lines will sometimes (albeit far more rarely)
appear when yanking back text.


		        Thank you,
		          Andrew Pineda
			  <pineda@ronis.chem.McGill.CA> --- <(514) 398-7382>


PS -   Below are all the sun entries in the termcap files on the 2 machines
along with uuencoded dribble and termscript files:

Termcap file entries on Sun3.

Mu|sun|Sun Microsystems Workstation console:\
	:am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:rs=\E[s:\
	:al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
        :AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
 	:up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\
	:k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
	:k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z:
M-|sun-nic|sune|Sun Microsystems Workstation console without insert character:\
	:ic@:im@:ei@:tc=sun:
M<|sun1|old Sun Microsystems Workstation console:\
	:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\
	:am:bs:km:mi:ms:pt:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:\
	:kd=\E[B:kl=\E[D:ku=\E[A:kr=\E[C:kh=\E[H:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:\
	:al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
	:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
	:rs=\E[s:
# emacs runs faster without insert character
M+|sun-cmd|Sun Microsystems Workstation console with scrollable history:\
	:te=\E[>4h:ti=\E[>4l:tc=sun:

Termcap file entries from Sun386i.

Mu|sun|Sun Microsystems Workstation console:\
	:am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\
	:ce=\E[K:cd=\E[J:md=\E[1m:us=\E[4m:ue=\E[m:so=\E[7m:se=\E[m:rs=\E[s:\
	:al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
	:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
	:up=\E[A:nd=\E[C:ku=\E[215z:kd=\E[221z:kr=\E[219z:kl=\E[217z:\
	:k1=\E[224z:k2=\E[225z:k3=\E[226z:k4=\E[227z:k5=\E[228z:\
	:k6=\E[229z:k7=\E[230z:k8=\E[231z:k9=\E[232z:
M-|sun-e|sun-nic|sune|Sun Microsystems Workstation without insert character:\
	:ic@:im@:ei@:tc=sun:
Mu|sun-s|Sun Microsystems Workstation window with status line:\
	:hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun:
Mu|sun-e-s|sun-s-e|Sun Microsystems Workstation with status hacked for emacs:\
	:hs:ts=\E]l:fs=\E\\:ds=\E]l\E\\:tc=sun-e:
M0|sun-48|Sun 48-line window:\
	:li#48:co#80:tc=sun:
M1|sun-34|Sun 34-line window:\
	:li#34:co#80:tc=sun:
M2|sun-24|Sun 24-line window:\
	:li#24:co#80:tc=sun:
M3|sun-17|Sun 17-line window:\
	:li#17:co#80:tc=sun:
M<|sun1|old Sun Microsystems Workstation console:\
	:am:bs:km:mi:ms:pt:li#34:co#80:cl=^L:cm=\E[%i%d;%dH:\
	:ce=\E[K:cd=\E[J:so=\E[7m:se=\E[m:rs=\E[s:\
	:al=\E[L:dl=\E[M:im=:ei=:ic=\E[@:dc=\E[P:\
	:AL=\E[%dL:DL=\E[%dM:IC=\E[%d@:DC=\E[%dP:\
	:up=\E[A:nd=\E[C:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[H:\
	:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:
# From john@ucbrenoir  Tue Sep 24 13:14:44 1985
M4|sun-12|Sun 12-line window:\
	:li#12:co#80:tc=sun:
M5|sun-1|Sun 1-line window for sysline:\
	:li#1:co#80:es:hs:ts=\r:fs=\E[K:ds=^L:tc=sun:
# emacs runs faster without insert character
M+|sun-cmd|Sun Microsystems Workstation console with scrollable history:\
	:te=\E[>4h:ti=\E[>4l:tc=sun:
M=|sun-na|Sun Microsystems Workstation console with no arrow keys:\
	:ku@:kd@:kr@:kl@:tc=sun:

The uuencoded dribble and termscript files below were obtained by
visiting my .emacs (to put a copy in termscript) file and then
running the tutorial. At the time, TERM = sun and my .emacs file
contained:

(setq scroll-step 1)
(display-time)
(setq display-time-day-and-date t)
(open-termscript "~/termscript")
(open-dribble-file "~/dribble")
(message "Message: getenv returns TERM = %s" (getenv "TERM"))

UUENCODED dribble file

begin 640 dribble
M& 8N96UA8W,-"'0.#@X.#@X.#@X.#@X.#@X.#@X.#@X.#@X.#@X.#@X.#@X.
,#@X.#@X.#@X.#A@#
 
end

UUENCODED termscript file

begin 640 termscript
M&ULS-#LQ2$UE<W-A9V4Z(&=E=&5N=B!R971U<FYS(%1%4DT@/2!S=6X;6S$[
M,4A'3E4@16UA8W,@,3@N-3(N,2!O9B!7960@2F%N(#$Q(#$Y.#D@;VX@;6%A
M<W,@*&)E<FME;&5Y+75N:7@I&ULR.S%(0V]P>7)I9VAT("A#*2 Q.3@X($9R
M964@4V]F='=A<F4@1F]U;F1A=&EO;BP@26YC+AM;,SLQ2%1Y<&4@0RUH(&9O
M<B!H96QP.R!#+7@@=2!T;R!U;F1O(&-H86YG97,N(" H8$,M)R!M96%N<R!U
M<V4@0U123"!K97DN*1M;-3LQ2$=.52!%;6%C<R!C;VUE<R!W:71H($%"4T],
M551%3%D@3D\@5T%24D%.5%D[('1Y<&4@0RUH($,M=R!F;W(@9G5L;"!D971A
M:6QS+AM;-CLQ2%EO=2!M87D@9VEV92!O=70@8V]P:65S(&]F($5M86-S.R!T
M>7!E($,M:"!#+6,@=&\@<V5E('1H92!C;VYD:71I;VYS+AM;-SLQ2%1Y<&4@
M0RUH($,M9"!F;W(@:6YF;W)M871I;VX@;VX@9V5T=&EN9R!T:&4@;&%T97-T
M('9E<G-I;VXN&ULX.S%(5'EP92!#+6@@="!F;W(@82!T=71O<FEA;"!O;B!U
M<VEN9R!%;6%C<RX;6S,S.S%(&ULW;2TM+2TM16UA8W,Z("IS8W)A=&-H*B @
M(" @(" @(" @=&EM92!A;F0@;&]A9" @("A,:7-P($EN=&5R86-T:6]N*2TM
M+2U!;&PM+2TM+2TM&ULX.S0R2!M;;1M;,S,[,S-(&ULW;51U92!&96(@,C$@
M-3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!Y;W4@;F5E9"!T;R!K;F]W(&ES(&AO=R!T;R!M;W9E(&%R
M;W5N9"!F<F]M&ULS,CLQ2!M;,3LQ2!M;,4T;6S,R.S%(&ULQ3'!L86-E('1O
M('!L86-E(&EN('1H92!F:6QE+B @66]U(&%L<F5A9'D@:VYO=R!H;W<@=&\@
M;6]V92!F;W)W87)D(&$;6S,R.S%(&ULQ.S%(&ULQ31M;,S([,4@;6S%,<V-R
M965N+"!W:71H($,M=BX@(%1O(&UO=F4@8F%C:W=A<F1S(&$@<V-R965N+"!T
M>7!E($TM=B H9&5P<F5S<R!T:&4;6S,R.S%(&ULQ.S%(&ULQ31M;,S([,4@;
M6S%,345402!K97D@86YD('1Y<&4@=BP@;W(@='EP92 \15-#/G8@:68@>6]U
M(&1O;B=T(&AA=F4@82!-151!(&]R($5$250;6S,S.S<Y2!M;-VTR&ULS,CLQ
M2!M;;1M;,3LQ2!M;,4T;6S,R.S%(&ULQ3&ME>2DN" @(" @;6S$[,4@;6S%-
M&ULS,CLQ2!M;,4P;6S$[,4@;6S%-&ULS,3LQ2!M;,4P;6S,R.S%(/CX@(%1R
M>2!T>7!I;F<@32UV(&%N9"!T:&5N($,M=B!T;R!M;W9E(&)A8VL@86YD(&9O
M<G1H(&$@9F5W('1I;65S+AM;,S([,4@;6S$[,4@;6S%-&ULS,CLQ2!M;,4P;
M6S$[,4@;6S%-&ULS,3LQ2!M;,4P;6S,R.S%(&ULS-#LQ2"A.;R!F:6QE<R!N
=965D('-A=FEN9RD;6S,R.S%(&ULS-#LQ2!M;2PTS
 
end

rms@WHEATIES.AI.MIT.EDU (Richard Stallman) (02/22/89)

Since Emacs just outputs characters, anything that causes the screen
to fail to be made up properly out of characters cannot be an Emacs
bug.