[gnu.emacs.bug] Redisplay bug

gentzel@GODOT.PSC.EDU (David Gentzel) (03/23/89)

I ran into a redisplay bug today which I've been able to reproduce on 18.47,
18.49, and 18.53 with both vt200 and vt52 terminal types.  It has to do with
the interaction between tabs and horizontal scrolling.

To reproduce (in an 80 column window) execute the following:
(progn
    (switch-to-buffer "*bug*")
    (erase-buffer)
    (insert "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
	    "xxxxxxxxxxxxxxxx\t    \nx\n")
    (goto-char (point-min))
    (scroll-left nil)
    (end-of-line))

Now type ^G^E^?.  Note that you've deleted a single space, but the redisplay
is wrong.  A ^L fixes things up.

The ^G^E is not strictly necessary, but seems to set things up to allow the
bug to be consistently reproduced.

I've looked at the code briefly but have admitted defeat (for the moment at
least).  Anyone have any ideas?

					Dave Gentzel
					Pittsburgh Supercomputing Center
					gentzel@godot.psc.edu
					or gentzel@morgul.psc.edu

rms@WHEATIES.AI.MIT.EDU (Richard Stallman) (04/13/89)

I just fixed this bug for version 19.  The fix is too hairy to be worth
putting in 18.  Thanks.