Mercurial > emacs
comparison src/dispnew.c @ 4276:2298d2aff61c
Commented-out code added.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 25 Jul 1993 21:48:55 +0000 |
parents | 6bd55acfe9b5 |
children | 885452da2a8f |
comparison
equal
deleted
inserted
replaced
4275:2ed300d36643 | 4276:2298d2aff61c |
---|---|
1372 /* If there's no i/d char, quickly do the best we can without it. */ | 1372 /* If there's no i/d char, quickly do the best we can without it. */ |
1373 if (!char_ins_del_ok) | 1373 if (!char_ins_del_ok) |
1374 { | 1374 { |
1375 int i,j; | 1375 int i,j; |
1376 | 1376 |
1377 #if 0 | |
1378 if (FRAME_X_P (frame)) | |
1379 { | |
1380 /* Under X, erase everything we are going to rewrite, | |
1381 and rewrite everything from the first char that's changed. | |
1382 This is part of supporting fonts like Courier | |
1383 whose chars can overlap outside the char width. */ | |
1384 for (i = 0; i < nlen; i++) | |
1385 if (i >= olen || nbody[i] != obody[i]) | |
1386 break; | |
1387 | |
1388 cursor_to (vpos, i); | |
1389 if (i != olen) | |
1390 clear_end_of_line (olen); | |
1391 write_glyphs (nbody + i, nlen - i); | |
1392 } | |
1393 else | |
1394 {} | |
1395 #endif /* 0 */ | |
1377 for (i = 0; i < nlen; i++) | 1396 for (i = 0; i < nlen; i++) |
1378 { | 1397 { |
1379 if (i >= olen || nbody[i] != obody[i]) /* A non-matching char. */ | 1398 if (i >= olen || nbody[i] != obody[i]) /* A non-matching char. */ |
1380 { | 1399 { |
1381 cursor_to (vpos, i); | 1400 cursor_to (vpos, i); |