🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88018

Garbage char at end-of-line when display table used

#88018
From: Kaz Sasayama
Date: Sun, 14 Aug 1994 10:35
46 lines
2211 bytes
In GNU Emacs 19.25.2 of Sun Aug 14 1994 on lilia.iijnet.or.jp (i386-linux)

Garbage char appears for the moment when a char is self-inserted at
end-of-line when display table is used and the element is nil.

Try M-x standard-display-european and type any ASCII char at
end-of-line.

This is my fix.

*** 1.1	1994/08/14 07:47:11
--- keyboard.c	1994/08/14 07:49:39
***************
*** 1162,1174 ****
  			  Lisp_Object obj;
  
  			  obj = DISP_CHAR_VECTOR (dp, lose);
! 			  if (NILP (obj)
! 			      || (XTYPE (obj) == Lisp_Vector
! 				  && XVECTOR (obj)->size == 1
! 				  && (XTYPE (obj = XVECTOR (obj)->contents[0])
! 				      == Lisp_Int)
! 				  /* Insist face not specified in glyph.  */
! 				  && (XINT (obj) & ((-1) << 8)) == 0))
  			    no_redisplay
  			      = direct_output_for_insert (XINT (obj));
  			}
--- 1162,1175 ----
  			  Lisp_Object obj;
  
  			  obj = DISP_CHAR_VECTOR (dp, lose);
! 			  if (NILP (obj) && lose >= 0x20 && lose <= 0x7e)
! 			    no_redisplay = direct_output_for_insert (lose);
! 			  else if (XTYPE (obj) == Lisp_Vector
! 				   && XVECTOR (obj)->size == 1
! 				   && (XTYPE (obj = XVECTOR (obj)->contents[0])
! 				       == Lisp_Int)
! 				   /* Insist face not specified in glyph.  */
! 				   && (XINT (obj) & ((-1) << 8)) == 0)
  			    no_redisplay
  			      = direct_output_for_insert (XINT (obj));
  			}

-- 
Kaz Sasayama, a Nagoyan X68000 user.
  -- "An AT-compatible for Linux, and for all of X68000 hackers."
Technical Details
Message-ID: <m0qZajw-0003CQC@lilia.iijnet.or.jp>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!eff!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lilia.iijnet.or.JP!kaz

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,c0eaee33a57ef2e,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-14 03:51:51 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!eff!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!lilia.iijnet.or.JP!kaz
From: kaz@lilia.iijnet.or.JP (Kaz Sasayama)
Newsgroups: gnu.emacs.bug
Subject: Garbage char at end-of-line when display table used
Date: 14 Aug 1994 06:35:38 -0400
Organization: GNUs Not Usenet
Lines: 46
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <m0qZajw-0003CQC@lilia.iijnet.or.jp>