Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!milano!bigtex!rena!kogwy!titcca!etlcom!handa From: handa@etl.go.jp (Kenichi Handa) Newsgroups: gnu.emacs.bug Subject: insert-before-markers Message-ID: Date: 30 Nov 89 22:16:37 GMT Sender: news@etl.go.jp Distribution: gnu Organization: Electrotechnical Lab., Japan. Lines: 34 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 Brought to you by Super Global Mega Corp .com