aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog.multi-tty
blob: 099531b928b7f43c529cc531e832b51d144e1b00 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
2007-07-29  Dan Nicolaescu  <dann@ics.uci.edu>

	* puresize.h (BASE_PURESIZE): Increase.

2007-07-02  Dan Nicolaescu  <dann@ics.uci.edu>

	* frame.c (Qterm_environment_variable,
	Qdisplay_environment_variable): New variables.
	(syms_of_frame): Intern and staticpro them.

	* frame.h: Declare them here.

	* callproc.c (child_setup): Use the display-environment-variable
	and term-environment-variable frame params.
	(getenv_internal): Likewise.
	(set_initial_environment): Initialise Vprocess_environment.

2007-06-03  Dan Nicolaescu  <dann@ics.uci.edu>

	* xselect.c (x_handle_selection_clear): Only access
	terminal->kboard when MULTI_KBOARD is defined.

	* term.c (init_tty): Use terminal specific mouse_position_hook.

	* macterm.c (mac_create_terminal): Indent and rearrange to be more
	similar to the X11 version.

	* config.in: Disable multi-keyboard support on a mac.

2007-05-26  Dan Nicolaescu  <dann@ics.uci.edu>

	* sysdep.c: Comment out text after #endif.

2007-05-20  L$,1 q(Brentey K,Aa(Broly  <lorentey@elte.hu>

	* emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Revert to
	official Emacs pretest bug report address.

2007-05-19  Dan Nicolaescu  <dann@ics.uci.edu>

	* frame.c (Fmake_terminal_frame): Disable output method test. 

	* s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
	(SYSTEM_PURESIZE_EXTRA): Only define on Carbon.

	* termhooks.h (union display_info): Add mac_display_info.

	* term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
	is defined.

	* macterm.h (struct mac_display_info): Add terminal.

	* w32term.c (w32_initialize): Make static.

	* macterm.c (XTset_terminal_modes): Add a terminal parameter.
	(XTreset_terminal_modes): Likewise.
	(x_clear_frame): Add a frame parameter.
	(note_mouse_movement): Get rif from the frame.
	(mac_term_init): Initialize the terminal.
	(mac_initialize): Make static and move terminal initialization ...
	(mac_create_terminal): ... in this new function.

	* macmenu.c: Reorder includes.
	(Fx_popup_menu): Use terminal specific mouse_position_hook.

	* macfns.c (x_set_mouse_color): Get rif from the frame.
	(x_set_tool_bar_lines): Don't use updating_frame.
	(mac_window): Add 2 new parameters for consistency with other
	systems.  
	(Fx_create_frame): Fix doc string. Rename the parameter.
	(Fx_create_frame): Set the frame parameters following what is done
	in X11 and w32.
	(Fx_open_connection): Remove window-system check.
	(start_hourglass): Likewise.
	(x_create_tip_frame): Get the keyboard from the terminal.
	(Fx_create_frame): Don't use FRAME_MAC_DISPLAY_INFO.

	* w32fns.c (Fx_create_frame): Use kboard from the terminal.

2007-05-17  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (x_create_tip_frame): Set window_system.

2007-05-17  Dan Nicolaescu  <dann@ics.uci.edu>

	* term.c (init_tty): Better initialize ttys in windows.
	* w32fns.c (Fx_create_frame): Set the default minibuffer frame,
	window_system and the rest of the frame parameters following what
	is done in X11.

2007-05-17  Jason Rumney  <jasonr@gnu.org>

	* w32term.h (x_output): Remove foreground_pixel and background_pixel.
	(w32_clear_rect, w32_clear_area): Use background from frame.

	* w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.

	* w32fns.c (x_create_tip_frame): Set terminal and ref count.

2007-05-16  Jason Rumney  <jasonr@gnu.org>

	* makefile.w32-in: Update dependancies from Makefile.in

2007-05-15  Jason Rumney  <jasonr@gnu.org>

	* frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD
	defined.

	* keyboard.c (restore_kboard_configuration): Only define when
	MULTI_KBOARD defined.

	* terminal.c (init_initial_terminal): Only set initial_kboard when
	MULTI_KBOARD defined.

	* term.c (dissociate_if_controlling_tty) [WINDOWSNT]: Don't
	define function body.
	(init_tty) [WINDOWSNT]: Use selected_frame for initializing.

	* fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
	(mac_init_fringe) [MAC_OS]: Get rif from selected_frame.

	* termhooks.h (display_info) [WINDOWSNT]: Add w32.

	* xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.

	* frame.c (make_terminal_frame) [WINDOWSNT]: Initialize terminal.

	* w32.c (request_sigio, unrequest_sigio): Remove 

	* w32inevt.h, w32inevt.c (w32_console_read_socket): Make first
	arg a frame.

	* w32console.c (w32con_move_cursor, w32con_clear_to_end):
	(w32con_clear_frame, w32con_clear_end_of_line):
	(w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs):
	(w32con_delete_glyphs, w32con_set_terminal_window):
	(scroll_line, w32_sys_ring_bell): Add frame arg.
	(w32con_set_terminal_modes, w32con_reset_terminal_modes): Add
	terminal arg.
	(PICK_FRAME): Remove.
	(w32con_write_glyphs): Use frame specific terminal coding.
	(one_and_only_w32cons): New global variable.
	(initialize_w32_display): Use it for storing hooks.
	(create_w32cons_output): New function.

	* w32menu.c (Fx_popup_menu): Use terminal specific
	mouse_position_hook.

	* w32fns.c (x_set_tool_bar_lines): Don't use updating_frame.
	(Fx_create_frame): Set terminal and ref count.
	(Fx_open_connection): Remove window-system check.

	* w32term.c (w32_set_terminal_modes, w32_reset_terminal_modes):
	Add terminal arg.
	(x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
	Add frame arg.
	(x_delete_terminal, w32_create_terminal): New functions.
	(w32_term_init): Create a terminal.
	(w32_initialize): Move terminal specific initialization to
	w32_create_terminal.

	* w32term.h (w32_display_info): Add terminal.
	(w32_sys_ring_bell, x_delete_display): Declare here.

	* makefile.w32-in (OBJ1): Add terminal.$(O)

	* s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.

2007-04-22  Karoly Lorentey  <karoly@lorentey.hu>

	* xterm.c (x_scroll_bar_expose): Fix reference to foreground pixel.

2007-02-24  Karoly Lorentey  <karoly@lorentey.hu>

	* frame.c (x_set_screen_gamma, store_frame_param): Fix compilation
	errors.

2006-12-03  Karoly Lorentey  <lorentey@elte.hu>

	* window.c (set_window_buffer): Don't call clear_mouse_face on tty
	frames.

2006-10-14  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Increase puresize.

	* alloc.c (emacs_blocked_malloc): Disable mallopt call.

2006-07-30  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Increase to 1126000.

2006-07-29  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
	Fix get_named_tty calls for the controlling tty.
	(Patch by Kalle Olavi Niemitalo <kon@iki.fi>)

2006-07-29  Karoly Lorentey  <lorentey@elte.hu>

	* xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]:
	Rename from Fmenu_bar_open.
	(syms_of_xmenu): Update defsubr.

2006-07-29  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.h: Remove declaration for x_fully_uncatch_errors.

	* xterm.c (x_fully_uncatch_errors): Disable definition.

	* eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
	(internal_condition_case, internal_condition_case_1)
	(internal_condition_case_2): Don't abort when x_catching_errors.

2006-05-26  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (Vglobal_environment, Vlocal_environment_variables):
	Remove.
	(getenv_internal, child_setup): Don't look at global-environment
	or local-environment-variables.
	(Fgetenv_internal): Update docs.
	(set_initial_environment): Rename from set_global_environment.
	Store Emacs environment in initial frame parameter.
	(syms_of_callproc): Remove obsolete defvars.  Update docs.

	* emacs.c (main): Call set_initial_environment, not
	set_global_environment.

2006-05-20  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (make_terminal_frame): Don't create frames on a terminal
	that is being deleted.
	* xfns.c (Fx_create_frame, x_create_tip_frame): Ditto.

	* keyboard.c (tty_read_avail_input): Don't read from a terminal that
	is being deleted.

	* term.c (get_named_tty): Abort if tty name is NULL.  Simplify
	accordingly.

	* term.c (Ftty_type): Return nil if terminal is not on a tty instead
	of throwing an error.  Doc update.

	* term.c (init_tty): Set name before calling `get_named_tty'.

	* term.c (delete_tty): Let delete_terminal delete the frames.  Plug
	memory leak caused by tty->name.  Remove reference to `deleting_tty'.

	* term.c (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
	Doc update.

	* termhooks.h (terminal) <name>: Explain why identifying terminals
	by name is a bad idea.

	* terminal.c (delete_terminal): Doc update.

	* xterm.c (XTread_socket): Disable loop on all X displays.

	* xterm.c (x_delete_display): Doc update to reflect changes in
	delete_terminal.

	* xterm.c (x_delete_terminal): Don't set terminal->deleted and let
	delete_terminal delete the frames on the terminal.

	* xterm.h (x_display_info) <terminal>: Move member earlier in the
	struct.

2006-05-20  Karoly Lorentey  <lorentey@elte.hu>

	* termhooks.h (terminal) <deleted>: New member.

	* term.c (delete_tty): Use it.
	(deleting_tty): Remove old variable.

	* terminal.c (delete_terminal): Use terminal->deleted.

	* xterm.c (x_delete_terminal): Use terminal->deleted.  Delete all
	frames on the display explicitly.

2006-05-20  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (Fsuspend_tty): Call clear_tty_hooks.
	(Fresume_tty, init_tty): Call set_tty_hooks.
	(clear_tty_hooks, set_tty_hooks): New functions.

2006-05-20  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Increase to 1240000.

2006-05-20  Karoly Lorentey  <lorentey@elte.hu>

	* xfaces.c (realize_default_face): Don't use FRAME_FONT unless frame
	is an X frame.

2006-04-20  Karoly Lorentey  <lorentey@elte.hu>

	* dispnew.c (Fsend_string_to_terminal): Update call to
	`get_tty_terminal'.

	* term.c (Fsuspend_tty, Fresume_tty): Update call to
	`get_tty_terminal'.
	(get_tty_terminal): Add throw parameter.
	(Ftty_display_color_p, Ftty_display_color_cells): Don't throw
	errors on X frames.

	* dispextern.h (get_tty_terminal): Update prototype.

2006-04-01  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (make_terminal_frame): Use FRAME_BACKGROUND_PIXEL and
	FRAME_FOREGROUND_PIXEL.
	* gtkutil.c (xg_create_frame_widgets): Ditto.
	* macfns.c (x_set_mouse_color): Ditto.
	* macfns.c (x_make_gc): Ditto.
	* msdos.c (ScreenVisualBell): Ditto.
	* msdos.c (internal_terminal_init): Ditto.
	* w32term.c (x_free_frame_resources): Ditto.
	* xfns.c (x_window): Ditto.
	* xterm.c (x_scroll_bar_create): Ditto.
	* xterm.c (x_scroll_bar_set_handle): Ditto.

2006-04-01  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.h (x_output): Remove background_pixel and foreground_pixel
	fields.

	* widget.c (update_from_various_frame_slots): Use
	FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.

	* xfns.c (x_set_foreground_color): Ditto.
	* xfns.c (x_set_background_color): Ditto.
	* xfns.c (x_set_mouse_color): Ditto.
	* xfns.c (x_set_cursor_color): Ditto.
	* xfns.c (x_make_gc): Ditto.
	* xfns.c (Fx_create_frame): Ditto.
	* xfns.c (x_create_tip_frame): Ditto.
	* xfns.c (build_string): Ditto.
	* xterm.c (XTflash): Ditto.
	* xterm.c (x_free_frame_resources): Ditto.

2006-03-26  Karoly Lorentey  <lorentey@elte.hu>

	* term.c: Include errno.h.
	(Fcontrolling_tty_p): Compare name with "/dev/tty", not NULL.
	(Fresume_tty): Handle errors on reopening ttys.  Don't dissociate
	if terminal was explicitly opened on the controlling terminal.
	(init_tty): Initialize local pointers.  Always set name (use
	"/dev/tty" for controlling tty.)  Remove special case for name ==
	NULL.

2006-03-26  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (syms_of_frame): Enhance doc string of `default-frame-alist'.

2006-03-12  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (x_create_tip_frame): Fix syntax error.

2006-03-12  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (Fx_create_frame): Use `store_frame_param' to set
	`window-system' frame parameter, and make sure it overrides any
	user-supplied setting.

	* xfns.c (x_icon): Disable redundant call to
	`x_wm_set_window_state'. (Also applied in CVS.)

2006-03-08  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (Fmake_terminal_frame): Handle NULL tty names correctly.

2006-03-08  Karoly Lorentey  <lorentey@elte.hu>

	* .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
	Vwindow_system.

2006-02-25  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (read_key_sequence): Remove unused variable
	wrong_kboard_jmpbuf.

2006-02-25  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (store_frame_param): Check for found_for_frame before
	calling XFRAME.

2006-02-23  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Increase to 1230000.

2006-02-20  Karoly Lorentey  <lorentey@elte.hu>

	* regex.c (extend_range_table_work_area, regex_compile, fastmap):
	Revert previous unnecessary changes.

2006-02-14  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (Fset_quit_char): Don't leave tty state uninitialized
	after an error.

2006-02-12  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.c (x_catch_errors_unwind): Abort if x_error_message is NULL.

2006-01-30  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (getenv_internal): Fix C99ism.

2006-01-28  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (read_char): Declare.  Update call to
	`read_char_minibuf_menu_prompt'.  Set wrong_kboard_jmpbuf correctly in
	recursive calls.
	(read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
	parameter.  Use it in call to `read_char'.

2006-01-17  Karoly Lorentey  <lorentey@elte.hu>

	* Makefile.in (SOME_MACHINE_LISP): Fix typo.

2006-01-11  Karoly Lorentey  <lorentey@elte.hu>

	* process.c (Fmake_network_process): Don't unrequest_sigio on modern
	systems.

	* keyboard.c (Fset_input_interrupt_mode): Cosmetic change.

	* sysdep.c (request_sigio): Make it a no-op if noninteractive.
	(unrequest_sigio): Make it a no-op if noninteractive.

2006-01-05  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (read_char): Enhance comment before extra longjmp to
	wrong_kboard_jmpbuf.
	(read_key_sequence): Handle deleted interrupted_kboards correctly; that
	is a legal case.

2006-01-03  Karoly Lorentey  <lorentey@elte.hu>

	* callint.c (Fcall_interactively): Update call to
	`temporarily_switch_to_single_kboard'.

	* fns.c (Fy_or_n_p): Ditto.

	* frame.c (Fdelete_frame): Remove unused variable `count'.

	* keyboard.c (wrong_kboard_jmpbuf): Remove global variable.

	* keyboard.c (read_char): Add wrong_kboard_jmpbuf parameter to allow
	for recursive calls.  Update longjmp invocations.  Remember the
	original current_kboard, and longjmp to `wrong_kboard_jmpbuf' when a
	filter, timer or sentinel changes it.  Comment out unnecessary calls to
	`record_single_kboard_state' and `any_kboard_state'.  Update recursive
	calls.

	* keyboard.c (read_key_sequence): Add `wrong_kboard_jmpbuf' local
	variable.  Update setjmp and read_char calls.  Abort if
	interrupted_kboard died in read_char.

	* keyboard.c (any_kboard_state, single_kboard_state)
	(record_single_kboard_state): Comment out obsolete functions.
	(push_frame_kboard): Remove function.
	(pop_kboard): Switch out of single_kboard mode if the
	kboard has been deleted.
	(temporarily_switch_to_single_kboard): Change first
	parameter to a frame pointer.  Throw an error when caller wants to
	change kboards while in single_kboard mode.
	(restore_kboard_configuration): Abort if pop_kboard changed
	the kboard in single_kboard mode.
	(Frecursive_edit): Switch to single_kboard mode only in
	nested command loops.
	(cmd_error, command_loop, command_loop_1, timer_check):
	Comment out unnecessary call to `any_kboard_state' and
	`record_single_kboard_state'.

	* keyboard.c (delete_kboard): Exit single_kboard mode if we have just
	deleted that kboard.

	* keyboard.c (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
	`fatal_error_signal'.

	* keyboard.h (read_char, single_kboard_state)
	(record_single_kboard_state): Remove.
	(temporarily_switch_to_single_kboard): Update.

	* lread.c: Include setjmp.h.  Update declaration of `read_char'.
	(read_filtered_event): Call `read_char' with a local
	`wrong_kboard_jmpbuf'.

	* minibuf.c (read_minibuf): Update call to
	`temporarily_switch_to_single_kboard'.

	* termchar.h (tty_display_info): Rename `previous_terminal_frame'
	member to `previous_frame'.

	* xdisp.c (redisplay_internal): Update references to
	`previous_terminal_frame'.
	(display_mode_line, Fformat_mode_line): Replace calls to
	`push_frame_kboard' with `push_kboard'.

2006-01-02  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (pop_kboard): Help debugging by not changing
	current_kboard unnecessarily.
	(temporarily_switch_to_single_kboard, record_single_kboard_state):
	Don't push_kboard if we weren't in single kboard state.
	Don't pop_kboard if we popped into any kboard state.

2006-01-01  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (Fx_close_connection, Fx_synchronize): Unify argument names
	with the rest of the DEFUNs.

2005-12-31  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (Fframe_with_environment): Fix typo.

2005-12-31  Karoly Lorentey  <lorentey@elte.hu>

	* terminal.c: Include <stdio.h>.

2005-12-30  Karoly Lorentey  <lorentey@elte.hu>

	* xdisp.c (get_glyph_string_clip_rects): Add extra parentheses and
	braces to prevent compiler warnings.
	(calc_pixel_width_or_height): Add xassert to check that the
	frame is alive.  Don't call `lookup_image' on a termcap frame.

	* image.c (lookup_image): Don't initialize `c' until the xasserts
	have been run.

2005-12-29  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (syms_of_callproc): Initialize
	`Vlocal-environment-variables' to `Qt'.

2005-12-29  Karoly Lorentey  <lorentey@elte.hu>

	* termhooks.h (struct device): Rename to `terminal'.  Rename member
	`next_device' to `next_terminal'.
	(device_list): Rename to `terminal_list'.
	(FRAME_DEVICE): Rename to `FRAME_TERMINAL'.
	(DEVICE_TERMINAL_CODING): Rename to `TERMINAL_TERMINAL_CODING'.
	(TERMINAL_KEYBOARD_CODING): Rename to `TERMINAL_KEYBOARD_CODING'.
	(DEVICE_ACTIVE_P): Rename to `TERMINAL_ACTIVE_P'.
	Update declarations and macro definitions.

	* termchar.h (tty_display_info): Rename member `device' to `terminal'.
	(FRAME_TTY): Update for renames.

	* xterm.h (x_display_info): Rename member `device' to `terminal'.

	* frame.h (frame): Rename `device' member to `terminal'.
	(FRAME_KBOARD, FRAME_LIVE_P, Qdevice, Qdisplay_live_p):
	Update for renames.

	* lisp.h (set_process_environment): Rename to `set_global_environment'.
	(device): Rename to `terminal'.

	* dispextern.h: Update declarations and macro definitions.

	* terminal.c (device_list): Rename to `terminal_list'.
	(next_device_id): Rename to `next_terminal_id'.
	(initial_device): Rename to `initial_terminal'.
	(get_device): Rename to `get_terminal'.
	(create_device): Rename to `create_terminal'.
	(mark_devices): Rename to `mark_terminals'.
	(delete_device): Rename to `delete_terminal'.
	(Fdelete_display): Rename to `Fdelete_terminal'.
	(Fframe_terminal): Move here from frame.c.
	(Fdisplay_live_p): Rename to `Fterminal_live_p'.
	(Fdisplay_list): Rename to `Fterminal_list'.
	(Fdisplay_name): Rename to `Fterminal_name'.
	(init_initial_device): Rename to `init_initial_terminal'.
	(delete_initial_device): Rename to `delete_initial_terminal'.
	(ring_bell, update_begin, update_end, set_terminal_window)
	(cursor_to, raw_cursor_to, clear_to_end, clear_frame)
	(clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
	(ins_del_lines, get_terminal_param, store_terminal_param)
	(Fterminal_parameters, Fterminal_parameter)
	(Fmodify_terminal_parameters, Fset_terminal_parameter)
	(syms_of_terminal): Update for renames.

	* term.c (get_tty_device): Rename to `get_tty_terminal'.  Update.
	(Fdisplay_tty_type): Rename to `Ftty_type'.
	(Fdisplay_controlling_tty_p): Rename to `Fcontrolling_tty_p'.
	(delete_tty, tty_set_terminal_modes, tty_reset_terminal_modes)
	(Ftty_display_color_p, Ftty_display_color_cells, get_named_tty)
	(Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
	(init_tty, maybe_fatal, delete_tty, syms_of_term): Update for rename.

	* frame.c (Qdevice): Rename to `Qterminal'.
	(Qdisplay_live_p): Rename to `Qterminal_live_p'.
	(terminal_frame_count): Rename to `tty_frame_count'.
	(Fframe_display): Move to terminal.c, rename to `Fframe_terminal'.
	(make_frame_without_minibuffer, make_initial_frame)
	(make_terminal_frame, Fmodify_frame_parameters)
	(do_switch_frame, Fdelete_frame, Fmouse_position)
	(Fmouse_pixel_position, Fraise_frame, Flower_frame)
	(Fredirect_frame_focus, set_term_frame_name, syms_of_frame):
	Update for renames.

	* xdisp.c (message2_nolog, message3_nolog, redisplay_internal)
	(set_vertical_scroll_bar, redisplay_window, check_x_display_info)
	(x_set_scroll_bar_foreground, x_set_scroll_bar_background)
	(Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
	(Fx_display_pixel_width, Fx_display_pixel_height)
	(Fx_display_planes, Fx_display_color_cells)
	(Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
	(Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
	(Fx_display_backing_store, Fx_display_visual_class)
	(Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
	Update for renames.

	* xterm.c (handle_one_xevent): Initialize `f' to NULL.
	(x_delete_device): Rename to `x_delete_terminal'.
	(x_create_device): Rename to `x_create_terminal'.
	(XTset_terminal_modes, XTreset_terminal_modes)
	(XTread_socket, x_connection_closed, x_term_init)
	(x_term_init, x_delete_display): Update for renames.

	* dispnew.c (Fredraw_frame, Fsend_string_to_terminal)
	(Fsend_string_to_terminal, init_display): Update for renames.

	* keyboard.c (push_frame_kboard, pop_kboard, pop_kboard)
	(kbd_buffer_get_event, read_avail_input, tty_read_avail_input)
	(interrupt_signal, Fset_output_flow_control)
	(Fset_input_meta_mode, Fset_quit_char, delete_kboard)
	(syms_of_keyboard): Update for renames.

	* alloc.c (mark_devices): Update declaration.
	(Fgarbage_collect): Update for renames.

	* coding.c (Fset_terminal_coding_system_internal)
	(Fterminal_coding_system4)
	(Fset_keyboard_coding_system_internal)
	(Fkeyboard_coding_system): Update for renames.

	* data.c (Fterminal_local_value, Fset_terminal_local_value):
	Update for renames.

	* minibuf.c (read_minibuf): Update for renames.

	* sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.

	* xselect.c (x_handle_selection_clear): Update for renames.

2005-12-29  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (Fgetenv_internal, syms_of_callproc): Update doc strings.

2005-12-29  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (child_setup, getenv_internal, Fgetenv_internal):
	Store the local environment in a frame (not terminal) parameter.
	Update doc strings.
	(syms_of_callproc): Update doc strings.
	(Qenvironment): Moved to frame.c.

	* frame.c (Qenvironment): Move here from callproc.c.
	(Fdelete_frame): Don't allow other frames to refer to a deleted frame
	in their 'environment parameter.
	(Fframe_with_environment): New function.
	(syms_of_frame): Defsubr it.  Initialize and staticpro Qenvironment.

	* frame.h (Qenvironment): Declare.
	* lisp.h (Fframe_with_environment): EXFUN it.

2005-12-29  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (syms_of_callproc): Initialize Vprocess_environment
	to nil.

2005-12-29  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (Vglobal_environment): New variable, taking over the
	previous role of `Vprocess_environment', which is now something else.
	(add_env): New function.
	(child_setup): Use it.
	(child_setup, getenv_internal): Rename Vprocess_environment to
	Vglobal_environment.  Handle the new Vprocess_environment.
	(Fgetenv_internal, egetenv): Update doc.
	(set_process_environment): Rename to `set_global_environment'.  Rename
	Vprocess_environment to Vglobal_environment.
	(syms_of_callproc): Rename process-environment to global-environment,
	add new process-environment, update docs.

	* emacs.c (main): Call set_global_environment instead of
	set_process_environment.

	* fileio.c (Fread_file_name): Update comment.

2005-12-26  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c (getenv_internal): Fix get_terminal_param call.

	* dispextern.h (get_device): Move declaration to termhooks.h.
	* termhooks.h (get_device): Move here.

2005-12-26  Karoly Lorentey  <lorentey@elte.hu>

	* callproc.c: Include frame.h and termhooks.h, for terminal parameters.
	(Qenvironment): New constant.
	(Vlocal_environment_variables): New variable.
	(syms_of_callproc): Register and initialize them.
	(child_setup): Handle Vlocal_environment_variables.
	(getenv_internal): Add terminal parameter.  Handle
	Vlocal_environment_variables.
	(Fgetenv_internal): Add terminal parameter.

	* termhooks.h (get_terminal_param): Declare.

	* Makefile.in (callproc.o): Update dependencies.

2005-12-25  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (Vring_bell_function, device_list, initial_device)
	(next_device_id, ring_bell, update_begin, update_end)
	(set_terminal_window, cursor_to, raw_cursor_to)
	(clear_to_end, clear_frame, clear_end_of_line)
	(write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
	(get_device, Fdisplay_name, create_device, delete_device)
	(Fdelete_display, Fdisplay_live_p, Fdisplay_list)
	Move to terminal.c.
	(syms_of_term): Move their initialization to terminal.c.

	* terminal.c: New file.
	(device_list, next_device_id, initial_device, Vring_bell_function)
	(ring_bell, update_begin, update_end, set_terminal_window)
	(cursor_to, raw_cursor_to, clear_to_end, clear_frame)
	(clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs)
	(ins_del_lines, get_device, create_device, delete_device)
	(Fdelete_display, Fdisplay_live_p, Fdisplay_list, Fdisplay_name):
	Move here.
	(mark_devices, get_terminal_param, store_terminal_param)
	(Fterminal_parameters, Fterminal_parameter)
	(Fmodify_terminal_parameters, Fset_terminal_parameter)
	(init_initial_device, delete_initial_device)
	(syms_of_terminal): New functions.

	* Makefile.in (obj): Add terminal.o.
	(terminal.o): Add dependencies.
	[HAVE_CARBON]: Make terminal.o depend on macgui.h.

	* alloc.c (mark_devices): Declare.
	(Fgarbage_collect): Call `mark_devices'.

	* dispextern.h  (set_scroll_region, turn_off_insert)
	(turn_off_highlight, background_highlight, clear_end_of_line_raw)
	(tty_clear_end_of_line, tty_setup_colors, delete_tty): Remove.
	(raw_cursor_to, clear_to_end, tty_turn_off_insert)
	(tty_turn_off_highlight): Add declaration.

	* emacs.c (main): Call `syms_of_terminal'.

	* frame.c (get_future_frame_param): New function.
	(Fmake_terminal_frame): Use it.

	* keyboard.c (pop_kboard): Remove unused variable.
	(Fset_output_flow_control): Return nil.

	* keymap.h (Fset_keymap_parent): Add EXFUN.

	* lisp.h (syms_of_terminal): Declare it.

	* sysdep.c (reset_sys_modes): Update for renames.

	* term.c (set_scroll_region): Rename to `tty_set_scroll_region'.
	(turn_on_insert): Rename to `tty_turn_on_insert'.
	(turn_off_insert): Rename to `tty_turn_off_insert'.
	(turn_off_highlight): Rename to `tty_turn_off_highlight'.
	(turn_on_highlight): Rename to `tty_turn_on_highlight'.
	(toggle_highligh): Rename to `tty_toggle_highlight'.
	(background_highlight): Rename to `tty_background_highlight'.
	(highlight_if_desired): Rename to `tty_highlight_if_desired'.

	(tty_ring_bell, tty_update_end, tty_set_terminal_window)
	(tty_set_scroll_region, tty_background_highlight)
	(tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
	(tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
	(tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
	(term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty)
	(delete_tty): Add static modifier.

	(tty_reset_terminal_modes, tty_set_terminal_window)
	(tty_set_scroll_region, tty_background_highlight)
	(tty_highlight_if_desired, tty_cursor_to)
	(tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
	(tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
	(tty_delete_glyphs, tty_ins_del_lines, turn_on_face):
	Update for renames.

	* termhooks.h (param_alist): New member to struct device.

	* xterm.h (x_delete_device): Declare.

2005-12-23  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (Fset_input_interrupt_mode): Fix compilation error
	during non-X builds.

2005-12-23  Karoly Lorentey  <lorentey@elte.hu>

	* print.c (print_preprocess): Don't loose print_depth levels while
	iterating.

2005-12-23  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (Fset_input_interrupt_mode, Fset_output_flow_control)
	(syms_of_keyboard): Defsubr them.
	(Fset_input_meta_mode, Fset_quit_char): New functions.
	(Fset_input_mode): Split to above functions.

	* lisp.h: EXFUN the new functions.

	* xterm.c (x_initialize): Use Fset_input_interrupt_mode.
	* macterm.c (mac_initialize): Ditto.

2005-12-22  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (suspend-tty): Update doc string.

2005-12-19  Karoly Lorentey  <lorentey@elte.hu>

	* dispnew.c (window_change_signal): Fix typo.

2005-12-13  Karoly Lorentey  <lorentey@elte.hu>

	* dispnew.c (window_change_signal): Don't believe width/height values
	that are impossibly small.

2005-12-12  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.c (x_term_init) [!HAVE_GTK_MULTIDISPLAY]:
	Refuse to create secondary X connections.

2005-12-12  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (kbd_buffer_store_event_hold): Simplify condition.
	(read_key_sequence): Reinitialize fkey and keytran at each replay.

	* coding.c (Fkeyboard_coding_system): Update doc.

2005-11-19  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Increase to 1220000.

2005-11-07  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Increase to 1210000.

2005-11-07  Karoly Lorentey  <lorentey@elte.hu>

	* data.c (do_symval_forwarding, store_symval_forwarding)
	(find_symbol_value): Use the selected frame's keyboard, not
	current_kboard.

	* data.c (Fterminal_local_value, Fset_terminal_local_value): Disable
	these functions.

	* data.c (syms_of_data): Don't defsubr them.

2005-10-29  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (mark_kboards): Also mark Vkeyboard_translate_table.

2005-10-28  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (Vkeyboard_translate_table): Moved to struct kboard.
	* keyboard.h (Vkeyboard_translate_table): Moved to struct kboard.

	* keyboard.c (read_char): Use current_kboard to access
	Vkeyboard_translate_table.
	* keymap.c (Fdescribe_buffer_bindings): Ditto.

	* keyboard.c (init_kboard): Initialize Vkeyboard_translate_table.

	* keyboard.c (syms_of_keyboard): Use DEFVAR_KBOARD to define
	Vkeyboard_translate_table. Update doc strings.

2005-10-28  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (syms_of_keyboard): Update docs of
	local-function-key-map and function-key-map.

2005-10-23  Karoly Lorentey  <lorentey@elte.hu>

	* emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Change address to the
	multi-tty mailing list.

2005-09-19  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (tty_set_terminal_modes): Output newlines on the correct
	terminal device.

2005-09-11  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (pop_kboard): Set current_kboard to the kboard of the
	selected frame when the stored kboard object has been deleted before
	pop_kboard.
	(restore_kboard_configuration): Call pop_kboard only after setting up
	single_kboard mode.

2005-09-11  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c: Add forward declaration of restore_kboard_configuration.

	emacs--multi-tty--0--patch-414

	* fns.c: Include termhooks.h.
	(Fy_or_n_p): Use temporarily_switch_to_single_kboard to prevent crashes
	caused by bogus longjmps in read_char.

	* callint.c (Fcall_interactively): Use
	temporarily_switch_to_single_kboard instead of single_kboard_state.
	Make sure it is correctly unwinded.

	* keyboard.c (recursive_edit_unwind): Remove single_kboard stuff.
	(Frecursive_edit): Use temporarily_switch_to_single_kboard for
	single_kboard state management.

	* minibuf.c (read_minibuf): Use temporarily_switch_to_single_kboard
	instead of simply calling single_kboard_state.

	* keyboard.c (push_device_kboard): Remove function.
	(push_kboard): New function.
	(push_frame_kboard): Use it.
	(pop_frame_kboard): Rename to pop_kboard.

	* xdisp.c (display_mode_line, Fformat_mode_line): Update uses.

	* data.c: Include termhooks.h.
	(Fterminal_local_value, Fset_terminal_local_value): Update.

	* Makefile.in (data.o, fns.o): Add termhooks.h dependency.

	* keyboard.h (push_device_kboard, pop_frame_kboard): Remove
	declarations.
	(push_kboard, pop_kboard, temporarily_switch_to_single_kboard)
	(record_single_kboard_state): New declarations.

2005-09-11  Karoly Lorentey  <lorentey@elte.hu>

	* dispextern.h (get_tty_device): Declare.

	* dispnew.c (Fsend_string_to_terminal): Add optional TERMINAL
	parameter.

	* fns.c (Fy_or_n_p, Fyes_or_no_p): Don't try to open an X dialog on
	tty terminals.

	* term.c (get_tty_device): Remove static qualifier.

	* xmenu.c (create_and_show_dialog, create_and_show_popup_menu)
	(free_frame_menubar, mouse_position_for_popup, set_frame_menubar)
	(update_frame_menubar, x_activate_menubar, xdialog_show, xmenu_show):
	Abort when given a non-X frame.

	* xmenu.c (Fx_popup_menu, Fx_popup_dialog): Throw an error when run
	on a non-X frame.

2005-09-07  Karoly Lorentey  <lorentey@elte.hu>

	* dispnew.c (init_display): Set up `window-system' and `tty-type'
	frame parameters in the initial tty frame.

	* frame.c (Fmake_terminal_frame): Look up the `tty-type' frame
	parameter, not `tty' when discovering the tty type of the new frame.
	Initialize `tty' and `tty-type' frame parameters in the new frame.

2005-08-04  Karoly Lorentey  <lorentey@elte.hu>

	* window.c (window_internal_height): Remove bogus make_number call.

2005-08-04  Karoly Lorentey  <lorentey@elte.hu>

	* xsmfns.c (x_session_close): New function.
	* xterm.h: Declare it.

	* xterm.c (XTread_socket): Don't call x_session_check_input for
	secondary displays.
	(x_term_init): Do not initialize X session management when the
	initial display was a tty frame.
	(x_delete_display): Close X session management when we close its
	display.

2005-07-12  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.h (struct kboard): Rename member 'Vfunction_key_map' to
	'Vlocal_function_key_map', and 'Vkey_translation_map' to
	'Vlocal_key_translation_map'.
	(Vfunction_key_map, Vkey_translation_map): New declarations.

	* keyboard.c (Vfunction_key_map): New variable.
	(Vglobal_key_translation_map): Rename to
	Vglobal_key_translation_map.
	(read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
	Update.

	* keymap.c (Fdescribe_buffer_bindings): Update.
	* term.c (term_get_fkeys_1): Update.


2005-07-11  Karoly Lorentey  <lorentey@elte.hu>

	* xdisp.c (select_frame_for_redisplay): Fix xassert.

2005-07-11  Karoly Lorentey  <lorentey@elte.hu>

	* termhooks.h (struct device): Rename to `struct device'.
	Rename member `next_display' to `next_device'.
	Rename member `delete_display_hook' to `delete_device_hook'.
	(FRAME_DISPLAY): Rename to FRAME_DEVICE.
	(DISPLAY_ACTIVE_P): Rename to DEVICE_ACTIVE_P.
	(DISPLAY_TERMINAL_CODING): Rename to DEVICE_TERMINAL_CODING.
	(DISPLAY_KEYBOARD_CODING): Rename to DEVICE_KEYBOARD_CODING.

	* frame.h (stuct frame): Rename `display' member to `device'.

	* xterm.h (x_display_info): Rename member `frame_display' to `device'.

	* termchar.h (struct tty_display_info): Rename `display' member to
	`device'.

	* keyboard.c (push_display_kboard): Rename to push_device_kboard.

	* frame.c (Fmake_terminal_frame): Ditto.
	* xfns.c (Fx_create_frame): Ditto.

	* term.c (display_list): Rename to device_list.
	* term.c (initial_display): Rename to initial_device.
	* term.c (next_display_id): Rename to next_device_id.
	* term.c (get_display): Rename to get_device.
	* term.c (get_tty_display): Rename to get_tty_device.
	* term.c (get_named_tty_display): Rename to get_named_tty.
	* term.c (init_initial_display): Rename to init_initial_device.
	* term.c (delete_initial_display): Rename to delete_initial_device.
	* term.c (create_display): Rename to create_device.
	* term.c (delete_display): Rename to delete_device.

	* xfns.c (check_x_display_info): Document that the function allows
	display ids as well.

	* xterm.c (x_delete_frame_display): Rename to x_delete_device.
	* xterm.c (x_create_frame_display): Rename to x_create_device.

	* coding.c: Update.
	* dispextern.h: Update.
	* data.c: Update.
	* dispnew.c: Update.
	* frame.c: Update.
	* frame.h: Update.
	* keyboard.c: Update.
	* keyboard.h: Update.
	* lisp.h: Update.
	* sysdep.c: Update.
	* term.c: Update.
	* xdisp.c: Update.
	* xselect.c: Update.
	* xterm.c: Update.

	* prefix-args.c: Include stdlib.h for exit.

2005-07-10  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (term_init): Rename to init_tty.

	* dispextern.h (term_init): Rename to init_tty.

	* dispnew.c (init_display): Update.
	* frame.c (Fmake_terminal_frame): Update.
	* term.c (tty_setup_colors): Update comment.

2005-07-10  Karoly Lorentey  <lorentey@elte.hu>

	* xdisp.c (select_frame_for_redisplay): Add xassert for
	FRAME_LIVE_P.
	(unwind_redisplay): Don't restore previous frame if it has been
	deleted.

2005-07-10  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (term_init): Move maybe_fatal declaration to top-level to
	prevent complaints from GCC 4.0.

2005-07-06  Karoly Lorentey  <lorentey@elte.hu>

	* frame.c (syms_of_frame): Add warning to `delete-frame-functions' description.

2005-07-03  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (tty_set_terminal_modes, tty_reset_terminal_modes): Flush
	tty output before returning.

	* sysdep.c (reset_sys_modes): Remove superflous fflush call.

2005-06-27  Karoly Lorentey  <lorentey@elte.hu>

	* data.c (Fterminal_local_value, Fset_terminal_local_value): New functions.
	(syms_of_data): Defsubr them.

	* keyboard.c (syms_of_keyboard): Expand docs of terminal-local
	variables to warn about their random bindings.

2005-06-27  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (push_display_kboard): New function.
	* keyboard.h (push_display_kboard): Declare it.

2005-06-27  Karoly Lorentey  <lorentey@elte.hu>

	* termhooks.h (display): New field: kboard.

	* xterm.h (x_display_info): Remove kboard field.
	* termchar.h (tty_display_info): Ditto.
	* frame.h (frame): Ditto.
	(FRAME_KBOARD): Update.

	* dispnew.c (init_display): Don't initialize kboard.
	* frame.c (make_frame, make_initial_frame, make_terminal_frame): Ditto.

	* frame.c (make_frame_without_minibuffer, Fdelete_frame): Update
	kboard access.
	* keyboard.c (delete_kboard): Ditto.
	* term.c (term_init): Ditto.
	* xfns.c (Fx_create_frame, x_create_tip_frame): Ditto.
	* xselect.c (x_handle_selection_clear): Ditto.
	* xterm.c (x_term_init): Ditto.

	* term.c (init_initial_display): Initialize kboard.
	* xterm.c (x_term_init): Ditto.

	* term.c (delete_tty): Remove kboard deletion.
	(delete_display): Delete kboard as well.

2005-06-26  Karoly Lorentey  <lorentey@elte.hu>

	* keymap.c (Vkey_translation_map): Remove.
	(syms_of_keymap): Remove DEFVAR for key-translation-map.
	(Fdescribe_buffer_bindings): Update for terminal-local
	key-translation-map.

	* keyboard.h (kboard): Add Vkey_translation_map field.
	(Vglobal_key_translation_map): Declare.

	* keyboard.c (Vglobal_key_translation_map): New variable.
	(syms_of_keyboard): DEFVAR it and Vkey_translation_map.
	(mark_kboards): Mark key-translation-map.
	(read_key_sequence): Update for terminal-local key-translation-map.

	* emacs.c (main): Call syms_of_keymap before syms_of_keyboard.

2005-06-26  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (Fset_input_mode): Call reset_sys_modes and
	init_sys_modes on the selected device only; do not use the bulk
	functions reset_all_sys_modes and init_all_sys_modes.

2005-06-26  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (term_init): Make sure the function keys are set up in the
	correct function-key-map.
	(term_get_fkeys_arg): Rename to term_get_fkeys_address.
	(term_get_fkeys_kboard): New variable.
	(term_get_fkeys): Use it.

2005-06-25  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.h (kboard): Move Vfunction_key_map inside the kboard struct.

	* keyboard.c (Vfunction_key_map): Remove declaration.
	(read_key_sequence, init_kboard): Update references to
	Vfunction_key_map.
	(syms_of_keyboard): Declare function-key-map as a terminal-local
	variable.
	(mark_kboards): Mark Vfunction_key_map.

	* keymap.c (Vfunction_key_map): Remove.
	(Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
	(syms_of_keymap): Remove DEFVAR for Vfunction_key_map.

	* term.c (term_get_fkeys_1): Update references to Vfunction_key_map.

2005-05-09  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (start_hourglass): Disable display type check, it would
	break multi-tty.

2005-05-03  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (get_display): Fix typo.

2005-05-03  Karoly Lorentey  <lorentey@elte.hu>

	* termhooks.h (DISPLAY_TERMINAL_CODING, DISPLAY_KEYBOARD_CODING):
	New macros.

	* coding.c (Fset_terminal_coding_system_internal)
	(Fterminal_coding_system, Fset_keyboard_coding_system_internal)
	(Fkeyboard_coding_system): Add DISPLAY parameter.

	* term.c (get_display): Add THROW parameter.
	(get_tty_display, Fdisplay_name, Fdisplay_tty_type)
	(Fdisplay_controlling_tty_p, Fdelete_display, Fdisplay_live_p):
	Update callers.

	* xfns.c (check_x_display_info): Ditto.
	* frame.c (Fmake_terminal_frame, Fframe_display): Ditto.

	* dispextern.h (get_display): Update prototype.

2005-04-26  Karoly Lorentey  <lorentey@elte.hu>

	* xdisp.c (with_echo_area_buffer, set_message, set_message_1)
	(echo_area_display): Revert change applied in patch-328.

2005-04-18  Karoly Lorentey  <lorentey@elte.hu>

	* Makefile.in (SOME_MACHINE_LISP): Add dnd.elc.

2005-04-18  Karoly Lorentey  <lorentey@elte.hu>

	* xfaces.c (internal_resolve_face_name, resolve_face_name_error):
	New functions.
	(resolve_face_name): Protect against loops and errors thrown by
	Fget.

2005-03-27  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (unwind_create_frame): Don't do anything if the frame is
	already dead.

2005-03-27  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.c (x_delete_frame_display): Call xg_display_close under GTK.
	(x_connection_closed): Don't close the display before its frames
	are deleted.  Protect against the last frame calling the display
	delete hook.

2005-03-23  Karoly Lorentey  <lorentey@elte.hu>

	* termchar.h: Fix deviation from CVS.
	* xfns.c (Fx_create_frame): Ditto.

	* xterm.c (x_delete_display): Cosmetic change.
	* xterm.c (x_create_frame_display): Cosmetic change.

2005-03-19  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (Fx_close_connection): Remove declaration cruft.

	* xterm.c (x_delete_frame_display): Declare i. Fix initialization of
	dpyinfo.

2005-03-19  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (Fx_close_connection): Move code to x_delete_frame_display.
	(x_delete_frame_display): Actually close the X connection.

2005-03-08  Karoly Lorentey  <lorentey@elte.hu>

	* sysdep.c (narrow_foreground_group): Don't abort if inherited_pgroup
	is zero.

2005-03-07  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.c (Vinhibit_redisplay): Declare for x_flush.

2005-03-07  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.c (x_flush): Return immediately when redisplay is inhibited.

2005-02-18  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (interrupt_signal, handle_interrupt): Move thread check
	to interrupt_signal.  Check for frame on controlling tty instead of
	current selected frame in handle_interrupt.

2005-02-04  Karoly Lorentey  <lorentey@elte.hu>

	* dispnew.c (build_frame_matrix_from_leaf_window): Fix typo.

2005-02-03  Karoly Lorentey  <lorentey@elte.hu>

	* xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
	* xfns.c (unwind_create_frame): Ditto.
	* dispnew.c (build_frame_matrix_from_leaf_window): Ditto.

2004-12-08  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (x_create_tip_frame): Copy color slot initialization
	safeguards from x-create-frame.  Trivial doc update.

2004-12-08  Karoly Lorentey  <lorentey@elte.hu>

	* puresize.h (BASE_PURESIZE): Enlarge base value by 100000.

2004-11-28  Karoly Lorentey  <lorentey@elte.hu>

	* dispextern.h (updated_window): Remove comment reference to
	updating_frame.

	* dispnew.c (update_window): Remove bogus xassert.

	* xterm.c: (x_clear_frame): Update comment.
	(x_draw_window_cursor): Remove reference to updating_frame.

2004-11-28  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (cmd_error_internal): Remove slightly bogus comment.

2004-10-14  Karoly Lorentey  <lorentey@elte.hu>

	* xdisp.c (handle_single_display_prop): Use FRAME_WINDOW_P instead of
	checking against specific frame types.  Ignore images on non-window
	frames.
	(echo_area_display): Use FRAME_INITIAL_P to check for initial frame.
	(redisplay_preserve_echo_area): Update for multi-tty support.
	(redisplay_window): Don't bother with toolbars, fringe bitmaps or
	vertical borders on tty frames.
	(display_line): Remove superflous #ifdefs.

2004-10-08  Karoly Lorentey  <lorentey@elte.hu>

	* fringe.c (init_fringe_bitmap): Removed C99ism.

2004-09-13  Karoly Lorentey  <lorentey@elte.hu>

	* Makefile.in (minibuf.o): Fix typo.

2004-09-10  Karoly Lorentey  <lorentey@elte.hu>

	* xterm.c (x_connection_closed): Inhibit redisplay while frames are
	being deleted.

2004-07-11  Karoly Lorentey  <lorentey@elte.hu>

	* xfns.c (Fx_create_frame): Fix verifying return value of x_get_arg
	for Qdisplay_id.

2004-07-10  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (Fdisplay_controlling_tty_p): New function.

	* term.c (syms_of_term): Initialize Sdisplay_controlling_tty_p.

	* keyboard.c (Fsuspend_emacs): Give a better error message when
	there are multiple open tty devices.

2004-07-05  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (interrupt_signal): Don't call fatal_error_signal with
	an extra parameter.

2004-07-04  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (get_tty_display): Don't signal an error on the initial frame.

2004-07-04  Karoly Lorentey  <lorentey@elte.hu>

	* dispextern.h (get_display, Fdisplay_tty_type):  New prototypes.
	(Fframe_tty_type): Removed.

	* dispnew.c (init_display): Use Fdisplay_tty_type, not Fframe_tty_type.

	* frame.c (Qdisplay_id, Qdisplay_live_p): New symbols.
	(make_terminal_frame): Get display as a parameter.
	(Fmake_terminal_frame): Get/create display here; pass it to
	make_terminal_frame.
	(Fframe_display): New function.
	(Fdelete_frame): Stop if the hook deleted the frame.
	(syms_of_frame): Register new stuff.

	* frame.h (Qdisplay_id, Qdisplay_live_p, make_terminal_frame):
	Updated prototypes.

	* keyboard.c (interrupt_signal): Updated comment.

	* term.c (Vdelete_tty_after_functions): Removed variable.
	(Qframe_tty_name, Qframe_tty_type): Removed.
	(next_display_id): New var.
	(tty_ring_bell): Don't do anything on suspended frames.
	(Ftty_display_color_p, Ftty_display_color_cells): Doc update.
	(get_display): New function.
	(get_tty_display): Use it.
	(get_named_tty_display): Ignore suspended displays.
	(Fframe_tty_name): Renamed to Fdisplay_name.  Handle all kinds of
	displays.
	(Fframe_tty_type): Renamed to Fdisplay_tty_type.
	(init_initial_display): Set display name.
	(term_init): Allow more displays on the same device.  Set display name.
	(Fdelete_tty): Removed.
	(delete_tty): Don't run hooks.
	(create_display): Set display id.
	(delete_display): Free display name.
	(Fdelete_display, Fdisplay_live_p, Fdisplay_list): New functions.
	(Fsuspend_tty): Call hook with display id.  Doc update.
	(Fresume_tty): Refuse to resume when there is already an active display
	on the same device.  Call hook with display id.  Doc update.
	(syms_of_term): Reflect above changes.

	* termhooks.h (struct display): Added `id' and `name' members.
	(DISPLAY_ACTIVE_P): New macro.

	* xfns.c (check_x_display_info): Handle display ids.
	(Fx_create_frame): Try to get display from `display-id' parameter.

	* xterm.c (x_term_init): Set display name.
	(x_delete_display): Handle the case when `font_table' is NULL.

2004-06-15  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (Ftty_display_color_cells): Return 0 in case of an error,
	not nil.

2004-06-11  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
	(Contributed by ARISAWA Akihiro <ari@mbf.ocn.ne.jp>).

2004-06-08  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (dissociate_if_controlling_tty): On some systems TIOCNOTTY
	works only on /dev/tty.  Adapt the function accordingly.

2004-06-08  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (interrupt_signal): Don't call Fkill_emacs from a
	signal handler; use fatal_error_signal instead.

2004-06-07  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (command_loop): Clear single_kboard each time Emacs
	returns to top-level.

2004-06-06  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (tty_insert_glyphs): Added missing first
	parameter (contributed by Yoshiaki Kasahara
	<kasahara@nc.kyushu-u.ac.jp>).
	(encode_terminal_code): Converted to use ANSI prototype syntax.

2004-06-05  Karoly Lorentey  <lorentey@elte.hu>

	* dispnew.c (init_display): Always install handler for SIGWINCH.
	(Reported by Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>.)

	* term.c: Massive updates throuout the file.
	(TS_*, TN_*): Moved to struct tty_output.
	(RPov, delete_in_insert_mode se_is_so, costs_set, insert_mode):
	Ditto.
	(standout_mode, specified_window, tty_cursor_hidden): Ditto.
	(tty_set_terminal_modes, tty_reset_terminal_modes): New functions.
	(turn_on_insert, turn_off_insert): Added tty parameter.
	(turn_on_highlight, turn_off_highlight, toggle_highlight): Added
	tty parameter.
	(tty_hide_cursor, tty_show_cursor): Ditto.
	(background_highlight, highlight_if_desired): Ditto.
	(tty_capable_p): Changed first parameter to tty_output.
	(term_init): Make sure top_frame is initialized.  Don't exit on
	errors if this would have been a secondary terminal.  Call
	set_terminal_modes on the end.
	(delete_tty): New function.
	(delete_tty_1): New function.
	(print_all_frames): New function, marginally useful for debugging.

	* termchar.h (struct tty_output): Changed old_tty to be a pointer.
	Removed old_tty_valid member.  Added tty-specific variables from
	term.c.

	* xfaces.c (Ftty_supports_face_attributes_p): Update for new
	tty_capable_p.

2003-12-25  Karoly Lorentey  <lorentey@elte.hu>

	* term.c (clear_end_of_line): Use updating_frame instead of
	selected_frame.
	(set_scroll_region, clear_to_end, clear_frame, tty_show_cursor):
	Ditto.
	(tty_hide_cursor, turn_on_highlight, turn_off_highlight): Ditto.
	(turn_on_insert, turn_off_insert): Ditto.

	* termchar.h (struct terminal): Renamed to struct tty_output.
	Added name, type, input, output, termscript, old_tty,
	term_initted, old_tty_valid, background_pixel, foreground_pixel,
	next fields.
	(TERMINAL_*): Renamed to TTY_* for brevity.
	(CURRENT_TERMINAL): Renamed to CURTTY for brevity.
	(tty_list): New variable.
	(TERMINAL_PTR): Removed.
	(FRAME_TTY): New function.
	(TTY_NAME, TTY_TYPE): New macros.

	* term.c (current_terminal): Removed.
	(_current_terminal): Removed.
	(tty_list): New variable.
	(OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF): Added tty
	parameter.
	(set_terminal_modes): Added tty parameter.
	(reset_terminal_modes): Added tty parameter.
	(cursor_to, raw_cursor_to): Updated cmgoto() calls.
	(clear_end_of_line, write_glyphs): Add indirection to terminal
	output, updated cmcheckmagic() calls.
	(get_named_tty): New function.
	(term_dummy_init): New function.
	(term_init): Added name parameter, added tty_output return value.
	Changed algorithm to update tty_list.  Call init_sys_modes() to
	set up tty mode on the newly opened terminal device.
	(get_current_tty): New function, intended for debugging.

	* termhooks.h (termscript): Removed.

	* w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
	Removed redundant definition.
	* macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Ditto.

	* window.c (init_window_once): Call make_terminal_frame with two
	zero parameters.

	* cm.h (emacs_tputs): New macro to set current_tty, and then call
	tputs().
	(current_tty): New variable, for cmputc().
	(cmcheckmagic, cmputc, cmgoto): Added prototypes.

	* cm.c (current_tty): New variable, for cmputc().
	(cmputc): Use it.
	(cmcheckmagic): Added tty parameter, look up terminal streams
	there.
	(calccost): Added tty parameter.  Use emacs_tputs() instead of
	tputs().
	(cmgoto): Added tty parameter.  Pass it on to calccost().  Use
	emacs_tputs() instead of tputs().

	* dispextern.h (set_terminal_modes, reset_terminal_modes): Added
	tty parameter.
	(term_init): Added name parameter (the filename of the terminal
	device). Added return value (struct tty_output).

	* dispnew.c: Replace CURTTY() with local variables throughout the
	file (where applicable).
	(termscript): Moved to struct tty_output.
	(terminal_type): Removed.

	* emacs.c (main): Don't call init_sys_modes(), the new term_init()
	already does that during init_display().
	(shut_down_emacs): Call reset_all_sys_modes() instead of
	reset_sys_modes().

	* frame.c (Qtty, Qtty_type): New variables.
	(syms_of_frame): Initialize them.
	(tty_display): Removed.
	(make_terminal_frame): New parameters (tty filename and type).
	Initialize output_data.tty field instead of output_data.x.  Use
	term_init() to find the right tty_output.  (Use term_dummy_init()
	during bootstrap.)
	(Fmake_terminal_frame): Get device filename and type from frame
	parameters.

	* frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Do the
	right thing if the frame is a tty.
	(struct frame): New member in output_data: tty.
	(make_terminal_frame): Updated of prototype.

	* keyboard.c (Fset_input_mode): Call reset_all_sys_modes(), not
	reset_sys_modes().  Ditto with init_sys_modes().

	* lisp.h (tty_output): Added forward declaration.
	(init_sys_modes, reset_sys_modes): Updated prototype.
	(init_all_sys_modes, reset_all_sys_modes): New prototypes.

	* scroll.c: Replace CURTTY() with local variables throughout the
	file (where applicable).

	* sysdep.c (old_tty, term_initted, old_tty_valid): Moved to struct
	tty_output.
	(init_all_sys_modes): New function.
	(init_sys_modes): Added tty_output parameter.  Use it.
	(reset_all_sys_modes): New function.
	(reset_sys_modes): Added tty_output parameter.  Use it.

	* Makefile.in: Update dependencies.

2003-12-24  Karoly Lorentey  <lorentey@elte.hu>

	* termchar.h (struct terminal): New struct.
	(must_write_spaces, min_padding_speed, line_ins_del_ok)
	(char_ins_del_ok, scroll_region_ok, scroll_region_cost)
	(memory_below_frame, fast_clear_end_of_line): Moved to struct
	terminal.
	(current_terminal): New variable.
	(CURRENT_TERMINAL, TERMINAL_*): New accessor macros.
	(min_padding_speed, dont_calculate_costs): Commented out (unused).

	* term.c (_current_terminal): New variable.  Will be removed when
	true multi-tty support is implemented.

	* termopts.h (no_redraw_on_reenter): Moved here.

	* term.c (set_terminal_window, ins_del_lines, calculate_costs)
	(term_init): Use the accessor macros for terminal characteristics.
	* dispnew.c (line_hash_code, line_draw_cost)
	(direct_output_for_insert, update_frame_1, scrolling)
	(update_frame_line): Ditto.
	* macterm.c (mac_initialize): Ditto.
	* msdos.c (internal_terminal_init): Ditto.
	* scroll.c (calculate_scrolling, calculate_direct_scrolling)
	(scrolling_1, scroll_cost): Ditto.
	* sysdep.c (hft_init): Ditto.
	* w32term.c (w32_initialize): Ditto.
	* xdisp.c (try_window_id): Ditto.
	* xterm.c (x_initialize): Ditto.

2004-07-12  Karoly Lorentey  <lorentey@elte.hu>

	* keyboard.c (echo_dash): Do nothing if there already is a dash at
	the end of the echo string.


;; Local Variables:
;; coding: iso-2022-7bit
;; add-log-time-zone-rule: t
;; End:

    Copyright (C) 2007 Free Software Foundation, Inc.

  This file is part of GNU Emacs.

  GNU Emacs is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2, or (at your option)
  any later version.

  GNU Emacs is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with GNU Emacs; see the file COPYING.  If not, write to the
  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  Boston, MA 02110-1301, USA.

;;; arch-tag: 4015a0e0-033e-11dc-807c-00114368b55b