[gnu.emacs.bug] insert-before-markers

handa@etl.go.jp (Kenichi Handa) (12/01/89)

I found a peculiar bug in Emacs 18.55.  When I call
insert-before-markers, the screen of emacs does not reflect
the change (i.e. the insertion of some string).

To reproduce the bug:

1. Start emacs without argument (as a client of X or in
a terminal window).

2. Type in one letter (for instance 'a').

3. C-b to go back to the first column ((point-min) of the buffer).

4. ESC ESC (insert-before-markers "any-string") RET

After that the screen is not updated.  Once I type C-l, then
the screen is updated correctly, and after that, every
insert-before-markers at (point-min) of the buffer is
reflected on the screen simultaneously.

I think something is wrong in dispnew.c or xdisp.c, but
codes in these files are very hard to understand. :-(


My guess:

The struct 'window' has a field 'start' which is a marker
pointing to where in the text to start displaying.
'insert-before-markers' insert a string before this marker.
So, emacs thinks that it needs not update the screen because
the text after this marker was not changed.

---
Ken'ichi HANDA