Mercurial > emacs
comparison src/term.c @ 10121:3f9f77a9488d
(calculate_costs): Set FRAME_COST_BAUD_RATE.
Don't test dont_calculate_costs.
(dont_calculate_costs): Variable deleted.
(term_init): Don't set dont_calculate_costs.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 06 Dec 1994 08:49:33 +0000 |
parents | 05d9072c5a38 |
children | 4fd304db9216 |
comparison
equal
deleted
inserted
replaced
10120:8b5ae8d2eefc | 10121:3f9f77a9488d |
---|---|
55 int scroll_region_ok; /* Terminal supports setting the | 55 int scroll_region_ok; /* Terminal supports setting the |
56 scroll window */ | 56 scroll window */ |
57 int memory_below_frame; /* Terminal remembers lines | 57 int memory_below_frame; /* Terminal remembers lines |
58 scrolled off bottom */ | 58 scrolled off bottom */ |
59 int fast_clear_end_of_line; /* Terminal has a `ce' string */ | 59 int fast_clear_end_of_line; /* Terminal has a `ce' string */ |
60 | |
61 int dont_calculate_costs; /* Nonzero means don't bother computing */ | |
62 /* various cost tables; we won't use them. */ | |
63 | 60 |
64 /* Nonzero means no need to redraw the entire frame on resuming | 61 /* Nonzero means no need to redraw the entire frame on resuming |
65 a suspended Emacs. This is useful on terminals with multiple pages, | 62 a suspended Emacs. This is useful on terminals with multiple pages, |
66 where one page is used for Emacs and another for all else. */ | 63 where one page is used for Emacs and another for all else. */ |
67 int no_redraw_on_reenter; | 64 int no_redraw_on_reenter; |
1085 extern do_line_insertion_deletion_costs (); | 1082 extern do_line_insertion_deletion_costs (); |
1086 | 1083 |
1087 calculate_costs (frame) | 1084 calculate_costs (frame) |
1088 FRAME_PTR frame; | 1085 FRAME_PTR frame; |
1089 { | 1086 { |
1090 register char *f = TS_set_scroll_region ? | 1087 register char *f = (TS_set_scroll_region |
1091 TS_set_scroll_region | 1088 ? TS_set_scroll_region |
1092 : TS_set_scroll_region_1; | 1089 : TS_set_scroll_region_1); |
1093 | 1090 |
1094 if (dont_calculate_costs) | 1091 FRAME_COST_BAUD_RATE (frame) = baud_rate; |
1095 return; | |
1096 | 1092 |
1097 #ifdef HAVE_X_WINDOWS | 1093 #ifdef HAVE_X_WINDOWS |
1098 if (FRAME_X_P (frame)) | 1094 if (FRAME_X_P (frame)) |
1099 { | 1095 { |
1100 do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*", | 1096 do_line_insertion_deletion_costs (frame, 0, ".5*", 0, ".5*", |
1388 | 1384 |
1389 #ifdef WINDOWSNT | 1385 #ifdef WINDOWSNT |
1390 initialize_win_nt_display (); | 1386 initialize_win_nt_display (); |
1391 | 1387 |
1392 Wcm_clear (); | 1388 Wcm_clear (); |
1393 dont_calculate_costs = 0; | |
1394 | 1389 |
1395 area = (char *) malloc (2044); | 1390 area = (char *) malloc (2044); |
1396 | 1391 |
1397 if (area == 0) | 1392 if (area == 0) |
1398 abort (); | 1393 abort (); |
1421 | 1416 |
1422 return; | 1417 return; |
1423 #endif /* WINDOWSNT */ | 1418 #endif /* WINDOWSNT */ |
1424 | 1419 |
1425 Wcm_clear (); | 1420 Wcm_clear (); |
1426 dont_calculate_costs = 0; | |
1427 | 1421 |
1428 status = tgetent (buffer, terminal_type); | 1422 status = tgetent (buffer, terminal_type); |
1429 if (status < 0) | 1423 if (status < 0) |
1430 fatal ("Cannot open termcap database file.\n"); | 1424 fatal ("Cannot open termcap database file.\n"); |
1431 if (status == 0) | 1425 if (status == 0) |