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
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
|
1993-05-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* Version 19.10 released.
1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): If we changed buffers during
read_char, go to replay_sequence.
* frame.c (Ficonify_frame, Fmake_frame_invisible):
Select some other frame. Move minibuffer off this frame.
* frame.c (Fhandle_switch_frame): Don't call Ffocus_frame.
(Fredirect_frame_focus): Call Ffocus_frame here.
* xterm.c (x_bitmap_icon): Don't free icon_bitmap;
create it if it hasn't been created before.
* xterm.c (XTread_socket): For UnmapNotify, if frame was visible,
mark it now as iconified.
(x_make_frame_invisible): If async_iconic, work does need to be done.
Don't let this frame stay highlighted.
(x_iconify_frame): Don't let this frame stay highlighted.
* s/usg5-4-2.h (sigsetmask): #undef this.
* sysdep.c (sys_signal): Use 0, not NULL, to set sa_flags.
1993-05-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* linux.h (C_OPTIMIZE_SWITCH): Set this to the empty string;
configure guesses just fine.
* tekXD88.h: New file, from Kaveh Ghazi.
* systty.h (CDISABLE): #undef it before re-#defining it.
* sysdep.c (sys_siglist): Comment out #endif trailer.
* xmenu.c (TRUE, FALSE): Same.
* xterm.c (dumprectangle): Same.
* emacs.c: Don't include termios.h directly--let systty.h do it.
1993-05-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfaces.c [HPUX]: Include time.h and define __TIMEVAL__.
* emacs.c (shut_down_emacs): Maybe close X connection. New arg NO_X.
(Fkill_emacs): Don't close it here. Pass new arg.
(fatal_error_signal): Pass new arg.
* xterm.c (x_connection_closed): Pass new arg.
* xdisp.c (syms_of_xdisp): Make highlight-nonselected-windows Lisp var.
(display_text_line): Obey it.
(display_text_line): Really check for just the selected window.
* s/usg5-4-2.h: New file.
* keyboard.c (menu_bar_items): Save Vinhibit_quit by hand
instead of using specbind.
(menu_bar_items): Call Fnreverse before restoring Vinhibit_quit.
* s/hpux8.h (OLDXMENU_OPTIONS): Add quotations.
* m/ibmrt.h (C_SWITCH_MACHINE): Define only if not __GNUC__.
(HAVE_FTIME): Defined.
(EMACS_BITMAP_FILES): Defined.
* xfns.c (Fx_close_current_connection): Clear x_current_display.
* xterm.c (XTring_bell): Do nothing if x_current_connection is 0.
* buffer.c (reset_buffer): Clear mark_active field here.
(reset_buffer_local_variables): Not here.
(Fswitch_to_buffer, Fpop_to_buffer): Return the buffer.
(Fmove_overlay): Fix data types in last change.
* sysdep.c (gettimeofday): Don't store in *tzp if tzp is 0.
* process.c (MAXDESC): Get it from FD_SETSIZE if that exists.
* s/sco4.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF):
Redefined.
(SIGNALS_VIA_CHARACTERS): Defined.
[HAVE_SOCKETS] (HAVE_GETTIMEOFDAY): Defined.
(MAIL_PROGRAM_NAME): Defined (two alternate definitions).
* xfns.c (Fx_list_fonts): Use CHECK_LIVE_FRAME on the frame arg.
1993-05-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/hpux8.h (LIBX11_SYSTEM): Defined.
* ymakefile: Replace config.h as dep with $(config_h).
(really-oldXMenu): Use two make vars to pass values
of C_SWITCH_... within doublequotes.
* xfns.c (x_figure_window_size): Never set PPosition or PSize.
* keymap.c (syms_of_keymap): Create global_map 256 slots long.
* cmds.c (keys_of_cmds): Predefined 0240-0376 as self-insert.
* xterm.c (XTread_socket, case KeyPress) [HPUX]:
Recognize the extended function keys.
* buffer.c (Fgenerate_new_buffer_name): New arg IGNORE.
(Frename_buffer): Pass new arg.
1993-05-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keyboard.c (menu_bar_items): Bind Qinhibit_quit to Qt while we
call the keymap accessors; this gets called during redisplay.
* ymakefile (alloca.o): Call $(CC), not cc.
* s/linux.h (SIGNALS_VIA_CHARACTERS): Try this out for a bit.
* buffer.c (Fmove_overlay): If the overlay is changing buffers,
do a thorough redisplay.
* xfns.c (x_set_frame_parameters): Use the first
position/size parameter we find, not the last.
* s/hpux8.h: Don't define HAVE_RANDOM.
* config.h.in (UNEXEC_SRC): New macro, set by the configure
script.
* ymakefile (UNEXEC_SRC): Give it a default value here, and make
UNEXEC depend on it.
* ymakefile (lispdir): Set this in terms of ${srcdir}.
1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* dispnew.c (Fsleep_for): Don't return without waiting when SEC is 0.
* emacs.c (syms_of_emacs) [CANNOT_DUMP]: Don't defsubr Sdump_emacs*.
* alloc.c (mark_object): Add debugging code to check for ptr clobbered.
1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* Version 19.9 released.
1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_char): Correct previous change.
1993-05-27 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* systty.h: Always terminate comments, to avoid confusion.
* xfns.c: Make resource manager work correctly even when
Vinvocation_name has periods and asterisks in it.
(Vxrdb_name): New variable.
(Fx_get_resource): Use it instead of Vinvocation_name.
(Fx_open_connection): Initialize it to a copy of Vinvocation_name,
with the dots and stars replaced by hyphens.
(syms_of_xfns): staticpro it here.
* xfns.c (Fx_get_resource): Use the proper format string when the
attribute has been specified.
1993-05-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c (x_get_resource_string): New function.
* ymakefile (ALL_CFLAGS): Put CFLAGS last.
1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* s/sol2.h (SOLARIS_BROKEN_ACCESS): Don't define this.
* s/aix3-2.h (C_SWITCH_SYSTEM): Don't define this to be "-ma" if
we're using GCC - that's an XLC switch.
* s/aix3-2.h (LIBS_SYSTEM): Put -LIM -Liconv here.
* systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
we have those structures, but *don't* define them if we have
TERMIOS, whose functions take care of those parameters; that
screws up AIX.
(struct emacs_tty): Test those symbols, instead of the ioctl
commands.
* sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars)
(init_sys_modes): Same.
* config.h.in (HAVE_RENAME): Include an #undef for this, so
configure will have something to edit.
1993-05-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* window.c (window_loop, case GET_LRU_WINDOW):
Get frame's width properly.
* xselect.c (x_get_local_selection): If no conversion function
exists for the requested type, just return nil.
* s/linux.h (HAVE_TCATTR): Defined.
* sysdep.c [HAVE_SOCKETS]: Include socket.h, netdb.h.
(get_system_name) [HAVE_SOCKETS]: Use gethostbyname.
1993-05-26 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* s/hpux8.h (LIB_X11_LIB, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM)
(LD_SWITCH_SYSTEM, OLDXMENU_OPTIONS): Add X11R5 directories to the
search paths in these lists; they shouldn't do any harm if they
don't have X11R5.
* s/aix3-2.h (C_SWITCH_SYSTEM): Don't #define this if we're using
GCC.
1993-05-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xrdb.c (magic_searchpath_decoder): Fix typos.
* xdisp.c (display_text_line): Don't call compute_char_face
for a non-X frame.
* xfns.c (Fx_rebind_key, Fx_rebind_keys): X10 definitions deleted.
(syms_of_xfns): Install them only if X11.
* ralloc.c (r_alloc_sbrk): Declare already_available as long, not SIZE.
* xfns.c (x_set_cursor_type): If arg not recognized, use box cursor.
* s/hpux8.h (LD_SWITCH_SYSTEM) [__GNUC__]: Pass -a archive to ld.
(HAVE_RANDOM): Defined.
* s/hpux.h (rand, srand): Definitions deleted.
* keyboard.c (Fcurrent_input_mode): Fix the call to Flist.
(make_lispy_event): Fix off-by-1 error with hpos in menu bar.
* s/sunos4-1-3.h: New file.
* ymakefile (XOBJ) [!HAVE_X_MENU]: Add xfaces.o.
* s/irix4-0.h (SIGNALS_VIA_CHARACTERS): Defined.
* xterm.c (x_wm_set_size_hint): Don't set hints for max size.
1993-05-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m/ibmrs6000.h (LIBS_MACHINE): Add -lIM and -liconv.
(HAVE_GETTIMEOFDAY): Deleted.
* sysdep.c (wait_for_termination): Don't use the BSD alternative
for LINUX. Use the UNIPLUS alternative.
* keyboard.c (read_char): If kbd_buffer_get_event returns nil,
redisplay and retry.
(kbd_buffer_get_event): If event is handled here, return nil.
(swallow_events): New function.
* process.c (wait_reading_process_input): Call that.
* ralloc.c (POINTER): Always use char *.
* s/sol2.h (C_SWITCH_X_SYSTEM): Deleted.
(LD_SWITCH_SYSTEM): Delete the -L option, leave just -R.
* m/symmetry.h (PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF):
Use pty_name, not ptyname.
* syntax.c (Fforward_comment): Arg is a Lisp_Object.
Convert it to an int.
* ymakefile (alloca.o): Get alloca.c and alloca.s from ${srcdir}.
* floatfns.c (logb): Don't declare if hpux.
* syntax.c (Fforward_comment): Always set point.
* s/dgux.h, s/hpux.h, s/esix.h (HAVE_GETTIMEOFDAY): Deleted.
* s/irix4-0.h (C_ALLOCA, alloca): Definitions deleted.
[!NOT_C_CODE]: Include alloca.h.
(NEED_SIOCTL): #undef this.
* xterm.h (PIXEL_TO_CHAR_COL, PIXEL_TO_CHAR_ROW):
Fix mismatch in arg names.
* xfns.c (Fx_open_connection): Set xrm_option correctly.
1993-05-25 David J. MacKenzie (djm@wiki.eng.umd.edu)
* xfns.c (x_figure_window_size): Make the default frame coords (0,0).
1993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* Version 19.8 released.
1993-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xfns.c: Clear out the old face stuff.
(x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font)
(Fx_set_face, Fx_get_face): Removed.
(syms_of_xfns): Remove defsubr for Fx_set_face.
Arrange for font names to get fully resolved - no wildcards.
* xfns.c (x_set_frame_parameters): Store the value in the frame
parameter alist before we call the setter function, so the setter
function can touch up the value if it chooses.
(x_set_foreground_color, x_set_background_color): Call
recompute_basic_faces, so their GC's will reflect the changes.
(x_new_font): Add extern declaration - this returns a Lisp_Object
now, the fully resolved font name.
(x_set_font): Accept the fully resolved name from x_new_font, and
put it in the frame's parameter alist. Call recompute_basic_faces.
* xterm.c (x_new_font): Return the fully resolved font name, Qnil
(if no match), or Qt (match, but unacceptable metrics).
* xterm.c (x_new_font): Don't call init_frame_faces.
* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face)
(face_name_id_number, same_size_fonts, recompute_basic_faces)
(compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.
* xterm.c (dumpglyphs): Remember that the default faces can have
null fonts, too.
* xfns.c (Fx_list_fonts): Remember that FACE may not have a font
specified. Don't specify 30000 as the maximum limit on the number
of fontns returned - 2000 is more reasonable.
* xfaces.c (build_face, unload_font, free_frame_faces): Don't
forget to block input while making X calls.
Treat faces as structures specifying modifications to the frame's
parameters, rather than things which need to specify a complete
set of parameters by themselves.
* xfaces.c (init_frame_faces): Don't set up the two frame display
faces by querying the GC - just leave all their fields blank, and
call recompute_basic_faces, letting build_face do the work of
consulting the frame when necessary.
(recompute_basic_faces): New function.
(compute_base_faces): New function for obtaining the "identity"
for compute_char_face and compute_glyph_face.
(compute_char_face, compute_glyph_face): Call it, instead of copying
FRAME_DEFAULT_FACE.
* xfns.c (x_make_gc): No need to call init_frame_faces here.
* xfaces.c (intern_frame_face): This can be static.
* dispextern.h (struct face): New field - `copy', to help us with
resource allocation.
* xfaces.c (free_frame_faces): Do free the first two faces; don't
free anything from a face that's a copy.
(intern_frame_face): Mark every face we intern as a copy; its
resources are actually a combination of the real faces.
(Fset_face_attribute_internal): No need to check if we're trying
to free one of the frame's GC's; they never enter into the
picture.
* casetab.c: Fix formatting, so as not to confuse etags.
* xfns.c (Fx_list_fonts): New function.
(face_name_id_number): Add extern declaration for this.
* xfaces.c (face_name_id_number): Make this externally visible,
and make the FRAME argument a FRAME_PTR, not a Lisp_Object.
(compute_char_face): Call face_name_id_number properly.
* xfaces.c (unload_color): Don't free the pixel for now.
* xfaces.c (merge_faces): You can't tell if a font is a
character-cell font or not by testing whether or not it has a
per_char table. They all do.
* xterm.c (x_new_font): Same deal.
* xfns.c (Fx_list_fonts): Same deal.
* m/iris4d.h: Dyke out the section which specifies how to get the
load average.
* paths.h (PATH_INFO): New path, to edited by the configuration
process.
* callproc.c (Vconfigure_info_directory): New variable, used
internally by build process.
(syms_of_callproc): DEFVAR it and initialize it.
* keyboard.c (Fcurrent_input_mode): Use XFASTINT to build the last
element of the return value, not XSETINT.
1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
Changes for OSF/1:
* mem-limits.h [__osf__ && (__mips || mips)]: #include
<sys/time.h> and <sys/resource.h>.
(get_lim_data): OSF wants a definition like BSD4_2's.
* s/osf1.h: #include "bsd4-3.h", not "s-bsd4-3.h".
* ymakefile (LIBX): Put LD_SWITCH_X_SITE before the libraries, so
it actually has an effect.
Some makes can't handle form feed characters in their makefiles.
* s/usg5-3.h: Remove form feed.
* s/template.h, m/template.h: Remove form feeds.
* xfns.c (select_visual): Include the screen number in the
template of things XGetVisualInfo must match.
1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/dgux.h (NO_GET_LOAD_AVG): Test _M88KBCS_TARGET, not __GNUC__.
* xterm.c (XTread_socket, ConfigureNotify case):
Convert from parent window, not Emacs window.
(XTread_socket): Handle ReparentNotify events.
* m/i860.h: New file.
* keyboard.c (lispy_function_keys): Add kp-numlock. Fix kp-backspace.
1993-05-24 Thorsten Ohl (ohl@chico.harvard.edu)
* m/next.h (C_SWITCH_MACHINE): Definition deleted.
* lread.c: Don't #undef NULL.
1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* buffer.c (Fmake_overlay): Put beg and end in the right order.
(Fmove_overlay): If beg and end are markers, make sure they're in
the right buffer.
1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (modify_event_symbol): If a name_table elt is null,
generate a name to use. Don't crash.
* fileio.c (Fread_file_name): If input is empty, do return the default
even if !insert_default_directory.
* xterm.c (XTread_socket): For ConfigureNotify event,
translate coordinates if send_event field is false
provided the x-coord value is not large.
1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/irix4-0.h (NO_MATHERR): Defined.
* floatfns.c [NO_MATHERR]: Undef HAVE_MATHERR.
1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* fileio.c (Ffile_writable_p): Pass XSTRING (foo)->data to
ro_fsys, not XSTRING (foo).
* xterm.c (x_new_font): Reject fonts with varying spacing. We
don't support them yet.
* xfns.c (x_set_font): Report the error message properly.
* xfns.c (Fx_parse_geometry): No need to call check_x here; it
doesn't interact with the server at all, and we need it in order
to create our first frame.
1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/linux.h (HAVE_SETSID): Defined.
(HAVE_SOCKETS): Defined.
* process.c (create_process): Ignore retval from TIOCSTTY.
(sys_siglist) [LINUX]: Don't even declare it.
1993-05-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* syssignal.h (sys_signal): Declare the second argument to have
type signal_handler_t. We're told this is necessary for Linux.
1993-05-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/dgux.h (NO_GET_LOAD_AVG): Define, if __GNUC__.
1993-05-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* s/hpux8.h (NO_SIOCTL_H): Defined.
1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
1993-05-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* syssignal.h: Don't #include <signal.h>
* alloc.c: #include <signal.h>, but before "config.h".
1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfaces.c (Fset_face_attribute_internal): Don't call unload_font
for the frame's own font.
* xfns.c (check_x): New function.
Call it in almost every Lisp function in this file.
(x_set_menu_bar_lines_1): Pass both args in recursive call.
1993-05-23 Paul Eggert (eggert@twinsun.com)
* editfns.c (Fcurrent_time_zone): Make `am' an int, not long.
1993-05-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
Changes for SGI from Matthew J Brown <mjb@doc.ic.ac.uk>.
* m/iris4d.h, m/iris5d.h: Don't use the --cckr CC switch if we're
using GCC.
* m/iris4d.h (NEED_SIOCTL): Move this to...
* s/irix3-3.h (NEED_SIOCTL): ... here; apparently it's not
necessary in irix4-0.h.
* s/irix4-0.h: Remove declaration of getpty; apparently Irix 4.0
already declares this elsewhere.
(PTY_TTY_NAME_SPRINTF): #undef this before re-#defining it.
* m/ibmps2-aix.h, m/pfa50.h, s/hpux.h, s/isc2-2.h, s/linux.h,
* s/sco4.h, s/usg5-4.h: Remove HAVE_RENAME; configure guesses that now.
* config.h.in (LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Change the
#defines to #undef's, so ../configure knows it should tweak them.
* xterm.c (x_scroll_bar_report_motion): Set *TIME whether or not
the mouse is over a scroll bar.
* xfaces.c (Fset_face_attribute_internal): Don't free the frame's
normal_gc or reverse_gc.
* keyboard.c (make_lispy_movement): Deal properly with mouse
motion outside of all windows.
* lisp.h (GLYPH_FACE): Remember that the face portion of a glyph
can be 24 bits, not just eight.
1993-05-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xterm.c: Move signal.h and stdio.h before config.h.
* editfns.c (Fcurrent_time_zone): Assign gmt, instead of init.
1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* Version 19.7 released.
* Makefile.in (SUBMAKEFLAGS): Add CFLAGS to the list.
* puresize.h [not HAVE_X_WINDOWS] (PURESIZE): Make this 185k,
not 196k. We're actually using ~180k.
* editfns.c: #include <sys/types.h>, to get time_t for Eggert's
changes.
1993-05-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (FRAME_SUPPORT): Add mouse.elc, select.elc, scroll-bar.elc.
* xdisp.c (display_text_line): Highlight in any frame's sel window.
* keyboard.c (modifier_names): Update to match *_modifier in termhooks.
1993-05-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* xterm.c (x_scroll_bar_handle_click): Never grab the scroll bar;
that feature requires more support to work correctly.
* keyboard.c (make_ctrl_char): New function.
(read_char): Call it.
(kbd_buffer_store_event): Call it to see if the new character is
the quit or stop character.
(make_lispy_event): Call it.
1993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c (x_window_to_frame): Use XGCTYPE.
1993-05-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* process.c (Fopen_network_stream): Deal with older systems, which
only have the h_addr field in their struct hostent.
* systty.h [SYSV_PTYS]: #include <sys/types.h>. Francesco
Potorti` <pot@fly.CNUCE.CNR.IT> says it's necessary on his
machine, and it should be harmless.
1993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* sysdep.c (wait_for_termination): Copy code from 18.59
(but sans BSD4_1 alternatives).
1993-05-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* ymakefile (alloca.o): #define malloc and free to be xmalloc and
xfree on the command line of this compilation.
* s/sco4.h (TIME_WITH_SYS_TIME): This is no longer needed.
* s/linux.h: Remove copyright notices by Michael K. Johnson and
Rik Faith. They have both sent in papers now which make their
changes public domain.
* sysdep.c (sys_suspend): Set synch_process_alive, so that
wait_for_termination has something to wait for.
1993-05-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xdisp.c (display_text_line): Highlight only in selected window.
* xfns.c (syms_of_xfns): Don't make Lisp vars
x-mode-pointer-shape and x-nontext-pointer-shape.
1993-05-20 Ian Lance Taylor (ian@cygnus.com)
* s/sco4.h (SCO): Don't define (no longer needed).
(HAVE_SYS_TIME_H): Don't define (set by configure).
(TIME_WITH_SYS_TIME): Define.
1993-05-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* dispnew.c (preserve_other_columns): Remember to multiply the
size argument to bcopy by the size of a glyph.
1993-05-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): Reexamine this_command
after pre-command-hook runs.
* xterm.c (x_find_modifier_meanings): If some keys are meta and alt,
make them just meta, not alt.
1993-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
Some time-handling patches from Paul Eggert:
* editfns.c (Fcurrent_time_zone): Take an optional argument specifying
what (absolute) time should be used to determine the current time zone.
Yield just offset and name of time zone, including DST correction.
Yield time zone offset in seconds, not minutes.
(lisp_time_argument, difftm): New functions.
(Fcurrent_time_string): Use lisp_time_argument.
* systime.h (EMACS_CURRENT_TIME_ZONE, EMACS_GET_TZ_OFFSET,
EMACS_GET_TZ_NAMES): Remove.
* config.h.in: Add HAVE_TM_ZONE.
Some more changes from Michael K. Johnson for Linux.
* s/template.h: Mention that you should #define HAVE_TERMIO or
HAVE_TERMIOS, but not both, and that HAVE_TERMIOS is preferred.
* systty.h (EMACS_SET_TTY_PGRP): Don't assign the return value of
tcsetpgrp to *pgid; it's just a status value.
* config.h.in (HAVE_RANDOM): This shouldn't be defined on Linux
systems using XFree386, and perhaps is inappropriate in general.
* m/intel386.h: #undefine the integer size macros, since the Linux
<values.h> file #defines them itself.
* mem-limits.h (get_lim_data): Linux has the ulimit call; if it
fails, fall back on ULIMIT_BREAK_VALUE.
* process.c: Linux needs the WAITTYPE, etc. definitions.
* unexec.c (hdr, ohdr): Linux has the ordinary `struct exec' type;
no need to use SYSV names.
* s/linux.h: New file.
Some changes from Michael K. Johnson for Linux.
* sysdep.c (sys_siglist): Don't define this if HAVE_SYS_SIGLIST is
#defined. That lets the system provide it, if it has it.
* syssignal.h (sigmask): Only define this if <signal.h> hasn't
given us a definition already.
* syssignal.h (sys_sigpause): Fix argument in prototype.
* sysdep.c (init_signals): The masks are called empty_mask and
full_mask, not signal_empty_mask and signal_full_mask.
(signal_handler_t): Moved ....
* syssignal.h: ... to here.
* systty.h (EMACS_SET_TTY_PGRP): Call tcsetpgrp with the correct
arguments.
* emacs.c (main): Don't try to establish signal handlers for
SIGBUS and SIGSYS unless they're actually #defined.
* systty.h [HAVE_TERMIO, __DGUX]: #include <sys/ioctl.h>.
* xdisp.c (redisplay_window): Compute the scrollbar start and end
properly.
1993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Fcurrent_input_mode): Return META as 3-way flag.
1993-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* fileio.c (Ffind_file_name_handler): Check that FILENAME is a
string.
* process.c (wait_reading_process_input): Undo change of April
29th, since that re-introduces the race condition the comments are
warning about. Call clear_waiting_for_input before calling
status_notify, though.
* process.c (wait_reading_process_input): Don't forget to call
clear_waiting_for_input when we exit the loop because process
input has arrived.
Changes for Silicon Graphics Iris 5D.
* unexelfsgi.c: New file; like unexelf.c, but tolerates program
segments above BSS.
* m/iris5d.h: New file.
* s/irix5-0.h: New file.
* process.c [__sgi] (allocate_pty): Give up immediately if pty is
inaccessible.
1993-05-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (follow_key): Check char in range before UPPERCASEP.
1993-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c (x_set_menu_bar_lines): Fix typo in last change.
* keyboard.c (make_lispy_event): Controlify lower case letters too.
1993-05-18 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xdisp.c (display_text_line): If the newline (or C-m, in
selective-display) has a non-default face, apply that face to the
remainder of the line, so that the fill occupies the entire line.
* xterm.c (x_new_font): Tell the frame display faces about the
newly chosen font.
Make sure that all the display faces use fonts of the
same dimensions as the default face, so as not to confuse the rest
of the redisplay code.
* xfaces.c (same_size_fonts): New function.
(merge_faces): Only merge in a new font from the FROM face if it
is the same size as the font in the TO face.
* xfns.c (x_set_menu_bar_lines): Minibuffer-only frames can't have
menu bars.
* keyboard.c (read_key_sequence): Don't lay down an unwind_protect
to restore the original buffer until we actually get a mouse click.
* window.c (window-dedicated-p): Doc fix.
1993-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xterm.c (XTread_socket): Turn off ControlMask for XLookupString.
* keyboard.c (make_lispy_event): Controlify here.
1993-05-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xdisp.c (redisplay_window): Make the scrollbar reflect the
extent of the visible region, not the whole buffer.
* xfaces.c (free_frame_faces): Don't free the resources from the
first two faces.
* lisp.h (malloc, realloc): Declare these to return void *, to
avoid conflicts with ANSI header files.
* sysdep.c (reset_sys_modes): Test the return value of
EMACS_SET_TTY properly.
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Document the return
values.
1993-05-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* config.h.in (STDC_HEADERS, TIME_WITH_SYS_TIME,
CRAY_STACKSEG_END, STACK_DIRECTION): Add #undef clauses for these,
since otherwise the autoconf tests in configure.in won't do us
much good.
1993-05-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* buffer.c (overlays_at): New arg EXTEND.
(Foverlays_at, Fnext_overlay_change): Pass 1.
* xfaces.c (compute_char_face): Pass 0.
Try first with small overlay_vec, then use a big enough one.
* lread.c (syms_of_lread): Make Vcurrent_load_list ordinary Lisp var.
Set up Qcurrent_load_list.
(readevalloop): Specbind Qcurrent_load_list instead of ad-hoc saving.
(build_load_history): Do nothing when loading pure files.
* xterm.c (dumpglyphs): Create a temporary merged gc
when cursor falls on char with non-default face.
* xterm.h (x_display): New field cursor_foreground_pixel.
* xfns.c (x_set_cursor_color): Set cursor_foreground_pixel.
* casefiddle.c (casify_region): Remove mistaken arg to record_change.
1993-05-15 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* xfaces.c (Fset_face_attribute_internal): Jolt redisplay, so it
knows something has changed.
* xfaces.c (unload_color): Don't try to unload the standard black
or white pixel.
More changes from David Mackenzie.
* ymakefile (emacs): No need to edit srcdir into a lisp file and
then load it; we can just take advantage of the PATH_DUMPLOADSEARCH.
(crt0.o): Remember that crt0.c is in ${srcdir}.
Install David Mackenzie's patches to make ${srcdir} work.
* Makefile.in (srcdir, VPATH): Get this value from the top-level
Makefile.
(xmakefile): Use ${srcdir} to find the files from which we produce
xmakefile. Edit the values for srcdir and VPATH into xmakefile.
* ymakefile (srcdir, VPATH): New definitions for the Makefile
to edit.
(ALL_CFLAGS): Remove `-Is' and `-Im'; add `-I${srcdir}', and
`-I.'.
(emacs): Adjust dumping commands to deal with a separate source
directory.
(${etc}DOC): Pass `-d ${srcdir}' to make-docfile, to tell it where
to find the source files.
(prefix-args): Find the source code in ${srcdir}.
* process.c (wait_reading_process_input): If we're running
Solaris, it's not necessary to check if we should redeliver SIGIO,
according to David Mackenzie.
* s/sol2.h: #include "usg5-4.h", and #define const.
* systime.h: Borrow CPP sequence from getdate.y to include the
proper combination of <time.h> and <sys/time.h>.
1993-05-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* window.h (struct window): New slot region_showing.
* xdisp.c (mark_window_display_accurate): Set region_showing fields.
(redisplay_window): Update region_showing field.
(display_text_line): Set region_showing to t if will show one.
* xselect.c (Fx_selection_exists_p): Handle nil, t as SELECTION arg.
Don't die if SELECTION is not recognized.
* dispnew.c (direct_output_forward_char): Just give up
if region is being highlighted.
* xdisp.c (redisplay, redisplay_window): Don't use the cursor-motion
special-case code if the region is or was highlighted.
* xfaces.c (compute_char_face): New args REGION_BEG, REGION_END.
Don't sort if noverlays is 0 or 1.
* dispnew.c (direct_output_for_insert): Pass those args.
* xdisp.c (display_text_line): Pass those args,
describing the region if the mark is transient and active.
1993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* buffer.c (Fmove_overlay): If the overlay is in no buffer and the
BUFFER argument has been omitted, put it in the current buffer,
for symmetry with move-marker.
* buffer.c (Fdelete_overlay): Make the overlay's markers point
nowhere, not at 1. Do this after calling redisplay_region, so
that code knows what section has changed.
1993-05-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xdisp.c (display_menu_bar): Update FRAME_MENU_BAR_ITEMS here.
* keyboard.c (command_loop_1): Don't do it here.
* keymap.c (access_keymap): Handle any length vector.
(store_in_keymap): Likewise.
(Fcopy_keymap): Likewise.
1993-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer)
(Foverlay_properties): Functions moved here from subr.el.
1993-05-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xfaces.c (compute_char_face): When merging the overlays,
traverse sortvec, not overlay_vec; the latter isn't the one we
sorted.
* xterm.c (dumpglyphs): Give the cursor higher priority than the
face specified by the glyph under it.
* xterm.c (dumpglyphs): Move the underline up a row. I dislike
the way X addresses pixels. Quickdraw is much nicer.
* xfaces.c (intern_face): If the face has a GC, but it's not the
default or modeline face, abort. Nothing but those two faces
should have a GC *and* be passed to intern_face.
(compute_char_face, compute_glyph_face): After copying
the frame's default face into face, to use as a base case for
calculation, set the `gc' member to zero; that way we don't have
things lying around that look like display faces but aren't.
* xfaces.c (intern_frame_face): When copying the new face into the
frame's face array, remember that the number of bytes to copy is
sizeof (*new_face), not sizeof (new_face).
* xfaces.c (compute_char_face): Assume that W is displaying the
current buffer. Abort if it isn't.
* lisp.h (Lisp_Overlay): New tag.
(OVERLAYP): New predicate.
(CHECK_OVERLAY): New type-checker.
(Qoverlayp): New extern declaration.
* buffer.c (Foverlayp): New function.
(Qoverlayp): New atom.
(overlays_at, recenter_overlay_lists): Abort if we encounter an
invalid overlay.
(syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp.
(Fdelete_overlay): Set the overlay's markers to point nowhere.
Use CHECK_OVERLAY instead of signalling a special error.
(Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of
signalling a special error.
(Foverlay_get): Use CHECK_OVERLAY.
* fns.c (internal_equal): Define this for overlays.
* buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP.
* print.c (print): Give overlays their own print syntax.
* alloc.c (mark_object): Treat overlays like conses.
* lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE
is not defined.
* buffer.c (Foverlay_get): Return Qnil if the requested property
is missing from the property list.
The text property routines can now modify buffers other
than the current one.
* insdel.c (modify_region): New argument BUFFER. Select that
buffer while we prepare for the modification, and switch back when
we're done.
* textprop.c (add_properties, remove_properties): Pass
the buffer being modified as the first argument to modify_region.
* editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the
current_buffer as the first argument to modify_region.
* casefiddle.c (casify_region): Same.
* dispnew.c (direct_output_for_insert): Compute the face of the
character we're inserting properly.
* xterm.c (dumpglyphs): Pass the proper arguments to intern_face.
* xterm.c (dumpglyphs): Don't increment left twice.
* intervals.c (set_point): Check for point out of bounds before
checking for an empty interval tree.
* cmds.c (Fforward_char): Check proposed new position, and then
set point, instead of setting point to a potentially invalid
position.
* lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
to get the extern declarations for atof. That's where it is in
POSIX.
1993-05-12 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* ymakefile (xfaces.o): Add window.h to the dependencies.
* xfaces.c (intern_frame_face): Exchange order of arguments, to
make callers correct.
* xfaces.c (compute_char_face): Notice the next property change
location correctly.
* xfaces.c (face_name_id_number): Return 0 (the default face) if
the name is undefined.
* xfaces.c (Fset_face_attribute_internal): Do nothing unless FRAME
is an X frame.
* xdisp.c (copy_rope, copy_part_of_rope): Add face argument.
(display_text_line): Initialize current_face to zero. Apply it
to characters as we write them to the display matrix.
(display_string): Pass the new argument to copy_rope.
* xdisp.c (display_text_line): Handle the locations of face
changes properly.
* textprop.c (Fnext_single_property_change,
Fprevious_single_property_change): Pass arguments to textget in
the right order.
* ymakefile (xfns.o): Remove duplication of buffer.h in dependencies.
* ymakefile ($(OLDXMENU)): Remove extraneous call to `rm'.
1993-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keymap.c (Faccessible_keymaps): Use whatever size the vector has.
(Fwhere_is_internal): Likewise.
(describe_vector): Likewise.
(current_minor_maps): Call Findirect_function, so symbols
can be used in place of actual maps.
* xdisp.c (display_text_line): Use break; to exit loop at eol.
Duplicate the short MAKE_GLYPH loop after the main loop.
If no display table, do obey selective_display_ellipses.
(copy_part_of_rope): Arg FROM is now Lisp_Object *.
* xfaces.c: Do include window.h.
(compute_char_face): Supply third arg of Fget_text_property.
* keyboard.c (make_lispy_event): Don't set shift modifier for C-^.
* callproc.c (child_setup): Omit duplicates from new env array.
1993-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
filesystem being ro, since Solaris 2.1 doesn't.
(file-writable-p): Call ro_fsys.
* s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
* systime.h: Use the strategy from getdate.y to include the proper
combination of <time.h> and <sys/time.h>.
* xfns.c (Fx_create_frame): Use an XLFD name for the default font,
instead of "9x15" or whatever it was.
* xdisp.c (display_text_line): Make face-handling code conditional
on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach,
but it'll do for now.
* xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
macro here; that's x-specific. Just don't pass the second
argument.
* xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
use F's default face.
1993-05-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xfaces.c (Fmake_face_internal): Do nothing for non-X frames.
* dispextern.h (struct face): Add cached_index member.
* xfaces.c (get_cached_face): Use it to avoid unnecessary
searches of face_vector.
* xfaces.c (intern_face): Renamed from get_display_face.
* xfns.c (x_make_gc): After building the GC's for the frame, call
init_frame_faces to set up the first two faces.
* xfaces.c (init_frame_faces): Don't just try to copy the default
and mode line faces from some other random frame; instead, consult
the normal_gc and reverse_gc members of the frame, and build the
faces based on their parameters.
Adjust the face computation functions to return frame face ID's,
not pointers to display faces; since we call these functions
during display construction, we don't want the display faces yet.
* xfaces.c (intern_frame_face): New function.
(compute_char_face, compute_glyph_face): Apply intern_frame_face
to the computed face, and return the frame face's ID, instead of
calling intern_face and returning a pointer to a display frame.
* xfaces.c: Describe the facial data structures. It took me a
while to figure them out; perhaps this will save someone else the
trouble.
Arrange to tell redisplay about changes in overlays.
* xdisp.c (redisplay_region): New function.
* buffer.c (Fmove_overlay): Call redisplay_region on the areas the
overlay has enclosed or left.
(Fdelete_overlay): Call redisplay_region on the area the overlay
used to occupy.
(Foverlay_put): Call redisplay_region on the area the overlay now
occupies; we may have put a face property on it.
* buffer.c (Fmove_overlay): Doc fix.
* xdisp.c (redisplay): If we're doing a thorough redisplay (all
windows on all frames involved), go ahead and flush the GC cache -
call clear_face_vector.
* xdisp.c (display_text_line): Apply faces to characters
according to overlays and text properties; use
compute_char_face and compute_glyph_face to figure out what
face to use, and where a new face starts.
* xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide
which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure
we're implementing the glyph table properly. If we're not using
the default or mode line face, call intern_face to find a display
face for the frame face selected by the glyph code. Implement
underlining. Remove the `font' argument; we have to derive this
from the frame and face anyway. Change all callers.
* disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
* xterm.c (x_destroy_window): Call free_frame_faces.
The GNU coding standards specify that CFLAGS should be left for
users to set.
* ymakefile (ALL_CFLAGS): Set this to the long string of
compilation switches, not CFLAGS. Changed all uses.
(CFLAGS): Make this default to just -g.
(.c.o): Define new default rule, to make sure that the right flags
get to the compilations.
1993-05-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_char): Exit kbd macro if Vexecuting_macro is t.
* pwd.h: File deleted.
1993-05-08 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* s/sunos4shr.h: Apply changes from David J. Mackenzie; this isn't
used by any configuration right now, but he's trying to make it
work.
#include "sunos4-1.h" instead of "bsd4-2.h".
(O_NDELAY): Don't define this.
(SYSTEM_MALLOC): Don't define this, either.
(LD_SWITCH_SYSTEM): Remove the definition for this.
* Makefile.in (DEFS): Remove this; we have configure build a
config.h file directly, instead of having lots of -D flags.
* Makefile.in (CFLAGS): Don't make this carry DEFS from the
configure script; the coding standards say that CFLAGS should be
left for the user to tweak.
1993-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (do_mouse_tracking): Now static.
* xmenu.c (Fx_popup_menu): Add a vector of prefix keys for the panes.
(keymap_panes): Allocate that vector.
(single_keymap_panes): Fill in that vector.
(xmenu_show): Return a list of events, not just one event.
* keyboard.c (read_char_menu_prompt): Expect Fx_popup_menu
to return a list of events. Don't lose any of them.
* xfns.c (Fx_get_mouse_event, Fx_mouse_events): Code deleted.
* window.c (Vmouse_event): Var deleted.
(syms_of_window): Don't make it a Lisp var.
* keyboard.c (read_avail_input, Fset_input_mode): Make
meta_key a three-value variable to support 8-bit input.
1993-05-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* ymakefile [__GNUC__ && __GNUC__ > 1] (LIB_GCC): Set this even if
LINKER is #defined.
* ymakefile ($(OLDXMENU)): Remove the link before we re-create it;
not all versions of ln have the `-f' flag. Use the LN_S variable,
inherited from src/Makefile.
* Makefile.in (LN_S): New variable, edited by top Makefile.
(SUBMAKEFILE): New variable, containing all flags to pass to
recursive makes.
* config.h.in: Adjust this for use by autoconf's AC_CONFIG_HEADER,
instead of AC_OUTPUT.
* xfaces.c (get_display_face): Use face_eql instead of writing it out.
1993-05-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keymap.c (Fwhere_is_internal): If FIRSTONLY is non-nil, avoid
returning a non-ascii key sequence unless FIRSTONLY is the symbol
`non-ascii'.
* config.h.in: Remove mention of GLYPH datatype; that shouldn't be
a user option.
* lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
1993-05-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c (x_get_arg): Call Fintern, not intern.
* systime.h [SCO]: Include time.h.
* s/sco4.h: New file.
* ymakefile (LIBXMENU): Delete -loldX.
* emacs.c (main): Handle -display like -d.
1993-05-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* s/template.h: Explain the relative significance of the SIGIO and
INTERRUPT_INPUT macros.
* ymakefile (buffer.o, insdel.o): Note that these files also
depend on blockinput.h.
* blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO is
defined everywhere this file is #included; merge the two
definitions for defined (SIGIO) and ! defined (SIGIO) into one,
which calls reinvoke_input_signal if interrupt_input_pending is
set.
* keyboard.c (reinvoke_input_signal): New function.
1993-05-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* window.c (Fdisplay_buffer): Add space to prompt.
1993-05-04 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Doc fix for
extra-keyboard-modifiers.
* lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL)
(CHAR_META): Shift these all up one bit, back to where they were.
1993-05-02 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keymap.c (Fdefine_prefix_command): Doc fix.
* ymakefile (C_DEBUG_SWITCH): Undo April 10 change.
1993-05-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Fsuspend_emacs): Doc fix.
1993-04-30 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* data.c (Ffset): Refuse to set the function value of t or nil.
1993-04-29 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Implement extra_keyboard_modifiers properly.
* keyboard.c (syms_of_keyboard): Doc fix for
extra-keyboard-modifiers; use the same modifier bits as we do for
characters.
(read_char): Apply all the modifiers in extra_keyboard_modifiers
to the input characters, so you can get hyper, super, and the rest
of the gang.
* xterm.c (x_emacs_to_x_modifiers): New function.
(x_convert_modifiers): Renamed to x_x_to_emacs_modifiers, for
consistency. Callers changed.
(XTread_socket): Apply x_emacs_to_x_modifiers to
extra_keyboard_modifiers before setting the state member of the
event; this will get all the modifiers on ASCII characters.
* xterm.c (x_text_icon): Don't call XSetIconName; it should be
unnecessary, and perhaps it's killing the icon pixmap.
* lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, in
case we need them.
* termhooks.h (alt_modifier, super_modifier, hyper_modifier)
(shift_modifier, ctrl_modifier, meta_modifier): Define these in
terms of the CHAR_mumble macros, to avoid having the same thing
defined in two places.
* keyboard.c (kbd_buffer_get_event): Don't generate switch-frame
events if they'd only switch to the frame already selected. This
avoids lots of extra switch-frame events when using a separate
minibuffer.
1993-04-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Fthis_command_keys): Doc fix.
* process.c (wait_reading_process_input): Move the status_notify
call before the set_waiting_for_input call.
* fileio.c (Fexpand_file_name): Undo last change--too risky for now.
* data.c (Fdefine_function): New function (same code as Fdefalias).
1993-04-28 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* eval.c (do_autoload): Fixed the bug in the autoload-saving code.
1993-04-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (Fcurrent_input_mode): New function.
1993-04-27 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* eval.c (un_autoload): Don't try to save old autoload forms when
we load something in. Something about the code now conditioned
out by UNLOAD was screwing up ordinary autoloads, notably of
picture.el. When I figure out what, I'll fix and re-enable this
code.
1993-04-27 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* buffer.c (syms_of_buffer): Doc fix for buffer-display-table.
* systime.h: Doc fix.
(EMACS_SET_USECS): Remember that a `usec' is a microsecond, not a
millisecond. What's three orders of magnitude between friends?
* dispnew.c (Fsit_for, Fsleep_for): Remember to multiply the
`milliseconds' argument by 1000 to get microseconds.
1993-04-26 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* fileio.c (Fexpand_file_name):
Don't remove trailing / from NEWDIR if just "/".
1993-04-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/mips.h,
* m/sps7.h, s/hpux.h, s/usg5-4.h (HAVE_DUP2): Removed; derived by
configure script.
* s/hpux.h, s/irix3-3.h, s/aix3-1.h (HAVE_GETHOSTNAME): Removed;
derived by configure script.
Arrange for Fy_or_n_p to put off switch-frame events.
* lread.c (read_filtered_char): New function, which contains the
code which used to be in Fread_char, Fread_event, and
Fread_char_exclusive; there was a lot of common code.
(Fread_char, Fread_event, Fread_char_exclusive): Rewrite in terms
of read_filtered_char.
* lisp.h (read_filtered_char): Declare this extern here.
* fns.c (Fy_or_n_p): Call read_filtered_char, arranging to delay
switch-frame events.
* keyboard.c (read_key_sequence): Let the `modifiers' variable in
the code which deals with KEY being unbound be an int, not a
Lisp_Object.
* config.h.in (getenv): Don't test THIS_IS_YMAKEFILE to see if we
should exclude the getenv declaration; instead, test NOT_C_CODE.
Per suggestion from Francesco Potorti`.
* ymakefile (NOT_C_CODE): Define this; it's true, and useful.
* dispnew.c (Fsleep_for, Fsit_for): Allow SECONDS to be a
floating point value.
1993-04-26 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* sysdep.c (read_pending_input):
Fix the garbaged-modifiers bug under System Vs previous
to r4.
1993-04-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these into
functions in sysdep.c.
* sysdep.c (emacs_get_tty, emacs_set_tty): Here they are.
* sysdep.c (emacs_set_tty): Call tcsetattr over and over again
until it does all of what we ask it to, or returns an error.
* search.c (Freplace_match): Arrange for markers sitting at the
beginning or end of the original text to float to the
corresponding position in the replacement text.
1993-04-25 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* window.c (Fset-window-buffer):
Set horizontal-scrolling on a window to zero when
we connect it to a new buffer.
* buffer.c: Doc fix.
1993-04-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Make the modifier manipulation functions more robust. The old way
caused a bug once, and probably would again.
* termhooks.h (alt_modifier, super_modifier, hyper_modifier)
(shift_modifier, ctrl_modifier, meta_modifier): Shift these all
down one bit in value, to avoid sign extension problems.
* lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too.
* keyboard.c (lispy_modifier_list): Ignore modifier bits beyond
what our table of modifier names can handle.
(apply_modifiers): Don't abort if you see extra modifier bits,
just remove them.
1993-04-23 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* data.c (Fdefine_function):
Changed name back to Fdefalias, so we get things
in a known-good state.
* buffer.h (BUF_NARROWED, NARROWED):
New macros to test whether a region
restriction has narrowed the buffer.
1993-04-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* systime.h: Comment fixes.
* data.c (Fdefine_function): New function.
* lisp.h (LOADHIST_ATTACH): New macro.
(Vcurrent_load_list, Vload_history): Vars declared.
* eval.c (defun, defmacro, defvar, defconst):
Attach symbol argument to the list of globals for the input source.
(do_autoload): Save the old autoloads, in case we ever unload.
* fns.c (provide, require): Put appropriately-marked
conses in the current-globals list.
* lread.c (readevalloop):
New argument is the source file name (or nil if none).
All calls changed. Do the two-step
necessary to call build_load_history with the correct current-globals
list for the current recursion.
(build_load_history): New function.
(eval_region, eval_buffer): Call readevalloop with new arg.
(load_history): New variable.
1993-04-16 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* lread.c (readevalloop): New argument is the source file name (or
nil if none). All calls changed. Do the two-step
necessary to call build_load_history with the correct current-globals
list for the current recursion.
(build_load_history): New function.
(Feval_region, Feval_buffer): Call readevalloop with new arg.
(Vload_history): New variable.
* fns.c (Fprovide, Frequire): Put appropriately-marked
conses in the current-globals list.
* eval.c (Fdefun, Fdefmacro, Fdefvar, Fdefconst):
Attach symbol argument to the list of globals for the input source.
(do_autoload): Save the old autoloads, in case we ever unload.
* data.c (Fdefine_function): New function.
1993-04-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* fileio.c (Fmake_symbolic_link): If a file already exists under
the link's filename, delete the file which the link
would replace, not the file the link would point at.
* config.h.in (volatile): Don't define this to be the empty string
if some file has #defined HAVE_VOLATILE.
* emacs.c (SEPCHAR): Instead of defining this to be ',' on VMS and
':' elsewhere, just have it default to ':' if not #defined, and
#define it to be ',' in s/vms.h; OS/2 will need it to be ';'.
* s/vms.h (SEPCHAR): #define this to be ','.
* s/template.h (SEPCHAR): Mention this.
1993-04-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* s/vms.h (xfree): #define this to emacs_xfree, to avoid case
conflict with XFree; on VMS, external symbols are case-insensitive.
* s/usg5-4.h (HAVE_GETTIMEOFDAY): Deleted; ../configure figures
that out now.
Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
* s/mach2.h: Copied from the Emacs 18.59 distribution.
Don't define NO_REMAP, define START_FILES as
`pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the
default `-lm -lc' (there is no libc on the NeXT).
* ymakefile (STARTFILES): Allow config.h to set this value even if
ORDINARY_LINK is defined.
* unexnext.c: Fix subdirectories for the machine dependent include
files for NeXTStep 3.0; #include <mach/mach.h> and
<mach-o/loader.h> instead of <mach.h> and <sys/loader.h>.
(getsectbyname): Remove prototype for this; the system #include
files take care of that.
(malloc_cookie): New variable.
(unexec_doit): Set malloc_cookie to the result returned by
malloc_freezedry.
* emacs.c (main): Declare malloc_cookie to be extern, so that we can
get the value set when we dumped and pass it to malloc_jumpstart.
* systime.h: The NeXT has a timezone function.
1993-04-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* ymakefile ($(OLDXMENU)): Remove $(OLDXMENU) before trying to
link in a new version.
* lisp.h (Qrange_error, Qdomain_error, Qsingularity_error)
(Qoverflow_error, Qunderflow_error): Add extern to these declarations.
1993-04-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfaces.c: Don't include Xmu/Drawing.h.
1993-04-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* Makefile.in (xmakefile): Recognize the -O option with a numeric
optimization level.
* ymakefile (C_DEBUG_SWITCH): If we're using version 2 of GCC or
higher, use -O99 instead of plain -O.
1993-04-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (command_loop_1): Rebuild menu bar if
update_mode_lines is set.
long_to_cons and cons_to_long are generally useful things; they're
needed whether or not X is defined.
* xselect.c (long_to_cons, cons_to_long): Moved from here...
* data.c (long_to_cons, cons_to_long): ... to here.
* lisp.h (long_to_cons, cons_to_long): Add extern declaration.
* xmenu.c (Qmenu_enable): Definition moved...
(syms_of_xmenu): ... along with initialization ...
* keyboard.c (Qmenu_enable): ... to here ...
(syms_of_keyboard): ... and here.
* keyboard.c (kbd_buffer_get_event): If we get a selection clear
or selection request event, but we were compiled without the
window-system-specific code to handle it, abort. Don't try to
call a function which doesn't exist.
* keyboard.c (make_lispy_event): In the code which processes mouse
clicks, declare f to be a FRAME_PTR, not a struct frame *; this
works when MULTI_FRAME is not #defined.
* xfaces.c (sort_overlays): Define this to be static, as declared.
* callproc.c (relocate_fd): Make messages string literals, not
initialized arrays.
* alloc.c (__malloc_hook, __realloc_hook, __free_hook): Declare
these extern, not static. (!)
* alloc.c (__malloc_hook, old_malloc_hook, __realloc_hook)
(old_realloc_hook): Declare that the functions these point to return
void *, not void.
Adjust for autoconf merger.
* config.h.in: Add extra line to top, in case autoconf gets fixed
and decides not to add Makefile-style comments to the top of the
files it generates which we are forced to lop off.
Indicate that the boolean macros here get their definitions via
the DEFS Makefile variable.
Adjust the operating system and machine #includes to use
autoload's @cookies@.
(RETSIGTYPE): Give this a default value.
(SIGTYPE): Set this from RETSIGTYPE.
(LD_SWITCH_X_SITE, C_SWITCH_X_SITE): Get values via @cookies@.
* Makefile.in (DEFS): Renamed from CONFIG_CFLAGS.
(xmakefile): Pass CFLAGS to ${CPP}.
* buffer.c (Fmake_overlay, Fmove_overlay): New optional BUFFER
arguments.
(recenter_overlay_lists): New argument BUF, to use instead of the
current buffer.
(Foverlay_recenter): Pass the appropriate arguments to
recenter_overlay_lists.
* buffer.c (Fdelete_overlay): Don't assume that overlay is in the
current buffer. Don't forget to declare the argument a Lisp_Object.
* dispnew.c (getenv): Extern declaration deleted; this is done in
config.h.
* Makefile.in (tagsfiles): Remove external-lisp from this list of
files; we're not distributing it, so the normal build process
shouldn't depend on it.
* dispnew.c (init_display): Compare the return value of getenv to
zero before setting display_arg, instead of just using the pointer
as a truth value.
1993-04-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xdisp.c (message, message1): If noninteractive and
cursor_in_echo_area, don't print a newline at end of message.
* fns.c (Fy_or_n_p): Echo the answer just once, at exit.
* keyboard.c (echo_dash): Do nothing if echoptr is 0.
* buffer.c (Fkill_all_local_variables): Store each var's current value
in the buffer's alist entry, before reverting to the default value.
1993-04-07 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keyboard.c (apply_modifiers): Fix typo in sanity check.
* keyboard.c (interrupt_input_blocked, interrupt_input_pending):
Remove `extern' keywords - these are the definitions.
1993-04-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* blockinput.h (UNBLOCK_INPUT): Fix typo.
(interrupt_input_blocked): Make this signed int.
* search.c (search_buffer): Fix typo in previous change.
* insdel.c, buffer.c: Include blockinput.h.
* xterm.c: Fix typo in comment delimiter.
1993-04-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* m/imbrs6000.h: If we're using GCC, define ORDINARY_LINK instead
of defining LINKER to use cc.
* s/aix3-1.h (LINKER): Don't use cc for linking command if we're
using GCC.
* s/aix3-2.h (SYSTEM_MALLOC): Undefine this.
* xterm.c (updating_frame): Declare this extern instead of static,
so it's the same variable as the updating_frame in term.c.
(XTupdate_begin, XTupdate_end): Don't bother to set
updating_frame; the term.c functions take care of that for us.
1993-04-05 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* s/vms.h (EXEC_SUFFIXES): Add definition for this.
1993-03-31 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* xfaces.c: Doc fixes.
Put interrupt input blocking in a separate file from xterm.h.
This isn't specific to X, and it allows us to avoid #including
xterm.h in files that don't really have anything to do with X.
* blockinput.h: New file.
* xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
(UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h.
(x_input_blocked, x_pending_input): Deleted; there are analogs
in blockinput.h called interrupt_input_blocked and
interrupt_input_pending.
* keyboard.c (interrupt_input_blocked, interrupt_input_pending):
New variables, used by the macros in blockinput.h.
* xterm.c: #include blockinput.h.
(x_input_blocked, x_pending_input): Deleted.
(XTread_socket): Test and set interrupt_input_blocked and
interrupt_input_pending instead of the old variables.
* alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c:
#include blockinput.h.
* eval.c: #include blockinput.h instead of xterm.h.
* keyboard.c: #include blockinput.h.
(input_poll_signal): Just test
interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and
x_input_blocked.
Block the processing of interrupt input while we're manipulating the
malloc heap.
* alloc.c (xfree): New function, to make it easy to free things safely.
(xmalloc, xrealloc): Block X input while doing the deed.
(VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree
instead of free.
(uninterrupt_malloc): New function, to install input-blocking
hooks into the GNU malloc routines.
* emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc
on startup.
* alloc.c (make_interval, make_float, Fcons, Fmake_vector)
(Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect):
Use xmalloc instead of malloc; don't bother to check if out of
memory here.
(Fgarbage_collect): Call xrealloc instead of realloc.
* buffer.c: Use xmalloc and xfree instead of malloc and free;
don't bother to check if out of memory here.
(Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around
calls to ralloc routines.
* insdel.c: Same.
* lisp.h (xfree): New extern declaration.
* xfaces.c (xfree): Don't #define this to be free; use the
definition in alloc.c.
* dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c,
* xmenu.c, xterm.c: Use xfree instead of free.
* hftctl.c: Use xfree and xmalloc instead of free and malloc.
* keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc
and malloc.
* search.c: Since the regexp routines can malloc, BLOCK_INPUT
while runing them. #include blockinput.h.
* sysdep.c: #include blockinput.h. Call xfree and xmalloc instead
of free and malloc. BLOCK_INPUT around routines which we know
will call malloc.
* ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o)
(xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that
these depend on blockinput.h.
* keyboard.c (parse_modifiers, apply_modifiers): Make sure we're
not trying to create modifier masks using integers which are
unrepresentable as lisp values.
1993-03-30 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
New macros NULL_DEVICE and EXEC_SUFFIXES, to give the name of the
equivalent of /dev/null, and the suffixes used by executable
files. This is simple, and helps people porting Emacs to other
operating systems.
* process.h (NULL_DEVICE): Give this a default value.
* process.c (Fstart_process): Pass EXEC_SUFFIXES to openp.
(Fprocess_send_eof): Use NULL_DEVICE instead of "/dev/null".
* callproc.c (Fcall_process): Pass EXEC_SUFFIXES to openp.
Use NULL_DEVICE instead of "/dev/null".
* s/vms.h (NULL_DEVICE): #define this.
Rename int-to-string to number-to-string, since it can handle
floating-point as well as integer arguments. subr.el defines the
former as an alias for the latter.
* data.c (Fnumber_to_string): Renamed from Fint_to_string.
(wrong_type_argument): Adjust caller.
(syms_of_data): Adjust defsubr.
* fns.c (concat): Adjust caller.
* lisp.h (Fnumber_to_string): Adjust extern declaration.
* mocklisp.c (Finsert_string): Adjust caller.
* process.c (status_message): Adjust caller.
1993-03-28 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* systty.h [NO_PTY_H]: Don't include pty.h.
* m/delta88k.h [USG5_4]: Alternate defining of LIBS_SYSTEM,
LIBX11_SYSTEM, HAVE_RANDOM, BSTRING.
(NO_PTY_H): Defined.
* fileio.c (Fwrite_region): Don't fail to set visit_file.
* keyboard.c (command_loop_1): Clear force_start of selected_window
after reading each key sequence.
(read_char): Clear Vquit_flag when we return C-g for it.
* fileio.c (Fexpand_file_name): Default DEFALT at beginning,
before expanding it. But avoid unneeded or infinite recursive expand.
1993-03-26 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* editfns.c (Fchar_equal): Don't ignore high bits of character.
* fileio.c (Fwrite_region): Set visit_file after expanding file arg.
Also expand VISIT arg if specified.
* frame.c (make_frame): Init face_alist field.
1993-03-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;
access the display structure directly.
1993-03-25 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* ymakefile (xfns.o): Depend on buffer.h.
* buffer.h (struct buffer): Field `fieldlist' deleted.
* search.c (Freplace_match): Clean up criterion about converting case.
If old text has any capitalized words, capitalize new text.
* xfaces.c: New file.
* ymakefile (XOBJ): Add xfaces.o.
(xfaces.o): New target.
* emacs.c (main): Call syms_of_xfaces.
* buffer.h (OVERLAY_START, OVERLAY_END, OVERLAY_VALID): New macros.
(OVERLAY_POSITION): Likewise.
(searchbuf): Decl deleted--doesn't belong here.
Delete include of regex.h for VMS.
* dired.c (searchbuf): Declare here.
* frame.h (struct frame): New field face_alist.
* alloc.c (mark_object): Mark face_alist of a frame.
* ymakefile (xselect.o): Depend on dispextern.h.
* xterm.h (FRAME_FACES, FRAME_N_FACES, FRAME_DEFAULT_FACE)
(FRAME_MODE_LINE_FACE): New macros.
(struct x_display): New fields faces, n_faces.
* dispextern.h (struct face): New fields pixmap_h, pixmap_w.
Field `font' is now a pointer.
* fns.c (Fy_or_n_p): Ensure cursor_in_echo_area = 0 when quit.
1993-03-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* dispnew.c (getenv): Add extern declaration.
* ymakefile (really-oldXMenu): Pass C_SWITCH_SITE and
C_SWITCH_SYSTEM to the inferior make as separate flags, instead of
passing just C_SWITCH_SITE as CFLAGS.
* keymap.c (Fkeymapp): Doc fix.
* xterm.h (x_focus_frame): Add extern keyword to declaration.
* xterm.c [VMS]: Don't #include <sys/termio.h> and <string.h>.
* xfns.c [VMS]: Get the gray_bits from [.bitmaps]gray.xbm.
* process.c [VMS] (DCL_PROMPT): Remove hack.
(WIFSTOPPED, WIFSIGNALED, WIFEXITED, XRETCODE, WSTOPSIG)
(WCOREDUMP, WTERMSIG): New dummy definitions.
(deactivate_process): Add missing semicolon.
* dispnew.c (init_display): Get display name from environment
properly on VMS as well as Unix.
1993-03-24 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* buffer.c (init_buffer_once, reset_buffer):
Delete last vestige of fieldlist slot.
(Fregion_fields): Finally deleted.
* keymap.c (push_key_description): Ignore bits above meta_modifier.
1993-03-23 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* buffer.c (overlays_at, recenter_overlay_lists): New functions.
(Fmake_overlay, Fdelete_overlay, Foverlay_get, Foverlay_put): Likewise.
(Fmove_overlay, Foverlays_at, Fnext_overlay_change): Likewise.
(Foverlay_lists, Foverlay_recenter): Likewise.
* buffer.h (struct buffer): New fields overlay_center,
overlays_before, overlays_after.
1993-03-23 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* config.h.in (HAVE_XFREE386): New flag, set by configure script.
If it's set, #define LIBX11_SYSTEM and HAVE_RANDOM as appropriate
for XFree386.
* sysdep.c (random, srandom): Don't define these if HAVE_RANDOM is
#defined.
* config.h.in (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): New flags.
* ymakefile (C_SWITCH_X_SITE, LD_SWITCH_X_SITE): Provide default
values. Include C_SWITCH_X_SITE in CFLAGS, include
LD_SWITCH_X_SITE in LIBX, and pass C_SWITCH_X_SITE to the make
which builds the X Menu library.
1993-03-22 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* xfns.c (Fx_parse_geometry): Renamed from Fx_geometry.
(Fx_color_defined_p): Renamed from Fx_defined_color.
(syms_of_xfns): Adjusted.
1993-03-22 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* indent.c (current_column, Findent_to, position_indentation):
(Fmove_to_column, compute_motion): Allow tab_width up to 1000.
* xdisp.c (display_string, display_text_line):
Allow tab_width up to 1000.
* keyboard.c (Fsuspend_emacs):
Change suspend-hooks back to suspend-hook and make it a normal hook.
* s/dgux.h: Decide automatically whether to use COFF or ELF.
1993-03-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fns.c (Fy_or_n_p): Handle `recenter' response type.
* s/dgux.h (HAVE_TERMIO, SIGNALS_VIA_CHARACTERS): Defined.
1993-03-21 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* frame.c (Fhandle_switch_frame): Renamed from Fselect_frame.
Doc changed in anticipation of new purpose.
(Fselect_frame): Just call Fhandle_switch_frame for now.
1993-03-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xdisp.c (decode_mode_spec): Handle `%l'.
(display_count_lines): New function.
(redisplay_window): Update base_line_number and base_line_pos fields.
Always update mode line if it's an integer.
* window.h (struct window):
New fields base_line_number and base_line_pos.
* window.c (Fselect_window): Use Fhandle_switch_frame.
(Fset_window_configuration): Likewise.
1993-03-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
Use the `visiblity' parameter to determine the initial state of
the frame, instead of the `iconic-startup' and
`suppress-initial-map' parameters.
* xfns.c (x_icon): Test the Qvisibility parameter against Qicon,
instead of the Qiconic_startup against Qt.
(x_create_frame): Test Qvisibility against Qnil and
Qicon, instead of testing Qsuppress_initial_map and Qvisibility.
(Qicon): New symbol.
(Qiconic_startup, Qsuppress_initial_map): Removed.
(syms_of_xfns): Adjusted appropriately.
* xfns.c (x_set_visibility): Instead of interpreting only Qt as
`make the frame visible' and everything else as `iconify the
frame', interpret Qicon as `iconify the frame' and everything else
as `make the frame visible.'
* xfns.c (x_get_arg): When the type of the resource is `symbol',
return `true' and `on' as Qt, and `false' and `off' as Qnil.
1993-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* emacs.c (init_cmdargs): Fix simple bug in previous change.
1993-03-20 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* dispnew.c (Fsleep_for): Make this take two arguments SECONDS and
MILLISECONDS, which add, rather than a second argument which says
"treat the first argument as milliseconds."
(Fsit_for): Same thing.
(Fsleep_for_milliseconds): Deleted; this can be done with Fsleep_for.
* process.c (wait_reading_process_input): Doc fix.
* systime.h (EMACS_HAS_USECS): #define this if HAVE_TIMEVAL is
#defined.
* dispnew.c (sit_for): Doc fix.
* sysdep.c (reset_sys_modes): Fix usage of EMACS_SET_TTY.
* callproc.c (child_setup): Make sure that in, out, and err are
not less than three.
(relocate_fd): New function.
* xterm.c (x_term_init): If the X connection is already in file
descriptor zero, don't dup it and close the old one.
* s/hpux8.h, s/sunos4-1.h (OLDXMENU_OPTIONS): Define this, as in
Emacs 18.
* xfns.c (Fx_open_connection): If we have X11R5, use
XrmSetDatabase to set the display's database. In older versions,
just store the value into x_current_display->db.
* xterm.h (HAVE_X11R5): Define this where appropriate.
* frame.c (Fraise_frame, Flower_frame): Renamed from
Fframe_to_front and Fframe_to_back.
(syms_of_frame): Adjusted appropriately.
* fileio.c (HAVE_FSYNC): Define, if appropriate.
(Fwrite_region): Use HAVE_FSYNC.
* s-aix3-2.h (HAVE_FSYNC): Define.
* emacs.c (Finvocation_name): New function.
(Vinvocation_name): New variable.
(init_cmdargs): Set it.
(syms_of_emacs): defsubr Finvocation_name, staticpro and
initialize Vinvocation_name.
* lisp.h (Vinvocation_name): New extern declaration.
* xterm.c (invocation_name): Variable deleted; use
Vinvocation_name now.
(x_text_icon, x_term_init): Use Vinvocation_name now instead of
invocation_name.
(x_term_init): Don't initialize invocation_name.
(syms_of_xterm): Don't initialize or staticpro invocation_name.
* xfns.c (invocation_name): Remove extern declaration for this.
[HAVE_X11] (Fx_get_resource): Use Vinvocation_name now instead of
invocation_name.
[not HAVE_X11] (Fx_get_default): Same.
1993-03-20 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* xfns.c (Fx_display_color_p): Renamed from Fx_color_display_p.
(syms_of_xfns): Use new name in defsubr.
1993-03-19 Eric S. Raymond (eric@geech.gnu.ai.mit.edu)
* Makefile.in (unlock, relock): New productions to assist with
version control.
1993-03-19 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* fileio.c (Fvisited_file_modtime): New function.
(Fset_visited_file_modtime): Accept an argument specifying time value.
If arg is nil, really use the filename handler.
* xselect.c (cons_to_long, long_to_cons): No longer static.
1993-03-18 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* frame.h (FOR_EACH_FRAME): Change the definition so that
FRAME_VAR is a lisp object.
* dispnew.c (WINDOW_CHANGE_SIGNAL, do_pending_window_change):
Adjusted appropriately.
* xdisp.c (redisplay): Adjusted appropriately.
* dispnew.c (Fredraw_frame): Give this appropriate definitions for
MULTI_FRAME and non-MULTI_FRAME configurations.
(Fredraw_display): Give this a non-MULTI_FRAME-dependent definition.
1993-03-18 Richard Stallman (rms@geech.gnu.ai.mit.edu)
* lisp.h (CHECK_LIVE_WINDOW): Use Qlive_window_p.
* xfns.c (x_screen): Make this var file scope.
(Fx_server_version): Use Fcons, not list3.
1993-03-17 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* xterm.c (term_get_fkeys): Less klugey version of the last fix.
* Makefile.in (versionclean): New production nukes binaries and
DOC files, forcing a re-load, re-dump and re-makedoc.
1993-03-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c: Doc fix.
1993-03-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xterm.c (x_display_box_cursor, x_display_bar_cursor): Don't
display the cursor on garbaged frames.
1993-03-17 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* term.c (term_get_fkeys) Supply second args for all tgetstr calls.
1993-03-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* process.c (Fprocess_send_eof): Make sure proc is running.
* s/irix4-0.h (_getpty): Declare this, not _get_pty.
1993-03-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c (Fx_server_vendor, Fx_server_version, Fx_display_pixel_width)
(Fx_display_pixel_height, Fx_display_mm_width, Fx_display_mm_height)
(Fx_display_screens, Fx_display_planes, Fx_display_color_cells)
(Fx_display_visual_class, Fx_display_backing_store)
(Fx_display_save_under): New functions.
(x_screen_count, Vx_vendor, x_release, x_screen_height_mm)
(x_screen_width_mm, Vx_backing_store, x_save_under, Vx_screen_visual)
(x_visual_strings): Vars deleted.
(Fx_open_connection): Don't init those vars.
(syms_of_xfns): Set up new functions.
Don't set up those vars as Lisp vars.
Nor x-screen-width and x-screen-height.
1993-03-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* cmds.c (overwrite_binary_mode): Deleted; this implements the
wrong feature.
(Qoverwrite_mode_binary): New variable.
(internal_self_insert): If current_buffer->overwrite_mode is
`overwrite-mode-binary', do as overwrite_binary_mode used to.
(syms_of_cmds): Remove defvar of overwrite_binary_mode; initialize
Qoverwrite_mode_binary.
* buffer.c (syms_of_buffer): Doc fix for overwrite_mode.
* buffer.h (struct buffer): Doc fix.
Rename `live-window-p' to `window-live-p', for consistency with
`frame-live-p'.
* window.c (Fwindow_live_p): Renamed from Flive_window_p.
* lisp.h (CHECK_LIVE_WINDOW): Change to use Qwindow_live_p.
(Qwindow_live_p): Extern declaration renamed fom Qlive_window_p.
1993-03-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xmenu.c (xmenu_show): Do BLOCK_INPUT; unblock just before returning.
* xterm.h [SIGIO] (UNBLOCK_INPUT): Resignal if x_pending_input.
1993-03-15 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* frame.c (Fframe_height, Fframe_width): Fix doc strings to match
those of the multi-frame versions in frame.el. Accept an optional
argument FRAME, also for consistency.
* floatfns.c (logb): Add extern declaration for this.
* floatfns.c (Flogb): Under SYSV, implement this using frexp.
1993-03-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (dispnew.o): Depend on termhooks.h.
* xmenu.c (list_of_items): Allow strings among the alist items;
they make nonselectable lines.
1993-03-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* dired.c (Fdirectory_files): Recompile MATCH (if specified) after
expanding the file name and all; those might compile regexp of
their own, and change searchbuf.
* keyboard.h (internal_last_event_frame): This should be extern,
dummy.
* fns.c (Fy_or_n_p): Display the answer.
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
* [VMS] systime.h: Include vmstime.h. VMS has the timezone
variable and the tzname array.
* s/vms.h: VMS does have select.
mth$dmod is the same as Unix's drem.
Use the time functions in vmstime.c.
No need to rename the malloc routines if we're using GNU malloc.
PURESIZE needs to be 330000.
* vmstime.c, vmstime.h: New files.
* systty.h: Don't try to initialize extern declarations under VAX C.
* vmspaths.h (PATH_LOADSEARCH): Include EMACS_LIBRARY:[LOCAL-LISP]
in PATH_LOADSEARCH.
(PATH_EXEC): Use EMACS_LIBRARY:[LIB-SRC] instead of [ETC].
* sysdep.c [VMS] (init_sys_modes): Don't allocate process_ef.
[VMS] (queue_kbd_input): Build events structure correctly.
[VMS] (gethostname): New function.
[VMS] (getwd): Don't get the PATH environment variable; that's
dumb. Call getcwd.
1993-03-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xdisp.c (display_menu_bar): Assume FRAME_MENU_BAR_ITEMS already set.
Fill out line with spaces.
Put explicit spaces between items.
* keyboard.c (command_loop_1): Set FRAME_MENU_BAR_ITEMS here.
* window.c (Fdelete_other_windows): Handle FRAME_MENU_BAR_LINES.
* keyboard.c (menu_bar_items): Reverse the list when done.
* xmenu.c (single_keymap_panes): When storing in ENABLES,
check def before enabled.
* ymakefile (really-oldXMenu): Renamed from ${oldXMenudir}$(OLDXMENU).
Add @true.
($(OLDXMENU)): Depend on really-oldXMenu.
The idea is to make sure libXMenu11.a is always updated if nec.
* keyboard.c (command_loop_1): Typo calling Qrecompute_lucid_menubar.
(read_key_sequence): Likewise. Also fix call to Vrun_hooks.
1993-03-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* ymakefile (YMF_PASS_LDFLAGS): Doc fix.
1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* print.c (PRINTPREPARE): Handle marker that points nowhere.
* apollo.h (NO_X_DESTROY_DATABASE): Defined.
* undo.c (record_property_change, record_delete, record_insert):
Don't make boundary or touch last_undo_buffer if cur buf has no undo.
* ymakefile [__GNUC__ > 1]: Delete the conditional for GCC 2.4.
[__GNUC__ > 1] (LIB_GCC): Use -print-libgcc-file-name to find libgcc.a.
(YMF_FIND_LIBGCC_A): Definitions and uses deleted.
1993-03-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* s/usg5-4.h: Remove extraneous text after #undef LIB_X11_LIB.
1993-03-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xterm.c (Xatom_wm_change_state): Define here.
* xfns.c (Xatom_wm_change_state): Just declare.
(Xatom_emacs_selection, Xatom_clipboard, Xatom_clipboard_selection):
(Xatom_wm_change_state, Xatom_incremental, Xatom_multiple):
(Xatom_targets, Xatom_timestamp, Xatom_delete, Xatom_insert_selection):
(Xatom_pair, Xatom_insert_property, Xatom_text): Decls deleted.
(x_begin_selection_own): Decls deleted.
(Fx_open_connection): Set up only the wm atoms here.
Call Xatoms_of_xselect.
* dispnew.c: Include termhooks.h.
* frame.h (FRAMEP): Macro deleted.
* xselect.c: Total rewrite, derived from Lucid's version.
* keyboard.c (kbd_buffer_get_event): Handle selection_clear_event
and selection_request_event events.
* xterm.c (XTread_socket): Handle NEW_SELECTIONS alternative:
queue events for SelectionRequest and SelectionClear;
call functions for SelectionNotify and PropertyNotify.
* termhooks.h (selection_request_event, selection_clear_event):
New event kinds.
* xterm.h (SELECTION_EVENT_DISPLAY): New macro.
(SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION)
(SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY)
(SELECTION_EVENT_TIME): New macros.
(struct selection_input_event): New structure.
* process.c (wait_reading_process_input): New option to wait
till a given cons cell has a non-nil car.
Delete vipc conditionals.
1993-03-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* ymakefile (YMF_FIND_LIBGCC_A): New macro, to help GCC find
libgcc.a even when -nostdlib is in effect. Define it to be the
empty string if nobody else establishes a value for it.
(temacs): Include it in the list of flags passed to the linker.
* ymakefile (LINKER): If we have GCC 2.4 or later, use the
-nostartfiles option instead of -nostdlib.
(LIBGCC): Under GCC 2.4 or later, define this to be the empty string.
1993-03-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xmenu.c (xmenu_show): New arg enable_list.
(keymap_panes): New arg enables
(single_keymap_panes): New arg enables. Fill in its contents.
(list_of_panes, list_of_items): New arg enables. Fill in contents.
(Fx_popup_menu): Pass enable and enable_list args.
(single_keymap_panes): Set enable flag to -1 if cmd definition is nil.
* lisp.h (INTEGERP, SYMBOLP, MARKERP, STRINGP, VECTORP): New macros.
(COMPILEDP, BUFFERP, SUBRP, PROCESSP, FRAMEP, WINDOWP): New macros.
(WINDOW_CONFIGURATIONP, FLOATP): New macros.
1993-03-12 Paul Eggert (eggert@twinsun.com)
* cmd.c (internal_self_insert): Check that tab_width does not
exceed 20, to be consistent with indent.c and xdisp.c.
1993-03-12 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* term.c (CONDITIONAL_REASSIGN): Fixed reference to tigetstr.
This should have been tgetstr, but I typoed and tigetstr happens
to link and even do the right thing if you're on a System V box.
1993-03-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): Support Vcurrent_menubar
and Qactivate_menubar_hook. Call Qrecompute_lucid_menubar.
(syms_of_keyboard): Set up Vcurrent_menubar, Vprevious_lucid_menubar,
Qactivate_menubar_hook, and Qrecompute_lucid_menubar.
* xmenu.c (Fx_popup_menu): Allow a frame instead of a window, in arg.
Use Fcar, Fcdr when extracting from event, to check data types.
1993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* frame.h (FRAME_MENU_BAR_ITEMS): New macro (two versions).
(struct frame): New field menu_bar_items.
* alloc.c (mark_object): Mark the menu_bar_items field.
* xdisp.c (display_menu_bar): New function.
(redisplay_window): Call display_menu_bar.
* term.c (tigetstr): Add dummy definition to make Emacs link again.
* keyboard.c (syms_of_keyboard): Set up Qmenu_bar.
(menu_bar_items): New function.
(menu_bar_one_keymap, menu_bar_item): New functions.
(make_lispy_event): Handle menu bar events.
(read_key_sequence): Make dummy prefix `menu-bar' for menu bar events.
1993-03-11 Eric S. Raymond (eric@mole.gnu.ai.mit.edu)
* term.c (fkey_table): Added many more keycap cookies to the
fkey_table; it now supports the full intersection of the set of X
keysyms and terminfo capabilities. See my lisp directory
ChangeLog entry for this date, and lisp/term/README, for details.
1993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* floatfns.c (Flogb): Fix use of IN_FLOAT.
Fix arg names. Don't confuse Lisp_Object with integer.
1993-03-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c (process_send_signal): In the TERMIOS code for sending
control characters to processes, don't try to return Qnil; just
return.
1993-03-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* dispnew.c (change_frame_size): Handle FRAME_MENU_BAR_LINES.
* frame.c (Fframe_parameters): Report menu-bar-lines parm.
(syms_of_frame): Set up Qmenu_bar_lines.
* frame.h (FRAME_MENU_BAR_LINES): New macro.
(struct frame): New field menu_bar_lines.
* xfns.c (x_frame_parms): Add elts for visibility and menu-bar-lines.
(enum x_frame_parm): Likewise.
(x_set_menu_bar_lines, x_set_menu_bar_lines_1): New functions.
(x_set_visibility): New function.
(Fx_create_frame): Handle menu-bar-lines parm.
(x_report_frame_params): Report Qvisibility.
(syms_of_xfns): Set up Qvisibility.
* keyboard.c (command_loop_1): Typo in last change.
* xmenu.c (syms_of_xmenu): Set up Qmenu_enable.
(single_keymap_panes): Test menu-enable property of symbol
to decide whether to include it in the menu.
1993-03-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (command_loop_1): Adjust to the fact that display
tables are now vectors of vectors, not vectors of strings.
1993-03-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* floatfns.c (Flogb): Undo the change of Feb 22.
* ymakefile (OLDXMENU): Don't assume that we have symbolic links
available; use `ln -f' instead of `ln -s'.
* xterm.c (x_find_modifier_meanings): XDisplayKeycodes only
appeared in X11R4; for earlier versions, just access the members
of the Display directly.
* xrdb.c (get_user_db): Since xrdb.c doesn't #include xterm.h,
we can't test HAVE_X11R4 to see how we should get the resource
manager string; cheat.
* unexec.c (copy_text_and_data): Error message tweaked.
* systime.h (timezone): Add an explicit declaration for this
variable under USG 5-4.
* sysdep.c (read_input_waiting): Set e.frame_or_window, not
e.frame; the latter doesn't exist anymore.
* sysdep.c (start_of_data): If ORDINARY_LINK is #defined, we don't
have the data_start symbol defined, so we'll just use the address
of environ.
* s/usg5-4.h: Changes from Eric Raymond:
If we're doing ordinary linking, define LIB_STANDARD appropriately.
Give LIBS_DEBUG a null definition; usg5-4 has no -lg.
#define LIBS_STANDARD as "-lc"; usg5-4 has no -lPW.
#define NSIG, if it's not already defined.
#define HAVE_TERMIOS instead of HAVE_TCATTR.
Provide our own definition of LIB_X11_LIB.
* s/usg5-3.h (LIBX11_SYSTEM): Eric Raymond says the libraries here
were slightly wrong.
* m/intel386.h (LIB_STANDARD): If USG5_4 is #defined, there's no
need to include `-lPW'; that has been merged with `-lc'.
* emacs.c (__do_global_ctors, __do_global_ctors_aux)
(__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't
define these if ORDINARY_LINK is #defined; in that case, the
standard linking procedure will find definitions for these.
* syssignal.h (sigunblock): Add definition which works under SYSVr4.
* emacs.c (fatal_error_signal): Unblock the signal which we're
handling using sigunblock.
1993-03-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xfns.c (x_make_gc): Don't forget to block X input around the
X calls in this function.
* xfns.c [not HAVE_X11R4] (select_visual): It's v->visualid, not
x->visualid. x isn't defined.
* m/template.h, s/template.h: Mention that `etc/MACHINES' and
`configure' should be updated whenever support for a configuration
is added or improved.
* process.c [! subprocesses] (wait_reading_process_input):
Remember to re-enable polling for input.
* keyboard.c [POLL_FOR_INPUT] (quit_throw_to_read_char): If
we're polling for input, abort; input polling should always be
suppressed while we're waiting for input.
* keyboard.c (interrupt_signal): Remove extern declaration of
Vwindow_system; this is no longer used.
1993-03-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* editfns.c (Fcurrent_time_string): Optional arg specifies time.
* keymap.c (Fdefine_key): Use proper meta-bit to clear.
* intervals.c (set_point): Check invisibility of following character,
not previous character.
* floatfns.c (FLOAT_CHECK_ERRNO): Define unless NO_FLOAT_CHECK_ERRNO.
* floatfns.c: Changes from Lucid.
(HAVE_MATHERR, FLOAT_CHECK_ERRNO, FLOAT_CATCH_SIGILL): New parm macros.
(FLOAT_CHECK_DOMAIN, HAVE_RINT): New parm macros.
(HAVE_INVERSE_HYPERBOLIC, HAVE_CBRT): New parm macros.
[!HAVE_RINT]: Define rint as macro.
(IN_FLOAT): Major rewrite; several alternate versions.
(IN_FLOAT2): New macro.
(arith_error, range_error, domain_error, domain_error2): New macros.
(Facos, Fasin, Fatan, Fcos, Fsin, Ftan, Fexp, Fexpt, Flog): Changed.
(Flog10, Fsqrt, Fabs, Ffloat, Flogb): Changed.
(Ffloor, Fceiling, Fround, Ftruncate): Changed.
(Fcube_root): Renamed from Fcbrt.
(matherr): New function.
(float_error): Only if FLOAT_CATCH_SIGILL.
* fns.c (Fy_or_n_p): Use query-replace-map.
* keymap.c (access_keymap): Handle ints beyond the ASCII range.
(store_in_keymap): Likewise.
(Faccessible_keymaps): Use meta_modifier.
Use vectors for the key sequences.
(Fwhere_is_internal): Use meta_modifier.
(append_key): Always return a vector.
* lisp.h (Qrange_error, Qdomain_error, Qsingularity_error):
(Qoverflow_error, Qunderflow_error): New vars.
* data.c (syms_of_data) [LISP_FLOAT_TYPE]: Define new error conditions:
Qarith_error, Qrange_error, Qdomain_error,
Qsingularity_error, Qoverflow_error, Qunderflow_error.
1993-03-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* systty.h: Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
(struct emacs_tty): Separate the struct decl
from the EMACS_..._TTY... macro definitions.
Use HAVE_TCATTR to decide whether to use `struct termios'.
* xfns.c (Fx_pixel_width, Fx_pixel_height): Fns deleted.
(syms_of_xfns): Don't install them.
(x_user_set_name): Function deleted.
(x_char_height, x_char_width): New functions.
* frame.c (Fframe_char_height, Fframe_char_width):
(Fframe_pixel_height, Fframe_pixel_width):
New functions, two versions of each.
[MULTI_FRAME] (syms_of_frame): Make them Lisp functions.
[!MULTI_FRAME] (syms_of_frame): Likewise. Also Fselected_frame.
* xterm.c (XTread_socket):
Don't reverse the chars that XLookupString returns. Use all of them.
Save last 100 chars and keysyms in temp_buffer.
1993-03-07 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* buffer.c (syms_of_buffer): Make erase-buffer a disabled command.
1993-03-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (keyboard.o): Depend on intervals.h.
(keymap.o): Depend on termhooks.h.
* keyboard.c: Include intervals.h.
(read_key_sequence): Use get_local_map.
* textprop.c (Fget_text_property): Use textget.
(Fnext_single_property_change): Likewise.
(Fprevious_single_property_change): Likewise.
* intervals.c (textget): Handle categories.
(get_local_map): New function.
(verify_interval_modification): Call textget correctly.
* textprop.c (syms_of_textprop): Set up Qcategory, Qlocal_map.
* intervals.h: Declare those vars. Declare textget, get_local_map.
* keymap.c: Include termhooks.h.
(push_key_description): Handle all modifiers.
Handle large character codes.
(Fkey_description): Move the meta bit, if arg is string.
(Fsingle_key_description): Don't alter integer value.
Make tem long enough.
* keyboard.c (read_key_sequence):
Use meta_modifier for meta keys when handling function_key_map.
* lread.c (syms_of_lread): Set up Qascii_character.
(Fread_char, Fread_char_exclusive): Use that property
to convert symbols like tab, return, M-return,... to ASCII.
* keyboard.c (follow_key): Downcase shift_modifier as well as ASCII.
(command_loop_1): Run pre-command-hook and post-command-hook.
Set this_command before running pre-command-hook.
(syms_of_keyboard): Set up vars for those hooks.
* buffer.c (reset_buffer_local_variables): Reset mark_active.
(syms_of_buffer): New buffer-local var `mark-active'.
(init_buffer_once): Initialize mechanism for it.
1993-03-06 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* dispnew.c (init_display): Initialize Vwindow_system.
* ymakefile (SHELL): No need to set this twice; remove one.
* emacs.c (main): SIGIOT isn't defined on all systems; don't set
its signal handler unless it is.
* sysdep.c (init_baud_rate): Use input_fd, instead of fd; the
latter is undefined.
* dired.c (NAMLEN): Never use d_nameln to get the length of the
directory entry's name; it is used inconsistently. Always call
strlen instead.
1993-03-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Handle gaps in modifier_names.
(modifier_names): Reorder to match termhooks.h.
* keyboard.c (parse_modifiers_uncached): Detect `s-', not `super-'.
(apply_modifiers_uncached): Make `s-', not `super-'.
* lread.c: Include termhooks.h.
(read_escape): Handle \H, \A, \s. Use ..._modifier.
* ymakefile (lread.o): Depend on termhooks.h.
* termhooks.h (alt_modifier, super_modifier, hyper_modifier):
(shift_modifier, ctrl_modifier, meta_modifier):
Renumber the bits.
* keyboard.c (make_lispy_event): For ASCII event, the ..._modifier
bits are the right bits to return.
* keyboard.c (lispy_function_keys): Add codes starting at 0xff00
and running through 0xffff.
* xterm.c (x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask):
New variables.
(x_find_modifier_meanings): Set them.
(x_convert_modifiers): Check for them.
(XTread_socket): Handle BackSpace, etc, function keys.
* keyboard.c (read_char): Move metabit when fetching from string macro.
* callint.c (check_mark): Error if mark is not active.
* editfns.c (save_excursion_save): Save mark_active of buffer.
(save_excursion_restore): Restore mark_active of buffer.
Run activate-mark-hook if it's on, or deactivate-mark-hook
if it turns off.
(region_limit): Error if mark inactive, if transient-mark-mode.
* insdel.c (prepare_to_modify_buffer): Set Vdeactivate_mark.
* keyboard.c (command_loop_1): Clear Vdeactivate_mark before cmd.
Clear mark_active if command set Vdeactivate_mark.
Run deactivate-mark-hook at that time, or activate-mark-hook.
(syms_of_keyboard): Define variable deactivate-mark.
* buffer.c (syms_of_buffer): New buffer-local var `mark-active'.
(init_buffer_once): Initialize mechanism for it.
* buffer.h (struct buffer): New field mark_active.
* intervals.c (verify_interval_modification): Handle insertions
specially. For non-insertions, check only the chars being changed.
`modification-hooks' property is now a list of functions.
(set_point): Ignore chars outside current restriction.
* textprop.c (Qmodification_hooks): Renamed from Qmodification.
(syms_of_textprop): Changed accordingly.
* keyboard.c (syms_of_keyboard): New lisp var unread-command-char.
(Finput_pending_p): Test unread_command_char.
(Fdiscard_input, quit_throw_to_read_char, init_keyboard): Set it.
(read_char): Fetch from it.
1993-03-05 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* textprop.c (Fadd_text_properties): Initialize the modified flag.
Use a "for (;;)" loop at the end of the function, to indicate that
all exiting is taken care of inside the loop.
(Fremove_text_properties): Same.
1993-03-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (LIB_MATH): Delete -lc, since duplicates LIB_STANDARD.
* buffer.c (check_protected_fields): Variable deleted.
(syms_of_buffer): Delete vars buffer-field-list
and check-protected-fields.
* insdel.c (check_protected_fields): Delete decl.
* disptab.h (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE.
(DISP_CHAR_VECTOR): Renamed from DISP_CHAR_ROPE.
All callers changed.
* xdisp.c (copy_rope): Expect FROM to be a vector.
(copy_part_of_rope): New function.
(display_string): Expect display table elts to be vectors.
* indent.c (current_column, Fmove_to_column, compute_motion):
Expect display table elts to be vectors.
* alloc.c (Fmake_rope, Frope_elt): Fns deleted.
* lisp.h (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros.
* lread.c (read_escape): Handle M-, C- and S- for new convention.
(read1): Move the meta bit to the right place for a string.
* keyboard.c (Fthis_command_keys, Fread_key_sequence):
Fix calls to make_event_array.
* macros.c (Fend_kbd_macro): Fix call to make_event_array.
* alloc.c (make_event_array): Renamed from make_array.
Chars that fit in a string are 0...127 and their meta variants.
* keyboard.c (make_lispy_event): Put meta and shift modifiers
into an integer.
(read_avail_input): Set the modifiers field in the events read.
(kbd_buffer_get_event): Pass thru integer event untruncated.
(read_char): Likewise.
(read_key_sequence, read_char): Only -1 means EOF.
(kbd_buffer_store_event): Don't ignore 0200 bit in quit char.
(follow_key): Use new meta bit flag.
* xterm.c (XTread_socket): Set bufp->modifiers for all kinds of keys.
* keymap.c (Flookup_key): Use 0x800000 as meta-bit if from vector.
(Fdefine_key): Likewise.
1993-03-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* dgux.h (ELF): Handle this parameter.
[! COFF] (UNEXEC, USG_SHARED_LIBRARIES): New definitions.
(_BSD_TTY_FLAVOR): Don't define if already defined.
(C_COMPILER, LINKER, MAKE_COMMAND): New definitions.
1993-03-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (Fsuspend_emacs): Remember that `suspend-hooks' isn't
necessarily bound.
1993-03-04 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* Makefile.in (xmakefile): Add missing quote.
1992-03-03 Wilson H. Tien (wtien@urbana.mcd.mot.com)
* unexelf.c (unexec): Move data2 section header up so all section
headers will be in ascending order. This will prevent the unexeced
emacs that being processed by other applications (such as strip)
to fail.
1993-03-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/isc2-2.h (S_IFLNK): Add #undef.
(C_SWITCH_SYSTEM): Add conditional definition.
(NO_ASM, USE_UTIME, NO_X_DESTROY_DATABASE): Defined.
(LIB_STANDARD): Alternate definition if __GNUC__.
(SIGTSTP): #undef deleted.
(LIBS_SYSTEM): Define only if HAVE_X_WINDOWS.
* s/isc3-0.h: New file.
* unexelf.c: Handle rounding of section boundaries.
(round_up): New function.
1993-03-02 Karl Berry (karl@cs.umb.edu)
* s/isc2-2.h (USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD):
Define.
(HAVE_TIMEVAL): Do not define.
(NO_ASM): Only define once.
1993-03-02 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* print.c (float_to_string): Define buf to be an unsigned char, to
match the data field of strings.
* keyboard.c (kbd_buffer_get_event): Protect assignment to
Vlast_event_frame in a "#ifdef MULTI_FRAME" clause.
* syntax.c (describe_syntax_1): Delete excess arg to describe_vector.
(check_syntax_table): Delete excess arg to wrong_type_argument.
1993-03-01 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* buffer.c (buffer-undo-list): Doc fix.
* xdisp.c (redisplay): Protect calls to request_sigio and
unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined
* cmds.c (Fnewline): Doc fix.
1993-03-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* insdel.c (del_range): Update point before offset_intervals.
* intervals.h: Don't include dispextern.h more than once.
(INTERVAL_VISIBLE_P): NILP test was backwards.
* intervals.c (intervals_equal): Handle one arg null and other not.
(set_point): Considerable rewrite. Handle intervals both
before and after the old and new point values.
Redo handling of invisible intervals, and of motion hooks.
(textget): New function.
* textprop.c (Fadd_text_properties, Fremove_text_properties):
Add len>0 as condition for main loop.
Abort if reach a null interval.
(Fset_text_properties): Abort if reach a null interval.
(Ftext_properties_at, Fget_text_property):
Return nil if POS is end of OBJECT.
(add_properties): Use NILP to test result of Fequal.
No longer inline.
(remove_properties): No longer inline.
(set_properties): Total rewrite as function.
(validate_interval_range): Don't alter *begin at end of buffer.
But do search for a position just before the end.
Return null for an empty string.
1993-02-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* Makefile.in (emacs, temacs): Add @true to prevent Make confusion.
* lread.c (read1--strings with properties case):
Detect end of list, and invalid syntax, using recursive read1 calls.
* intervals.c (graft_intervals_into_buffer):
create_root_interval needs Lisp object arg.
Set tree to new root interval.
Don't test TREE_LENGTH if buffer has no intervals.
Rearrange code to copy properties so that it really
does merge the inserted ones into the inherited ones.
(traverse_intervals): Pass `arg' on recursive calls.
(split_interval_left): Use new_length as basis for length of new.
* print.c (print--string case):
Any non-null interval means print intervals.
Get rid of var obj1; just use obj.
* textprop.c (validate_interval_range): Allow 0 as position in string.
Add 1 to specified string positions.
(Fprevious_single_property_change): Subtract 1 if object is string.
(Fnext_single_property_change): Likewise.
(Fprevious_property_change, Fnext_property_change): Likewise.
* xterm.c (x_do_pending_expose, XTframe_rehighlight):
(x_window_to_scrollbar): Use XGCTYPE.
1993-02-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Use the term `scroll bar', instead of `scrollbar'.
* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
* lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
* xterm.c, xterm.h: Terminology changed.
Don't generate switch-frame events by checking Vlast_event_frame;
use a separate variable for that bookkeeping. In order to
generate them properly, we may need to fiddle with it.
* keyboard.c (internal_last_event_frame): New variable.
(command_loop_1): Check internal_last_event_frame, not
Vlast_event_frame.
(read_char, kbd_buffer_store_event): Set both Vlast_event_frame and
internal_last_event_frame.
(kbd_buffer_get_event): Check internal_last_event_frame to decide
whether to generate a switch-frame event. Set Vlast_event_frame
after each event.
(init_keyboard): Initialize both Vlast_event_frame and
internal_last_event_frame.
* keyboard.h (internal_last_event_frame): Add extern declaration
for this.
* frame.c (Vlast_event_frame): Remove external declaration for
this.
(Fselect_frame): Set internal_last_event_frame to Qnil to force a
switch-frame event, not Vlast_event_frame; the latter is supposed
to convey information to the user.
* keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
1993-02-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Doc fix.
1993-02-26 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* ymakefile (LIBES): Exchange the order of LIB_MATH and
LIB_STANDARD, to avoid duplicated symbols under SunOS.
* buffer.c (syms_of_buffer): Add the extra argument to the
commented-out DEFVAR_PER_BUFFER for `mode-line-format', so
make-docfile will find the docstring properly.
1993-02-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (intervals.o): Dep on intervals.c, not textprop.c.
* textprop.c (remove_properties): Call modify_buffer.
(add_properties): Likewise.
* undo.c (record_property_change): Typo in last change.
* cmds.c (syms_of_cmds): Typo in last change.
* print.c (print): Never declare OBJ arg as `register'.
Special handling for strings with intervals.
(print_intervals): New function.
* lread.c (read1): Handle reading strings with properties.
* intervals.c (traverse_intervals): New arg ARG.
* alloc.c (mark_interval): Add ignored arg.
(mark_interval_tree): Pass new arg to traverse_intervals.
1993-02-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xterm.c (x_window_to_scrollbar, x_scrollbar_expose,
x_scrollbar_handle_click, x_scrollbar_note_movement): Remember
that these can be called during GC; we have to ignore mark bits.
* lisp.h (GC_NILP, GC_EQ): New macros to help with that.
* print.c (float_to_string): Define buf to be an unsigned char, to
match the data field of strings.
* lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper
around macro.
* data.c (Fstring_to_number): Declare p to be an unsigned char, to
match the data field of strings.
* data.c (Fstring_to_number): Just skip tabs and spaces; don't use
the <ctype.h> macros. The <ctype.h> stuff apparently varies from
locale to locale more than we'd like. Don't include <ctype.h>.
1993-02-24 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* buffer.c (Ferase_buffer): Added interactive spec.
1993-02-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* undo.c (Fprimitive_undo): Handle property-change undo entry.
(record_property_change): New function.
* textprop.c (Fadd_text_properties): Pass new arg to add_properties.
(Fremove_text_properties): Likewise.
(add_properties, remove_properties): New arg OBJECT. Record undo info.
(Fput_text_property): New function.
* buffer.c (syms_of_buffer): Doc fix.
* cmds.c (syms_of_cmds): New var `overwrite-binary-mode'.
(internal_self_insert): Handle that var.
1993-02-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_avail_input): Args to `kill' were backwards.
1993-02-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* alloc.c (make_pure_float): Assure that PUREBEG + pureptr is
aligned, not pureptr itself.
* emacs.c (fatal_error_signal): Unblock the signal before we try
to deliver it to ourselves. #include "syssignal.h" to get the
right definitions.
* abbrev.c (Fexpand_abbrev): Only copy the text we're going to
expand - from wordstart to wordend, not from wordstart to point -
into the buffer. There might be non-word text between wordend and
point.
1993-02-23 Richard Stallman (rms@geech.gnu.ai.mit.edu)
* unexec.c (adjust_lnnoptrs): Handle symentry.n_type == 0x2400.
(make_hdr) [USG_SHARED_LIBRARIES]: Set bias using bss_start.
1993-02-22 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c: Make sure we don't miss processes exiting, by having
the sigchld handler clear *input_available_clear_time.
(wait_reading_process_input): Check for process activity after
setting the timeout and calling set_waiting_for_input.
(sigchld_handler): If the process which has exited is one we care
about, clear *input_available_clear_time.
* frame.c (Fselect_frame): Set Vlast_event_frame to Qnil after
switching frames, to make sure we'll get a switch-frame event.
(Vlast_event_frame): Add external declaration for this here.
* alloc.c (make_pure_float): Align pureptr according to __alignof,
if it's available, or sizeof (struct Lisp_Float) if it's not.
* .gdbinit (xprocess): New command.
* floatfns.c (Flogb): Always implement this by calling Flog, even
on non-USG systems, which supposedly have a logb function.
(Fround): Always implement this by calling floor, even on systems
that have rint.
* process.c (process_send_signal): Use TERMIOS functions in
preference to BSD ioctls. Some systems attempt to provide the BSD
functions for backward compatibility, and get it wrong.
* data.c (Fstring_to_number): Skip initial spaces, to make Emacs
lisp parse consistently on different operating systems.
#include <ctype.h> to help with this.
* data.c (Fstring_to_int): Rename this to Fstring_to_number, since
it parses floats as well as integers. Fix docstring.
(syms_of_data): Fix defsubr.
(wrong_type_argument): Change use.
(Fint_to_string): Doc fix.
* lisp.h (Fstring_to_int): Change extern declaration.
1993-02-22 Charles Hannum (mycroft@hal.gnu.ai.mit.edu)
* ibmrs6000.h (C_ALLOCA, STACK_DIRECTION): Only define if HAVE_ALLOCA
is not defined.
(X_DEFAULT_FONT): Change to `fixed', as `Rom14.500' only works on the
console.
* aix3-1.h: Changes from 18.58.
(HAVE_TERMIOS): Changed from HAVE_TERMIO.
(unix): Define.
* sysdep.c (child_setup_tty): Recognize HAVE_TERMIOS as well as
HAVE_TERMIO.
* xrdb.c (getuid): Remove declaration.
* systty.h [HAVE_TERMIOS]: Include fcntl.h.
* systime.h [_AIX]: Move test outside of previous #if.
(EMACS_GET_TZ_OFFSET) [USG]: Don't declare twice. Prefer tzset.
* keyboard.c (init_keyboard): Recognize HAVE_TERMIOS as well as
HAVE_TERMIO.
* aix3-2.h: New file. Specifies difference between AIX 3.1 and 3.2.
1993-02-20 Richard Stallman (rms@wookumz.gnu.ai.mit.edu)
* keyboard.c (Fsuspend_emacs): Make tem not register.
* syntax.c (Fforward_comment): New function.
* search.c (Fskip_syntax_backward): New function.
(Fskip_syntax_forward): Likewise.
(skip_chars): New argument syntaxp.
* alloc.c (Fmemory_limit): Doc fix.
1993-02-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Fsuspend_emacs): Rename suspend-hook to suspend-hooks
and run it manually.
* keymap.c (describe_map): Call Fkey_description before build_string.
1993-02-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Fopen_dribble_file): Doc fix.
* lread.c (syms_of_lread): Doc fix.
1993-02-18 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* textprop.c (Fget_text_property): Fix typo in function's declaration.
* floatfns.c (IN_FLOAT): Make this work properly when SIGTYPE is void.
* alloc.c: Add description lines to the top of each page.
* alloc.c (mark_interval_tree): Remove spurious & in front of
function name.
* alloc.c (UNMARK_BALANCE_INTERVALS): Fix to accomodate compilers
other than GCC, which do not allow casts on the LHS of an
assignment.
* config.h.in: #define USE_TEXT_PROPERTIES by default.
* alloc.c (mark_object, mark_buffer): Remove some unused
variables.
* buffer.c (Fswitch_to_buffer): Pass the correct number of
arguments to Fnext_window.
* buffer.c (Fbury_buffer): Pass the correct number of arguments to
Fother_buffer.
* bytecode.c (Fbyte_code): Pass the correct number of arguments to
temp_output_buffer_show.
* callint.c (Fcall_interactively): Pass the correct number of
arguments to wrong_type_argument.
* casefiddle.c (caseify_object): Same.
* casetab.c (check_case_table): Same.
* search.c (Fstore_match_data): Same.
* syntax.c (check_syntax_table): Same.
* callproc.c (delete_temp_file): Declare this to return
Lisp_Object, to smooth type-checking.
* data.c (wrong_type_argument): Pass the correct number of
arguments to Fstring_to_int.
* data.c (arithcompare): Add a default case which aborts, just to
make me happy.
* dispnew.c (sit_for): Pass the correct number of arguments to
gobble_input.
* editfns.c (Fmessage): Don't forget to return a value when
args[0] == Qnil.
* fns.c (Fequal): Call internal_equal to recurse on elements of
lists and vectors, not Fequal.
* frame.c (Fdelete_frame): If FRAME is a dead frame, return Qnil,
not nothing.
* keyboard.c (echo_char): Apply XINT to c before passing it to
push_key_description.
* keyboard.c (recursive_edit_1, command_loop_1): Pass the proper
number of arguments to unbind_to.
* lread.c (Feval_buffer): Same.
* window.c (Fscroll_other_window): Same.
* keyboard.c (command_loop_1): Apply XINT to c before passing it
to internal_self_insert and direct_output_for_insert.
* keyboard.c (make_lispy_movement): Rename the variable `part'
declared in the block handling scrollbar movement to `part_sym',
to avoid potential conflicts with the argument named `part'.
Apparently the semantics of expressions like this are unclear.
* keyboard.c (Fread_key_sequence): Backslash the newlines in this
docstring.
* textprop.c (Fget_text_property): Same.
* keymap.c (Fdescribe_vector): Pass the proper number of arguments
to describe_vector.
* syntax.c (describe_syntax_1): Same.
* minibuf.c (Fdisplay_completion_list): Pass the proper number of
arguments to Flength.
* xmenu.c (list_of_items): Same.
* window.c (Fset_window_configuration): Pass the proper number of
arguments to Fselect_frame.
* xfns.c (x_set_icon_type): Pass the proper number of arguments to
x_bitmap_icon.
* xterm.c (XTread_socket): Pass the proper number of arguments to
construct_mouse_click.
* config.h.in (HAVE_CONST): New macro. If it's not #defined, #define
const to be the empty string.
* config.h.in: If we're not __STDC__, define volatile to be the
empty string.
* buffer.h: Remove code which #includes "undo.h" if lint is
defined. undo.h no longer exists.
* buffer.c (buffer_slot_type_mismatch): Make symbol_name an
unsigned char *, to match the type of a string's data.
1993-02-17 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
* process.c (Fstart_process): Jimb's change of December 11
had a misplaced paren. This only became apparent because of
jimb's change on February 8 to Fexpand_file_name.
* callproc.c (Fcall_process): Ditto.
1993-02-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* callproc.c (init_callproc): Move the initialization of
Vprocess_environment to its own function.
(set_process_environment): This is that.
* emacs.c (main): Call set_process_environment earlier than
init_callproc.
1993-02-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* buffer.c (Frename_buffer): Make prefix arg set UNIQUE.
1993-02-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xterm.c (x_set_window_size): Call change_frame_size instead of
just setting the `rows' and `cols' members of the frame, and
leaving the window tree in complete disarray.
* dispnew.c (remake_frame_glyphs): When re-allocating the frame's
message buffer when echo_area_glyphs is pointing at it, relocate
echo_area_glyphs too. Same for previous_echo_glyphs.
* window.h (previous_echo_glyphs): Add extern declaration for this.
* frame.c (Fframe_parameters): Report the `minibuffer' parameter of
minibufferless frames as nil, not `none'.
(Qnone): Remove declaration and initialization for this. It's not
needed anymore.
* xfns.c (Qnone): Add them here; we still accept "none" as a valid
value for the `minibuffer' parameter.
* xfns.c (x_frame_params): Remember that the parameters are called
"auto-raise" and "auto-lower", not "autoraise" and "autolower".
* xdisp.c (message): Set echo_frame to the frame whose message buf
we want to use, not to the message buf itself.
1993-02-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* textprop.c (Fadd_text_properties): Put OBJECT arg last.
Make it optional.
(Fset_text_properties, Fremove_text_properties): Likewise.
(Fnext_single_property_change, Fprevious_single_property_change):
(Fnext_property_change, Fprevious_property_change): Likewise.
(Ferase_text_properties): #if 0.
(Fget_text_property): New function.
* s/irix4-0.h (C_SWITCH_MACHINE): Don't define if GCC.
1993-02-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* s/usg5-4.h: #include "usg5-3.h", not "s-usg5-3.h".
1993-02-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xterm.c (x_io_error_quitter): New function.
(x_error_quitter): Note that this is only used for protocol
errors now, not I/O errors.
(x_term_init): Set the I/O error handler to x_io_error_quitter.
1993-02-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* editfns.c (Finsert_buffer_substring): Proper error for non-ex buffer.
(Fcompare_buffer_substrings): Likewise.
1993-02-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* fileio.c (Fdo_auto_save): If NO_MESSAGE is non-nil, don't tell
users that buffers have shrunk a lot. This is called when Emacs
is crashing, so we don't want to run any code that isn't
absolutely necessary. Also, autosave buffers which don't have
specially handled autosave file names first.
1993-02-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* editfns.c (Fcompare_buffer_substrings): Ignore case
if case-fold-search is non-nil.
1993-02-08 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keymap.c (Flookup_key, Fkey_binding, Flocal_key_binding)
(Fglobal_key_binding, Fminor_mode_key_binding): Add a new optional
argument ACCEPT_DEFAULT, to control whether this function sees
bindings for t.
(Fwhere_is_internal, describe_map_tree, describe_map_2)
(describe_vector): Pass the proper arguments to Flookup_key.
* fileio.c (Fexpand_file_name): Pass DEFALT through
Fexpand_file_name before using it.
* fileio.c (Fexpand_file_name): Doc fix.
1993-02-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xdisp.c (message): Use the message buffer of the frame we're
going to display the message on to format the message, not that of
the selected frame.
1993-02-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* Makefile (emacs, temacs): Add no-op commands to these rules.
* dispnew.c (char_ins_del_cost): Use FRAME_WIDTH, not FRAME_HEIGHT.
* editfns.c (Fcompare_buffer_substrings): New function.
1993-02-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (extra_keyboard_modifiers): New Lisp var.
(read_char): Support ctl and meta bits in extra_keyboard_modifiers.
* xterm.c (XTread_socket): Support extra_keyboard_modifiers.
1993-01-29 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* window.c (Fscroll_left, Fscroll_right): Don't forget to apply
XWINDOW to selected_window before passing it to window_internal_width.
* xmenu.c (Fx_popup_menu): Don't forget to turn the frame-relative
coordinates for the menu position into root-window-relative
coordinates.
* lread.c (read1): Although digits followed by a '.' are an
integer, a single . by itself (like, say, \.) should be a symbol.
1993-01-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* fns.c (internal_equal): Protect the clause for comparing numbers
of different types with a "#ifdef LISP_FLOAT_TYPE".
1993-01-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/hpux8.h [__GNUC__] (LD_SWITCH_SYSTEM): Remove -a.
[__GNUC__] (ORDINARY_LINK): Defined.
* m/sparc.h [TERMINFO]: Don't define LIBS_TERMCAP.
1993-01-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
`live-frame-p' has become `frame-live-p'.
* frame.c (Qlive_frame_p): Renamed to Qframe_live_p.
(Flive_frame_p): Renamed to Fframe_live_p.
(syms_of_frame): Defsubrs and initializations adjusted.
* frame.h (CHECK_LIVE_FRAME): Use Qframe_live_p, not Qlive_frame_p.
(Qlive_frame_p): Changed extern declaration to Qframe_live_p.
* lread.c (read1): Treat a string of digits ending in a period as
an integer.
Turn `first-change-function' into `first-change-hook'.
* buffer.c (Vfirst_change_function): Renamed to Vfirst_change_hook.
(Qfirst_change_hook): New symbol, for passing to Vrun_hooks.
(syms_of_buffer): Change DEFVAR; initialize Qfirst_change_hook.
* buffer.h (Vfirst_change_function): Renamed to Vfirst_change_hook.
(Qfirst_change_hook): Added declaration.
* insdel.c (signal_before_change): Change references to
Vfirst_change_function, and apply Vrun_hooks to
Qfirst_change_hook, instead of just calling Vfirst_change_function
directly.
x-selection-value has been renamed to x-selection.
x-own-selection has been renamed to x-set-selection, and the order
of its arguments has been reversed, for consistency with other
lisp functions like put and aset.
* xselect.c (Fx_own_selection): Rename to Fx_set_selection,
reverse the order of the args, and therefore make the type
non-optional. Doc fix.
(Fx_selection_value): Rename to Fx_selection; make the type
argument non-optional, for symmetry with Fx_set_selection. Doc
fix.
(syms_of_xselect): Adjusted.
* xselect.c (Fx_own_selection, Fx_selection_value): Remove "#if
0"'ed code which made cut buffers look like a special selection
type.
* xfns.c (Vx_selection_value): Removed extern declaration for
this; it's never used.
* data.c (Fcompiled_function_p): Renamed to Fbyte_code_function_p.
(syms_of_data): Adjusted.
* data.c (Fnumberp, Fnumber_or_marker_p): Use the NUMBERP macro,
instead of writing it out.
* fns.c (internal_equal): If the operands are both numbers,
compare them numerically, so that (equal 1.0 1) => t.
Compare Lisp_Compiled objects like vectors.
Add lisp functions to raise and lower frames.
* termhooks.h (frame_raise_lower_hook): New hook.
* term.c (frame_raise_lower_hook): Define it.
* frame.c (Fframe_to_front, Fframe_to_back): New functions.
(syms_of_frame): defsubr them.
* xterm.c (XTframe_raise_lower): New function.
(x_term_init): Set frame_raise_lower_hook to XTframe_raise_lower.
* frame.c: Doc fixes.
1993-01-24 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Make the cursor style a frame parameter.
* xterm.h (struct x_display): Rename the `text_cursor_kind' member
to `current_cursor'; add new member `desired_cursor'.
(FRAME_DESIRED_CURSOR): New accessor for new member.
* xterm.c (x_display_bar_cursor): Rewritten so as not to damage
the characters the cursor is displayed over, and to handle
transitions between box and bar styles.
(x_display_bar_cursor, x_display_box_cursor): Use current_cursor
instead of text_cursor_kind.
(Vbar_cursor): Delete external declaration.
(x_display_cursor): Use the FRAME_DESIRED_CURSOR accessor instead
of Vbar_cursor to decide how to draw the cursor.
* xfns.c (Vbar_cursor): Remove definition.
(Qbar, Qbox, Qcursor_type): New symbols.
(syms_of_xfns): Init and staticpro them; remove DEFVAR for
Vbar_cursor.
(x_set_cursor_type): New setter.
(x_frame_parms): Add it to the list.
(Fx_create_frame): Get default values for the cursor type.
* frame.c (Fmouse_position): Pass the appropriate arguments to
*mouse_position_hook; the protocol was changed, but this caller
wasn't fixed.
* xterm.c (XTclear_frame): Call x_scrollbar_clear.
(x_scrollbar_clear): New function.
* xterm.c (XTflash): Totally rewritten. Only defined if
HAVE_TIMEVAL and HAVE_SELECT are defined, since we use select for
our timing.
(timeval_subtract): New function, to help XTflash.
(x_invert_frame): Removed. This didn't work anyway.
(XTring_bell): Remove "#if 0" around call to XTflash, and remove
calls to x_invert_frame. If both HAVE_TIMEVAL and HAVE_SELECT
aren't defined, then just do the ordinary beep.
* window.c (Fscroll_other_window): Prefer windows on the selected
frame, then look for windows on other visible frames.
* keyboard.c (Fmouse_click_p): Removed; with the 'e' spec, this
isn't necessary anymore.
(syms_of_keyboard): Remove defsubr for it.
* keyboard.h (Fmouse_click_p): Remove extern declaration for it.
* xfns.c (gray_bits): Remove this declaration; the same data is in
<X11/bitmaps/gray>. #include that instead.
[not HAVE_X11] (x_set_border_pixel): Use gray_width and
gray_height, instead of assuming that the bitmap is 16x16.
(x_make_gc): Instead of creating a pixmap and then calling
XPutImage to make it into a grey stipple, just call
XCreatePixmapFromBitmapData to do it all at once.
* xterm.c (x_text_icon): Move the request for font information
into the "not HAVE_X11" part of the function; the X11 code doesn't
need this.
* xterm.c (x_wm_set_icon_pixmap): Instead of setting the
icon_pixmap to None, just remove IconPixmapHint from the flags of
the XWMHints structure.
* window.c (Fprevious_frame): Use prev_frame when we get to the
end of the current frame, not next_frame. Doc fix.
* frame.c (prev_frame): Remove "#if 0" from this function. It
turns out we do need it, to make prev_frame work right.
* frame.c (next_frame): Check that FRAME is a live frame.
* frame.c (Fselect_frame): Remove "#ifdef MULTI_FRAME" clause
around the code which calls Ffocus_frame; this code is already
inside an "#ifdef MULTI_FRAME" clause.
(next_frame, prev_frame, Fnext_frame): For the same reasons,
remove the "#ifdef MULTI_FRAME" clause around these functions.
unread-command-event has been replaced by unread-command-events.
* commands.h (unread_command_event): Change extern declaration.
* keyboard.c (unread_command_event): Change the definition.
(syms_of_keyboard): Change DEFVAR, and adjust the docstring.
(command_loop_1, read_char, Finput_pending, Fdiscard_input)
(quit_throw_to_read_char, init_keyboard): Change to use
unread_command_events, with the new semantics.
* lread.c (read_char): Same.
* minibuf.c (temp_echo_area_glyphs): Same.
* xterm.c (unread_command_event): Remove external declaration for
this; it is only used by obsolete code.
* Makefile.in: Some makes can't handle comments in the middle of
commands; move them to before the whole rule.
1993-01-21 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (make_lispy_event): When handling a mouse click event
on a window, change x and y from screen coordinates to window
coordinates even when the click isn't in the text area.
* xterm.c (x_scrollbar_create): Remove code which asks for
EastGravity for windows; Emacs can't correctly deal with them
moving around unexpectedly.
* xterm.c (XTread_socket): Minor reformatting.
* xterm.c (x_set_window_size): Always mark the frame garbaged.
* window.c (Vmouse_window): Variable removed; it can't be handled
properly without race conditions, and the events give you all the
information you need anyway.
(syms_of_window): Remove DEFVAR.
* callint.c (Fcall_interactively): Change the `@' spec to select
the window of the first parameterized event in the key sequence
which invoked the command, instead of using Vmouse_window, which
isn't even updated anymore. Adjust the documentation
accordingly.
1993-01-20 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xterm.c (x_scrollbar_create): Set the scrollbars to use
EastGravity.
* keyboard.c (make_lispy_event): Deal with button releases with no
stored down-going position. Make sure we always store a Qnil in
the right button_down_location element after using it.
1993-01-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* frame.c (Fdelete_frame): Clear the frame's display after calling
the window-system-dependent frame destruction routine. We
no longer need to pass the display as a separate argument to
x_destroy_window.
* xterm.c (x_destroy_window): Put the code which clears out f's
display here, right after we free the storage it points to. Put
everything, including the code which clears x_focus_frame and
x_highlight_frame, inside the BLOCK/UNBLOCK_INPUT pair.
* dispnew.c (Fredraw_display): Undo change of Jan 12; redraw only
frames whose garbaged flag is set. The change to
FRAME_SAMPLE_VISIBILITY on Jan 14 should address the problem better.
keyboard.c (read_char_menu_prompt): Test HAVE_X_WINDOWS, not
HAVE_X_WINDOW.
The CPP symbol indicating whether or not we have mouse menu
support under X Windows is HAVE_X_MENU, not not NO_X_MENU.
* emacs.c (main): Test HAVE_X_MENU, instead of NO_X_MENU.
* keyboard.c (read_char_menu_prompt): Same.
* ymakefile: Same.
* keyboard.c (read_char, read_char_menu_prompt): Use the
EVENT_HAS_PARAMETERS macro from keyboard.h, instead of writing it
out.
* keyboard.c (read_char_menu_prompt): Doc fix.
* keyboard.c (read_char_menu_prompt): Fix test for no menus;
comparing name to Qnil doesn't work if we are called with no maps.
* keymap.c (Fdefine_key): Call Fkey_description to make the string
to use in the error message.
1993-01-18 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* window.c (Fdisplay_buffer): Doc fix.
1993-01-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xterm.c (x_window_to_scrollbar): Search frames'
condemned_scrollbars list as well; input might arrive during
redisplay.
(x_scrollbar_report_motion): Don't forget to BLOCK_INPUT.
(XTjudge_scrollbars): Clear the condemned scrollbar list before
traversing it, so we don't try to process an event on a scrollbar
we've killed.
1993-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Frecent_keys): Doc fix.
1993-01-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* window.c (Fwindow_at): Doc fix.
1993-01-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xterm.c (x_scrollbar_create): Include PointerMotionHintMask in
the event mask for scrollbars.
* dispnew.c (Fredraw_display): DEFUN was missing a closing paren.
* term.c (set_vertical_scrollbar_hook, condemn_scrollbars_hook,
redeem_scrollbar_hook, judge_scrollbars_hook): Removed dumbo
"externs" from these. They're supposed to be real definitions.
* .gdbinit: Add "-geometry +0+0" to default args.
(xscrollbar): New command.
Make scrollbar structures into lisp objects, so that they can be
GC'd; this allows windows and scrollbars can refer to each other
without worrying about dangling pointers.
* xterm.h (struct x_display): vertical_scrollbars and
judge_timestamp members deleted.
(struct scrollbar): Redesigned to be a template for a Lisp_Vector.
(SCROLLBAR_VEC_SIZE, XSCROLLBAR, SCROLLBAR_PACK, SCROLLBAR_UNPACK)
(SCROLLBAR_X_WINDOW, SET_SCROLLBAR_X_WINDOW)
(VERTICAL_SCROLLBAR_INSIDE_WIDTH, VERTICAL_SCROLLBAR_TOP_RANGE)
(VERTICAL_SCROLLBAR_INSIDE_HEIGHT, VERTICAL_SCROLLBAR_MIN_HANDLE):
New macros, to help deal with the lispy structures, and deal with
the graphics.
* frame.h (WINDOW_VERTICAL_SCROLLBAR): Macro deleted.
(struct frame): New fields `scrollbars' and
`condemned_scrollbars', for use by the scrollbar implementation.
[MULTI_FRAME and not MULTI_FRAME] (FRAME_SCROLLBARS,
FRAME_CONDEMNED_SCROLLBARS): Accessors for the new field.
* window.h (struct window): Doc fix for vertical_scrollbar field.
* frame.c (make_frame): Initialize the `scrollbars' and
`condemned_scrollbars' fields of the new frame.
* alloc.c (mark_object): Mark the `scrollbars' and
`condemned_scrollbars' slots of frames.
* xterm.c (x_window_to_scrollbar): Scrollbars are chained on
frames' scrollbar field, not their x.display->vertical_scrollbars
field.
(x_scrollbar_create, x_scrollbar_set_handle, x_scrollbar_move)
(x_scrollbar_remove, XTset_vertical_scrollbar)
(XTcondemn_scrollbars, XTredeem_scrollbar, XTjudge_scrollbars)
(x_scrollbar_expose, x_scrollbar_handle_click)
(x_scrollbar_handle_motion): Substantially rewritten to correct
typos and brainos, and to accomodate the lispy structures.
* xterm.c (x_scrollbar_background_expose): Function deleted; we
don't want anything in the background there after all.
(XTread_socket): Don't call x_scrollbar_background_expose. We
don't care.
* frame.h (FRAME_SAMPLE_VISIBILITY): Make sure frame is marked as
garbaged whenever it goes from invisible to visible.
* dispextern.h (frame_garbaged): Move extern declaration from here...
* frame.h (frame_garbaged): ... to here. The FRAME_SAMPLE_VISIBILITY
macro uses it now, and this seems to be just as modular. Make a
new page, just for this and message_buf_print.
(struct frame): Doc fix for the `visible' field.
* process.c: #include "frame.h" instead of "dispextern.h"; the
only thing we care about from it is the frame_garbaged
declaration.
* ymakefile: Note dependency change.
* xfns.c (Fx_create_frame): After mapping the frame, call
SET_FRAME_GARBAGED, not just plain FRAME_GARBAGED.
* window.c (window_internal_width): New function, which accounts
for scrollbars if present.
* lisp.h (window_internal_height, window_internal_width): Add
extern declarations for these.
* dispnew.c (direct_output_for_insert, direct_output_forward_char,
buffer_posn_from_coords): Use window_internal_width instead of
writing out its definition.
* indent.c (compute_motion): Doc fix; mention scrollbars and
window_internal_width.
(pos_tab_offset, Fvertical_motion): Use window_internal_width
instead of writing it out.
* window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left)
(Fscroll_right): Same.
* xdisp.c (redisplay, try_window, try_window_id)
(display_text_line): Same.
* xdisp.c (display_string): Add new variable `f', to be W's
frame. Use it to set desired_glyphs, and to get the frame's width
to decide whether or not to draw vertical bars.
* xdisp.c (display_text_line): If we're using vertical scrollbars,
don't draw the vertical bars separating side-by-side windows.
(display_string): Same thing. Draw spaces to fill in the part of
the mode line that is under the scrollbar in partial-width
windows.
* xfns.c (Qvertical_scrollbars): New symbol. Use it as the name
of the parameter which decides whether or not the frame has
scrollbars, instead of Qvertical_scrollbar.
(Fx_create_frame): Adjusted accordingly.
(syms_of_xfns): Initialize and staticpro Qvertical_scrollbars.
(x_set_vertical_scrollbar): Renamed to x_set_vertical_scrollbars.
(x_frame_parms): Adjusted accordingly.
* xterm.h (CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT)
(PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Rewritten, using:
(CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, PIXEL_TO_CHAR_ROW)
(PIXEL_TO_CHAR_COL): New macros.
* xfns.c [not HAVE_X11] (Fx_create_frame): Use the
PIXEL_TO_CHAR_{HEIGHT,WIDTH} macros to figure the frame's
character size, and the CHAR_TO_PIXEL* macros for vice versa.
* xterm.c (XTwrite_glyphs, XTclear_end_of_line, stufflines)
(scraplines, dumprectangle, pixel_to_glyph_coords, x_draw_box)
(clear_cursor, x_display_bar_cursor, x_draw_single_glyph)
(x_set_mouse_position): Use the CHAR_TO_PIXEL_* macros.
* xterm.c (x_wm_set_size_hint): The max_width and max_height
members of the size_hints are expressed in pixels, not columns.
* xterm.c (x_set_window_size): Remove ibw var; it's not used.
Set FRAME_WIDTH (f) to cols instead of rows. Duh.
* xterm.c (pixel_to_glyph_coords): Properly set *bounds to the
character cell bounding the position, even when the position is
off the frame.
* xfns.c (x_set_name): To request that the modelines be redrawn,
execute the statement "update_mode_lines = 1;" instead of the
silly statement "update_mode_lines;".
* xfns.c (x_set_vertical_scrollbars): Don't try to set the
X window's size if the frame's X window hasn't been created yet.
* xfns.c (x_figure_window_size): Set the frame's
vertical_scrollbar_extra field before trying to calculate its
pixel dimensions.
* xfns.c (x_window): When calling x_implicitly_set_name for the
sake of drawing the name for the first time, remember to clear and
set the frame's explicit_name member as well as its name member.
(Fx_create_frame): Set the frame's explicit_name member if the
user specified the name explicitly.
* xdisp.c (display_text_line): Use the usable internal width of
the window, as calculated above, as the limit on the length of the
overlay arrow's image, rather than using the window's width field,
less one.
* xdisp.c (redisplay): Call condemn_scrollbars_hook and
judge_scrollbars_hook whenever they are set, not just when the
frame has vertical scrollbars.
* termhooks.h (mouse_position_hook): Doc fix.
(set_vertical_scrollbar_hook): This doesn't return anything any
more, and doesn't take a struct scrollbar * argument any more.
(condemn_scrollbars_hook, redeem_scrollbar_hook,
judge_scrollbars_hook): Doc fixes.
* term.c (mouse_position_hook): Doc fix.
(set_vertical_scrollbar_hook): This doesn't return
anything any more. Doc fixes.
* keyboard.c (kbd_buffer_get_event): Receive the scrollbar's
window from *mouse_position_hook and pass it to
make_lispy_movement, instead of working with a pointer to a struct
scrollbar.
(make_lispy_event): We don't need a window_from_scrollbar function
anymore; we are given the window directly in *EVENT.
Unify the code which generates
text-area mouse clicks and scrollbar clicks; use the same code to
distinguish clicks from drags on the scrollbar as in the text area.
Distinguish clicks from drags by storing a copy of the lispy
position list returned as part of the event.
(button_down_location): Make this a lisp vector, rather than an
array of random structures.
(struct mouse_position): Remove this; it's been replaced by a lisp
list.
(make_lispy_movement): Accept the scrollbar's window as a
parameter, rather than the scrollbar itself.
If FRAME is zero, assume that the other arguments are garbage.
(syms_of_keyboard): No need to staticpro each window of
button_down_location now; just initialize and staticpro it.
* window.c (window_from_scrollbar): Function deleted; no longer
needed.
* xdisp.c (redisplay_window): Just pass the window to
set_vertical_scrollbar hook; don't pass the scrollbar object too.
* xterm.c (XTmouse_position): Don't return a pointer to the
scrollbar for scrollbar motion; instead, return the scrollbar's
window.
* xterm.c (XTmouse_position): Entirely rewritten, using
XTranslateCoordinates. Call x_scrollbar_report_motion to handle
scrollbar movement events.
(x_scrollbar_report_motion): New function, to help out
XTmouse_position.
* keyboard.c (apply_modifiers): Don't assume that the Qevent_kind
property of BASE is set when we first create the new modified
symbol. Check that the Qevent_kind property is properly set each
time we return any symbol.
* termhooks.h (struct input_event): Replace the frame member with
a Lisp_Object member by the name of frame_or_window. Doc fixes.
Remove the scrollbar member; instead, use frame_or_window to hold the
window whose scrollbar was clicked.
* keyboard.c (kbd_buffer_store_event, kbd_buffer_get_event,
make_lispy_event): Adjust references to frame member of struct
input_event to use frame_or_window now.
* xterm.c (construct_mouse_click, XTread_socket): Same.
* xterm.c (last_mouse_bar, last_mouse_bar_frame, last_mouse_part)
(last_mouse_scroll_range_start, last_mouse_scroll_range_end):
Replaced with...
(last_mouse_scrollbar): New variable.
(note_mouse_movement): Clear last_mouse_scrollbar when we have
receieved a new motion.
(syms_of_xterm): Staticpro last_mouse_scrollbar.
* xterm.c (note_mouse_position): Renamed to note_mouse_movement,
because that's what it really does.
(x_scrollbar_handle_motion): Renamed to x_scrollbar_note_movement,
for consistency.
(XTread_socket): Adjusted.
* xterm.c (XTset_scrollbar): Renamed to XTset_vertical_scrollbar.
(x_term_init): Adjusted.
* keyboard.c (kbd_buffer_frames): Renamed to
kbd_buffer_frame_or_window, and made to exist even when
MULTI_FRAME isn't defined; single-frame systems might have
scrollbars. Use it to GCPRO the frame_or_window field in the
event queue.
(kbd_buffer_store_event, kbd_buffer_get_event,
stuff_buffered_input): Set and clear the
appropriate element of kbd_buffer_frame_or_window, whether or not
MULTI_FRAME is #defined.
(read_avail_input): When reading characters directly from stdin,
set the frame_or_window field of the event appropriately,
depending on whether or not MULTI_FRAME is #defined.
(Fdiscard_input, init_keyboard): Zap kbd_buffer_frame_or_window,
not kbd_buffer_frames.
(syms_of_keyboard): Initialize and staticpro
kbd_buffer_frame_or_window, whether or not MULTI_FRAME is
#defined.
* keyboard.c (head_table): Make Qscrollbar_movement have a
Qevent_kind property of Qmouse_movement, not Qscrollbar_movement.
* keyboard.c (read_key_sequence): If we decide to throw away a
mouse event which has prefix symbols (`mode-line',
`vertical-scrollbar', etcetera), remember that we may have to
unwind two characters, not just one.
* keyboard.c (read_key_sequence): Doc fixes.
* keyboard.c (kbd_buffer_store_event): Fix reversed sense of test
for focus redirection.
* keyboard.c (read_char): Don't echo mouse movements.
* emacs.c (shut_down_emacs): New function.
(fatal_error_signal, Fkill_emacs): Call it, instead of writing it out.
* xterm.c (x_connection_closed): Call shut_down_emacs instead of
Fkill_emacs; the latter will try to perform operations on the X
server and die a horrible death.
* lisp.h (shut_down_emacs): Add extern declaration for it.
* xterm.c (x_error_quitter): Move the abort call to after we print
the error message. No harm in that.
* xdisp.c (echo_area_display): Move the assignment of f and the
check for visibility out of the "#ifdef MULTI_FRAME" clause; they
should work under any circumstances.
* xdisp.c (redisplay_window): If we're not going to redisplay this
window because it's a minibuffer whose contents have already been
updated, go ahead and jump to the scrollbar refreshing code
anyway; they still need to be updated. Initialize opoint, so it's
known to be valid when we jump. Calculate the scrollbar settings
properly for minibuffers, no matter what they are displaying at
the time.
* xdisp.c (redisplay_windows): Don't restore the current buffer
and its point before refreshing the scrollbars; we need the buffer
accurate.
1993-01-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* print.c (float_to_string): Add final 0 if text ends with decimal pt.
* dispnew.c (Fredraw_display): Redraw all visible frames.
Make the non-multi-frame version interactive.
1993-01-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Fset_default_file_modes, Fdefault_file_modes):
Renamed from Fset_umask and Fumask; sense of arg is reversed.
(Fwrite_region): Doc fix.
1993-01-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* print.c (float_to_string): Add `.0' at end if needed.
* lread.c (Fload): If warn that .elc file is older, inhibit
the ordinary message that would follow.
1993-01-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* fileio.c (Fdo_auto_save): Add CURRENT_ONLY argument, as
described in doc string.
1993-01-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fns.c (Frandom): Change arg name.
* editfns.c: Doc fixes.
1993-01-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* unexhp9k800.c (unexec): Don't call exit, just return.
1993-01-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* config.h.in: Protect against multiple #inclusions.
* config.h.in: Add a declaration for getenv.
* xfns.c (Fx_get_resource): Add CLASS argument, to give class of
ATTRIBUTE.
[not HAVE_X11]: Change definition of Fx_get_resource macro
accordingly.
(x_get_arg): Add CLASS argument, to give the class of ATTRIBUTE.
Pass it along to Fx_get_resource.
(x_figure_window_size, x_icon): Pass new argument to x_get_arg.
(x_default_parameter): Add XCLASS argument, to give the class of
XPROP. Pass it along to x_get_arg.
(Fx_create_frame): Pass new args to x_get_arg and
x_default_parameter.
* xfns.c (Fx_create_frame): Use the same resource names and
classes as xterm and Emacs 18.
1993-01-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c (Fx_get_resource): Use EMACS_CLASS to make class_key
even if SUBCLASS is specified. I don't know whether that is
right, but that's what the doc says.
Cosmetic changes in arg names and doc string.
1992-12-29 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* ralloc.c: [! emacs] [HAVE_CONFIG_H]: #include "config.h"
1992-12-21 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* Makefile.in (tagsfiles): New variable.
(TAGS): Depend on $(tagsfiles); use that in cmds.
(tags): Separate phony rule; depends on TAGS.
1992-12-21 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c: Protect all references to kbd_buffer_frames with
#ifdef MULTI_FRAME.
* frame.h (struct frame): New fields `can_have_scrollbars' and
`has_vertical_scrollbars'.
(FRAME_CAN_HAVE_SCROLLBARS, FRAME_HAS_VERTICAL_SCROLLBARS): New
accessors, for both the MULTI_FRAME and non-MULTI_FRAME.
(VERTICAL_SCROLLBAR_WIDTH, WINDOW_VERTICAL_SCROLLBAR,
WINDOW_VERTICAL_SCROLLBAR_COLUMN,
WINDOW_VERTICAL_SCROLLBAR_HEIGHT): New macros.
* window.h (struct window): New field `vertical_scrollbar'.
* xterm.h (struct x_display): vertical_scrollbars,
judge_timestamp, vertical_scrollbar_extra: New fields.
(struct scrollbar): New struct.
(VERTICAL_SCROLLBAR_PIXEL_WIDTH, VERTICAL_SCROLLBAR_PIXEL_HEIGHT)
(VERTICAL_SCROLLBAR_LEFT_BORDER, VERTICAL_SCROLLBAR_RIGHT_BORDER)
(VERTICAL_SCROLLBAR_TOP_BORDER, VERTICAL_SCROLLBAR_BOTTOM_BORDER)
(CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH)
(PIXEL_TO_CHAR_HEIGHT): New accessors and macros.
* frame.c (make_frame): Initialize the `can_have_scrollbars' and
`has_vertical_scrollbars' fields of the frame.
* term.c (term_init): Note that TERMCAP terminals don't support
scrollbars.
(mouse_position_hook): Document new args.
(set_vertical_scrollbar_hook, condemn_scrollbars_hook,
redeem_scrollbar_hook, judge_scrollbars_hook): New hooks.
* termhooks.h: Declare and document them.
(enum scrollbar_part): New type.
(struct input_event): Describe the new form of the scrollbar_click
event type. Change `part' from a Lisp_Object to an enum
scrollbar_part. Add a new field `scrollbar'.
* keyboard.c (kbd_buffer_get_event): Pass appropriate new
parameters to *mouse_position_hook, and make_lispy_movement.
* xfns.c (x_set_vertical_scrollbar): New function.
(x_figure_window_size): Use new macros to calculate frame size.
(Fx_create_frame): Note that X Windows frames do support scroll
bars. Default to "yes".
* xterm.c: #include <X11/cursorfont.h> and "window.h".
(x_vertical_scrollbar_cursor): New variable.
(x_term_init): Initialize it.
(last_mouse_bar, last_mouse_bar_frame, last_mouse_part)
(last_mouse_scroll_range_start, last_mouse_scroll_range_end): New
variables.
(XTmouse_position): Use them to return scrollbar movement events.
Take new arguments, for that purpose.
(x_window_to_scrollbar, x_scrollbar_create)
(x_scrollbar_set_handle, x_scrollbar_remove, x_scrollbar_move)
(XTset_scrollbar, XTcondemn_scrollbars, XTredeem_scrollbar)
(XTjudge_scrollbars, x_scrollbar_expose)
(x_scrollbar_background_expose, x_scrollbar_handle_click)
(x_scrollbar_handle_motion): New functions to implement scrollbars.
(x_term_init): Set the termhooks.h hooks to point to them.
(x_set_window_size): Use new macros to calculate frame size. Set
vertical_scrollbar_extra field.
(x_make_frame_visible): Use the frame accessor
FRAME_HAS_VERTICAL_SCROLLBARS to decide if we need to map the
frame's subwindows as well.
(XTread_socket): Use new size-calculation macros from xterm.h when
processing ConfigureNotify events.
(x_wm_set_size_hint): Use PIXEL_TO_CHAR_WIDTH and
PIXEL_TO_CHAR_HEIGHT macros.
* ymakefile (xdisp.o): This now depends on termhooks.h.
(xterm.o): This now depends on window.h.
* xdisp.c: #include "termhooks.h".
(redisplay, redisplay_window): Use set_vertical_scrollbar_hook,
condemn_scrollbars_hook, redeem_scrollbar_hook, and
judge_scrollbars_hook to make scrollbars redisplay properly.
* keyboard.c (Qscrollbar_movement, Qvertical_scrollbar,
Qabove_handle, Qhandle, Qbelow_handle): New symbols.
(make_lispy_event): New code to build scrollbar clicks.
(make_lispy_movement): New code to handle scrollbar movement.
(head_table): Include Qscrollbar_movement in the event heads.
(syms_of_keyboard): Init and staticpro Qvertical_scrollbar,
Qabove_handle, Qhandle, and Qbelow_handle.
* keyboard.h (Qscrollbar_movement): Declare this along with the
other event types.
* lisp.h (Qvertical_scrollbar): Declare this.
* window.c (window_from_scrollbar): New function.
* xterm.h (struct x_display): Delete v_scrollbar, v_thumbup,
v_thumbdown, v_slider, h_scrollbar, h_thumbup,
h_thumbdown, h_slider, v_scrollbar_width, h_scrollbar_height
fields.
* keyboard.c (Qvscrollbar_part, Qvslider_part, Qvthumbup_part)
(Qvthumbdown_part, Qhscrollbar_part, Qhslider_part, Qhthumbup_part)
(Qhthumbdown_part, Qscrollbar_click): Deleted; part of an obsolete
interface.
(head_table): Removed from here as well.
(syms_of_keyboard): And here.
* keyboard.h: And here.
(POSN_SCROLLBAR_BUTTON): Removed.
* xscrollbar.h: File removed - no longer necessary.
* xfns.c: Don't #include it any more.
(Qhorizontal_scroll_bar, Qvertical_scroll_bar): Deleted.
(syms_of_xfns): Don't initialize or staticpro them.
(gray_bits): Salvaged from xscrollbar.h.
(x_window_to_scrollbar): Deleted.
(x_set_horizontal_scrollbar): Deleted.
(enum x_frame_parm, x_frame_parms): Remove references to
x_set_horizontal_scrollbar.
(x_set_foreground_color, x_set_background_color,
x_set_border_pixel): Remove special code to support scrollbars.
(Fx_create_frame): Remove old scrollbar setup code.
(install_vertical_scrollbar, install_horizontal_scrollbar,
adjust_scrollbars, x_resize_scrollbars): Deleted.
* xterm.c (construct_mouse_click): This doesn't need to take care of
scrollbar clicks anymore.
(XTread_socket): Remove old code to support scrollbars. Call new
functions instead for events which occur in scrollbar windows.
(XTupdate_end): Remove call to adjust_scrollbars; the main
redisplay code takes care of that now.
(enum window_type): Deleted.
* ymakefile: Note that xfns.o no longer depends on xscrollbar.h.
* xterm.c (x_set_mouse_position): Clip mouse position to be within
frame.
* xterm.c: Adjust the first line of each page to have a reasonable
description. This makes pages-directory more useful.
* xterm.c (x_do_pending_expose): Declare this routine only if
HAVE_X11 is not #defined; X11 doesn't need it.
(XTread_socket): Protect call to x_do_pending_expose with `#ifdef
HAVE_X11'.
* xfns.c (syms_of_xfns): Delete defvars for x_mouse_x and
x_mouse_y. That interface hasn't been live for years.
(x_mouse_x, x_mouse_y): Delete these variables.
* xterm.c (notice_mouse_movement): Deleted; obsolete and unused.
* keyboard.c (Fread_key_sequence): Doc fix.
* keyboard.c (make_lispy_event): Buttons are numbered starting
with zero now.
* keyboard.c (make_lispy_event): Use the proper accessors when
manipulating the `x' and `y' fields of struct input_event.
* keyboard.c (parse_modifiers_uncached): Remember that strncmp
returns zero if the two substrings are equal.
* keyboard.c (do_mouse_tracking, Ftrack_mouse): Doc fix.
* keyboard.c (read_char): Don't put mouse movements in
this_command_keys.
* xfns.c (Fx_create_frame): Don't initialize the wm_hints field here.
(x_window): Do it here, along with all the similar stuff.
1992-12-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* callint.c (Fcall_interactively): For `s', use Fread_string.
1992-12-20 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Properly handle focus shift events, so the cursor is filled and
hollow at the appropriate times, even in titleless windows.
* xterm.c (x_focus_event_frame): New variable.
(XTread_socket): When we receive a FocusIn event that's not
NotifyPointer, record the frame in x_focus_event_frame. When we
receive a FocusOut event that's not NotifyPointer, clear it. When
we get a LeaveNotify event, don't take it seriously if we still
have focus.
* xterm.c (XTread_socket): Remove special code in EnterNotify case
to handle scrollbars and fake mouse motion events.
1992-12-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* floatfns.c (Flog): Fix unescaped newline in string.
* frame.c (Fnext_frame): Same.
* textprop.c (Fprevious_single_property_change): Same.
(syms_of_textprop): Same, for DEFVAR for
`interval_balance_threshold'.
Change the meaning of focus redirection to make switching windows
work properly. Fredirect_frame_focus has the details.
* frame.h (focus_frame): Doc fix.
[not MULTI_FRAME] (FRAME_FOCUS_FRAME): Make this Qnil, which
indicates no focus redirection, instead of zero, which is
selected_frame.
* frame.c (make_frame): Initialize f->focus_frame to Qnil, rather
than making it point to frame itself.
(Fselect_frame): If changing the selected frame from FOO to BAR,
make all redirections to FOO shift to BAR as well. Doc fix.
(Fredirect_frame_focus): Doc fix. Accept nil as a valid
redirection, not just as a default for FRAME.
(Fframe_focus): Doc fix.
* keyboard.c (kbd_buffer_store_event, kbd_buffer_get_event): Deal
with focus redirections being nil.
* xterm.c (XTframe_rehighlight): Doc fix. Deal with focus
redirections being nil.
* window.c (Fset_window_configuration): Don't restore the frame's
focus redirection if the target frame is now dead.
* ymakefile (ralloc.o): This no longer depends on xterm.h.
* ymakefile (all, xemacs): We build an executable called `emacs' now,
not `xemacs'.
* Makefile.in (distclean, xemacs, doxemacs): Same.
* xterm.h (PIXEL_WIDTH, PIXEL_HEIGHT): Change name of parameter
from `s' to `f'; it's a frame pointer.
1992-12-18 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (kbd_buffer_frames): New vector, to GCPRO frames in
kbd_buffer.
(kbd_buffer_store_event): When we add an event to kbd_buffer, make
sure to store its frame in kbd_buffer_frames.
(kbd_buffer_get_event): When we remove an event from kbd_buffer,
make sure to set the corresponding element of kbd_buffer_frames to
Qnil, to allow the frame to get GC'd.
(Fdiscard_input, init_keyboard): Clear all elements of
kbd_buffer_frames to nil.
(syms_of_keyboard): Create and staticpro kbd_buffer_frames.
* xterm.c (x_error_quitter): Just abort, so we can look at the
core to see what happened.
1992-12-17 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* buffer.c (Frename_buffer): Set update_mode_lines.
1992-12-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* scroll.c (do_scrolling): When bcopying the max_ascent field from
current_frame to temp_frame, remember that max_ascent is an array
of shorts, not ints.
It's a pain to remember that you can't assign to FRAME->visible.
Let's change all references to the `visible' member of struct
frame to use the accessor macros, and then write a setter for the
`visible' field that does the right thing.
* frame.h (FRAME_VISIBLE_P): Make this not an l-value.
(FRAME_SET_VISIBLE): New macro.
* frame.c (make_terminal_frame, Fdelete_frame): Use FRAME_SET_VISIBLE.
(Fframe_visible_p, Fvisible_frame_list): Use FRAME_VISIBLE_P and
FRAME_ICONIFIED_P.
* dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and
FRAME_GARBAGED_P accessors.
* xdisp.c (redisplay): Use the FRAME_VISIBLE_P accessor.
* xfns.c (x_set_foreground_color, x_set_background_color,
x_set_cursor_color, x_set_border_pixel, x_set_icon_type): Use the
FRAME_VISIBLE_P accessor.
(Fx_create_frame): Use FRAME_SET_VISIBILITY.
* xterm.c (clear_cursor, x_display_bar_cursor,
x_display_box_cursor): Use FRAME_SET_VISIBILITY.
1992-12-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* ymakefile (CFLAGS): #define HAVE_CONFIG_H too.
* Makefile.in (distclean): Don't delete machine.h or system.h;
they don't exist anymore.
* Makefile.in (distclean): Don't delete autosave or backup files.
(extraclean): New target; like distclean, but delete autosave
and backup files too.
1992-12-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* search.c (Fskip_chars_forward, Fskip_chars_backward): Return the
distance traveled.
(skip_chars): Return the distance traveled, as a Lisp_Object.
* macros.c (Fend_kbd_macro): Don't use XFASTINT to check if arg is
negative; XFASTINT only works on values known to be positive.
(Fexecute_kbd_macro): Check QUIT in the repetition loop. If the
macro is null, no characters are actually being read, so this
matters.
* Makefile.in (srcdir): New variable, not fully implemented.
(xmakefile): Turn -g and -O in CFLAGS into C_DEBUG_SWITCH and
C_OPTIMIZE_SWITCH in C_SWITCH_SITE's definition. Delete junk.cpp
when done.
* ymakefile (archlib): Variable definition deleted. Run programs
from ../lib-src directly, or use ${archlibdir}.
(${etc}DOC): Run make-docfile from ${libsrc}, not ${archlib}.
(${archlib}make-docfile, ${archlib}emacstool): Use ${libsrc}, not
${archlib}.
* ymakefile (lisp): Don't include version.el in this list.
Give subprocess creation a way to find a valid current directory
for subprocesses when the buffer's default-directory is a handled
name.
* fileio.c (Funhandled_file_name_directory): New function.
(Qunhandled_file_name_directory): New file-name-handler operation.
(syms_of_fileio): Defsubr Sunhandled_file_name_directory, and
initialize and staticpro Qunhandled_file_name_directory.
* callproc.c (Fcall_process): Call Funhandled_file_name_directory
on the buffer's default directory. Do it earlier in the function
so there's less to GCPRO.
* process.c (create_process): Don't check the validity of the
buffer's default directory here...
(Fstart_process): Instead, do it here; if we call
Funhandled_file_name_directory here, there's less GCPROing to do.
* callproc.c (Fcall_process_region): Return the value returned by
Fcall_process.
* fileio.c (find_file_handler): Rename this to
Ffind_file_name_handler, and make it visible to lisp. Add a QUIT
to the loop which scans file-name-handler-alist. All uses
changed.
(syms_of_fileio): Mention this new function in the docstring for
Vfile_name_handler_alist. defsubr Sfind_file_name_handler.
* lisp.h (Ffind_file_name_handler): Added extern declaration.
* dired.c: All uses of find_file_handler changed here too.
* fileio.c (syms_of_fileio): Add staticpros for Qexpand_file_name,
Qdirectory_file_name, Qfile_name_directory,
Qfile_name_nondirectory, Qfile_name_as_directory.
1992-12-07 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* window.c (Fset_window_configuration): If we're restoring the
configuration of a dead frame, don't bother rebuilding its window
tree, restoring its focus redirection, or temporarily resizing it
to fit the saved window configuration. If the frame which was
selected when the configuration was captured is now dead, don't
try to select it.
* frame.c (Fdelete_frame): Delete all the windows in the frame's
window tree, using delete_all_subwindows.
* window.c (delete_all_subwindows): Don't make this static
anymore.
1992-12-03 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Make sure that frames' visible flag only changes at acceptable
times. See FRAME_SAMPLE_VISIBILITY's comments for details.
* frame.h (struct frame): New fields called async_visible and
async_iconified.
(FRAME_SAMPLE_VISIBILITY): New macro, with MULTI_FRAME and
non-MULTI_FRAME definitions.
* xdisp.c (redisplay): Call FRAME_SAMPLE_VISIBILITY to set the
visible and iconified flags appropriately for each frame.
(message1): Call FRAME_SAMPLE_VISIBILITY to set the visible and
iconified flags for the minibuffer frame.
* frame.c (make_frame): Initialize async_visible and
async_iconified properly.
* xfns.c (Fx_create_frame): Initialize f->async_visible too.
* xterm.c (XTread_socket): When we get MapNotify, UnmapNotify,
Expose, ExposeWindow, or UnmapWindow, set f->async_visible, not
f->visible.
(x_do_pending_expose, x_raise_frame, x_lower_frame)
(x_make_frame_invisible, x_make_frame_visible, x_iconify_frame):
Test and set f->async_visible and f->async_iconified, not
f->visible or f->async_iconified.
* keyboard.c (kbd_store_ptr): Declare this to be volatile, if
__STDC__ is #defined.
(Fdiscard_input): Use cast to keep GCC from complaining about the
assignment of kbd_store_ptr to kbd_fetch_ptr.
* xdisp.c (redisplay): Use FOR_EACH_FRAME to apply
redisplay_windows to the root window of each frame. This makes a
#ifdef MULTI_FRAME unneeded, but it also means we recompute
buffer_shared from scratch even on non-MULTI_FRAME configurations.
Don't skip elements of Vframe_list that aren't frames; go ahead
and crash here.
* xdisp.c (redisplay): Remove #ifdef MULTI_FRAME around the code
which updates separate minibuffer frames specially; there's
nothing there that won't work on a single-frame configuration.
* dispextern.h (struct frame_glyphs): Doc fix.
1992-12-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* dispnew.c: Remove dyked-out copy of safe_bcopy.
* environ.c: File removed; Changes on 1/13/1992 made it
unnecessary.
1992-12-01 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c (wait_reading_process_input): Doc fix.
1992-11-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* next.h: Copy changes from 18.59:
(NeXT): Defined.
(BIG_ENDIAN): Define only if __BIG_ENDIAN__.
(m68000, COMPILER_REGISTER_BUG): Defs deleted.
(SIGN_EXTEND_CHAR, LIB_X11_LIB, NO_T_CHARS_DEFINES, UNEXEC): Defined.
(LIBS_DEBUG, LIB_GCC, C_SWITCH_MACHINE, ORDINARY_LINK): Defined.
(TEXT_START, TEXT_END, DATA_END, LD_SWITCH_MACHINE): Defined.
(KERNEL_FILE): #undef it.
(environ): Define as _environ.
1992-11-25 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* doc.c (store_function_docstring): New function, made from part
of Fsnarf_documentation, which handles docstrings for macros
properly.
(Fsnarf_documentation): Call store_function_docstring.
* data.c (indirect_function): Delete unused argument ERROR.
1992-11-23 Jim Blandy (jimb@apple-gunkies.gnu.ai.mit.edu)
* Makefile.in (clean): Remove prefix-args.
1992-11-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/sol2.h (LD_SWITCH_SYSTEM): Make alternate version for GCC.
1992-11-19 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* m/sparc.h: Don't include <sys/param.h> here; that screws up the
xmakefile. Instead, include it in getloadavg.c, which is the only
place that uses LOAD_AVE_CVT, which is the only reason
<sys/param.h> was here in the first place.
1992-11-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* dispnew.c [not MULTI_FRAME] (Fredraw_display): Pass the correct
number of arguments to mark_window_display_accurate.
* undo.c (Fprimitive_undo): Remove whitespace in front of #ifdef
and #endif.
* systty.h: Doc fix.
* systty.h, process.c, buffer.h, callproc.c, sysdep.c, dired.c:
Added VMS changes from Roland Roberts.
* vmspaths.h: New version from Roland Roberts.
* xdisp.c (display_string): Use w's buffer's value of
tab-width to display the string, instead of the current buffer's,
which could be anything.
* s/sol2.h (LD_SWITCH_SYSTEM): Add -R option.
* process.c (read_process_output): Save, widen, insert the process
output, and then restore the restriction if inserting text outside
the visible region.
1992-11-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* buffer.c (Ferase_buffer): Doc fix.
* dispnew.c (safe_bcopy): Use the right terminating condition in
the loop which uses multiple bcopy calls to transfer a block to an
overlapping higher block.
1992-11-13 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c (Fstart_process): Establish an unwind-protect to
remove PROC from the process list if an error occurs while
starting it.
(start_process_unwind): New function to help with that.
(create_process): There's no need to explicitly call
remove_process if the fork fails; the record_unwind_protect in
Fstart_process will take care of it.
* commands.h (unread_command_event): Doc fix.
Don't ever throw away switch-frame events.
* lread.c: #include "keyboard.h".
(Fread_char, Fread_char_exclusive): Don't signal an
error for or throw away switch-frame events; instead, put them off
until after we've found a character we can respond to.
* commands.h (unread_switch_frame): Declare this extern.
* keyboard.c (unread_switch_frame): Don't declare this static.
* ymakefile (lread.o): Note that this depends on keyboard.h.
* keyboard.c (Vlast_event_frame): Doc fix.
* process.c (wait_reading_process_input): Test the C preprocessor
symbol "ultrix", not "__ultrix__" to see if we should ignore
ENOMEM errors from select.
* fileio.c (Fexpand_file_name): Don't fiddle with "/." if it's the
entire string.
* buffer.c (Fbury_buffer): Make this behave as in 18.59, although
that behavior is very odd - only remove the buffer from the
selected window if BUFFER was nil or omitted.
* keyboard.c (read_char): Write composite events to the dribble
file properly.
* keyboard.c (init_keyboard): Initialize Vlast_event_frame to
Qnil, rather than the selected frame.
* mem-limits.h [DATA_SEG_BITS] (EXCEEDS_LISP_PTR): Remember to
remove DATA_SEG_BITS from the pointer before testing if the
pointer fits in VALBITS.
* Makefile.in (doxemacs, dotemacs): Explicitly pass along the CC
variable in these rules, just as in the `doall' rule.
* ralloc.c (relocate_some_blocs): Handle BLOC == NIL_BLOC.
(free_bloc): This can now be simplified.
* ralloc.c (r_alloc_sbrk): When we allocate new space for the
malloc heap, zero it out even if we don't have any blocs in the
free list.
1992-11-12 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c (process_send_signal): On systems which have both
the TIOCGETC and TCGETA ioctls, just use the former.
* xselect.c (Fx_get_cut_buffer): Correct check for buf_num in
range.
* xselect.c (Fx_get_cut_buffer, Fx_set_cut_buffer): Fix error
message format; use NUM_CUT_BUFFERS instead of literal 7.
* keyboard.c (lispy_modifier_list): Added sanity check before
indexing into modifier_symbols.
* keyboard.c (add_command_key): When copying the contents of the
old this_command_keys to new_keys, remember to multiply size by
sizeof (Lisp_Object) to get the amount we really need to copy.
Rename unread_command_char to unread_command_event; it has
subtly different semantics now, and we should use
`make-obsolete-variable' to warn people.
* command.h (unread_command_char): Change name in extern declaration.
* keyboard.c (unread_command_char): Rename.
(command_loop_1, read_char, Finput_pending, Fdiscard_input)
(quit_throw_to_read_char, init_keyboard, syms_of_keyboard): Change
references.
* lread.c (Fread_char): Change reference.
* minibuf.c (temp_echo_area_glyphs): Change reference to
unread_command_char to unread_command_event.
* xfns.c (unread_command_char): Change name in extern declaration
to unread_command_event.
1992-11-11 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
for Ultrix version 4.1, and the current version is 4.3.
* s/bsd4-2.h, s/bsd4-3.h: #define SIGNALS_VIA_CHARACTERS.
* process.c (process_send_signal): Put all the code for sending
signals via characters in a #ifdef SIGNALS_VIA_CHARACTERS. Decide
whether to use the Berkeley-style or SYSV-style ioctls by seeing
which ioctl commands are #defined.
* minibuf.c (read_minibuf): If get_minibuffer gives the
new minibuffer a nil default directory, find another buffer with a
better default directory and use that one's instead.
1992-11-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* process.c (process_send_signal): Doc fix.
* keyboard.c (read_key_sequence): Don't use
save_excursion_{save,restore} to protect the caller against buffer
switches; use Fset_buffer and Fcurrent_buffer; redisplay might
change point, and we don't want to undo that.
* keyboard.c (kbd_buffer_get_event): When checking a mouse
movement for a frame switch, don't assume Vlast_event_frame
contains a Lisp_Frame object.
1992-11-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/dgux.h (SYSTEM_TYPE): Use berkeley-unix.
1992-11-04 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* alloc.c: #include "frame.h" unconditionally. frame.h does the
right thing when MULTI_FRAME isn't defined.
* Makefile.in: Rearrange dependencies to make sure that xmakefile
is built before we try to use it, even using a parallel make.
Changes for SYSV from Eric Raymond:
* process.c [SYSV]: Don't include <termios.h>, <termio.h>, or
<fcntl.h>.
(process_send_signal): Don't try to send SIGTSTP
unless SIGTSTP is defined.
* sysdep.c (init_baud_rate) [HAVE_TERMIO, not HAVE_TCATTR]: Use
TCGETA, not TIOCGETP.
* systime.h [USG] (EMACS_GET_TZ_OFFSET): Assign to *(offset), not
(offset). Don't forget the while corresponding to the do.
Include USG in the list of systems that have a tzname array.
* keyboard.c (read_key_sequence): Removed the
replay_sequence_new_buffer label; replay_sequence should be here
instead.
Arrange to get compile-time errors for uses of Lisp_Frame in a
non-MULTI_FRAME configuration.
* lisp.h [not MULTI_FRAME]: Don't declare the Lisp_Frame tag.
* minibuf.c (read_minibuf): Protect call to Fredirect_frame_focus
with a #ifdef MULTI_FRAME.
* window.c (Fset_window_configuration): Protect call to
Fselect_frame with a #ifdef MULTI_FRAME.
[not MULTI_FRAME] (Fcurrent_window_configuration): Don't bother
setting the window configuration's selected_frame member.
* keyboard.c (Vlast_event_frame): Arrange for this to exist iff
MULTI_FRAME is defined.
[not MULTI_FRAME] (syms_of_keyboard): Don't DEFVAR Vlast_event_frame.
[not MULTI_FRAME] (read_char): Don't try to set Vlast_event_frame.
[not MULTI_FRAME] (kbd_buffer_store_event): Don't try to set
Vlast_event_frame for quit characters.
[not MULTI_FRAME] (kbd_buffer_get_event): Don't try to generate
switch-frame events.
* buffer.c (init_buffer): If PWD is accurate, use it instead of
calling getwd.
#include <sys/types.h> and <sys/stat.h>, for the call to stat.
Indicate whether an autoload form stands for a keymap or not.
* eval.c (Fautoload): Renamed fifth argument TYPE. Document the
fact that (eq TYPE 'keymap) means FUNCTION will become a keymap
when loaded.
(Fmacroexpand): Instead of assuming that every autoload
form with a fifth element is a macro, actually check the fifth
element against t and `macro', which are the only values which
denote macroness.
* keymap.c (get_keymap_1): Don't try to autoload OBJECT's function
unless the autoload form indicates that it's a keymap.
1992-11-03 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* .gdbinit (mips): New command.
1992-10-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Fmake_directory_internal): Renamed from Fmake_directory.
Pass nil as third arg to handler.
Lisp function `make-directory' is now in files.el.
1992-10-30 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Clean up errors due to treating Lisp_Objects like integers.
* abbrev.c (Funexpand_abbrev): Just assign the last abbrev's value
to val; don't use XSET. Make sure that the value of the
abbrev-symbol is a string.
* alloc.c (Frope_elt): Declare arguments to be Lisp_Objects.
* buffer.c (reset_buffer): Don't assign to b->save_length as if it
were an int; use XFASTINT.
* buffer.h (Fbuffer_name, Fget_file_buffer): Added external
declarations.
* bytecode.c (Fbyte_code): Use EQ to compare string_saved with
bytestr.
* casefiddle.c (operate_on_word): Declare end to be an int, not a
Lisp_Object.
* casetab.c (set_case_table): Declare this to be static, and
return a Lisp_Object. Add static declaration for this
before Fset_case_table and Fset_standard_case_table.
(Fset_case_table, Fset_standard_case_table): Return the return
value of set_case_table, instead of returning garbage.
* commands.h (unread_command_char): Declare this to be a
Lisp_Object, not an int.
* data.c (Fset): See if current_alist_element points to itself
using EQ, not ==.
(float_arith_driver): Declare this extern above arith_driver.
* dired.c (find_file_handler): Declare this extern.
(Ffile_attributes): Use NILP, not == Qnil.
* dispextern.h (sit_for): Declare this extern.
* doc.c: #include keyboard.h.
* floatfns.c (Flog): Don't forget to declare the BASE argument a
Lisp_Object.
* fns.c: #include keyboard.h.
(Fdelete): Check if Fequal returns Qnil, not zero.
* frame.c: #include buffer.h.
* keyboard.c: #include dispextern.h.
(recursive_edit_unwind, command_loop, Fthis_command_keys): Declare
these to return Lisp_Objects at the very top of the file, to avoid
having them implicitly declared as ints.
(echo_char): Use EQ to compare C to help_char.
(read_char): Remember to apply XFASTINT to the return value of
Flength before using it. Apply XINT to c when clearing its high
bits and meta bits, and when writing it to the dribble file.
(read_char_menu_prompt): Use EQ to compare obj with
menu_prompt_more_char and its control-character analog.
(read_key_sequence): Declare PROMPT to be char *, not a
Lisp_Object. Use the appropriate accessors on keybuf when looking
for ASCII function key sequences.
* keyboard.h (get_keymap_1, Fkeymapp, reorder_modifiers)
(Fmouse_click_p, read_char): Add external declarations for these.
* keymap.c (Fdefine_key, Flookup_key, describe_map): Don't assume
that Flength returns an integer.
* lisp.h (Fdefault_boundp, make_float, Ffloat, Fnth, Fcopy_alist)
(Fmake_byte_code, Fverify_visited_file_modtime, Ffile_exists_p)
(Fdirectory_file_name, Ffile_name_directory)
(expand_and_dir_to_file, Ffile_accessible_directory_p, Fbyte_code)
(Fundo_boundary, truncate_undo_list): Add extern declarations for
these.
* lread.c (read_char): Add an extern declaration for this,
indicating that it returns a Lisp_Object.
* minibuf.c (read_minibuf): Use EQ to compare, not ==.
(temp_echo_area_glyphs): Use XFASTINT to assign to
unread_command_char.
* print.c (print): Cast the frame's address to an integer before
passing it to sprintf to form the frame's printed form.
* process.c (status_convert): Declare this to return a
Lisp_Object at the top of the file.
(decode_status): Don't untag XCONS (tem)->cdr before storing it in
tem; tem is a Lisp_Object, too.
(process_send_signal): Declare this to be static void. Don't
return Qnil; nobody cares.
(sigchld_handler): Use XFASTINT to manipulate p->infd.
* search.c (Fstore_match_data): Don't assume Flength returns a
C integer.
* undo.c (record_insert): Use accessors on BEG and LENGTH.
(truncate_undo_list): Use NILP, not == Qnil.
* window.c (Fwindow_width, Fset_window_hscroll): Use accessors on
w->width, w->left, w->hscroll, and arguments.
(replace_window): Use EQ, not ==.
(Fdelete_window): p->top and p->left are not C integers.
(Fnext_window, Fprevious_window): Use EQ, not ==.
* window.h (make_window, window_from_coordinates,
Fwindow_dedicated_p): Add extern declarations for these.
* xdisp.c (redisplay): Use ! EQ to compare the old and new arrow
positions, not !=.
(mark_window_display_accurate): Barf if WINDOW isn't a window.
(display_string): Test buffer_defaults.ctl_arrow using NILP,
instead of comparing it with zero.
* xfns.c (x_decode_color, Fx_color_display_p): x_screen_planes is
an int, not a Lisp_Object.
(x_set_mouse_color): Give separate error messages for the
different cursors we try to set.
(Fx_geometry): Declare STRING to be a Lisp_Object.
(Fx_create_frame): No need to use XSET to assign NAME to f->name;
they're both Lisp_Objects.
(adjust_scrollbars): Use XINT to access w->hscroll.
(Fx_open_connection): x_screen_count, x_release, x_screen_height,
x_screen_height_mm, x_screen_width, x_screen_width_mm,
x_save_under, and x_screen_planes are integers, not Lisp_Objects.
(syms_of_xfns): x_mouse_x, x_mouse_y, and mouse_buffer_offset are
integers, not Lisp_Objects.
* xselect.c (own_selection): selection_type is an X Atom value,
not a Lisp_Object.
(x_selection_arrival): Declare this static, and add a forward
declaration at the top of the page.
* xterm.c (x_convert_modifiers): Declare this to return an
unsigned int, not a Lisp_Object. Remember that the quiescent
value for part is Qnil, not zero, that x_mouse_x and x_mouse_y
are ints, not Lisp_Objects, and that RESULT->x and RESULT->y are
Lisp_Objects, not ints.
(XTread_socket): Declare this to return int, not Lisp_Object.
When calling construct_mouse_click on a non-scrollbar click, pass
PART as Qnil, not zero.
(x_calc_absolute_position): Remember that x_screen_width and
x_screen_height are ints, not Lisp_Objects.
* xterm.h (x_screen_count, x_release, x_screen_height)
(x_screen_height_mm, x_screen_width, x_screen_width_mm)
(x_save_under, x_screen_planes): Declare this as ints, to match
their definitions in xterm.c.
* ymakefile: Note the new dependencies caused by the new
#inclusions above.
* xdisp.c (last_arrow_position, last_arrow_string): Make these
static.
* process.c (pty_process): Variable deleted; it's no longer used.
(syms_of_process): Don't initialize it.
* buffer.h (struct buffer_local_types): This declaration needed an
extern qualifier.
* floatfns.c (Fexpt): Don't return the value of the XSET function
call; that's not guaranteed to be the value assigned.
* dired.c (Ffile_attributes): Doc fix.
* lisp.h (DEFVARLISP, DEFVARBOOL, DEFVARINT, DEFVARPERBUFFER):
Removed these definitions; we should be using the versions whose
names use underscores.
* keyboard.c (echobuf): Make this 300 characters, not 100. This
isn't a real fix, but it's quick.
1992-10-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* callint.c (preserved_fns): New var.
(Fcall_interactively): Preserve all fns listed in preserved_fns.
(syms_of_callint): Set preserved_fns and staticpro it.
Don't set up Qregion_beginning or Qregion_end.
1992-10-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* dispnew.c (count_blanks): Leave argument r constant, and increment p.
1992-10-28 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xdisp.c (message): Re-write this in terms of message1.
(message1): Move code to clear out echo_area_glyphs and
previous_echo_glyphs from message to here.
* keyboard.c (read_char): When returning an unread switch-frame
event, jump to reread_first to return it, rather than reread; this
makes sure the event gets echoed (if appropriate) and goes into
this_command_keys.
* keyboard.c (read_key_sequence): If the key sequence starts with
a mouse click, read the key sequence using the keymaps of the
buffer clicked on, not the current buffer.
* keyboard.c (unread_switch_frame): Make this static, to indicate
that nobody outside of this file uses it.
* keymap.c: Deal with autoloaded keymaps properly.
(get_keymap_1): Renamed to inner_get_keymap; made
static. New argument AUTOLOAD says to pursue autoloads if
non-zero.
(Fkeymapp, get_keymap, get_keyelt, Flookup_key): Ask get_keymap_1
not to perform autoloads.
(Fdefine_key): Ask get_keymap_1 to perform autoloads. Since
autoloading may GC, remember that we have to GCPRO our local
variables now.
(Fminor_mode_key_binding): Call get_keymap instead of calling
get_keymap_1 with equivalent arguments.
* keyboard.c (follow_key): Ask get_keymap_1 to perform autoloads.
(read_key_sequence): When pursuing potential bindings in the
function key map, ask get_keymap_1 to perform autoloading. This
is hardly important, but it's consistent.
* doc.c (Fsubstitute_command_keys): Ask get_keymap_1 to
perform autoloads. Autoloading might GC; we need to GCPRO our
local variables now.
(Fdocumentation, Fdocumentation_property): Autoloading in
Fsubstitute_command_keys might GC; we need to GCPRO our
local variables now.
1992-10-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/irix3-3.h (HAVE_SETSID, IRIX): Defined.
* s/irix4-0.h: New file.
1992-10-27 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
* sysdep.c (get_system_name): Use gethostname for USG systems if
HAVE_GETHOSTNAME is defined.
* s/hpux7.h, s/irix3-3.h (HAVE_GETHOSTNAME): Define it.
1992-10-27 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* callproc.c: Arrange for synchronous processes to get SIGINT the
first time the user quits, or SIGKILL if the user quits again.
#include "syssignal.h".
(call_process_kill): New function.
(call_process_cleanup): Send SIGINT to the subprocess, and then
arrange to call call_process_kill if the user quits while we wait
for it to terminate.
(Fcall_process, Fcall_process_region): Doc fix.
1992-10-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* unexmips.c [sony, IRIS_4D]: Include getpagesize.h and fcntl.h.
(unexec): #if 0 the error check of hdr.fhdr.f_nscns.
Clear text_section->s_scnptr.
* callint.c (Fcall_interactively): Preserve (region-beginning)
and (region-end) into the command history when they appear
in an interactive spec which is a call to `list'.
* batcomp.com: New file. Waiting for papers from richard@ttt.kth.se.
1992-10-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* emacs.c (main): Correct spelling of HAVE_X_WINDOW to
HAVE_X_WINDOWS in conditionals around the call to syms_of_xmenu.
1992-10-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ralloc.c (relinquish):
Adjust page_break_value by amount of memory actually given back.
(r_alloc_sbrk): Provide hysteresis in relocating the blocs.
1992-10-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ralloc.c (relinquish): Sign of arg to *real_morecore was backwards.
1992-10-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ralloc.c (relinquish): Never free less than extra_bytes;
keep extra_bytes of empty space.
(obtain): Always get extra_bytes additional space.
(r_alloc_init): Set extra_bytes and page_size.
(ALIGNED, ROUNDUP, ROUND_TO_PAGE): Use page_size.
1992-10-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Properly staticpro this_command_keys.
* mem-limits.h (get_lim_data): Make it static.
* ymakefile (mallocobj): Use vm-limit.o along with ralloc.o.
* ralloc.c [emacs]: Define POINTER and SIZE.
[!emacs]: Delete definition of EXCEEDS_LISP_PTR.
* eval.c (grow_specpdl): Increase max_specpdl_size before Fsignal.
1992-10-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xfns.c (x_set_face): Dyked out this function; it has no callers,
and refers to an obsolete version of struct face.
* xterm.c (compose_status): New variable.
(XTread_socket): Pass it by reference to XLookupString.
1992-10-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/esix5r4.h (BROKEN_FIONREAD): Defined.
1992-10-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/vms5-5.h: New file.
1992-10-16 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* xdisp.c (message): If M is zero, clear echo_area_glyphs and
previous_echo_glyphs, so that the minibuffer shows through.
* editfns.c (Fmessage): With no arguments, clear any active
message; let the minibuffer contents show through.
* minibuf.c (temp_echo_area_glyphs): Don't clear echo_area_glyphs
and previous_echo_glyphs; let message do that work.
* keyboard.c (this_command_keys): Make this a vector, instead of
an array of Lisp_Objects.
(this_command_keys_size): Deleted.
(echo, add_command_key, Fthis_command_keys): Adjusted
appropriately.
(init_keyboard): Don't allocate it here.
(syms_of_keyboard): Allocate it here, and staticpro it.
* keyboard.h (this_command_keys): Extern declaration changed. Doc fix.
* callint.c (Fcall_interactively): Change handling of 'e' spec;
this_command_keys is now a vector.
* keyboard.c (read_char): Call ourselves with the appropriate
number of arguments.
(read_char_menu_prompt): If USED_MOUSE_MENU is zero, don't try to
store things in it.
* window.c: Try to deal coherently with deleted windows:
(Flive_window_p): New function.
(Qlive_window_p): New variable, to name it in type errors.
(syms_of_window): Defsubr Slive_window_p, init and staticpro
Qlive_window_p.
* lisp.h (CHECK_LIVE_WINDOW): New predicate.
(Qlive_window_p): Extern declaration for this.
* window.c (decode_window): Use CHECK_LIVE_WINDOW instead of
CHECK_WINDOW; the only thing a user should be able to do to a dead
window is check its type.
(Fcoordinates_in_window_p, Fnext_window, Fprevious_window)
(Fdelete_other_windows, Fselect_window, Fsplit_window)
(Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of
CHECK_WINDOW.
* frame.c (make_frame_without_minibuffer, Fwindow_frame): Same.
* sunfns.c (Fsun_menu_internal): Same.
* xmenu.c (Fx_popup_menu): Same.
* window.c (Fdelete_window): If WINDOW is a deleted window, do nothing;
there's no harm in allowing people to delete deleted windows.
Delete all of WINDOW's subwindows, too.
(delete_all_subwindows): Set the buffer, vchild, and hchild of the
windows we delete all to nil.
* window.h (struct window): Doc fix.
* window.c (Fwindow_minibuffer_p): Make the WINDOW argument
optional, like all the other window-querying functions.
* window.c (Fpos_visible_in_window_p): Use decode_window to handle
the WINDOW argument, instead of writing out that function's code.
* window.c (check_frame_size): Don't define this extern; that
doesn't mean anything.
* xterm.c: Clean up some of the caps lock handling:
(x_shift_lock_mask): New variable.
(x_find_modifier_mappings): Set it, based on the modifier mappings.
(x_convert_modifiers): Use x_shift_lock_mask, instead of assuming
that the lock bit always means to shift the character.
(XTread_socket): When handling KeyPress events, don't pass an
XComposeStatus structure along to XLookupString. When handling
MappingNotify events, call XRefreshKeyboardMapping for both
MappingModifier and MappingKeyboard events, not just the latter.
1992-10-15 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* window.c (Fdelete_window): Choose an alternative when we delete
any frame's selected window, not just when we delete the selected
frame's selected window.
1992-10-15 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* vm-limit.c (check_memory_limits): Declare __morecore.
Remove unused variable `result'.
1992-10-15 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* vm-limit.c (morecore_with_warning): Removed.
(check_memory_limits): New fn; most code from
morecore_with_warning, but only checks limits, doesn't do any work.
(memory_warnings): Set __after_morecore_hook to check_memory_limits;
don't set __morecore.
1992-10-14 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* intervals.c (traverse_intervals): New parameter `depth'.
Increment this when passing recursively.
* alloc.c (mark_interval_tree): Pass 0 as initial depth argument
to traverse_intervals.
* xterm.h: Declaration of struct face removed.
* dispextern.h: New element of frame structure `max_ascent'.
Removed elements `nruns' and `face_list'.
LINE_HEIGHT and LINE_WIDTH macros removed.
New struct face with associated typedef FACE declared, along with
accessing macros.
* scroll.c (do_scrolling): Don't bcopy non-existant `nruns' or
`face_list' elements. Do copy new `max_ascent' frame element.
* dispnew.c (scroll_frame_lines): All references to frame elements
`nruns' and 'face_list' removed. Handle new element `max_ascent'.
(free_frame_glyphs): Don't free nonexistent elements `nruns' and
`face_list'; do free `max_ascent' element.
(make_frame_glyphs): Don't allocate nonexistent elements `nruns'
and `face_list'; do allocate `max_ascent' element.
(update_frame): Replaced use of macro LINE_HEIGHT with element
frame element `pix_height'.
1992-10-14 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (modify_event_symbol): Arrange to set the
click_modifier bit on otherwise unmodified mouse clicks.
* keymap.c (store_in_keymap): Don't forget to QUIT in the
keymap-scanning loop. Don't treat vectors as binding tables if
they're the wrong length.
1992-10-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (kbd_buffer_get_event): Remember that
*mouse_position_hook may set *FRAME to 0; don't generate
switch-frame events in this case. Fix fencepost bug in fetching
events from keyboard buffer.
1992-10-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (ralloc.o): Delete dep mem_limits.h
(vm-limit.o): Rename dep to mem-limits.h.
1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* ralloc.c: Removed #include "mem-limits.h".
[emacs]: Moved #undef NULL and #include "getpagesize.h" here.
[! emacs]: #include <unistd.h>, <malloc.h>, <string.h>.
(r_alloc_init): Use NIL, not NULL.
1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* ralloc.c (sbrk): Removed decl.
(real_morecore): New static variable.
(warnlevel, warn_function, check_memory_limits): Removed.
(obtain): Don't call check_memory_limits.
(obtain, relinquish, r_alloc_sbrk): Use (*real_morecore) in place
of sbrk; it returns 0 for errors, not -1.
(r_alloc_init): Set real_morecore to old value of __morecore.
Don't initialize lim_data or warnlevel, and don't call get_lim_data.
(memory_warnings): Function removed.
1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* vm-limit.c (warnfunction): Renamed to warn_function (was used
inconsistently).
(morecore_with_warning, memory_warnings): Change callers (were
inconsistent).
1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* mem-limits.h (start_of_data): Removed extra defn.
(get_lim_data): Define to return void.
1992-10-12 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* mem_limits.h: File renamed to mem-limits.h.
* vm-limit.c, ralloc.c: Changed #includes.
1992-10-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* syntax.c (find_defun_start): scan_buffer returns start of line;
no need to advance over newline.
* vm-limit.c (morecore_with_warning):
Reduce warnlevel when usage drops far enough.
* ralloc.c (check_memory_limits): Likewise.
* vm-limit.c (memory_warnings): Renamed from malloc_init.
Don't set lim_data or warnlevel. Use start_of_data if start is 0.
* ralloc.c (memory_warnings): New function; just set warning data.
Use start_of_data if start is 0.
* emacs.c (Fdump_emacs, main): Use memory_warnings.
* mem_limits.h [!emacs]: Don't define POINTER, SIZE or NULL.
(start_of_data): Define as macro, if !emacs.
* ralloc.c [!emacs]: Don't include config.h or lisp.h;
instead, use stddef.h. Define POINTER, SIZE, EXCEEDS_LISP_PTR.
* vm-limit.c [!emacs]: Don't include config.h or lisp.h;
instead, use stddef.h. Define POINTER, SIZE, EXCEEDS_LISP_PTR.
* ralloc.c [!emacs] (safe_bcopy): Define as macro using memmove.
(r_alloc_free): Clear *ptr.
(r_alloc_init): Renamed from malloc_init. Take no args.
Make it static; declare at top of file.
(r_alloc): Call r_alloc_init, if not initialized yet.
(r_alloc_initialized): Renamed from malloc_initialized; moved to top.
(ROUNDUP): Subtract 1, in case arg is already aligned.
* mem_limits.h (EXCEEDS_LISP_PTR): Renamed from EXCEEDS_ELISP_PTR.
* vm-limit.c (morecore_with_warning): Use EXCEEDS_LISP_PTR.
* ralloc.c (check_memory_limits): Use EXCEEDS_LISP_PTR.
1992-10-10 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* keyboard.c (Vlast_event_frame): Make this variable exist even
when MULTI_FRAME isn't #defined. People might find it
necessary for writing correct programs, even when the programs
don't explicitly use multiple frames.
(read_char, kbd_buffer_store_event, kbd_buffer_get_event): No need
to test MULTI_FRAME before setting Vlast_event_frame.
(syms_of_keyboard): DEFVAR Vlast_event_frame whether or not
MULTI_FRAME is defined.
* keyboard.c: Add switch-frame events.
(Qswitch_frame): New event header symbol.
(head_table): Include Qswitch_frame in the table of event heads.
(kbd_buffer_get_event): Detect when a frame switch has occurred,
and return a frame switch event before the enqueued event.
(make_lispy_switch_frame): New function.
(unread_switch_frame): New variable.
(read_key_sequence): Don't throw away the key sequence if the user
switches frames in the middle of the sequence. Instead, when we
receive a switch-frame event in the middle of a key sequence, save
it, and stuff it into unread_switch_frame when the sequence
is complete.
(read_char): If unread_switch_frame is set, return that value.
(command_loop_1): No need to check Vlast_event_frame and select
new frames here; that's taken care of by switch-frame events now.
(syms_of_keyboard): Initialize and staticpro unread_switch_frame.
* keyboard.h (Qswitch_frame): Declare this extern.
* frame.c: #include "commands.h" and "keyboard.h".
(Fselect_frame): Make this interactive, and accept
switch-frame events as arguments, so we can bind this function to
switch-frame events.
(keys_of_frame): New function; bind switch-frame to Fselect_frame.
* emacs.c (main): Call keys_of_frame.
* keymap.c (initial_define_lispy_key): New function, for defining
non-ascii keys.
* ymakefile: Note that frame.o depends on commands.h and keyboard.h.
* callint.c (Fcall_interactively): Allow multiple 'e' specs.
(Finteractive): Doc fix.
* keyboard.h (this_command_keys, this_command_key_count): Added
external declarations.
* keymap.c (access_keymap): Treat bindings for Qt as default
bindings, when new argument T_OK is non-zero.
(get_keyelt, Fdefine_key, Flookup_key): Call access_keymap with
T_OK false.
* keyboard.c (follow_key, read_key_sequence): Call access_keymap
with T_OK true.
* keyboard.c (apply_modifiers): Copy the value of BASE's
Qevent_kind property to the new symbol.
* keyboard.c (syms_of_keyboard): Qevent_kind should be initialized
to intern ("event-kind"), not intern ("event-type").
1992-10-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Fwrite_region): If VISIT is a file name,
use that as file name to visit, and print it in the message.
Use it for file locking too.
* m-ibmps2-aix.h [__GNUC__ >= 2] (LIB_STANDARD): Don't define.
1992-10-09 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* ymakefile (FLOATSUP): Renamed to FLOAT_SUPPORT.
(FRAME_SUPPORT, VMS_SUPPORT): New macros.
(lisp): Rebuild this from loadup.el, using the _SUPPORT macros.
* ymakefile [HAVE_X_WINDOWS, not NO_X_MENU, HAVE_X11] (LIBXMENU):
Link against -loldX, to get the association table functions.
* xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
warnings about redefining NULL under GCC 2.2.2.
1992-10-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m/pyrmips.h: New file.
* s/aix3-1.h (PTY_ITERATION, etc.): Defined.
(FIRST_PTY_LETTER): Deleted.
1992-10-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* m/sparc.h: Include <sys/param.h>, to define the FSCALE constant.
* ymakefile (YMF_PASS_LDFLAGS): Refer to the prefix-args program
using "./prefix-args", not just "prefix-args"; some people don't
have . in their paths.
1992-10-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* link.com: Use gcclib if compiling with GCC.
* fileio.c (directory_file_name): Don't clobber the envvar
when handling top-level rooted dir.
* ymakefile (LIB_STANDARD): If ORDINARY_LINK, default this to empty.
* m/ibmps2-aix.h [USG_SHARED_LIBRARIES]: Define ORDINARY_LINK.
Undef LIB_STANDARD. Modify LD_SWITCH_MACHINE.
* unexnext.c: New file.
* emacs.c (main) [NeXT]: Call malloc_jumpstart.
1992-10-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* window.c (window_loop): Pass 2nd arg to Fother_buffer.
* frame.c (make_frame): Likewise.
* callint.c (Fcall_interactively): Likewise.
* buffer.c (Fkill_buffer): Likewise.
(Fswitch_to_buffer, Fpop_to_buffer, Fbury_buffer): Likewise.
1992-10-03 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): Treat mouse clicks on non-text
areas as if they were prefixed with the symbol denoting the
area clicked on - `mode-line', etcetera.
When we throw away an unbound `down-' event, reset mock_input as
well.
* keyboard.c (Qevent_symbol_element_mask, Qmodifier_cache): Two
new symbols, used to implement caches on event heads. These take
the place of some of the caching that modify_event_symbol used to do.
(parse_modifiers_uncached, apply_modifiers_uncached,
lispy_modifier_list, parse_modifiers, apply_modifiers): New
functions, which replace format_modifiers and reorder_modifiers;
they can be useful elsewhere too.
(reorder_modifiers, modify_event_symbol): Re-implement these in
terms of parse_modifiers and apply_modifiers. modify_event_symbol
now uses a much simpler cache, and takes advantage of the caches
maintained by parse_ and apply_modifiers.
(follow_key): Don't modify NEXT if KEY has no bindings.
(read_key_sequence): Drop unbound `down-' events, and turn unbound
`drag-' events into clicks if that would make them bound. This
benefits from the rewriting of the modifier key handling code.
(syms_of_keyboard): Initialize and intern
Qevent_symbol_element_mask and Qmodifier_cache.
* keyboard.c (echo_prompt): Terminate the echo buffer properly
even when the string is too long to display in the minibuffer.
(echo_truncate): Just return echoptr - echobuf, rather than
calling strlen on echobuf.
* alloc.c (Fmemory_limit): New function.
(syms_of_alloc): Defsubr it.
* window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,
instead of just saying it's 7; that way, we won't get screwed if
we add members to struct save_window_data.
* window.c (struct save_window_data): Save the currently selected
frame, too.
(Fset_window_configuration): Restore the frame's selected window
using Fselect_window, and then restore the selected frame using
Fselect_frame.
(Fcurrent_window_configuration): Record the currently selected
frame. Update docstring to describe the information now recorded.
1992-10-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* process.c (wait_reading_process_input): Ultrix select seems to
return ENOMEM when interrupted. So, under Ultrix, treat ENOMEM
like EINTR.
* keyboard.c (modifier_names): The modifier is named "control",
not "ctrl".
* keyboard.c (modify_event_symbol): Make sure that the unmodified
event header gets the proper properties set on it, by recursing
and letting the same code build the properties for all event symbols.
* keyboard.c (Qmouse_click): Fix typo which assigned `mouse-click'
symbol to Qmouse_movement.
1992-10-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* undo.c (Fprimitive_undo):
When undoing an insert, move point and then delete.
1992-10-02 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* intervals.c: `copy_intervals' no longer static.
* intervals.h: Declare `copy_intervals'.
* buffer.c: #include intervals.h.
* ymakefile: New macro "INTERVALS", controlled by "USE_INTERVALS",
which defines the interval include file "intervals.h".
New entries for "intervals.c" and "textprop.c".
* lisp.h: Declare Qbuffer_or_string_p.
1992-10-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xterm.c (x_find_modifier_meanings): If there are no
modifiers containing a Meta_ keysym, use the Alt keysyms to
denote meta.
(construct_mouse_click): Set the down_modifier bit on mouse
button press events.
(XTread_socket): When processing keypress events, use
x_meta_mod_mask when processing ordinary ASCII characters, not
just when processing function keys and other non-ASCII events.
(XTread_socket): If we receive a MappingNotify event with the
`request' member set to `MappingModifier', then call
x_find_modifier_meanings to refresh x_meta_mod_mask.
* window.c (Fset_window_configuration): Clean up the way we save
and restore the frame's size.
* termhooks.h (struct input_event): Doc fix.
(NUM_MOUSE_BUTTONS): New constant.
(click_modifier): New modifier.
(NUM_MODIFIER_COMBOS): Removed.
* keyboard.h (EVENT_HAS_PARAMETERS): Definition changed - all events
are not 5 elements long.
(EVENT_HEAD): Work correctly on all sorts of events, not just
events with parameters.
(EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON)
(EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful
anymore; this information may appear twice in an event. These
are replaced by the POSN_ accessors, which are meant to be
composed with the EVENT_START and EVENT_END accessors.
(EVENT_START, EVENT_END): Two new accessors, to get at the
starting and ending position of an event.
(POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON)
(POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to futher
diasassemble the values returned by EVENT_START and EVENT_END.
* keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first
testing for EVENT_HAS_PARAMETERS; EVENT_HEAD works properly on
all sorts of events now.
(read_key_sequence): Use the new accessors to decide in which window
an event occurred.
* keymap.c (access_keymap, store_in_keymap,
Fsingle_key_description): No need to check for
EVENT_HAS_PARAMETERS before using EVENT_HEAD; the latter now
works properly on all sorts of events.
* keyboard.c (Qevent_unmodified): Replaced by...
(Qevent_symbol_elements): New property.
(syms_of_keyboard): Initialize and staticpro the latter, not the
former.
* keyboard.h (Qevent_unmodified): Extern declaration replaced by...
(Qevent_symbol_elements): This.
(EVENT_HEAD_UNMODIFIED): Use the Qevent_symbol_elements
property, rather than the Qevent_unmodified property.
* keyboard.c (readable_events): This doesn't need to scan and
discard mouse release events anymore; it just uses
EVENT_QUEUES_EMPTY.
(kbd_buffer_get_event): No need to skip past mouse release events.
* keyboard.c (button_down_location): New variable, which
stores the location at which each button was pressed, so we
can build a complete drag event when the button is released.
(make_lispy_event): When a button is pressed, record its
location in button_down_location, and turn it into a `down'
event. When a button is released, compare its release
location with its press location, and decide whether to call
it a `click' or `drag' event.
Change mouse movement events to be arranged like click events.
(format_modifiers): Note that the click modifier has no
written representation.
(modifier_names, modifer_symbols): New variables, used to
create the Qevent_symbol_elements property.
(modify_event_symbol): Change the format of the modified
symbol cache; there are too many modifier bits now to use a
vector indexed by a modifier mask. Use an assoc-list instead.
Document the format of the cache.
Put the Qevent_symbol_elements property on each new symbol,
instead of a Qevent_unmodified property.
(symbols_of_keyboard): Put Qevent_symbol_elements properties on
the symbols specified in head_table, not Qevent_unmodifed properties.
Initialize and staticpro modifier_symbols, and staticpro the
window elements of button_down_location.
* xmenu.c: #include "keyboard.h".
(Fx_popup_menu): Use the event accessors defined in keyboard.h,
instead of writing out cars and cdrs.
* ymakefile: Note that xmenu.o depends on keyboard.h.
1992-10-02 Joseph Arceneaux (jla@wookumz.gnu.ai.mit.edu)
* textprop.c: Conditionalize all functions on
"USE_TEXT_PROPERTIES".
* intervals.c: Conditionalize all functions on
"USE_TEXT_PROPERTIES".
Removed #include of "screen.h".
* alloc.c: #include "intervals.h".
(init_intervals, make_interval,
mark_interval, mark_interval_tree): New functions conditionally
defined.
(make_uninit_string): Call INITIALIZE_INTERVAL.
(INIT_INTERVALS, UNMARK_BALANCE_INTERVALS, MARK_INTERVAL_TREE):
New macros, conditionally defined.
(mark_object): Call MARK_INTERVAL_TREE in case Lisp_String.
(gc_sweep): If text properties are in use, place all unmarked
intervals on the free list. Call UNMARK_BALANCE_INTERVALS on
`buffer->intervals' when unmarking `buffer'.
(compact_strings): Include INTERVAL_PTR_SIZE in calculation for
target of bcopy when relocating strings.
(init_alloc_once): Call INIT_INTERVALS.
(make_pure_string): Include INTERVAL_PTR_SIZE in calculation of
`size'.
Moved static declaration of `mark_object' and other functions up
in the file.
* fileio.c (Finsert_file_contents): Call offset_intervals if
text was actually inserted.
#include "intervals.h".
1992-09-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* data.c: Qbuffer_or_string_p added.
* syntax.c (describe_syntax): Use insert_char to insert `match'.
* buffer.c (reset_buffer): Do INITIALIZE_INTERVAL on the buffer's
interval component.
(Fkill_buffer): Likewise.
* editfns.c (make_buffer_string): Call copy_intervals_to_string.
(Finsert_buffer_substring): Call graft_intervals_into_buffer.
#include "intervals.h".
* insdel.c: #include "intervals.h"
(prepare_to_modify_buffer): Call verify_interval_modification.
(insert_from_string): Call offset_intervals and
graft_intervals_into_buffer.
(del_range): Call offset_intervals.
(insert): Call offset_intervals.
* emacs.c: #include "intervals.h".
(main): Call syms_of_textprop. This is only really present if
Emacs is compiled with USE_TEXT_PROPERTIES defined.
* buffer.h: New macro TEMP_SET_PT. If intervals are used, SET_PT
and TEMP_SET_PT are function calls.
Similarly for BUF_SET_PT and BUF_TEMP_SET_PT.
Added DECLARE_INTERVALS to buffer structure to conditionally
compile an interval tree into it.
* intervals.h: Declare temp_set_point.
1992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* ymakefile (config.h): Doc fix.
1992-09-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* config.h.in: Added a slot for definition of USE_TEXT_PROPERTIES,
controlling compilation of interval code.
If using GNUC, support inline functions.
* lisp.h: Conditionally define interval structure and macros.
Add DECLARE_INTERVALS to struct Lisp_String.
1992-09-30 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* buffer.c (Fother_buffer): Add back the VISIBLE_OK argument. It
got removed with no comment or ChangeLog entry, and
append-to-buffer uses it.
* window.c (struct save_window_data): Add a member called
focus_frame, to save and restore the screen's focus frame.
(Fset_window_configuration): Redirect the frame's focus as
indicated in the window configuration.
(Fcurrent_window_configuration): Record the frame's current focus.
* minibuf.c (read_minibuf): Don't bother to save the current
frame's focus, and have read_minibuf_unwind restore it; saving and
restoring the window configurations will take care of that.
(read_minibuf_unwind): Don't worry about restoring the frame's focus.
* window.c (Fset_window_configuration): Don't select the frame
just because we restored its configuration.
* window.c (Fset_window_configuration): Don't forget to set the
frame's selected window when we can't call Fselect_window.
* xterm.c (x_meta_mod_mask): New variable, indicating which X
modifier bits denote meta keys.
(x_find_modifier_meanings): New function, to set x_meta_mod_mask.
(x_convert_modifiers): Use that.
(x_term_init): Call x_find_modifier_meanings.
* data.c (Fmake_local_variable): If SYM forwards to a C variable,
swap in the value for the current buffer immediately.
* lisp.h: Doc elaboration for Lisp_Buffer_Local_Value.
1992-09-29 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* textprop.c (Ferase_text_properties): Merge intervals when
possible.
1992-09-29 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xselect.c (Qcut_buffer0): Symbol removed; we're using a new
interface to the cut buffer now.
(NUM_CUT_BUFFERS, cut_buffer_atom, cut_buffer_value)
(cut_buffer_cached, cut_buffer_just_set): New variables.
(Fx_own_selection, Fx_selection_value): Dike out the code to
handle CUT_BUFFER0 requests.
(Fx_get_cut_buffer, Fx_set_cut_buffer, x_watch_cut_buffer_cache)
(x_invalidate_cut_buffer_cache): New functions.
(syms_of_xselect): Don't bother to initialize Qcut_buffer0.
Initialize and staticpro cut_buffer_value, and defsubr
Sx_get_cut_buffer and Sx_set_cut_buffer.
* xterm.c (XTread_socket): Pass PropertyNotify events from the
root window to x_invalidate_cut_buffer_cache.
(x_term_init): Call x_watch_cut_buffer_cache here.
* keymap.c (access_keymap): Don't forget to QUIT while scanning
the keymap.
* keyboard.c (recent_keys): This needs to be staticpro'ed. Change
it from a C array, which is a pain in the neck to staticpro, into
a lisp vector, which is easier.
(read_char, Frecent_keys): Access recent_keys as a lisp vector,
not a C array.
(syms_of_keyboard): Set recent_keys to be a vector, and staticpro it.
* ymakefile (xfns.o): This doesn't depend on xselect.c.
* xterm.h (ROOT_WINDOW): Use the DefaultScreen macro, not the
XDefaultScreen function.
* frame.c (Fdelete_frame): Call Fselect_frame with the appropriate
number of arguments.
* data.c (Frem): Use the `fmod' function under SunOS, Ultrix, and
HP/UX, not just under USG systems.
* buffer.c (Fbury_buffer): This used to undisplay the buffer being
buried only if the BUFFER argument was nil. Instead, undisplay the
buffer whenever it's displayed in the selected window, no matter
how it was specified by BUFFER. This is how it behaves in 18.58,
and I can't find any ChangeLog entry in 18.58 or 19.0 saying why
they differ. Fix the doc string accordingly.
1992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* frame.c (Fselect_frame, Fframe_root_window)
(Fframe_selected_window, Fnext_frame, Fmake_frame_visible)
(Fmake_frame_invisible, Ficonify_frame): Doc fixes.
* ralloc.c: Since the users of the relocating allocation code
handle memory exhaustion, it's better to return an error code to
them than to call abort.
(obtain): If we cannot allocate more memory, don't call
abort. Instead, return non-zero iff the allocation is successful.
(get_more_space): If obtain fails, return zero.
(get_bloc): Return zero if we can't allocate the new bloc.
(r_alloc_sbrk): Return zero if we can't allocate more memory.
(r_alloc): If we can't allocate more memory, set *PTR to zero and
return zero.
(r_re_alloc): If we can't allocate more memory, leave *PTR
unchanged, and return zero.
* ralloc.c (warnfunction): Renamed to warn_function; users changed.
1992-09-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* insdel.c (del_range): Call record_delete before updating point.
* fileio.c (Finsert_file_contents): Do record_insert, then inc MODIFF.
* undo.c (record_delete): Record pos before the deletion.
(Fprimitive_undo): Go back to recorded position.
1992-09-28 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* window.c (delete_all_subwindows): Save the window's buffer in
its `height' field; we may need to know the window's old buffer
once we have restored it from a window configuration.
(Fset_window_configuration): When we restore a window, if its
`height' field is a buffer, restore its `buffer' field from that.
This allows us to leave the window's buffer unchanged if the
buffer recorded in the configuration is dead.
* window.c (delete_all_subwindows): Removed unused variable named
"count".
1992-09-27 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (read_char): If we're returning an event from a
macro, set Vlast_event_frame to Qmacro, instead of leaving it set
to the frame of the previous real event.
(read_key_sequence): If Vlast_event_frame isn't a frame, don't
bother switching buffers.
(syms_of_keyboard): Doc fix for Vlast_event_frame.
(Vlast_event_frame): Doc fix.
* termhooks.h (alt_modifier, hyper_modifier, super_modifier)
(down_modifier, drag_modifier): New modifiers, to support the new
input system. Re-arranged modifiers so that their bits are in
canonical order; this makes reorder_modifiers slightly simpler.
* keyboard.c (format_modifiers, reorder_modifiers): Handle the new
modifier bits.
* keymap.c (access_keymap): Remove code to notice bindings for
Qt.
1992-09-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xmenu.c (single_keymap_panes): Handle vectors properly.
1992-09-25 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keymap.c (Fwhere_is_internal): Don't forget to advance map to
the next element when we find something that is neither a vector
nor a cons. Don't forget to QUIT in the appropriate places,
either.
1992-09-23 Joseph Arceneaux (jla@geech.gnu.ai.mit.edu)
* textprop.c (Fset_text_properties): Merge adjacent intervals with
the same properties.
(Fnext_single_property_change, Fprevious_single_property_change):
New subrs.
* intervals.c (merge_interval_left, merge_interval_right): Abort
if caller tries to merge first (or last, respectively) interval.
Delete the interval node after merging.
(copy_intervals): Use `split_interval_right' rather than creating
new intervals with make_new_interval and attaching them
explicitly.
(verify_interval_modification): Changed error message. GCPRO
hooks before calling Fnreverse, and correctly Fcdr down the list.
Also, don't cons multiple copies of the same consecutive
modification hook.
(temp_set_point): New function.
(set_point): Call point-left and point-entered hooks if moving
between text with different properties. Use the old and new
positions as arguments to these calls.
* intervals.c, intervals.h (map_intervals, make_buffer_interval)
(make_string_interval, run_hooks): Deleted.
1992-09-23 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keymap.c (DENSE_TABLE_SIZE): Doc fix.
(keymap_table): Function removed; this function exists only to
support an incorrect understanding of the format of keymaps.
(access_keymap, store_in_keymap, Fcopy_keymap)
(Faccessible_keymaps): Correctly handle vectors at any point in the
keymap; don't assume it must be at the front.
(describe_map): Instead of calling describe_vector on the vector
in the cadr of the keymap (if present) and then calling
describe_alist to do the rest, just call describe_map_2.
(describe_alist): Renamed to describe_map_2; call describe_vector
when we encounter a vector in the list.
* xmenu.c (single_keymap_panes): Comment out the code which
tries to handle a dense keymap's table; it uses keymap_table, and
the rest of the code never uses the table contents anyway.
* keymap.c (access_keymap, store_in_keymap): Clarify error message
for non-ASCII characters.
* process.c [SIGCHLD && !BSD && !UNIPLUS && !HPUX]
(create_process): #if 0 out the code which sets the child's
handler for SIGCHLD to sigchld; the code which gives sigchld its
value has been diked out under these CPP symbols, so this should
be diked out too.
* indent.c (Fmove_to_column): Pass the right number of arguments
to Findent_to.
1992-09-22 Jim Blandy (jimb@kropotkin.gnu.ai.mit.edu)
* emacs.c (emacs_priority): Doc fix.
(main): Use nice, not setpriority; we just need a
simple, portable call to nice here.
* callproc.c (child_setup): Use nice, not setpriority.
* sysdep.c (sys_suspend): Don't try to use "nice (- nice (0))" to
set the subshell's priority to normal; nice doesn't return a
defined value on all systems. Instead, since emacs_priority gives
the priority that Emacs was nastied to, we can use it to reset the
priority in a straightforward way.
[BSD4_1], [USG], [VMS] (setpriority): Remove dummy and
compatibility definitions of setpriority.
* keymap.c (access_keymap): Return the binding of Qt as the
binding for all unbound characters.
* fileio.c (syms_of_fileio): Don't try to defsubr Sunix_sync
unless it's actually been defined - that is, if unix is #defined.
* xrdb.c (x_get_resource): Cast the value being assigned to
ret_value->addr, rather than ret_value->addr itself; only GCC
allows you to cast lvalues.
* eval.c (unbind_catch): Do the long-jump here. Take a VALUE
argument, which specifies the value to return to the catch, or the
data to give to the condition handler. Renamed to
unwind_to_catch, to reflect new role.
(Fsignal, Fthrow): Removed code to set catch tag value and do the
long-jump; this is taken care of by unwind_to_catch.
1992-09-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* alloc.c (mark_object): Avoid car recursion on cons with nil in cdr.
Avoid recursion on constants-vector of a compiled function.
* oldXMenu: Symlink deleted; anything that uses it needs fixing
in any case to work properly on systems without symlinks.
1992-09-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/sol2.h: New file.
* fileio.c: Don't include sys/dir.h.
* s/usg5-4.h (LIBS_SYSTEM): Move non-default libraries here.
(LIB_STANDARD, START_FILES): Deleted.
(ORDINARY_LINK): Defined.
* ymakefile [ORDINARY_LINK]: Default LD to $(CC)
and make START_FILES and LIB_STANDARD empty.
(C_SWITCH_X_MACHINE, C_SWITCH_X_SYSTEM): New macros, default empty.
(CFLAGS): Use them.
1992-09-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (${etc}DOC): Use OBJECTS_SYSTEM and OBJECTS_MACHINE.
* dired.c [VMS]: Include string.h, rms.h, rmsdef.h.
[VMS] (Ffile_version_limit): New function.
* sysdep.c (sys_suspend): Read EMACS_PARENT_PID envvar for parent.
* syntax.c (scan_lists): When searching back for comment:
if comment-end is 2 chars, assume it does end a comment.
Otherwise, scan back to previous comment-end to see if there's
a comment starter between. Also record whether the string quotes
between the start and the end are paired and uniform.
If so, skip to comment starter. If not, scan from start of
defun to find comment starter if any.
(find_defun_start): New function.
* alloc.c (mark_object): Save last 500 values of objptr.
Check for clobberage of ptr, when marking a vector.
1992-09-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keymap.c (get_keyelt): Skip menu help string after menu item name.
1992-09-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* buffer.c (Fget_buffer_create): Doc fix.
* lisp.h (struct handler): Remove the poll_suppress_count member
of this structure; it is always equal to the poll_suppress_count
of its catchtag structure. The non-local exit code in eval.c is
difficult enough to understand as it is; needless duplication
doesn't help.
* eval.c (Fcondition_case): Rearranged for clarity. Don't worry
about setting h.poll_suppress_count; it's guaranteed to be the
same as c.poll_suppress_count.
(internal_condition_case): Don't worry about
h.poll_suppress_count.
(Fsignal): Use h->tag->poll_suppress_count instead of
h->poll_suppress_count.
* eval.c (Fsignal): It's okay for the debugger to return to the
caller if the caller was signalling a quit.
* eval.c (unbind_catch): Restore the polling suppression count
here, instead of in Fsignal and Fthrow.
(Fthrow, Fsignal): Don't restore the polling suppression count here.
* lisp.h (struct specbinding, struct handler): More documentation.
* eval.c (struct catchtag): More documentation.
1992-09-17 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (LIBX): Don't use -loldX.
1992-09-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* minibuf.c (get_minibuffer): Enable undo in minibuffers.
1992-09-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (LIBXMENU): Check NO_X_MENU, not HAVE_X_MENU
* emacs.c (main): Use X menu code if HAVE_X_WINDOWS and not NO_X_MENU.
* keyboard.c (read_char_menu_prompt): Likewise.
* config.h.in: Delete everything about config.h.
* emacs.c: Eliminate HIGHPRI as compilation option.
(emacs_priority): New C variable, also Lisp variable.
(main): Set the priority iff emacs_priority is nonzero.
1992-09-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* eval.c (entering_debugger): Variable renamed
when_entered_debugger, and is now a timestamp based on
num_nonmacro_input_chars.
(init_eval): Initialize when_entered_debugger, not
entering_debugger.
(call_debugger): Set when_entered_debugger to the current value of
num_nonmacro_input_chars.
(find_handler_clause): Don't call debugger unless
num_nonmacro_input_chars is greater than when_entered_debugger;
that way, we won't call the debugger unless the user has had a
chance to take control.
(Fbacktrace): Don't clear entering_debugger here.
* keyboard.h (num_nonmacro_input_chars): Added extern declaration
for this.
* fns.c (Fy_or_n_p): After testing for a QUIT, clear Vquit_flag.
Otherwise, if Fy_or_n_p is called while Vinhibit_quit is true and
the user presses C-g, this function goes into an infinite loop.
* dispnew.c (get_display_line): Don't abort if the frame is
invisible; since unmap events are handled at the interrupt level,
a screen may become invisible at any time.
1992-09-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Fverify_visited_file_modtime):
Pass buffer itself to handler, if have handler.
(Fwrite_region): GCPRO around Fexpand_file_name, Ffile_name_directory.
(Fread_file_name_internal): GCPRO around file name manip.
(Ffile_writable_p, Ffile_readable_p): Use abspath, not filename,
(Ffile_executable_p, Ffile_exists_p): to run the handler.
(Fset_file_modes, Ffile_directory_p, Ffile_modes): Likewise.
(Ffile_newer_than_file_p): GCPRO around expand_and_dir_to_file.
1992-09-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* s/bsd4-3.h: Give the BSD4_3 and BSD symbols the same numeric
definitions they'll get in <sys/param.h>, to avoid warnings.
* m/hp9000s300.h: Don't include <sys/wait.h>. This really
shouldn't be necessary.
(BIG_ENDIAN): Define this as "4321", to agree with
<machines/endian.h>, and avoid warnings.
* systime.h: Re-arrange inclusion of <sys/time.h> and <time.h> so
that they don't both get included under BSD, and do both get
included under AIX.
* xdisp.c (display_mode_line): If the only other frames are
minibuffer frames, don't name the frame after the in the selected
window. We can use Fnext_frame to do this test easily.
1992-09-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* process.c (Faccept_process_output): Initialize useconds.
* keyboard.c (num_nonmacro_input_chars): New variable.
(read_char): Use num_nonmacro_input_chars to decide on auto-save & gc.
Increment it when appropriate.
(record_auto_save): Use num_nonmacro_input_chars.
* fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
(Ffile_name_as_directory, Fdirectory_file_name, Fexpand_file_name):
Call find_file_handler.
(syms_of_fileio): Set up Qfile_name_directory, etc.
(Fcopy_file): Call find_file_handler for newname as well as for filename.
(syms_of_fileio): Initialize Vfile_name_handler_alist.
1992-09-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callint.c (Fcall_interactively): Remove the 'K' interactive
code, in favor of 'e'; that's a better name.
1992-09-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s/esix5r4.h: New file.
* sysdep.c (init_sys_modes): Handle VDSUSP like V_DSUSP.
Use CDISABLE, not CDEL.
Turn off IEXTEN if it exists.
* systty.h (CDISABLE): New macro; may be defined from CDEL.
* keyboard.c (command_loop_1): Bind inhibit-quit to t when in Fsit_for.
1992-09-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* Makefile.in: Add comments starting with "# DIST: " explaining
that this gets munged by the configure script.
1992-09-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s-aix3-1.h (HAVE_GETHOSTNAME): Defined.
1992-09-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* frame.c (choose_minibuf_frame): Abort if the selected frame has
nil in its minibuffer_window slot; this shouldn't happen any more.
* window.c (minibuffer_window): Accept an optional FRAME argument;
if specified, return the minibuffer used by that frame.
* keymap.c (describe_buffer_bindings): Adjust key_heading to match
the format used by describe_map_tree. Also, don't reprint the
"key binding" header above the global bindings if we've already
printed it for the local bindings; it's clear enough that the
columns mean the same thing as above.
1992-09-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* ralloc.c (r_re_alloc): Instead of allocating a new bloc at the
end of the heap, copying the data to it, and then freeing the
original bloc, just expand the original block. This saves a copy
and a call to sbrk, and also removes the large spike in memory
allocation that would occur when resizing large buffers. And it's
less code.
* keyboard.h (Vkeyboard_translate_table): Declare this extern
here, so describe_buffer_bindings can use it.
* keymap.c (describe_buffer_bindings): Declare buf and bufend...
1992-09-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* systime.h: Always #include <time.h>, not just when NEED_TIME_H
is defined. It gets us struct tm. #include <sys/time.h> whenever
HAVE_TIMEVAL is defined and NEED_TIME_H isn't.
* systime.h: Note that the tz_dsttime field of the struct timezone
returned by gettimeofday doesn't say whether daylight saving is
_currently- active; rather it specifies whether it is *ever*
active.
(EMACS_GET_TZ_OFFSET_AND_SAVINGS): Removed `savings_flag'
argument, and renamed to EMACS_GET_TZ_OFFSET. Don't try to
extract savings information. EMACS_CURRENT_TIME_ZONE should call
localtime to figure out whether DST is active.
* m/hp9000s300.h: #include <sys/wait.h> before doing anything
else, to avoid conflicts between the system's and Emacs's
definitions of BIG_ENDIAN.
* keymap.c (describe_buffer_bindings): Set the current buffer to
descbuf before calling current_minor_maps; that function's value
depends on the values of buffer-local variables. Don't set the
current buffer to Vstandard_output until afterwards.
* keymap.c (describe_buffer_bindings): If
Vkeyboard_translate_table is in effect, describe its effects.
* frame.c (Fnext_frame): Doc fix.
* frame.c (prev_frame): #if 0'd out; nobody uses this.
* frame.c (next_frame): The logic which determines whether a frame
is acceptable to return was misarranged; rewrote it.
(prev_frame): Same thing.
1992-09-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* syntax.c (scan_lists): Improve smarts for backwards scan of comments.
Don't modify comstyle inside that loop.
If string quotes don't match up, don't take value from OFROM;
instead, parse forward using scan_sexps_forward.
(scan_sexps_forward): Return value via a pointer passed in.
New element in state contains char addr of last comment-starter seen.
(Fparse_partial_sexp): Change call to scan_sexps_forward.
1992-09-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xmenu.c (xmenu_show): If no panes, just return.
* keyboard.c (last_nonmenu_event): New var.
(syms_of_keyboard): New Lisp var.
(read_key_sequence): Use that instead of prev_event.
* commands.h (last_nonmenu_event): Declared.
* callint.c (Fcall_interactively): For `K', use last_nonmenu_event.
Make `e' alias for `K'.
1992-09-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* editfns.c (Fcurrent_time_string): Change docstring to
indicate that we will probably add the timezone to the end,
now that we have it available on many systems.
* xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidly
insists on defining SIGCHLD, even if it already has a definition.
(file_p): Use the constant 4 instead of R_OK; empirically, the
number is more portable than the symbol if you count the #include
hair you have to go through to get R_OK defined. Ffile_readable_p
does this too.
* xterm.c (x_wm_set_size_hint): Set the base_width and base_height
members of size_hints, if they're available (X11R4 and after);
otherwise, approximate the right thing, by using min_width and
min_height as the base size.
1992-09-02 Barry A. Warsaw (warsaw@anthem.nlm.nih.gov)
Extended syntax.c in the following ways to support up to 2
orthogonal comment styles per mode. This is needed for C++.
Bit 6 of syntax table entry for a character indicates
it is part of the `b' comment style. Otherwise it is
part of the `a' style.
* syntax.h (SYNTAX_COMMENT_STYLE): New macro.
* syntax.c (Fmodify_syntax_entry): Set that flag for `b'.
(describe_syntax): Print the `b' flag.
(scan_lists, scan_sexps_forward): Handle the new flag.
(Fparse_partial_sexp): Return new element in value.
1992-09-02 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* fileio.c (syms_of_fileio): Doc fix for Vfile_name_handler_alist.
1992-09-02 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (kbd_buffer_get_event): When performing the
FRAME_FOCUS_FRAME redirection, don't modify the frame field of
the event; that fatally corrupts mouse click events. Instead,
just perform the redirection on the value assigned to
Vlast_event_frame.
* callint.c (Fcall_interactively): Don't try to get the
`enable-recursive-minibuffers' property from FUNCTION unless
FUNCTION is actually a symbol; there are some cases where a key
sequence is bound directly to a lambda form, and there's no reason
to break these.
* window.c (Fset_window_configuration): Don't signal an error
if the frame size saved in the window configuration doesn't
match the frame's current size; instead, temporarily resize
the frame while installing the window configuration. This is
important because using the minibuffer saves and restores the
current window configuration, and you don't want to signal an
error just because the user resized the frame while using the
minibuffer.
* doc.c (Fsnarf_documentation): Signal an error if this is
called in a dumped Emacs.
* alloc.c (mark_object): Mark a symbol's name after marking its
value, function, and property list rather than before; this way,
symbols' names are readable, giving us a chance to detect some
kinds of heap corruption.
1992-09-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* emacs.c (__main, __do_global_dtors): New dummy functions.
(__do_global_ctors_aux, __do_global_ctors): Fix typo in fn names.
1992-09-01 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* prefix-args.c: New file. See comment at top of file.
* ymakefile (YMF_PASS_LDFLAGS): Use the prefix-args program to
affix the -Xlinker prefix to the linker arguments.
(prefix-args): New target.
(temacs): Depend on prefix-args.
* xterm.c (x_catch_errors): Don't forget to initialize
x_caught_error_message to the null string, so x_check_errors can
tell when an error has occurred.
* unexmips.c (mark_x): Declare this as static void at the top of
the file and at the function definition.
* keyboard.c (input_available_signal): Declare this to return
SIGTYPE.
* xrdb.c (getuid): Declare this to return short.
* s/bsd4-3.h: Remove definition of SIGTYPE macro; Mt. Xinu says
it's int, but Ultrix says it's void. Since the SIGTYPE guessing
code in the `configure' script gives the correct answer for both
of these cases, there's no point in listing it here.
* systime.h (EMACS_CURRENT_TIMEZONE): Change documentation to
indicate that *OFFSET should be set to the number of minutes EAST
of Greenwich, which is what Ed Reingold says real time gurus want.
Changed the definition of the EMACS_GET_TZ_OFFSET_AND_SAVINGS
macro to reflect this. Buggily, the Fcurrent_time_zone function
was already expecting minutes east of GMT.
* Makefile.in (distclean): Remove backups from the `m' and `s'
directories, too.
* m/mips.h: Merge changes from Emacs 18.58:
[NEWSOS5]: Changes so this file can be used with s/newsos5.h.
(SIGN_EXTEND_CHAR): Define this using a cast to signed char. I
guess the MIPS compiler and its derivatives all have this type.
(HAVE_ALLOCA, C_ALLOCA): Define the former if we're compiling with
GCC, and the latter otherwise.
(C_SWITCH_MACHINE): Defined, instead of C_SWITCH_SYSTEM.
(LINKER): Defined, if BSD.
(XUINT, XSET, XUNMARK): Add parentheses to eliminate warnings from
GCC. Reindent to fit in 80 columns.
INHIBIT_BSD_TIME prevents including bsd/sys/time.h.
* s/newsos5.h: New file for Sony NEWS-OS release 5, courtesy of
Chris Hanson <cph@klia.ai.mit.edu>.
* m/mips.h: Don't undefine LOAD_AVE_TYPE; the comment says that
Emacs 19 has the crocks to handle it properly.
* m/pmax.h: Merge changes from Emacs 18.58:
(LIB_STANDARD, COFF, TERMINFO): Cancel out definitions from
m/mips.h which are only appropriate for USG.
(MAIL_USE_FLOCK, HAVE_UNION_WAIT): Do define these.
(BROKEN_O_NONBLOCK): Defined.
(LINKER): Don't define this.
[OSF1]: Undef C_ALLOCA, define HAVE_ALLOCA.
* s/osf1.h: New file.
* s/bsd4-3.h: Merge changes from Emacs 18.58:
(BSD, BSD4_3): Just define these, don't fret about numerical
values or version numbers.
* m/hp9000s300.h: Merge changes from Emacs 18.58, and hp300bsd.h:
Change configuration note to say it's okay to use this file for BSD.
Add comment saying that NOMULTIPLEJOBS must be defined for
versions of HP/UX before 6.5.
Don't define BIG_ENDIAN if it seems that <endian.h> has already
done so.
[BSD4_3] Define m68000, instead of hp9000s300; crt0.c uses these
to decide what sort of startup code to use.
[not BSD4_3] Under HP/UX, always define the BSD memory functions
(bcopy, bzero, and bcmp) in terms of the SYSV string functions
(memcpy, memset, and memcmp), not just under HP/UX 5; version 6's
BSD compatibility library has reported bugs in `signal'.
(NEED_BSDTTY): Move this symbol's definition inside the "not
BSD4_3" conditional, since it's only relevant to HP/UX.
* m/hp300bsd.h: File deleted, since m/hp9000s300.h now
works with both HP/UX and BSD; it includes m/hp300bsd.h's
specifications.
* m/hp9000s300.h: Remove definition for SIGN_EXTEND_CHAR; this is
only used by the regexp code, which has its own portable
definition these days.
1992-08-31 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keymap.c (Fmake_sparse_keymap): New optional arg. Callers changed.
(Fmake_keymap): Likewise.
* emacs.c (__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
* fileio.c (Fdo_auto_save): Always call record_auto_save.
* keyboard.c (read_char): Call read_char_menu_prompt here.
Accept 4 new args to pass to it. Include them in recursive call.
Don't delay before starting echo if prev_event was a mouse event.
Test for eof in batch mode now understands C is a Lisp_Object.
(read_key_sequence): Don't call it here; always call read_char.
Don't change last_event_buffer after a mouse menu input.
(read_char_menu_prompt): Arg PROMPT deleted.
Return nil if nothing to do.
* xmenu.c (Fx_popup_menu): Treat coords relative to spec'd window.
(single_keymap_panes): New function; contains guts of keymap_panes.
If a command binding for submenu has a prompt string starting with @,
make a separate pane for it at this level.
* xfns.c (Fx_track_pointer): Pass new args to read_char.
(Fx_select_region, Fx_horizontal_line): Likewise.
* lread.c (Fread_char): Pass new args to read_char.
(Fread_event, Fread_char_exclusive): Likewise.
* fns.c (Fy_or_n_p): Pass new args to read_char.
1992-08-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): Keep track of prev_event.
Pass new proper args to read_char_menu_prompt.
(read_char_menu_prompt): New arg prev_event. Use Fx_popup_menu.
Handle any number of keymaps, not just LOCAL and GLOBAL.
Invert meaning of arg PROMPT. Test of menu_prompting was backwards.
* keymap.c (keymap_table): No longer static.
* xmenu.c (keymap_panes): New function.
(Fx_popup_menu): Accept keymap or list of keymaps as MENU argument.
Accept mouse button event as POSITION argument.
1992-08-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* cmds.c (internal_self_insert): Assume Fexpand_abbrev expanded
something if it incremented MODIFF.
1992-08-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* unexmips.c (unexec): Allow sections in any order.
Adjust addresses of rdata section as well as data section.
* buffer.c (syms_of_buffer): Made buffer-display-table,
buffer-field-list and buffer-undo-list allow any type of value.
1992-08-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fns.c (Fappend): Doc fix.
1992-08-24 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* s/usg5-4.h: Incorporate changes from 18.58:
(LIBX10_SYSTEM): Undefine this.
(GNULIB): Definition deleted -- done in ymakefile.
(LIB_STANDARD): Don't use GNULIB.
(HAVE_TCATTR): Defined.
* xfns.c (x_icon): Don't call x_wm_set_icon_positions if the user
hasn't specified the icon position. Let the window manager put
the icon where it likes.
* xterm.c (x_make_frame_invisible): Don't forget to check the
return value of XWithdrawWindow; it could indicate that the window
wasn't successfully redrawn.
* sysdep.c (init_baud_rate): Re-arranged order of conditionals -
test TERMIOS before TERMIO; when two options might both be
defined, test the most recent first, so that the most recent
functions get used.
* sysdep.c [HAVE_TERMIO] (init_baud_rate): Don't use tcgetattr
unless HAVE_TCATTR is defined. Only very rarely do termio systems
have the tc{get,set}attr macros.
* window.c (coordinates_in_window): Do not assume that all
one-line windows are the minibuffer, or that all minibuffers are
one line high. Use MINI_WINDOW_P.
* systerm.h: Renamed to systty.h, to be more consistent with
everything else in Unix.
* dispnew.c, emacs.c, keyboard.c, process.c, sysdep.c: #include
directive changed.
* ymakefile: References to systerm.h changed.
* s/usg5-3.h: Merged changes from 18.58:
(HAVE_SYSV_SIGPAUSE): Defined.
(BROKEN_TIOCGETC): Defined.
1992-08-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* process.c (WCOREDUMP): Define only if not defined.
(create_process) [HAVE_SETSID]: Use TIOCSCTTY if exists.
1992-08-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* fileio.c (Fdo_auto_save): Call Fsleep_for with the appropriate
number of arguments.
* fns.c (Fyes_or_no_p): Same.
* dispnew.c (update_frame): Change the way we handle
cursor_in_echo_area. Firstly, ignore this if the frame we're
updating doesn't have a minibuffer. Secondly, don't handle the
selected frame specially. Thirdly, don't assume that the
minibuffer is only one line high. If cursor_in_echo_area < 0, put
the cursor in the upper-left corner; if cursor_in_echo_area > 0,
put it on the lowest non-empty line in the minibuffer window, or
on the top line.
* dispnew.c (direct_output_for_insert): Fail if
cursor_in_echo_area is set; we don't want to do the typing there.
(direct_output_for_insert): Same.
1992-08-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (x_make_frame_invisible): Use XWithdrawWindow when
available [HAVE_X11R4]; send the UnmapNotify event when
appropriate [HAVE_X11]; just unmap the window if that's all that's
needed [not HAVE_X11].
* xterm.c (x_set_text_property): Removed; it's only called from
one place. Who wants *another* layer of indirection?
* xfns.c (x_set_name): Use XSetWM{Name,IconName} when available
[HAVE_X11R4], or XSetIconName and XStoreName otherwise.
* xterm.h (FRAME_X_WINDOW): New macro, for readability.
* xterm.c, xfns.c, xselect.c: Use it.
* emacs.c (Fkill_emacs): Doc fix.
(syms_of_emacs): Doc fix for Vkill_emacs_hook.
* xterm.c (x_death_handler): Renamed to x_connection_closed.
(x_term_init): Use x_connection_closed as the SIGPIPE handler.
* xterm.c (acceptable_x_error_p, x_handler_error_gracefully,
x_error_handler): Removed; you can't catch X errors this way,
since you can't perform X operations from within an X error
handler, and even though we call error, we're still within an X
error handler.
(x_error_quitter, x_error_catcher): New functions, for panicking
on and catching X protocol errors.
(x_caught_error_message): Buffer for caught X errors.
(x_catch_errors, x_check_errors, x_uncatch_errors): New functions
for catching errors.
(x_term_init): Set the error handler to x_error_quitter, rather
than x_error_handler.
* xfns.c (x_set_mouse_color): Use x_catch_errors, x_check_errors,
and x_uncatch errors to avoid crashing if the user selects an
odd cursor.
* xterm.c (x_proto_requests): Removed; it's not important.
* xterm.c (events): Array removed; it's not used.
* xfns.c (select_visual): Use XVisualIDFromVisual when available
[HAVE_X11R4].
* xrdb.c (get_user_db): Use XResourceManagerString when available
[HAVE_X11R4].
* window.c (change_window_height): If the size of the window will
shrink below the minimum, this code would only try to delete it if
it had a parent. Well, even if the window doesn't have a parent,
you want Fdelete_window to signal an error, since you're trying to
resize one of the undeleteable windows into nothingness. So call
Fdelete_window even if the window doesn't have a parent.
* window.c (MINSIZE): Add kludge so that the minibuffer is always
allowed to shrink to one line in height.
(MINSIZE, CURBEG, CURSIZE): Change these so that their argument
are always Lisp_Objects, not struct window *'s.
(change_window_height): Changed accordingly.
1992-08-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* frame.h (struct frame): New member - explicit_name.
* frame.c (make_frame): Clear it.
* xfns.c (x_set_name): Take new argument EXPLICIT, instead of
OLDVAL.
(x_explicitly_set_name, x_implicitly_set_name): New functions.
(x_frame_parms): Use x_explicitly_set_name here.
(x_window): Use x_implicitly_set_name here.
* xdisp.c (display_mode_line): Use x_implicitly_set_name here.
* xterm.c (x_wm_hints): Variable deleted. This has to be
per-screen. Duh.
* xterm.h (struct x_display): New member: wm_hints.
* xterm.c (x_wm_set_window_state, x_wm_set_icon_pixmap,
x_wm_set_icon_position): Use F->wm_hints, rather than x_wm_hints.
(x_term_init): Don't initialize x_wm_hints here.
* xfns.c (Fx_create_frame): Instead, initialize f->x_wm_hints
here.
* xterm.c (x_set_text_property): Properly balance the BLOCK_INPUTs
and UNBLOCK_INPUTs. And remember that VALUE is the string we want
to set the name to, not PROPERTY.
1992-08-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* frame.c (make_minibuffer_frame): Don't set this to auto-raise by
default. It's annoying.
* frame.c (make_minibuffer_frame): Set the prev field of the
minibuffer window on a minibuffer-only frame to Qnil, rather than
having it point to itself. This confuses code (Fprevious_window
and change_window_height, for example), and is only an attempt to
support a convention that can't really be used in Emacs 19 anymore.
* window.h: Document the fact that we can no longer assume that
the minibuffer's previous window is the root window, since a
minibuffer window in a minibuffer-only frame has a prev field of
nil.
* frame.h [not MULTI_FRAME] (FRAME_ROOT_WINDOW): Define this by
reference to the_only_frame.root_window, rather than by assuming
that minibuf_window->prev is the root window. While this is true
in the non-multi-frame case, we want to discourage this assumption
in code.
* dispnew.c [not MULTI_FRAME] (Fredraw_display): Use
FRAME_ROOT_WINDOW instead of minibuf_window->prev.
* xdisp.c (redisplay, init_xdisp): Same.
* window.c (Fset_window_configuration): Removed #if 0'd code which
assumes that minibuf_window is on the same frame as the window
configuration. Removed special case for windows whose prevs
point to themselves.
* window.c (Fset_window_configuration): Rename the argument from
ARG to CONFIGURATION, so it matches the docstring. The
make-docfile program cares.
* window.c [MULTI_FRAME] (syms_of_window): Don't staticpro
minibuf_window; the frame list will take care of it.
* xterm.h (HAVE_X11R4): Since we can autodetect this, and can
write code more likely to be future-compatible, define this when
appropriate.
* xterm.c (x_set_text_property): Define this appropriately for
X11R3 and X11R4.
* xterm.c (x_set_text_property): Make this take a Lisp_Object
string as an argument, rather than a pointer and a length.
* xfns.c (x_set_name): Caller changed.
* xfns.c (x_get_arg): Accept a new type - symbol. If we've
retrieved a string from the xrdb database and the user wants a
symbol, intern it.
(Fx_create_frame): Use the symbol type here.
* xfns.c (x_figure_window_size, x_icon, Fx_create_frame): Use
values from enum resource_types for the last arg to x_get_arg,
instead of passing numbers.
* xfns.c (Fx_create_frame): When setting up the scroll bars, use
the type parameter to x_default_parameter, rather than prefixing
the resource name with a question mark.
* xfns.c [not HAVE_X11] (Fx_create_frame): The resource which
determines whether or not to use a bitmapped icon is called
"IconType", not "BitmapIcon". Update this.
1992-08-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c: Doc fixes.
More SYSV portability changes from Eric Raymond:
* xterm.c [USG5]: Don't include <sys/types.h>.
* xterm.c (x_make_frame_invisible): Instead of calling XWithdraw
window, which isn't widely available, write out what it does,
since that's not much.
(x_iconify_frame): Explicitly perform both the X11R3 and X11R4
methods for iconification; don't use XIconifyWindow, since that's
not present in R3.
* xterm.c (x_wm_set_size_hint): Don't bother setting the
base_width and base_height members; their function is performed
just as well by the min_width and min_height members, and if we
use XSetNormalHints instead of XSetWMNormalHints, we can be
compatible with R3.
* xterm.c (x_error_handler): There is no way to invoke the default
error handler which works on all versions of X11, so don't bother;
call XGetErrorText and print the message ourselves.
* xterm.c (x_term_init): Don't use MAXHOSTNAMELEN; this isn't
defined on all systems. Since we only use that as an initial
guess anyway, it's not very important.
1992-08-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* abbrev.c (Fexpand_abbrev): If pre-expand hook changes the buffer,
assume that means we "did an expansion".
* cmds.c (internal_self_insert): Ignore value of Fexpand_abbrev;
instead, check whether buf is modified when it returns.
1992-08-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
Applied SYSV portability changes from Eric Raymond:
* xrdb.c [USG5]: Define SYSV, and then include <unistd.h>.
Apparently, Xlib.h include string.h if SYSV is defined, and
strings.h if not.
Don't include <sys/types.h>; just declare getuid to return an
int. Big deal.
(MAXPATHLEN): If this is not defined by the system's include
files, give it a value of 256.
(get_user_db): Fetch the defaults directly from the display
structure, rather than using XResourceManagerString; that
function doesn't exist in the older versions of X.
* xterm.c (x_set_text_property): New function.
* xfns.c (x_set_name): Use it instead of XSetWMName and
XSetWMIconName.
* xfns.c (select_visual): Fetch the visual id directly from v;
don't call XVisualIDFromVisual, since that function is not
available in earlier versions of X.
* term.c (term_get_fkeys): Some systems define `static' to be the
empty string, which means that you can't have constant
initialized arrays inside a function. So move the `keys' array
outside of the function.
* xdisp.c (decode_mode_spec): Same deal, with lots_of_dashes.
* xfns.c (x_make_gc): Same deal, regarding cursor_bits.
* term.c (keys): Include definitions for "K2" (the center key on
an IBM keypad), "F1" (F11), and "F2" (F12). Handle "k0" and "k;"
specially; see the code for details.
* term.c (clear_end_of_line): Remember that on some systems,
"static" gets defined to be the null string, so we can't declare
an array to be static and then initialize it. Since the array in
question (buf) is only one element long, just make it a scalar
rather than an array; it can then be initialized, even if it's
not static.
* systime.h [not HAVE_TIMEVAL] (EMACS_USECS, EMACS_SET_USECS):
Don't forget to define dummy versions of these.
* systime.h [USE_UTIME]: time_t is a typedef, not a struct.
Don't prefix it with `struct'.
* systerm.h (EMACS_SET_TTY_PGRP): When there doesn't seem to be
any way to do this, don't forget to give it a dummy definition.
* sysdep.c (select): There's no need to cast the return value of
signal anymore, since we have the SIGTYPE macro defined.
* sysdep.c (read_input_waiting): When scanning for quit
characters, use the value of quit_char, rather than assuming that
C-g is the quit character. And don't forget to declare i.
* sysdep.c [USG5]: Don't include fcntl.h.
* s/usg5-3.h: Eric Raymond writes:
Define HAVE_SELECT and BSTRINGS only if HAVE_X_WINDOWS is on,
because that means we'll be linking in the shared libraries
containing the BSD emulations. Teach the file about the shared
libraries necessary to link X programs, because AT&T doesn't
supply static libraries for X. Also, fix the incorrect assertion
that -lg cannot be used with SVr3. Finally, force USE_UTIMES and
BROKEN_TIOCGWINSZ. (Note for the future; there may be a
utimes(2)) emulation lurking in the X shared libraries.)
* s/usg5-4.h (USE_UTIME): Remove this definition; the C library
still doesn't have utimes.
* ralloc.c (get_bloc): When initializing new_bloc->variable, cast
NIL to (POINTER *).
(malloc_init): Give warning if sbrk returns zero. Wonder what
that's supposed to mean.
* process.c (process_send_signal): Don't send SIGTSTP if the
system doesn't have that facility.
* process.c: [USG5] Don't include <fcntl.h>.
[USG] Don't bother including <termios.h>, <termio.h>, or
<fcntl.h>; systerm.h takes care of all that.
Remove the "mis;tak-+;;" line from the code; apparently this
section of code does get used.
* minibuf.c (Fread_from_minibuffer): Put this function's doc
string into a comment; it's too long for the PCC preprocessor.
Rah.
(Fcompleting_read): Same deal.
* keyboard.c (init_keyboard): Changed "#endif SIGIO" to
"#endif /* SIGIO */"
* mocklisp.c (Fml_substr): Same sort of thing.
* process.c (wait_reading_process_input): Same.
* floatfns.c (Fexpm1, Flog1p): Function removed; it's not widely
available, and hardly vital.
(syms_of_floatfns): Adjusted appropriately.
* floatfns.c (Flog): Accept optional second arg, being the base
for the logarithm.
[USG] (Flogb): Define this in terms of Flog.
* data.c [USG] (Frem): Call fmod, rather than drem. Rah.
* emacs.c [USG5]: Don't #include <fcntl.h> for these systems.
* alloc.c (Fmake_marker): Removed the test for being called from a
signal handler. The original bug is probably gone, the test
wasn't written portably, and it should probably go somewhere else
anyway - say, funcall or eval.
End of changes from Eric Raymond.
* xfns.c (Fx_create_frame): Make the default for the icon-type
parameter nil, not t. It seems to cause problems with some X
servers.
* lisp.h (DEFVAR_PER_BUFFER): Add new argument, TYPE, to help
check the types of buffer-local variable slots.
* buffer.c (syms_of_buffer): Call DEFVAR_PER_BUFFER with the new
TYPE argument.
* abbrev.c (syms_of_abbrev): Same.
* buffer.c (buffer_local_types): New variable.
(buffer_slot_type_mismatch): New function.
* buffer.h (buffer_local_types): New extern declaration.
* data.c (store_symval_forwarding): When storing through a
Lisp_Buffer_Objfwd, check if the slot requires a particular type,
and report an error if the types clash.
* lread.c (defvar_per_buffer): Support new TYPE argument, by
setting the appropriate slot in buffer_local_types.
1992-08-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* window.c (window_loop): This used to keep track of the first
window processed and wait until we came back around to it. Sadly,
this doesn't work if that window gets deleted. So instead, use
Fprevious_window to find the last window to process, and loop
until we've done that one.
* window.c [not MULTI_FRAME] (init_window_once): Don't forget to
set the `mini_p' flag on the new minibuffer window to t.
* window.c (Fwindow_at): Don't check the type of the frame
argument.
* window.c [not MULTI_FRAME] (window_loop): Set frame to zero,
instead of trying to decode it.
* frame.h [not MULTI_FRAME] (the_only_frame): Put a comment above
this indicating that it's not GCPRO'd. Put parens around some of
the FRAME_* macros' definitions.
[not MULTI_SCREEN] (Fselected_frame): New function.
* frame.h [not MULTI_FRAME] (FRAME_ROOT_WINDOW): Define this in
terms of minibuf_window, rather than by reference to
the_only_frame.
* window.c (init_window_once): Initialize minibuf_window before
FRAME_ROOT_WINDOW, so the latter actually points to something.
* keyboard.c (Fexecute_mouse_event): Dyked-out function deleted.
We're not going to use this mouse interface.
(Vmouse_window, Vmouse_event, Vmouse_event_function)
(Vmouse_left_hook, Vmap_frame_hook, Vunmap_frame_hook)
(Vmouse_motion_handler): Variables deleted; they were to be used by
Fexecute_mouse_event.
(syms_of_keyboard): Same.
(command_loop_1): Remove dyked-out code to support
Fexecute_mouse_event.
(read_char): Same.
* keyboard.c (Vlast_event_frame): Don't define this window if
MULTI_FRAME is not #defined.
(syms_of_keyboard): Same.
(kbd_buffer_store_event): Don't try to work with Vlast_event_frame
if MULTI_FRAME is not #defined.
(kbd_buffer_get_event): Same.
* keyboard.c (Fdiscard_input): Removed dyked-out code from when
unread_command_char's quiescent value was -1, not nil.
* frame.c (make_frame): Stop passing zero to make_window; it's not
expecting any arguments.
1992-08-12 Jim Blandy (jimb@albert.gnu.ai.mit.edu)
* unexsunos4.c: Deleted "$Log" header in comments at top of file;
this was beginning to grow RCS hair, which we don't want.
* xmenu.c: Same deal.
1992-08-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* fileio.c (Fread_filename): Don't add one here.
* minibuf.c (Fcompleting_read): Instead, stop subtracting one
here, so this function lives up to its doc string, which I think
specifies an okay way to work.
* doc.c (Vdata_directory): Removed; this is declared in callproc.c.
(syms_of_doc): Initialization removed.
* xfns.c (x_get_arg): Return Qunbound for an unspecified
resource, not nil. That way, we can tell the difference between a
false resource and an unspecified resource.
(x_default_error): Use DEFLT if x_get_arg returns Qunbound, not Qnil.
(x_figure_window_size, x_icon, Fx_create_frame): Deal with
Qunbound and Qnil properly.
* xfns.c (Fx_create_frame): Pass the correct number of arguments
to x_set_font.
* xfns.c [not HAVE_X11] (Fx_create_frame): Delete section that's
only included if we *do* have X11. Blind patching.
* xfns.c (x_icon): Rewritten to call x_wm_set_icon_position and
x_wm_set_window_state instead of calling XSetWMHints directly.
* xterm.c (x_wm_hints): New variable.
(x_wm_set_window_state, x_wm_set_icon_pixmap,
x_wm_set_icon_position): Use x_wm_hints.
(x_term_init): Set the `input' field of x_wm_hints, and its flag.
* xterm.c (x_text_icon): Call x_wm_set_icon_pixmap with a pixmap
of zero, to clear the pixmap.
(x_wm_set_icon_pixmap): Accept this protocol; if pixmap is zero,
specify no pixmap for the icon.
* xfns.c (x_default_parameter): Don't call store_frame_param here;
it's already taken care of by x_set_frame_parameters.
* xfns.c (Fx_create_frame): Check for the `icon-type',
`auto-raise', and `auto-lower' parameters. Have `icon-type'
default to t, indicating that we want the nifty gnu in our icons.
(Qauto_lower): New symbol.
* xfns.c (x_set_icon_type): UNBLOCK_INPUT before reporting the
error, not after. error doesn't return, sklitch-brain.
* xterm.c (x_set_window_size): Call check_frame_size to make sure
that the requested dimensions are within acceptable limits.
Store the new size information in the frame structure.
* xfns.c (x_set_frame_parameters): Properly recognize changes to
the height of the frame. Recognize changes of the frame's
position.
* xfns.c (x_set_frame_parameters): Iterate over ALIST while the
current element is cons, not while it's non-nil.
(syms_of_xfns): Call init_x_parm_symbols after interning all the
other atoms; init_x_parm_symbols expects Qx_frame_parameter to be
initialized.
1992-08-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xfns.c (Qbackground_color, Qborder_color, Qborder_width)
(Qcursor_color, Qfont, Qforeground_color, Qgeometry)
(Qhorizontal_scroll_bar, Qicon_left, Qicon_top, Qiconic_startup)
(Qinternal_border_width, Qleft, Qmouse_color, Qparent_id)
(Qsuppress_icon, Qsuppress_initial_map, Qtop, Qundefined_color)
(Qvertical_scroll_bar, Qwindow_id, Qx_frame_parameter): New
symbols, with lisp code to rebuild syms_of_xfns.
(syms_of_xfns): Initialize and staticpro them.
(Qheight, Qminibuffer, Qname, Qnone, Qonly, Qwidth)
(Qunsplittable): Add extern declaration for these.
(x_init_parm_symbols): Don't initialize Qx_frame_parameter here;
it's done in syms_of_xfns.
(x_default_parameter): Change the argument char *PROPNAME into a
Lisp_Object PROP; let the caller take care of interning the atom.
(Fx_geometry, x_figure_window_size, x_icon, Fx_create_frame): Use
the new Q... variables, instead of interning things.
* frame.c (Qheight, Qicon, Qmodeline, Qname, Qnone, Qonly)
(Qunsplittable, Qwidth, Qx): New symbol, with lisp code to rebuild
syms_of_frame.
(syms_of_xfns): Initialize and staticpro them.
(Fframep, Fframe_visible_p, Fframe_parameters): Use the new Q...
variables, instead of interning things.
(store_in_alist): Change the argument char *PROPNAME into a
Lisp_Object PROP; let the caller take care of interning the atom.
* frame.c (Fframe_visible_p): Doc fix.
* frame.c (Fframe_parameters): When figuring the `minibuffer'
parameter, if FRAME doesn't have a minibuffer, return `none', not
nil. If it does have a minibuffer with other windows, return the
window.
* frame.c (Fmodify_frame_parameters): Don't write out the loop for
processing X frame parameters here; do it in the x specific code.
Call the function which deals with this stuff
x_set_frame_parameters, not x_set_frame_parameter.
* xfns.c (x_set_frame_param): Replaced by x_set_frame_parameters.
(x_set_frame_parameters): Process the alist of parameters here.
Notice `width', `height', `top', and `left' parameters.
Hold off changing the frame size and position until the end, so we
can do both parameters at once when they are both specified.
(x_default_parameter): Call x_set_frame_parameters, not
x_set_frame_param.
* frame.c (Fmake_frame_visible, Fmake_frame_invisible)
(Ficonify_frame, Fframe_parameters, Fmodify_frame_parameters)
(Fset_frame_height, Fset_frame_width, Fset_frame_size)
(Fset_frame_position): Place clauses controlled by FRAME_X_P inside
`#ifdef HAVE_X_WINDOWS ... #endif' clauses.
* frame.c (Fset_frame_position): Doc fix.
* dispnew.c (Fredraw_frame): Call clear_frame_records before
calling update_end, so that x_display_box_cursor can rely on the
contents of f->current_glyphs.
* xfns.c (x_figure_window_size): Indicate that this function
returns an int, rather than just leaving it unstated.
* xterm.c (x_wm_set_size_hint): Don't try to set the base_height
and base_width elements of size_hints if PBaseSize is not
#defined. Set the minimum frame size according to the information
returned by check_frame_size.
* window.h (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
removed.
(check_frame_size): New extern declaration.
* window.c (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
defined here now.
(check_frame_size): New function.
* dispnew.c (change_frame_size): Call check_frame_size here,
rather than writing out its code. Don't declare newheight and
newwidth to be register variables, since we take their address.
* bytecode.c (Fbyte_code): When metering the Bcall opcodes, make
sure the count on the symbol's `byte-code-meter' property does not
overflow.
* bytecode.c (syms_of_bytecode): Add a docstring for
byte-metering-on.
1992-08-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* dispnew.c (in_display): Variable deleted; it's only ever used as
an unofficial parameter to change_frame_size.
(change_frame_size): New argument, DELAY, which when non-zero
indicates to delay the size change until later. This should be
passed as one from signal handlers.
(window_change_signal): Call change_frame_size with a DELAY of 1.
(do_pending_window_change): Call change_frame_size with DELAY of 0.
* frame.c [MULTI_SCREEN] (Fset_frame_height, Fset_frame_width,
Fset_frame_size): Same.
[not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width,
Fset_frame_size, Fset_screen_height, Fset_screen_width): Same.
* keyboard.c (Fsuspend_emacs): Call change_frame_size with the
proper arguments - the height and width are the second and third
arguments, not the first and second. Pass 0 for DELAY.
* xfns.c (Fx_create_frame): Call change_frame_size with a DELAY of 0.
* xterm.c (XTread_socket, x_do_pending_expose): Call
change_frame_size with a DELAY of 1.
* xterm.c (in_display): Deleted this; it's never used in xterm.c,
and there is another variable by the same name in dispnew.c.
* frame.c [not MULTI_SCREEN] (Fset_frame_height, Fset_frame_width)
(Fset_frame_size, Fframe_height, Fframe_width): New functions, for
use when Emacs is not compiled with multiple screens.
[not MULTI_SCREEN] (Fset_screen_height, Fset_screen_width):
Functions added for backward compatibility with Emacs 18. These
would be just aliases, except that the version 18 functions don't
take a FRAME argument.
[not MULTI_SCREEN] (syms_of_frame): New function, to defsubr the
above and add screen-height and screen-width as aliases for
Fframe_height and Fframe_width.
* emacs.c (main): Call syms_of_frame unconditionally. When
MULTI_FRAME is not defined, it still provides the Fframe_width,
Fframe_height, Fset_frame_width, and Fset_frame_height functions.
* frame.c (Fset_frame_width): Change the size of FRAME, not of
selected_frame.
* frame.c (Fset_frame_width, Fset_frame_height): Declare the
`frame' argument to be a Lisp_Object. It used to be undeclared.
1992-08-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* dispnew.c, frame.c, frame.h, keyboard.c, scroll.c, term.c,
* window.c, xdisp.c, xfns.c xterm.c (FRAME_IS_TERMCAP, FRAME_IS_X)
(FRAME_HAS_MINIBUF): Renamed these to FRAME_TERMCAP_P, FRAME_X_P,
and FRAME_HAS_MINIBUF_P, for consistency with the rest of the
frame macros.
* window.h (MIN_SAFE_WINDOW_WIDTH, MIN_SAFE_WINDOW_HEIGHT): New
macros.
* window.c (check_min_window_sizes): New function.
(set_window_height): Call it.
(Fsplit_window, change_window_height): Call it, instead of writing
out its code.
* dispnew.c (change_frame_size): If newlength or newwidth are too
small (according to the value of MIN_SAFE_WINDOW_{WIDTH,HEIGHT}),
force them larger. This isn't really right, but it's better than
crashing.
* editfns.c (Fcurrent_time_zone): Doc fix.
1992-08-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* editfns.c (Fcurrent_time_zone): Don't forget to include code to
signal an error when EMACS_CURRENT_TIME_ZONE is not defined.
1992-08-06 Joseph Arceneaux (jla@gnu.ai.mit.edu)
* doc.c (Vdata_directory): Declared.
(syms_of_doc): Initialized.
* fileio.c (Fread_filename): Add 1 to the offset position for the
cursor when reading file names.
1992-08-05 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* systime.h (EMACS_CURRENT_TIME_ZONE): New macro.
* editfns.c (Fcurrent_time_zone): New function.
(syms_of_editfns): defsubr it.
* keyboard.c (read_key_sequence): Clear the eighth bit of the
character from the key sequence, NOT the index of the character IN
the key sequence. How many tries will it take to get it right?
1992-08-04 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* eval.c (syms_of_eval): Doc fix for debug-on-quit.
1992-08-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callproc.c (Fcall_process): Doc fix. Used to claim that
Fcall_process doesn't wait when BUFFER was nil. It does.
1992-07-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (read_key_sequence): Scan for function keys when t >=
mock_input, not when t > mock_input. We do want to scan for
function keys when t == mock_input.
* keyboard.c (read_key_sequence): Don't increment fkey_end when
testing to see if keybuf[fkey_end] is a meta-character.
1992-07-27 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* Makefile.in (TAGS): Generate tags for files in ../external-lisp
too.
1992-07-26 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* eval.c (find_handler_clause): For quit, don't check Vdebug_on_error.
(wants_debugger): Rewrite so it cannot get an error.
* callint.c (Fcall_interactively): Handle enable-recursive-minibuffers
property on the command, by enabling recursive minibuffers.
(syms_of_callint): Set Qenable_recursive_minibuffers.
1992-07-24 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* frame.c (Fmake_frame_visible, Fmake_frame_invisible,
Ficonify_frame): Make the first argument optional, defaulting to
selected_frame.
(Ficonify_frame, Fmake_frame_invisible): Add interactive specs, so
we can bind these directly to C-z.
1992-07-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Fread_file_name): Use new calling convention for
Fcompleting_read, with history as Qfile_name_history.
(syms_of_fileio): Set Qfile_name_history; set the var to nil.
Do staticpro for the recently created Q* vars.
* minibuf.c (read_minibuf): Two additional args histvar and histpos.
All calls changed.
(Fcompleting_read): Last arg is now HIST--(HISTVAR . HISTPOS).
Arg INIT can now be (INITIAL-STRING . INITIAL-POSITION).
Pass BACKUP_N arg to read_minibuf properly as Lisp object.
(Fread_from_minibuffer): Likewise.
(syms_of_minibuf): Set Qminibuffer_history and staticpro it.
* eval.c (Ffuncall, Feval): Support subrs with 7 args.
* fns.c (Fyes_or_no_p): Use Fread_string, not read_minibuf.
* callint.c (Fcall_interactively): For 'S', use Fread_no_blanks_input
rather than read_minibuf.
1992-07-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* minibuf.c (Vminibuffer_history_variable): New variable.
(syms_of_minibuf): Define variable minibuffer-history-variable.
(read_minibuf): Push the string on specified history list.
1992-07-23 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* Makefile.in (doall, doxemacs, dotemacs): Put quotes around CC=${CC}.
Don't include $(MAKEOVERRIDES); that is always implicit.
1992-07-22 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): If we have read a
meta-character, prefix it with meta_prefix_char before looking it
up in the function key keymap.
* lread.c (Fread_char_exclusive): Code this with a do-while loop,
not a while loop with its body repeated.
* lread.c (Fread_event): Don't make this function's definition
conditional on X-windows. It ought to be there no matter how
Emacs was built.
(syms_of_lread): Don't make its defsubr conditional either.
* lread.c (Fread_char): Doc fix.
* fileio.c (find_file_handler): It's called
Vfile_name_handler_alist, not Vfile_handler_alist.
(Fwrite_region): Declare the variable named `handler'.
(Fverify_visited_file_modtime): Use `b->filename', not `filename'.
(Fset_visited_file_modtime): Declare the variable named `handler'.
* dired.c (Fdirectory_files, Ffile_name_completion): Use
`dirname', not `filename'.
(Qfile_attributes): New variable.
(syms_of_dired): Initialize it.
* xselect.c (Fx_own_selection): If we're trying to set
cut-buffer0, and the value is too large for the X server (as
indicated by the max_request_size member of the X Display), just
set the buffer to the empty string, and return nil.
1992-07-21 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* search.c (fast_string_match): New function.
* fileio.c (find_file_handler): New function.
(Fcopy_file, Fmake_directory, Fdelete_directory, Fdelete_file):
(Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
(Ffile_exists_p, Ffile_executable_p, Ffile_readable_p, Ffile_symlink_p)
(Ffile_writable_p, Ffile_directory_p, Ffile_accessible_directory_p):
(Ffile_modes, Fset_file_modes, Ffile_newer_than_file_p):
(Fwrite_region, Fverify_visited_file_modtime):
Use find_file_handler; call the handler and return.
(Finsert_file_contents): Use find_file_handler;
cannot just return after the handler, but must handle VISIT.
(syms_of_fileio): Set up Qcopy_file, etc.
* dired.c (Fdirectory_files, Ffile_name_completion):
(Ffile_name_all_completions, Ffile_attributes):
Use find_file_handler; call the handler.
(syms_of_dired): Set Qfile_attributes, etc.
1992-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xselect.c (Fx_own_selection): Initialize val to nil, so that if
we don't get the selection, we don't return garbage. When setting
cut-buffer0, set val to the string pasted.
* xfns.c (x_set_name): If ARG is nil, set the frame's name to the
current x_id_name.
* xdisp.c (display_mode_line): If we should set the frame's name,
but there is only one frame currently active, call x_set_name with
nil as the name; this will display samething generically
appropriate.
1992-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* lread.c (isfloat_string): Recognize floats without a leading
integer part, noting that "e5" is a symbol, not a floating point
number.
* xdisp.c (message, message1): When displaying a message, don't
make the minibuf frame visible unless the selected frame is also
visible. This means that frames won't pop up unless the user is
actually interacting with Emacs.
* xdisp.c (display_mode_line): If Emacs is currently supporting
only one screen, don't change the title of the screen to the name
of the current buffer; this is only annoying in this case. We
should probably think more carefully about how screens should be
named.
1992-07-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* process.c (allocate_pty): Handle PTY_OPEN.
Delete system-specific alternatives to PTY_NAME_SPRINTF
and PTY_TTY_NAME_SPRINTF.
1992-07-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* callint.c (Fprefix_numeric_value): Fix typo: test raw, not val.
1992-07-17 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xfns.c (x_window): x_set_name normally ignores requests to set
the name if the requested name is the same as the current name.
This is the one place where that assumption isn't correct; f->name
is set, but the X server hasn't been told. So fake it out.
* emacs.c [sun] (main): On suns, localtime caches the value of the
time zone rather than looking it up every time. This means that
the dumped Emacs doesn't check the value of the TZ environment
variable. Call tzset before entering the editing loop to check
the new TZ value.
1992-07-16 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* dired.c (Fdirectory_files): Don't forget to pass the REGP
argument to compile_pattern.
* search.c (compile_pattern): If REGP is zero, don't call
re_set_registers; nobody cares.
* fileio.c (auto_save_error): Pass the correct number of arguments
to Fsleep_for.
* lread.c: Include <ctype.h> at the top of the file, instead of
just before isfloat_string; read0 wants to use it too.
* process.c (Fdelete_process, Fprocess_status, Fprocess_send_region)
(Fprocess_send_string, Fprocess_send_eof, Finterrupt_process): Doc
fixes.
* process.c (Fprocess_status): Use get_process to find the process
denoted by the PROC argument, not Fget_process.
1992-07-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xdisp.c: Doc fix.
1992-07-14 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* window.c (syms_of_window): Doc fix for pop-up-frames.
* frame.c (Fframe_parameters): Note that if FRAME is omitted, it
defaults to the selected frame.
* frame.c (Fframe_height, Fframe_width): Blocked out these
functions; they have no C callers, and can be written nicely in
lisp.
* frame.c (Fframe_pixel_size): Function removed; there aren't
enough other functions available to make this useful. We need
functions describing the size of the characters of a font.
* xterm.h, xterm.c, xselect.c, xmenu.c, xfns.c, xdisp.c, window.h,
* window.c, termopts.h, termhooks.h, termchar.h, term.c sysdep.c,
* scroll.c, screen.c, screen.h, process.c, print.c, minibuf.c,
* lisp.h keyboard.c, indent.c, fns.c, emacs.c, dispnew.c,
* dispextern.h, cm.h, alloc.c, config.h.in: Screens are now called
frames, to avoid even more confusion with X terminology than
Emacs's "windows" already cause. All macros, functions, and
variables renamed; all uses changed.
* screen.c, screen.h: Renamed to frame.c and frame.h. All
#includers changed.
* ymakefile: Adjusted appropriately.
* buffer.c: Doc fixes.
* xfns.c (Fx_store_cut_buffer): Reversed sense of test for non-X
screen.
* window.c (Frecenter): Doc fix; this function places point in the
middle of the current window, not the current screen.
* window.c (temp_output_buffer_show): Use WINDOW_SCREEN macro
instead of accessing the member directly.
1992-07-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* print.c (print): Changed code which prints screen objects to use
the SCREEN_LIVE_P macro instead of testing the screen structure
directly.
* alloc.c (undo_threshold, undo_high_threshold): Variables renamed
to undo_limit and undo_strong_limit.
(Fgarbage_collect): Uses changed.
(syms_of_alloc): DEFVARs and docstrings changed.
* undo.c (truncate_undo_list): Comment adjusted.
* lread.c (read0): Allow floating-point numbers to begin with a
period. `(0 .5)' denotes a list of two numbers, not a dotted pair.
1992-07-11 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fns.c, callproc.c: Doc fix.
1992-07-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* bytecode.c (Bsymbol_function, Bfset): Removed comments saying
that these are no longer generated. Jamie Zawinski's byte
compiler does generate them, and he's actually collected
statistics on how often these functions are called.
1992-07-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* screen.c (store_screen_param): Clarify error message.
* xterm.c (x_make_screen_visible): Undo the change made on June
30; that is not the right solution. Apparently there are three
states a window may be in: normal, iconified, and invisible.
1992-07-08 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* eval.c (Fmacroexpand): Code cleaned up; there's no need to
handle forms like ((macro lambda ...) ...) specially.
* fileio.c (Finsert_file_contents): Signal an error if we're asked
to read from a named pipe.
1992-07-07 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* m/*.h (SIGN_EXTEND_CHAR): Removed these definitions. The only
place they were used is in regex.c, and nowadays that has its own
definition, which works for any machine. The definitions in the
machine description files usually didn't work if given an unsigned
character as an argument, anyway.
1992-07-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* buffer.c: Doc fix.
1992-07-02 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* minibuf.c (Fdisplay_completion_list): Declared new variables
used in rms' previous change.
1992-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* minibuf.c (Fdisplay_completion_list): Handle non-buffer stream.
1992-07-01 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* window.c (Fdisplay_buffer): Add interactive spec.
1992-06-30 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* mem_limits.h: EXCEEDS_ELISP_PTR declared here.
* ralloc.c: No longer declared here.
* vm-limit.c: Nor here. Also, include "lisp.h" before
"mem_limits.h" and additionally include "config.h".
1992-06-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (x_make_screen_visible): Don't de-iconify the window;
iconification is orthogonal to visibility.
* emacs.c (syms_of_emacs): Change docstring for `kill-emacs-hook'
to describe it as a hook, not as a single function.
1992-06-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* minibuf.c (Fread_no_blanks_input): Corrected maximum number of
arguments from one to two.
* emacs.c (Vkill_emacs_hook): Declare this here; it should have a
docstring, so we might as well DEFVAR it.
(syms_of_emacs): Initialize it, and DEFVAR_LISP it with an
appropriate docstring.
1992-06-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* lread.c (Feval_buffer): Make the DEFUN match the C argument
list; this takes two optional arguments, not just one.
* lisp.h (Lisp_Buffer_Local_Value): Comments neatened.
* data.c (Fset): Fixed conditional which tests whether the cache
is invalid. It used to be pretty munged, and would always declare
the cache invalid for Lisp_Buffer_Local_Value variables. Now it
declares the cache invalid if the buffer is wrong (obviously), of
1992-06-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* data.c (Fset): Comments reformatted for readability.
* xterm.c (last_mouse_movement_time): New variable.
(note_mouse_position): Set it.
(XTmouse_position): Return its current value as the position's
timestamp.
* keyboard.c (Qvertical_split): Renamed to `vertical-line',
since the window arrangement is actually referred to as a
`horizontal split.'
(make_lispy_event, make_lispy_movement, syms_of_keyboard): Uses
renamed here.
* keyboard.h (Qvertical_split): Extern declaration changed here.
* window.c (Fcoordinates_in_window_p): Changed this to return
`vertical-line' at the appropriate times, rather than
`vertical-split'.
* window.c (Fcoordinates_in_window_p): Put symbol names in
opposing single quotes - `vertical-split', for example.
* fileio.c (Fexpand_file_name): Don't signal an error if USERNAME
in a "~USERNAME/..." filename isn't a real user; just leave the
"~USERNAME" unchanged.
* fileio.c (Fmake_symbolic_link): Rename argument `NEWNAME' to
`LINKNAME', to conform with the docstring.
* Makefile.in (CPP): Pass `-Is -Im' to CPP, to make sure that
machine- and system-dependend files can include each other
properly.
* ymakefile (CFLAGS): Add those directories to the #include path
here too.
* Makefile.in (xmakefile): Build this via a temporary file, so
that if preprocessing fails we don't nuke the xmakefile.
* fileio.c: There are two versions of Fexpand_file_name defined
here; the latter is inside a `#if 0' clause. Change its DEFUN to
a DEAFUN, so that its docstring doesn't make it into the DOC file
and supercede the real docstring.
* callint.c (Fcall_interactively): For the 'K' interactive spec,
set varies[i] to -1, indicating that the mouse click should be
quoted if the function makes it into the command history, and that
this argument by itself does not qualify the command to be
recorded in the history.
1992-06-26 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* data.c (Frem): The drem function will sometimes return a
negative number. If it does, add the divisor to it, to make it
positive.
* screen.c: Put '#ifdef MULTI_SCREEN' after the inclusion of
config.h.
* window.c (Fpos_visible_in_window_p): Remember to apply XSCREEN
to w->screen before applying SCREEN_WIDTH.
* screen.h [not MULTI_SCREEN] (last_nonminibuf_screen): Removed
#definition of this; it's confusing when debugging.
* screen.c (last_nonminibuf_screen): Variable moved from here...
* dispnew.c (last_nonminibuf_screen): to here, beside
selected_screen. They should both exist, even if the multi-screen
support is not present.
* dispnew.c [not MULTI_SCREEN] (the_only_screen): New variable.
Instead of having the non-multi-screen version of Emacs refer to
lots of different variables scattered hither and yon, we'll just
declare this new variable, of type `struct screen', and define the
single-screen versions of the `SCREEN_foo' macros to reference its
elements. This avoids conflicts between names of local variables
and names of global variables describing the screen, and simplifies
some of the differences between the multi-screen and single-screen
cases.
* screen.h (enum output_method, struct screen): Removed these from
the `#ifdef MULTI_SCREEN' conditional.
* screen.h [not MULTI_SCREEN] (the_only_screen): extern
declaration for it here.
[not MULTI_SCREEN] (SCREEN_CURRENT_GLYPHS, SCREEN_DESIRED_GLYPHS)
(SCREEN_TEMP_GLYPHS, SCREEN_HEIGHT, SCREEN_WIDTH)
(SCREEN_NEW_HEIGHT, SCREEN_NEW_WIDTH, SCREEN_CURSOR_X)
(SCREEN_CURSOR_Y, SCREEN_ROOT_WINDOW, SCREEN_INSERT_COST)
(SCREEN_DELETE_COST, SCREEN_INSERTN_COST, SCREEN_DELETEN_COST)
(SCREEN_MESSAGE_BUF, SCREEN_SCROLL_BOTTOM_VPOS): Macros changed to
refer to the_only_screen.
* dispnew.c [not MULTI_SCREEN] (one_screen_cursX)
(one_screen_cursY, one_screen_current_glyphs)
(one_screen_desired_glyphs, one_screen_temp_glyphs)
(delayed_screen_width, delayed_screen_height): Variables
deleted; they're all now kept in the_only_screen.
* xdisp.c [not MULTI_SCREEN] (message_buf): Variable deleted; same
fate.
* term.c [not MULTI_SCREEN] (one_screen_width, one_screen_height):
Variables deleted; same fate.
* screen.h [not MULTI_SCREEN]: Extern declarations for the above
variables removed.
* window.c [not MULTI_SCREEN] (root_window): Variable deleted.
[not MULTI_SCREEN] (init_window_once): Use SCREEN_ROOT_WINDOW to
refer to the root window, instead of referring to it directly.
* window.h [not MULTI_SCREEN] (root_window): Extern declaration
removed.
* scroll.c [not MULTI_SCREEN] (insert_line_cost, delete_line_cost,
insert_n_lines_cost, delete_n_lines_cost): Variables deleted; same
fate.
* dispnew.c [not MULTI_SCREEN] (cursX, cursY): Renamed to
`one_screen_cursX' and `one_screen_cursY'.
* screen.h [not MULTI_SCREEN] (cursX, cursY, SCREEN_CURSOR_X)
(SCREEN_CURSOR_Y): Extern declarations and macros changed
accordingly.
* term.c [not MULTI_SCREEN] (screen_width, screen_height): Renamed
to `one_screen_width' and `one_screen_height', so as not to
conflict with local variables when referenced by the `SCREEN_foo'
macros.
* screen.h [not MULTI_SCREEN] (screen_width, screen_height):
Extern declarations changed accordingly.
* termchar.h (screen_width, screen_height): Extern declarations
deleted. Everyone should go through the `SCREEN_foo' macros.
(SCREEN_WIDTH, SCREEN_HEIGHT): Changed accordingly.
1992-06-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callint.c (Fcall_interactively): When making a copy of the spec
string, cast the return value of `alloca' to `unsigned char *',
not `char *', to match the type of `string'.
* xselect.c (Fx_own_selection): Cast XSTRING (string)->data to a
char *, so it can be comfortably passed to XStoreBytes.
* filelock.c (strcpy): Declare this to return char *.
1992-06-24 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* dispnew.c (current_glyphs, desired_glyphs, temp_glyphs): Renamed
to have the prefix `one_screen_', so that the screen macros can
refer to them without conflicting with local variables.
* screen.h [not MULTI_SCREEN] (SCREEN_CURRENT_GLYPHS,
SCREEN_DESIRED_GLYPHS, SCREEN_TEMP_GLYPHS): Changed accordingly.
* keyboard.c (read_key_sequence): Put the code which restarts the
key sequence in a `#ifdef MULTI_SCREEN' conditional.
* screen.h [not MULTI_SCREEN]: Added definitions for
CHECK_LIVE_SCREEN and SCREEN_FOCUS_SCREEN for the non-multi-screen
case.
* screen.h [not MULTI_SCREEN]: The name is
`SCREEN_MINIBUF_ONLY_P', not `SCREEN_IS_MINIBUF_ONLY'.
* xdisp.c [not MULTI_SCREEN] (Fredraw_display): Removed definition
here; the non-multi-screen version is already defined in
dispnew.c, alongside the multi-screen version.
(syms_of_xdisp): Don't try to defsubr Sredraw_display; it doesn't
exist.
* lread.c (Fread_char_exclusive): Remove this from the `#ifdef
HAVE_X_WINDOWS' conditional; it is appropriate in any context.
* eval.c (Fsignal): Put call to TOTALLY_UNBLOCK_INPUT under the
protection of a `#ifdef HAVE_X_WINDOWS' conditional.
* keyboard.c (kbd_buffer_get_event): Expect *mouse_position_hook
to return the timestamp as an unsigned long, not a lisp_Object.
This matches the change made to `struct input_event'.
(make_lispy_movement): Change argument TIME to an unsigned long.
* xterm.c (XTmouse_position): Change TIME argument to a pointer to
an unsigned long.
* termhooks.h (mouse_position_hook): Doc fix.
* term.c (mouse_position_hook): Doc fix.
* termhooks.h (struct input_event): If MULTI_SCREEN is defined,
declare the .screen element to be `struct screen *'; otherwise,
declare it to be `int'. See the comment in the file for why I've
done this obviously wrong thing.
* print.c (printbufidx): Doc fix.
* xdisp.c (message_buf_print): Doc fix.
* dispextern.h (message_buf_size): Variable deleted; it's no
longer used, since the message buffer is always the width of the
screen.
* screen.h [not MULTI_SCREEN] (message_buf): Add extern
declaration for it here.
(message_buf_print): Added extern declarations here for both the
MULTI_SCREEN and non-MULTI_SCREEN cases.
* dispextern.h (message_buf, message_buf_print): Deleted extern
declaration for these here. It should never be used directly; it
should always be used through the SCREEN_MESSAGE_BUF macro.
* dispnew.c (temp_glyphs): Added back this variable declaration;
screen.h and various other places referred to this; where did it
go?
* screen.h [not MULTI_SCREEN] (temp_glyphs, desired_glyphs,
current_glyphs): Add extern declarations for these.
* dispnew.c (cancel_my_columns): Use SCREEN_DESIRED_GLYPHS macro,
instead of assuming that a SCREEN_PTR is actually a pointer to
something; it isn't if we're not using any of the screen support.
Remove the variable `screen', and find the value for
`desired_glyphs' directly.
* xdisp.c (echo_area_display): Use the SCREEN_DESIRED_GLYPHS macro
to find screen's desired cursor position, instead of assuming that
a SCREEN_PTR is a pointer to something.
(display_mode_line): Same.
* window.c (Fpos_visible_in_window_p): Use the SCREEN_WIDTH macro.
(replace_window): Use the SCREEN_ROOT_WINDOW macro.
(window_loop): Use the SCREEN_WIDTH macro.
* dispnew.c (update_screen): Enclose the statement which
increments `downto' in a `#ifdef HAVE_X_WINDOWS' conditional.
* screen.h [MULTI_SCREEN and not MULTI_SCREEN] (FOR_EACH_SCREEN):
New macro.
* dispnew.c (window_change_signal, do_pending_window_change): Use
FOR_EACH_SCREEN instead of assuming that Vscreen_list exists.
* window.h (root_window): Added extern declaration for this.
* screen.c: Enclose the entire file in a #ifdef MULTI_SCREEN
conditional.
1992-06-23 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* window.c (Fset_window_dedicated_p):
Replaces Fset_window_buffer_dedicated. Second arg just t or nil.
1992-06-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* syntax.h (SYNTAX, SYNTAX_MATCH, SYNTAX_COMSTART_FIRST, etc.):
Cast character to unsigned char before indexing.
1992-06-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (x_wm_set_size_hint): Set size_hints.flags to indicate
that we are providing the base_width and base_height data.
* xfns.c (Fx_create_screen): Default the internal border width to
2; this matches XTerm.
* syntax.c (Fparse_partial_sexp): Doc fix.
* syntax.c (Fparse_partial_sexp): Added phony argument list to
comment containing the docstring for this function, so that
make-docfile.c will get the right arguments.
* xfns.c (x_set_name): Don't go through the X11 brouhaha to set
the name unless we're actually setting it to something different
from the current name.
1992-06-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* eval.c (syms_of_eval): Don't forget to escape the ends of the
lines in the docstring for `debug-on-quit'.
* keyboard.c (Fread_key_sequence): Reversed sense of CONTINUE_ECHO
argument - set this_command_key_count to zero iff CONTINUE_ECHO is
Qnil, not iff it's non-Qnil.
1992-06-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* search.c: Changed to remember the object in which the last
search was done, so that markers from match data are placed in
that buffer, instead of the current buffer.
(search_regs_from_string): Replaced with...
(last_thing_searched): This is either Qnil, meaning no searching
has been done, Qt, meaning that the last search was done in a
string, or a buffer object, meaning that the last search was done
in that buffer.
(syms_of_search): Initialize and staticpro last_thing_searched.
(Flooking_at, search_buffer): Set last_thing_searched to the
current buffer.
(Fstring_match): Set last_thing_searched to Qt.
(Fmatch_data): Test last_thing_searched to see if any searching
has been done, and construct integers or markers in the right
buffer. Abort if it's not Qt, Qnil, or a buffer.
(Fstore_match_data): Set last_thing_searched according to the
things we find in LIST.
1992-06-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* fns.c (Fload_average): Document the fact that this sometimes
returns a list of fewer than three elements, on systems which
don't provide 5- and 15-minute load averages.
1992-06-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (XTread_socket): If an event arrives to a screen S,
don't attribute them to SCREEN_FOCUS_SCREEN (S) here. Do that
synchronously, when the events are dequeued. This keeps events
from being accidentally routed to the wrong screen, if we
temporarily redirect a screen's focus.
* keyboard.c (kbd_buffer_store_event): If the character being
stuffed is a quit character, do the SCREEN_FOCUS_SCREEN
redirection to it here.
(kbd_buffer_get_event): And do it here, before returning the
event.
* eval.c (Finteractive_p): This assumed that if the function in
the top frame of the lisp backtrace was not a Lisp_Compiled
object, then Finteractive_p must have an explicit frame on the top
of the stack, which we could skip. It didn't bother to follow the
symbol function chaining, and it would break if any C code called
from a non-compiled function tried to call Finteractive_p anyway.
Changed this to actually check if the top frame's effective
function is the Lisp_Subr for Finteractive_p. This also used to
skip any number of frames for special forms and/or Fbytecode
calls. Changed this to skip an Fbytecode frame (if present),
followed by any number of special form frames.
1992-06-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* eval.c (struct backtrace): Doc fix.
1992-06-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* m/hp300bsd.h (LOAD_AVE_TYPE): This is long, not double.
(LOAD_AVE_CVT): Adjusted as appropriate.
* fns.c: Moved lots of system-dependent preprocessor cruft
dealing with getting the load average to `getloadavg.c'.
(Fload_average): Guts moved to `getloadavg.c'.
* getloadavg.c: New file, containing the necessary mess to get the
load average on many different systems. This file is supposed to
be Emacs-independent.
* ymakefile (obj): Add getloadavg.o to the list.
(getloadavg.o): Note that this depends on its source, and config.h.
* screen.c (Fdelete_screen): Typo in loop looking for new
last_nonminibuf_screen - change `screen = XCONS (screens)->cdr`
to `screens = XCONS (screens)->cdr`
* xdisp.c (echo_area_display): Don't neglect to draw all the lines
of the minibuffer window (or echo area) when a message is being
displayed. If the minibuffer is more than one line high, they
should all be blanked.
1992-06-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* sysdep.c [POSIX_SIGNALS] (sys_signal): Fix typo - rather than
calling new_action as if it were a function, call sigaction.
1992-06-09 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* lisp.h (Qnumberp, Qnumber_or_marker_p): Declared.
* eval.c (wants_debugger): Changed NULL to NILP.
Who installed these calls to NULL?
1992-06-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* dispnew.c (Fsit_for): Don't forget to actually set sec from ARG.
* termhooks.h (struct input_event): Doc fix - for mouse clicks, .x
and .y give the position in characters, not in pixels.
* keyboard.c (format_modifiers): Order the modifier letters
alphabetically - control, meta, shift, and up.
1992-06-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* xfns.c: Move some extern decls out of #if 0, to top of file.
1992-06-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* window.c (Fcoordinates_in_window_p): Docstring fix.
* buffer.c (Fother_buffer): Put a comma between arguments BUFFER
and VISIBLE_OK in the argument list. Duh.
* screen.c (Fdelete_screen): Remember that s is a SCREEN_PTR *,
not a Lisp_Object.
* search.c (search_regs): Doc fix.
(compile_pattern): Take a new argument - the search register
structure - so we can reassure the regex routines that the
registers have been allocated.
(Flooking_at, Fstring_match, search_buffer): Changed to pass
&search_regs to compile_pattern.
(search_buffer): When we've searched for a literal string and
found it, make sure that the search registers are allocated before
stuffing the location of the search into them.
(Fstore_match_data): If we need to allocate more registers,
allocate them using re_set_registers, instead of just storing the
new registers and hoping that regex doesn't free them.
* search.c (Freplace_match): Doc fix.
1992-06-07 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* screen.c (Fdeiconify_screen): Function deleted.
It was the same as make-screen-visible.
1992-06-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c: Doc fix.
* floatfns.c (Fcbrt): Renamed from Fcube_root, and #if 0'd.
* lisp.h (CHECK_NUMBER_OR_FLOAT*): Use Qnumberp or Qnumber_or_marker_p.
* data.c (syms_of_data): Staticpro those.
(Qinteger_or_float_p, Qinteger_or_float_or_marker_p): Deleted.
(Fnumberp, Fnumber_or_marker_p): Define these always,
but make them work even if not LISP_FLOAT_TYPE.
1992-06-05 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* config.h.in: Undefine REL_ALLOC if a system specific file
defines SYSTEM_MALLOC.
* sysdep.c (save_signal_handlers): Cast result of signal to
avoid compiler warning.
* process.c (send_process): Likewise.
1992-06-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (Fread_key_sequence): New 2nd arg CONTINUE_ECHO
added for the sake of universal-argument.
1992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* editfns.c (Fset_default_file_mode): Function deleted.
(Funix_sync): Moved.
* fileio.c (Funix_sync): Moved to here.
* xfns.c (Fx_erase_rectangle, Fx_draw_rectangle, Fx_contour_region):
(Fx_uncontour_region): #if 0 these.
(x_rectangle, outline_region): Likewise.
(syms_of_xfns): #if 0 the defsubrs.
* dispnew.c (Fsleep_for, Fsit_for): Clean up error messages.
* eval.c, print.c, keyboard.c: Doc fix.
* xfns.c (Fx_horizontal_line): Disabled, since not documented.
* fileio.c (Fdelete_directory): Renamed from Fremove_directory.
* unexencap.c: Deinstalled (renamed to =unexencap.c)
since awaited papers never arrived.
* xfns.c: Doc fix.
1992-06-04 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* eval.c (stack_trace_on_error, debug_on_error): Made Lisp_Objects V*.
(syms_of_eval): Changed DEFVAR_BOOLs to DEFVAR_LISPs.
(wants_debugger): New fn.
(find_handler_clause): Use it to look in debug-on-error and
stack-trace-on-error lists.
1992-06-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* floatfns.c (Fbessel_*, Ferf, Ferfc, Flog_gamma): Turned off;
not clearly worth including.
(Fasinh, Facosh, Fatanh, Fsinh, Fcosh, Ftanh): Likewise.
1992-06-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* minibuf.c, keyboard.c: Doc fix.
* window.c (Fwindow_at): Fix number of args--minimum 2, max 3.
* screen.c: Doc fix.
1992-06-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* lread.c (Feval_buffer): Don't read any arguments, if interactive.
1992-06-02 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* screen.c (make_screen_without_minibuffer): Apply XSCREEN to
Vdefault_minibuffer_screen before calling SCREEN_LIVE_P. The
argument to SCREEN_LIVE_P must be a SCREEN_PTR, not a Lisp_Object.
* dispnew.c (Fsit_for): This used to compare arg with 0 and return
Qt immediately. It should actually call sit_for anyway, because
sit_for needs to test for input and do the redisplay.
(sit_for): Compare sec and usec with zero here, after we've
looked for input and done a redisplay.
* lread.c (Feval_buffer): Use NILP, not NIL_P.
1992-06-01 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* buffer.h: New macro, BUF_SET_PT.
* lread.c: New subr `eval-buffer', replaces `eval-current-buffer',
which is now defined in simple.el.
1992-05-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* screen.c (Fdelete_screen): If we're deleting the default
minibuffer screen, try to find another minibuffer screen.
1992-05-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* buffer.c (Fother_buffer): New optional argument VISIBLE_OK,
indicating that buffers currently visible in windows should not be
discriminated against.
1992-05-28 Ken Raeburn (raeburn@cygnus.com)
* screen.c (Fdelete_screen): Fix bugs in walking screen list.
(make_screen_without_minibuffer): Signal an error if the default
minibuffer screen is dead.
* xfns.c (x_set_name): Use ICCCM-conforming scheme for changing
window name in X11.
(Fx_create_screen): Likewise.
1992-05-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xselect.c: Support getting and setting the obsolete X cut
buffers.
(Qcut_buffer0): New atom, denoting the X cut buffer 0.
(syms_of_xselect): Initialize and staticpro it.
(Fx_own_selection): If TYPE is Qcut_buffer0, interpret this to
mean that we should set cut buffer 0 to STRING.
(Fx_selection_value): If TYPE is Qcut_buffer0, interpret this to
mean that we should retrieve the value of cut buffer 0.
1992-05-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (construct_mouse_click): Removed extra assignment of
result->timestamp.
* keyboard.c (last_event_timestamp): Doc fix.
* xselect.c (last_event_timestamp): Declare it extern here.
(mouse_timestamp): Variable deleted. last_event_timestamp is a
more accurate thing to use here.
(own_selection, get_selection_value): Use last_event_timestamp
instead of mouse_timestamp.
* keyboard.c (make_lispy_event): Pass the event's timestamp
through the make_number function, to assure that it is properly
tagged before incorporating it into the lispy event.
* xterm.c (construct_mouse_click): The timestamp element of a
struct input_event is no longer a Lisp_Object; it is now an
unsigned long. So don't use XSET to assign to it.
(XTread_socket): Same here, in processing KeyPress events.
* keyboard.c (Fexecute_extended_command): Properly initialize
this_command_keys to the concatenation of the sequence that
invoked Fexecute_extended_command, the characters making up the
name of the command we're running, and a return character.
Previously, this code would set it to the last key typed while
reading the function name from the minibuffer, followed by the
name of the function being run.
1992-05-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (x_display_box_cursor): Draw the cursor at curs_{x,y},
rather than at s->cursor_{x,y}. If cursor_in_echo_area is set,
then s->cursor_{x,y} does not accurately describe the position of
the cursor. However, if we're not updating, then curs_{x,y} are
garbage; set them from s->cursor_{x,y}.
* dispnew.c (update_screen): Check current_screen->enable and
current_screen_used to see if there is any text on the last line,
not desired_screen->{enable,used}. When the line isn't enabled,
move to line SCREEN_HEIGHT (s) - 1, not SCREEN_HEIGHT (s).
Rearranged conditionals.
* dispnew.c (cursor_in_echo_area): Document the interpretations of
positive and negative values of this variable.
1992-05-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* dispnew.c (Fding): If have arg, don't end a keyboard macro.
1992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* dispnew.c (sit_for): New function, which is a slight
generalization of Fsit_for; you can tell it that it's waiting for
input, so C-g gets handled properly.
(Fsit_for): Call it, instead of replicating all its guts.
* keyboard.c (read_char): Call sit_for instead of Fsit_for, and
indicate that we're awaiting keyboard input.
* dispnew.c (Fsit_for): Rename arguments to match docstring. Use
NILP instead of EQ (foo, Qnil). If nodisp is non-nil, call
wait_reading_process_input with do_display 0, instead of 1; this
will inhibit spurious redisplays when process input arrives during
a sit-for.
* process.c (Faccept_process_output): Pass zero as read_kbd
argument to wait_reading_process_input when PROC is nil, not when
PROC is non-nil.
* process.c (wait_reading_process_input): Declare read_kbd to be a
Lisp_Object, and use the tagging to tell the difference between a
process object and an integer.
* dispnew.c (Fsleep_for, Fsit_for, Fsleep_for_millisecs): Pass
read_kbd argument to wait_reading_process_input as a Lisp_Object.
* keyboard.c (kbd_buffer_get_event): Same.
* process.c (Faccept_process_output, send_process): Same.
* keyboard.c (read_char): Use save_getcjmp and restore_getcjmp
instead of doing the bcopy explicitly.
* xterm.c (XTread_socket): When handling an EnterWindow event,
don't bother to check waiting_for_input. It's not necessary.
* keyboard.c (read_char): Don't clear waiting_for_input and
input_available_clear_time here.
(quit_throw_to_read_char): It's already done here.
* keyboard.c (quit_throw_to_read_char): Use
clear_waiting_for_input instead of clearing waiting_for_input
explicitly.
1992-05-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (read_char): Call clear_waiting_for_input instead of
clearing waiting_for_input and input_available_clear_time
explicitly.
1992-05-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* ymakefile [defined (__GNUC__) and __GNUC__ > 1]: Define
YMF_PASS_LDFLAGS so that it can deal with an empty flags argument.
* callproc.c (Fcall_process): Under VMS, a nil INFILE argument
means to read from "NLA0:", not "/dev/null".
* callproc.c (Fcall_process): Use nil as the value for display
(the fourth argument) when nargs >= 4, not when nargs >= 3.
1992-05-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* termhooks.h: Change timestamp from a Lisp_Object to an unsigned
long.
* keyboard.c (kbd_buffer_store_event): We don't have to apply the
XINT macro to the timestamp member of the event anymore.
* process.c (wait_reading_process_output): Don't turn off polling.
* sysdep.c (setpgrp_of_tty): Pass the address of pid, not pid
itself.
* process.c: Deleted cpp tangle for dealing with system-dependent
tty handling; #included "systerm.h".
* systerm.h: Add some of the things that were done in process.c:
If titan is #defined, then we should include <sys/ttyhw.h> and
<sys/stream.h> along with the other SYSV pty stuff.
If HPUX is #defined, then EMACS_HAVE_TTY_PGRP isn't true.
If XENIX is #defined, then we shouldn't try to use TIOCGETC.
* ymakefile: Note that process.o depends on systerm.h now.
1992-05-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* callint.c (Fprefix_numeric_value): Value 1 for symbol other than `-'.
1992-05-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* cmds.c (Fforward_line): If the buffer is empty, don't try to see
if it contains a newline, and moving nowhere at eob after
non-newline should return 1, not 0.
* search.c (scan_buffer): Doc fix.
* buffer.c (Fbuffer_disable_undo): Accept a buffer name as an
argument.
1992-05-12 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c: Include config.h first thing.
* keyboard.c (clear_input_pending): New subroutine.
* process.c (wait_reading_process_input): Make C-g really quit in
sit-for case.
* ymakefile (LD_SWITCH_SYSTEM): Don't use -X with GCC.
1992-05-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* eval.c (Fapply): Use indirect_function, instead of doing a dumb
loop.
* keymap.c (get_keymap_1): Same.
* macros.c (Fexecute_kbd_macro): Same.
* buffer.c (init_buffer_once): Don't disable undos for *scratch*
here. Do it in loadup.el.
* buffer.c (init_buffer_once): Doc fix.
* doc.c (Fdocumentation): After extracting the doc string from a
lambda or autoload expression, don't fall through to the default
case and signal an invalid function error; instead, do a `break'.
* doc.c (Fdocumentation): Use EQ (x, y) instead of XSYMBOL (x) ==
XSYMBOL (y).
* doc.c (Fdocumentation): When decyphering a function made from
conses, use 'else if' for the chain of alternatives instead of
just 'if'. It used to be that each alternative returned, but
that's not true anymore.
* alloc.c (Fgarbage_collect): Don't call truncate_undo_list on
buffers whose undo list is 't.
* doc.c (Fdocumentation): Renamed argument `fun1' to `function',
so make-docstring will list argument consistently with the
docstring.
1992-05-11 Joseph Arceneaux (jla@churchy.gnu.ai.mit.edu)
* xterm.h: Removed definition of `RES_CLASS'.
* xfns.c (x_get_arg): Eliminated `screen_name' parameter. No
longer uses screen name as X resource search component.
All calls to x_get_arg changed accordingly.
Global variable `screen_class' and #define `SCREEN_CLASS' removed.
* xterm.c (XTread_socket): Added basic structure for handling
various ClientMessage events, using new global variables
`Xatom_wm_take_focus', `Xatom_wm_save_yourself',
`Xatom_wm_delete_window', `Xatom_wm_configure_denied',
`Xatom_wm_moved'.
* xfns.c: Declare these variables extern.
(syms_of_xfns): Initialize these variables.
* xselect.c (Fx_own_selection, Fx_selection_value): New optional
parameter `type', to specify the selection type.
(syms_of_xselect): New symbols Qprimary, Qsecondary, Qclipboard
initialized.
1992-05-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* data.c (Qcyclic_function_indirection): New error condition.
(indirect_function, Findirect_function): New functions.
(syms_of_data): Initialize Qcyclic_function_indirection, put the
error properties on it, and staticpro it. Defsubr
Findirect_function.
* lisp.h (indirect_function, Findirect_function): Declare them here.
* callint.c (Fcall_interactively): Get symbol's function by
calling indirect_function, instead of just looping.
* doc.c (Fdocumentation): Same.
* eval.c (Finteractive_p, Fcommandp, do_autoload, Feval)
(Ffuncall): Same.
* keyboard.c (Fcommand_execute): Same.
* data.c (Fsymbol_function): Name the argument `symbol' instead of
`sym', so make-docstring will list argument consistently with the
docstring.
* process.c (wait_reading_process_input): Make sure the screen
isn't garbaged (and therefore not displayed) before we enter the
select and start waiting for input.
* keyboard.c: #include <systime.h>.
* ymakefile (keyboard.o): This depends on systime.h.
* keyboard.c (input_available_clear_word): Replaced with
input_available_clear_time, which is a pointer to an EMACSTIME;
sometimes the time information is larger than a single word.
(read_char): Changed ..._word to ..._time.
(input_available_signal): Use the EMACS_SET_SECS_USECS macro to
clear *input_available_clear_time, instead of zapping a zero into
*input_available_clear_word.
(set_waiting_for_input, clear_waiting_for_input): Adjusted
appropriately.
1992-05-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* editfns.c (make_buffer_string): New function.
* lisp.h (make_buffer_string): Declare it here.
* editfns.c (Fbuffer_substring): Call make_buffer_string instead
of writing it out.
(Fbuffer_string): Call make_buffer_string instead of make_string,
so we can deal with buffer relocations.
* minibuf.c (read_minibuf): Same here.
1992-05-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* syssignal.h (sigunblock): New macro, taken from 18.58's
emacssignal.h file.
* sysdep.c (request_sigio): Use the sigunblock macro to enable
reciept of SIGWINCH, instead of the dysfunctional sigblockx.
1992-05-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* search.c: Doc fix.
1992-05-06 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* emacs.c (decode_env_path): If EVARNAME is zero, don't try to
call getenv on it.
* lread.c (init_lread): When we don't have an environment variable
to check, pass 0 instead of the empty string.
* alloc.c (Fmake_marker): Use `SIGMASKTYPE' instead of `int'.
Instead of calling sigsetmask twice - once to get the mask, and
again to restore it - call sigblock, specifying no additional
signals.
1992-05-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* alloc.c: #include <syssignal.h>, for the sake of the
bug-catching code in Fmake_marker.
ymakefile: Add dependency.
* syssignal.h [not POSIX_SIGNALS] (SIGFULLMASK): New definition,
for symmetry with the "defined (POSIX_SIGNALS)" case.
* callproc.c (child_setup): Since we always get the environment
from Vprocess_environment, don't bother to take the environment
the subprocess should inherit as an argument anymore.
* process.c (create_process): Don't pass environment as a
variable. Just preserve it across call to fork.
1992-05-04 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* floatfns.c: #include <syssignal.h>.
(float_error): Use SIGEMPTYMASK instead of zero.
* syssignal.h [POSIX_SIGNALS] (sigmask): Defined to expand to a
statement expression under GCC, or a function call otherwise.
(sigpause, sigblock, sigunblock, sigsetmask): These are now
K&R-compatible macros.
* systerm.h [POSIX_SIGNALS] (sys_sigmask): Here is the function
the POSIX version of sigmask calls when we're not compiling with
GCC.
* alloc.c (Fmake_marker): Undo changes of Apr 29.
* callproc.c (Fcall_process): Same.
* data.c (arith_error): Same.
* floatfns.c (float_error): Same.
* keyboard.c (gobble_input): Same.
* sysdep.c (request_sigio, unrequest_sigio)
1992-04-29 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* x11term.h (CLASS): Change this from "emacs" to "Emacs"; class
names should always start with an upper-case letter.
* syssignal.h: Arranged cpp conditionals so that the specific
cases come first, generic cases last.
* syssignal.h (sigpause, sigblock, sigunblock, sigsetmask): Macros
removed; they require GCC, and Emacs 19 should compile without GCC.
(EMACS_SIGPAUSE, EMACS_SIGBLOCK, EMACS_SIGUNBLOCK)
(EMACS_SIGSETMASK, EMACS_SIGFREE, EMACS_SIGHOLDX, EMACS_SIGBLOCKX)
(EMACS_SIGUNBLOCKX, EMACS_SIGPAUSEX): These are new macros that
don't require GCC, but expand to statements.
* callproc.c (Fcall_process): Use new EMACS_SIG* macros from
syssignal.h.
* keyboard.c (gobble_input): Same.
* sysdep.c (request_sigio, unrequest_sigio): Same.
* x11term.h (BLOCK_INPUT, UNBLOCK_INPUT): Same.
* alloc.c (Fmake_marker): Same.
* data.c (arith_error): Same.
* floatfns.c (float_error): Same.
1992-04-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* ymakefile: If we're using GCC version 2.0 or later, use "$(CC)
-nostdlib" as the linker. This will allow us to find libgcc.a
even when GCC puts it in a really weird place.
(YMF_PASS_LDFLAGS): New macro.
(temacs): Use it.
* s/hpux.h: Doc fix.
* filelock.c (egetenv): Declare this.
(lock_path, SUPERLOCK_NAME, superlock_path): New variables and
macros.
(MAKE_LOCK_PATH, lock_file, unlock_file, lock_superlock): Use the
variables lock_path and superlock_path instead of the PATH_LOCK
and PATH_SUPERLOCK macros.
(init_filelock): New function.
* emacs.c (main): Call the init_filelock function.
* paths.h.in (PATH_SUPERLOCK): Removed. This is now calculated
from PATH_LOCK or from the EMACSLOCKDIR environment variable.
* filelock.c (MAKE_LOCK_PATH): New macro.
(lock_file, unlock_file, Ffile_locked_p): Use it.
* syntax.c (Fmodify_syntax_entry): Note that '-' is a synonym for
' ' (both denote whitespace), that '\\' denotes the escape class,
and that '/' denotes the character-quote class. The description
used to claim that '\\' denoted the character-quote class, and
neglected to mention '-' and '/'.
* filelock.c (lock_file): Doc fix.
1992-04-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callproc.c (init_callproc): Get the default Vexec_path from the
environment variable "EMACSPATH"; get Vdata_directory from
"EMACSDATA".
* ymakefile: Fix #endif and #else comments.
1992-04-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* ymakefile (xemacs): Link xemacs to temacs if HAVE_SHM.
* ymakefile (paths.h, config.h): Never copy, always fail.
* process.c (wait_reading_process_input): Redisplay if screen_garbaged.
Call do_pending_window_change first.
Include dispextern.h.
* ymakefile (process.o): Added dependency.
* ymakefile (OLDXMENU_OPTIONS): New macro, used compiling oldxmenu.
1992-04-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* ymakefile: Changed all references to LD_CMD to LINKER, for
compatibility with the 18.58 configuration files.
* s/aix3-1.h, s/sunos4shr.h: Same here.
* ymakefile: Doc fixes.
* ymakefile (CC, MAKE): Set these variables from optional macros.
Change all uses of `make' to ${MAKE}.
* ymakefile: Use HAVE_X11 as alias for X11.
* ymakefile (LIB_GCC, GNULIB_VAR): Handle GCC 2.
* process.c (allocate_pty): Re-arranged conditionals to put the
system-specific-case first, and the generic case in the #else
section, for consistency with the rest of Emacs.
* process.c (allocate_pty): Wait until we fail to open three ptys
in a row before concluding that we've reached the end of the ptys.
1992-04-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* ralloc.c: #include "getpagesize.h".
* search.c (Flooking_at): Use search_regs.num_regs instead of
RE_NREGS. As of regex version 0.4, the compiler allocates the
registers, and may allocate more than RE_NREGS.
(search_buffer): Same.
(Freplace_match): Use search_regs.num_regs to tell how many
registers are valid. Also note that if none are valid, no search
has been performed.
(match_limit): Same.
(Fmatch_data): Same.
(Fstore_match_data): If we're trying to store more registers than
search_regs has allocated, re-allocate them to make room.
1992-04-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callproc.c (egetenv): Declare the type of VAR.
* lisp.h: Don't undefine NULL. There is no longer any conflict.
* lisp.h (NUMBERP): New macro.
* editfns.c (Fformat): Protect the sections that deal with
Lisp_Float objects with a "#ifdef LISP_FLOAT_TYPE".
* bytecode.c (Fbyte_code): Use the NUMBERP macro instead of
explicitly checking for the Lisp_Float tag.
* callint.c (Fcall_interactively): Same here.
* xrdb.c (magic_searchpath_decoder): Re-allocate string as needed,
rather than making it a fixed-size array.
* xfns.c (Fx_rebind_key): Don't declare modifier_list to be a
register variable. It's too big, and we need the address of its
first element when we pass it to XRebindKeysym anyway.
* fileio.c (Fdo_auto_save): Doc fix.
1992-04-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* search.c (search_buffer): Cast RE_EXACTN_VALUE to char, because
the regex-0.4 distribution says so.
* ymakefile (dired.o): This depends on regex.h.
* process.c (wait_reading_process_input): There is code here which
sends SIGIO to Emacs if we thought we had input available but
didn't get SIGIO. If the system doesn't have SIGIO, then
#ifdef it out.
* print.c (Fexternal_debugging_output): Arguments were declared
ANSI-style - rewritten in K&R 1 fashion.
* floatfns.c (IN_FLOAT): Cast the zero in the `else' clause of the
conditional expression to SIGTYPE, to match the type of the
float_error call in the `then' clause.
* s/hpux8.h: #define HPUX8; this is supposed to be customary
procedure, and fileio.c was expecting it, but somehow it didn't
get defined.
* sysdep.h: Move inclusions of [AIX] <sys/hft.h>,
<sys/devinfo.h>, <sys/pty.h>, <unistd.h> [NEED_BSDTTY]
<sys/bsdtty.h>, [HPUX and HAVE_PTYS] <sys/ptyio.h>, [SYSV_PTYS]
<sys/tty.h>, <sys/pty.h>, and [pfa] <sys/file.h> to systerm.h;
also move undefinition of LLITOUT under BSD4_1 to systerm.h.
* systerm.h: They're here.
* xterm.c (XTcursor_to, XTclear_end_of_line): Declare to return
int in the function definitions as well as their declarations.
1992-04-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* fileio.c (directory_file_name): When checking if the string ends
with '/', check that slen is a valid length *before* examining
dst[slen-1], not after.
1992-04-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xterm.c (x_death_handler): New function.
(x_error_handler): Call x_death_handler to shut down Emacs.
(x_term_init): Use x_death_handler to handle SIGPIPE, instead of
x_error_handler, which expects to be passed a display and an
event.
* process.c (send_process): This used to set a handler to
catch SIGPIPEs when writing to a subprocess, and then set the
handler to SIGDFL after writing, but this would stomp on the
SIGPIPE handler for for the X connection. So restore the prevous
handler instead of changing to SIGDFL.
1992-04-18 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* indent.c (compute_motion): Fix skipping invis lines and
truncation at right margin.
1992-04-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* s/hpux.h (PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF): Use pty_name,
not ptyname.
* s/rtu.h: Same.
* process.c (pty_process): Add 'int' to the declaration 'static
pty_processes;'. This makes it a happy declaration even when
static has been #defined as the empty string.
* xterm.c (XTcursor_to, XTclear_end_of_line): Same.
* unexec.c (sbrk): Declare this to return void * if __STDC__ is
defined, or char * otherwise.
* lread.c (init_lread): Re-cleaned logic. To determine whether the
load path was changed before dumping, cons up a dump path and
compare it. This method is more localized and accurate.
(initial_path): Variable removed.
(syms_of_lread): Don't staticpro.
* floatfns.c (float_error): Declare and define this to return
SIGTYPE.
* systime.h [HAVE_TIMEVAL] (EMACS_GET_TIME): Declare dummy to be a
real struct timezone, instead of an EMACS_TIME. Since
HAVE_TIMEVAL is defined, struct timezone ought to be declared, so
there's no harm in passing the genuine article.
* sysdep.c [USG] (rename): Place under the protection of a new
preprocessor symbol, HAVE_RENAME.
* s/hpux.h (HAVE_RENAME): Defined.
* sysdep.c [USG] (setpriority): Declare to return int, not void.
* s/template.h: Add template section for HAVE_TERMIOS.
* term.c (cursor_to, raw_cursor_to, fatal): Do declare the types
of the arguments.
1992-04-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callint.c (Fcall_interactively): When the interactive spec is
a string, it may be relocated while reading the arguments. To
avoid this, make a copy of the spec to refer to, instead of
using a pointer to the data of the spec string.
* callint.c (Fcall_interactively): When following the function
chain of a symbol, check for quits.
1992-04-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* lread.c (init_lread): Make the load path default to
PATH_LOADSEARCH when we're not dumping (null purify-flag), and
PATH_DUMPLOADSEARCH when we are (not (null (purify-flag))).
Change from April 7th incorrectly always used PATH_DUMPLOADSEARCH.
* lread.c (init_lread): Cleaned up logic; to determine whether the
load path was changed before dumping, remember the initial value
and compare against it.
(initial_path): New variable to support this.
(syms_of_lread): staticpro initial_path.
* ymakefile: Renamed filenames like "*-dist" to "*.in".
* config.h.in: Doc fixes.
1992-04-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* config.h-dist: Renamed to config.h.in, for consistency with
the installation conventions of other GNU programs.
* paths.h-dist: Renamed to paths.h.in.
1992-04-11 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
* termcap.c: Declare getenv.
1992-04-08 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* Makefile: Renamed to Makefile.in; the configure script will edit
this to produce Makefile.
1992-04-07 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* paths.h-dist (PATH_DUMPLOADSEARCH): New macro.
* lread.c (init_lread): If we're building an Emacs to be dumped,
use PATH_DUMPLOADSEARCH as the default load path, so we can
correctly find our lisp files.
* config.h-dist, paths.h-dist: Added "-*- C -*-" to top lines, so
Emacs will know that these are really C source.
1992-04-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* search.c (syms_of_search): When allocating memory
searchbuf.buffer, cast the return value of malloc to unsigned char
*, not char *; this changed in the most recent version of the
regex code.
1992-03-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* doc.c (Fdocumentation): Don't forget to end each line of the
docstring with "\n\".
* process.c (Fprocess_connection): Change "#ifdef 0" around this
function to "#if 0".
* eval.c (Flet, FletX): Signal an error if one of the let's binding
clauses has more than one value form, as in (let ((a 1 2)) a).
* eval.c (Ffuncall): Re-install change of March 10; I don't know
why it went away.
* search.c (compile_pattern): Declare the variable which holds the
return value of re_compile_pattern to be const, if this is ANSI C.
* alloc.c (xrealloc): Change "ese" to "else".
* crt0.c (start1) [sun_soft]: Change 'jst' to 'jsr'. The Sun
assembly language manual doesn't list any 'jst' instruction, I
don't know of one personally, and all the analogous code
around it uses 'jsr'.
* crt0.c [m68k]: Merged with GNU C Library's version: added
conditionals for sun_68881, sun_fpa, sun_soft.
* config.h-dist: Adjusted for renaming of share-lib to etc.
* lread.c (read1): Same.
* doc.c (Fdocumentation_property, Fsnarf_documentation): Same.
* ymakefile: Same.
1992-03-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* crt0.c: Merged changes from 18.58:
[hp9000s300]: Set flag_fpa. Define float_loc.
[new hp assembler]: Double flag_fpa and flag_68881 if %d2!=0.
(start1): Declare to be static at the top of the file.
(_start): Removed static declaration in this function; since
everyone wants it, we'll just put it here.
1992-03-20 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Finsert_file_contents): Allow quitting from I/O.
(Fcopy_file): Likewise.
1992-03-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* m-intel386.h (HAVE_ALLOCA): Inhibit if C_ALLOCA.
(LIB_STANDARD): Alternate USG value if __GNUC__ or C_ALLOCA
* alloc.c (xrealloc): If handed a NULL pointer for the block to
resize, malloc a new block and return that. Not all reallocs do
this.
* m/elxsi.h: Doc fix.
1992-03-18 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* dispnew.c (Fsleep_for): Call wait_reading_process_input, whether
or not we have process support; let the emulator do the work.
* emacs.c (fatal_error_signal, Fkill_emacs): Call
kill_buffer_processes even when subprocesses is not #defined; we
have a stub.
* process.c [not defined (subprocesses)] (Fget_buffer_process,
init_process, syms_of_process): New stub versions of these functions.
* emacs.c (main): Call init_process and syms_of_process whether or
not subprocesses is #defined.
* xdisp.c (decode_mode_spec): Call Fget_buffer_process whether or
not subprocesses is #defined.
1992-03-17 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (kbd_buffer_get_event): Call
wait_reading_process_input, even when subprocesses is not
#defined, instead of doing a whole lot of hairy SIGIO-pausing
stuff.
* dispnew.c (Fsit_for): Call wait_reading_process_input, whether
or not subprocesses is #defined.
* process.c (wait_reading_process_input): Since we're no longer
checking for exceptional conditions in the call to select, all of
the different ways to call select for different systems have
become the same; remove the #if conditionals around this.
* keyboard.c (read_char): When returning quit_char because we got
an interrupt signal, claim that the character came from the
currently selected screen.
1992-03-16 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callproc.c (Fcall_process): Doc fix.
* process.c [not defined (subprocesses)] (kill_buffer_processes):
New dummy version of this function.
* buffer.c (Fkill_buffer): Removed '#ifdef subprocesses'
protection from the call to kill_buffer_processes; this is safe
whether or not we actually have subprocesses.
1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* m/pfa50.h: New file.
* process.c (create_process, process_send_signal): Added changes
for m/pfa50.h.
* sysdep.c: Same.
* unexec.c: Same.
1992-03-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callproc.c (child_setup): Always put the child in its own
process group.
1992-03-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* mem_limits.h (POINTER): Doc fix.
* ralloc.c: Don't #include lisp.h and xterm.h; we no longer need
to block input in critical sections.
(r_alloc, r_alloc_free, r_re_alloc): Don't use BLOCK_INPUT and
UNBLOCK_INPUT; these are no longer needed.
(struct bp): Doc fix.
1992-03-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* ralloc.c (obtain): When deciding how many pages to request, take
into account the amount of spare bytes at the end of the current
page; let get be ROUNDUP (size - already_available), instead of
ROUNDUP (size).
(relinquish): Re-organized for clarity.
* editfns.c (Fcurrent_time): Updated to return the current time's
seconds split into two 16-bit integers (similar to the system used
by file-attributes), and the milliseconds.
1992-03-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* process.c (Faccept_process_output): Add new optional argument
TIMEOUT-MSECS, and return non-nil iff we actually got some input
from the process(es).
(wait_reading_process_input): Make return value indicate whether
we got some input from the specified process, when read_kbd is a
process, or from any process when read_kbd isn't particular.
* indent.c (Fmove_to_column): Pass the correct number of arguments
to Findent_to.
* eval.c (Ffuncall): If a subr is asking for too many arguments,
abort instead of printing an error message; this is an internal
flaw in Emacs, and the subr cannot be called.
1992-03-06 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* doc.c (Fdocumentation, Fdocumentation_property): Take optional
new arg to not pass results thru substitute-command-keys.
1992-03-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* unexmips.c (unexec): When setting up the data_section header,
calculate the size of the section as "brk - data_start," not "brk
- DATA_START".
1992-02-23 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* fileio.c: #include "systime.h".
(Fcopy_file): Use the systime.h macros to copy the time to the new
file.
* ymakefile: Note that fileio.o depends on systime.h.
* ymakefile (dispnew.o): Note that this depends on systerm.h and
systime.h.
(editfns.o, xterm.o, sysdep.o): Note that this depends on
systime.h.
(emacs.o, keyboard.o, process.o, sysdep.o): Note that these depend
on systerm.h.
* systerm.h: Expanded to handle getting and setting terminal
parameters:
(struct emacs_tty): New structure, which consolidates all of the
old tty parameter structures.
(EMACS_GET_TTY, EMACS_SET_TTY, EMACS_TTY_TABS_OK): New macros.
* sysdep.c (TABS_OK): Definitions of this macro removed;
EMACS_TTY_TABS_OK replaces it.
(TERMINAL): Definitions removed; now we use struct emacs_tty.
[VMS] (input_chan): Renamed to...
(input_fd): and defined even when VMS isn't; in that case, we
leave it initialized to zero, which is the input tty. This allows
us to use the EMACS_GET_TTY and EMACS_SET_TTY for both VMS and
Unix.
(discard_tty_input): Use struct emacs_tty and its macros instead
of TERMINAL. Replace some of conditional with a call to
EMACS_GET_TTY.
(child_setup_tty): Use struct emacs_tty and its macros instead of
TERMINAL and conditionals.
(old_gtty, old_ltchars, old_tchars, old_lmode): Replaced by...
(old_tty): New variable.
(lmode): Made conditional on BSD4_1, since it's only used by the
BSD4_1 support code now.
(init_sys_modes): Define tty to be a struct emacs_tty, not a
TERMINAL. Use macros to get and set parameters for VMS and
Unices. Set lmode, tchars, and ltchars along with the rest of the
tty state.
(tabs_safe_p): Use EMACS_GET_TTY and EMACS_TTY_TABS_OK instead of
conditionals.
(reset_sys_modes): Use EMACS_SET_TTY to restore the settings from
old_tty, instead of using hairy conditionals.
* sysdep.c (get_screen_size): Neatened; now each system of
reporting the screen size is separated from the rest.
* systerm.h (EMACS_HAVE_TTY_PGRP, EMACS_GET_TTY_PGRP,
EMACS_GET_TTY_PGRP): New macros to handle setting a tty's current
process group.
* sysdep.c (setpgrp_of_tty): Use the above, instead of
conditionals.
* sysdep.c: #include "systerm.h".
#ifs that choose #include files moved from here...
* systerm.h: to here.
* sysdep.c [APOLLO]: We now undefine TIOCSTART not here but...
* systerm.h: here.
* sysdep.c [BROKEN_TIOCGETC]: We now undefine TIOCGETC not here but...
* systerm.h: here.
* sysdep.c [BROKEN_FIONREAD]: We now undefine FIONREAD and FASYNC
not here but...
* systerm.h: here.
* process.c (process_send_signal): Steal 18.58's version of this,
but incorporate the support for VMS signals.
* syssignal.h (EMACS_KILLPG): New macro.
* process.c (process_send_signal): Use it.
* sysdep.c (sys_suspend): Use it.
* syssignal.h (SIGCHLD): If we have SIGCLD and not SIGCHLD, define
SIGCHLD as an alias for SIGCLD.
* sysdep.c: Remove code for above.
* sysdep.c (init_baud_rate): Rather than trying to maintain the
illusion of an abstraction with the OSPEED and SETOSPEED macros,
just use conditionalized code for each terminal kind. This is the
only place we ever need this functionality.
(OSPEED, SETOSPEED): Definitions removed.
1992-02-22 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* sysdep.c: Moved definition of sigunblock macro to ...
* syssignal.h: Here.
* hftctl.c: #include <sys/uio.h> before #including <sys/tty.h>.
(hfqry, hfskbd): Declare these functions as static before all uses.
* unexaix.c (make_hdr, mark_x, copy_text_and_data, copy_sym):
Declare as static before all uses.
Remove extraneous semicolons from #ifdefs of COFF and XCOFF.
(unrelocate_symbols): Cast the initializers of t_start and d_start
to ulong.
* s/template.h: Include a clause for the HAVE_TERMIO flag.
1992-02-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (read_char): Don't clear Vquit_flag when we catch an
interrupt and return a quit_char; this change (Mar 21 1991) is too
large a change in functionality for the cleanliness it gains.
* pwd.h: Renamed to vms-pwd.h, so that we don't get it by accident
when we #include <pwd.h> with the `-I.' flag given to the
compiler.
* editfns.c [VMS]: Changed to include vms-pwd.h instead of pwd.h.
* fileio.c [VMS]: Same.
* filelock.c [VMS]: Same.
* sysdep.c [VMS]: Same.
* xrdb.c: Changed to #include "vms-pwd.h" if VMS is defined,
instead of including <pwd.h> unconditionally.
* window.c (Fset_window_display_table): Rearranged to make etags
happy.
* xterm.c (XTread_socket): Clear the meta flag from the keypress
event before handing it to XLookupString.
1992-02-20 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* sysdep.c: No need to test #ifdef TIOCGETP before #undefing it.
1992-02-19 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* systime.h: New file.
* dispnew.c: #include "systime.h" to get <time.h> or <sys/time.h>,
whichever is appropriate, instead of using a conditional.
(Fsleep_for, Fsit_for, Fsleep_for_millisecs): Use the systime.h
macros instead of HAVE_TIMEVAL conditionals.
* editfns.c: #include "systime.h" to get <time.h> or <sys/time.h>,
whichever is appropriate, instead of using a conditional.
* fileio.c: Same.
* process.c: Same.
* xterm.c: Same.
(wait_reading_process_input): Use the systime.h macros.
* sysdep.c: #include "systime.h" to get <time.h> or <sys/time.h>,
whichever is appropriate, instead of using a conditional.
* m/template.h: Add description of NO_SOCK_SIGIO.
* sysdep.c (reset_sys_modes): Doc fix.
* keyboard.c (sigfree, sigholdx, sigblockx, sigunblockx)
(sigpausex): Definitions moved to syssignal.h.
* dispnew.c: Doc fix.
* systerm.h: New file, to consolidate the system-dependent
terminal-handling trash.
* emacs.c: #include systerm.h.
(main): Use systerm.h macros instead of conditionals.
* dispnew.c: #include systerm.h.
(update_screen): Use EMACS_OUTQSIZE instead of the direct ioctl.
* keyboard.c: #include systerm.h to get the proper FIONREAD header
files, instead of using conditional.
* syssignal.h: Added copyright notice.
* emacssignal.h: Renamed to syssignal.h, to be like sysdep.c.
* data.c, keyboard.c, process.c, sysdep.c, ymakefile: Changed
#include directives.
1992-02-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* m/intel386.h: Don't bother casting the argument to the signal
function; the SIGTYPE code in config.emacs ought to take care of
this.
* buffer.c (record_buffer): Doc fix.
1992-02-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* s/iris3-6.h: #define HAVE_GETWD.
1992-02-11 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* window.c (Fwindow_at): Accept position as two arguments, not a
cons of numbers.
* window.c (scroll_command): Undo the Jan 31 change; do set the
current buffer to the selected window's buffer. A simple
set-buffer will make these two different.
1992-02-10 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* callproc.c (Fcall_process): Clear synch_process_death and
synch_process_retcode to zero before forking the process.
* process.c (synch_process_death, synch_process_retcode): Don't
declare them extern here.
* process.h (synch_process_death, synch_process_retcode): Declare
them extern here, along with synch_process_alive.
* s/hpux.h: Define CLASH_DETECTION.
* window.c (init_window_once): Don't pass any arguments to
make_window.
* keyboard.c (command_loop_1): Move the label directly_done out of
the else block to just after the else block. This shouldn't
change the semantics of the code, but appears to avoid a compiler
bug on SCO Unix V.3.2v2.
* fileio.c (Fset_umask, Fumask): New functions.
(syms_of_fileio): defsubr them.
* undo.c (Fprimitive_undo): When undoing a deletion with the point
before the deleted text, use Finsert_before_markers so that the
mark will end up on the other side of the text, if it's in the
area at all.
* xdisp.c (redisplay): Properly compute TAB_OFFSET for compute_motion.
* keyboard.c (command_loop_1): Don't check whether cursor is at
edge of screen here.
* dispnew.c (direct_output_forward_char): Check here, and return
zero if it can't be done. And compare the cursor position to the
window boundaries, not the screen boundaries.
1992-02-05 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* screen.c (Fscreen_parameters): If the screen has a minibuffer
window on another screen, return the window, instead of nil.
(store_screen_param): If the value of the minibuffer parameter is
a window, try to make it the surrogate minibuffer window.
(Qminibuffer): New variable, to support above change.
(syms_of_screen): Initialize and staticpro it.
* m/tad68k.h: New file.
* fileio.c (Ffile_accessible_directory_p): New function.
(syms_of_fileio): defsubr it.
* callproc.c: #include <errno.h>.
(child_setup): Accept yet another argument, current_dir.
Don't try to report an error here if current_dir is inaccessible;
this function is called in a vforking process. Just have the
process exit with an error code.
(Fcall_process): Make sure that the current directory is okay
here, before we fork. Pass the current_dir argument.
* process.c (create_process): Same here.
* callproc.c (Fcall_process): Don't assign into args[1] when nargs
< 2. Instead, use a new variable called infile. Re-arranged
logic which processes the BUFFER argument.
1992-02-03 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* fileio.c (Fexpand_file_name): Doc fix.
* scroll.c (line_ins_del): Since we're calculating the array from
end to beginning, make the indices go that way, and thus clearly
get the right boundary. This used to ignore the [0] element, and
write in the [screen_height] element, which doesn't exist.
1992-02-03 Richard Stallman (rms@mole.ai.mit.edu)
* xdisp.c (redisplay, try_window_id): Special case for change
at beginning of line, if using selective display.
1992-01-31 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* m/delta88k.h: Added USUAL-OPSYS information, for the
config.emacs script to use.
* window.c (scroll_command): Don't bother setting the current
buffer to the selected window's buffer; this should always already
be the case. Add check just in case.
* indent.c (compute_motion): Don't pack vpos and hpos into one int;
use separate variables hpos/vpos and prev_hpos/prev_vpos.
(vmotion): Use largest int as tovpos arg to compute_motion.
1992-01-30 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* window.c: #include "keyboard.h" to get the Qmode_line and
Qvertical_split declarations.
* ymakefile (window.o): Note that this depends on keyboard.h.
* callproc.c (getenv_internal): Cast the pointer to the variable's
value to a char *; elisp strings are unsigned char *'s. And
valuelen is an int *, not an int **.
* scroll.c (do_scrolling): Document meaning of enable flag in
temp_screen.
1992-01-30 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m-orion105.h (C_DEBUG_SWITCH, LIBS_DEBUG): Defs deleted.
1992-01-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m-iris4d.h (C_SWITCH_MACHINE): New definition.
1992-01-28 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* term.c: #include "keyboard.h", for Vfunction_key_map.
* keyboard.h: Declare Vfunction_key_map.
* keyboard.h: New file, for external declarations used in
processing keyboard input and events.
* lisp.h (Qmode_line, Qvertical_split, num_input_chars)
(poll_suppress_count): Extern declarations moved to keyboard.h.
* keyboard.c: #include "keyboard.h".
(Qvscrollbar_par, Qvslider_part, Qvthumbup_part)
(Qvthumbdown_part, Qhscrollbar_part, Qhslider_part)
(Qhthumbleft_part, Qhthumbright_part): Moved declarations here from
xfns.c, so they're with the other event heading symbols.
* eval.c: #include "keyboard.h".
* ymakefile (callint.o, keyboard.o, keymap.o, xfns.o, eval.o):
Note that these depend on keyboard.h.
* xfns.c: The above symbols aren't here any more. #include
"keyboard.h" to get them.
(syms_of_xfns): Don't initialize or staticpro them.
* keyboard.h: Added extern declarations for the above.
* callint.c: #include "keyboard.h".
* xfns.c (Vmouse_screen_part): Variable removed, no longer used.
(syms_of_xfns): Changed accordingly.
* xterm.c (Qmouse_moved): Variable removed, no longer used.
(Qmouse_click, Qscrollbar_click): Removed. These are now event
types, in keyboard.c and keyboard.h; they're no longer used in
this way.
(Vmouse_window, Vmouse_screen_part): Extern declarations removed.
(XTread_socket): Don't assign to Vmouse_window or
Vmouse_screen_part.
(syms_of_xterm): Changed accordingly.
* keyboard.h (EVENT_HAS_PARAMETERS, EVENT_HEAD, EVENT_WINDOW)
(EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON, EVENT_WINDOW_POSN)
(EVENT_TIMESTAMP, EVENT_HEAD_UNMODIFIED, EVENT_HEAD_KIND): New
macros to recognize and access events that have parameters, like
mouse events.
* keyboard.c (read_char, echo_char, Fmouse_click_p)
(read_key_sequence): Use them.
* keymap.c: #include "keyboard.h".
(access_keymap, store_in_keymap, Fsingle_key_description): Use the
macros from keyboard.h.
* keyboard.c (Qevent_kind): New symbol, naming the property of an event
header where we put the event's type.
(Qfunction_key, Qmouse_click, Qscrollbar_click): New symbols, used
to tag different kinds of events.
(Qevent_unmodified): New symbol, naming the property
of an event header where we put an unmodified version of the event
header.
(modify_event_symbol): Take a new argument, SYMBOL_KIND, whose
value should be put on the Qevent_kind property of each symbol we
make. Set the Qevent_unmodified property of each symbol we make.
(make_lispy_event): Pass the appropriate SYMBOL_KIND argument to
modify_event_symbol.
(struct event_head, head_table): New tables, to simplify the
initialization of some of the event heads.
(syms_of_keyboard): Initialize and staticpro the symbols given in
head_table, and put the Qevent_kind and Qevent_unmodified
properties on them. Initialize all of the new symbols listed
above.
* keyboard.c (lispy_function_keys, lispy_mouse_names): Renamed
these from function_key_names and mouse_names, and moved them
outside of make_lispy_event, since static doesn't work on all
systems, and these can't be automatic.
1992-01-28 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fileio.c (Fwrite_region): Remove Alliant conditional.
* crt0.c: Conditionals for ALLIANT_2800.
* m/alliant-2800.h: New file.
* unexfx2800.c: New file.
* m-mips4.h (C_DEBUG_SWITCH): Alternate defn for GCC.
* sysdep.c [VMS] (sys_write): Special case for fixed-length
with carriage-control characters.
* s/isc2-2.h (NOMULTIPLEJOBS): Undef this.
(LIB_STANDARD): Add -lPW.
(LIBS_SYSTEM): Defined.
* m/intel386.h (signal): Optionally don't define it.
1992-01-27 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* s/template.h: Document the SIGTYPE macro.
* s/bsd4-3.h: Define the SIGTYPE macro.
* data.c (Fsymbol_value): Extract all the innards of this function
into find_symbol_value, except the code which signals an error.
(find_symbol_value): New function.
* lisp.h (find_symbol_value): Declare it.
* keymap.c (current_minor_maps): Use it, instead of a call to
Fboundp and Fsymbol_value per every minor map, for every key
sequence read.
* xterm.c (x_make_screen_visible): Don't raise the window. This
causes the window to pop to the front every time a message
appears, which isn't desirable.
* screen.c (Fselect_screen, Fdelete_screen, Fset_mouse_position)
(Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
(Fdeiconify_screen, Fscreen_parameters, Fmodify_screen_parameters)
(Fset_screen_height, Fset_screen_width, Fset_screen_size)
(Fset_screen_position): Use SCREEN_IS_X macro instead of testing
for output_x_window.
* xfns.c (adjust_scrollbars, Fx_store_cut_buffer): Same.
1992-01-25 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* term.c (term_get_fkeys): New function.
(term_init): Call term_get_fkeys.
1992-01-21 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* editfns.c (Ffollchar, Fprevchar): Renamed to Ffollowing_char and
Fprevious_char, for consistency. Renamed Sfollchar and Sprevchar
too.
(syms_of_editfns): Fixed defsubrs.
* lisp.h (Ffollchar, Fprevchar): Renamed extern declarations as above.
* editfns.c (Ffollowing_char): Return 0 at the end of the buffer,
as advertised. Doc fix.
(Fprevious_char): Doc fix.
* config.h-dist: Rearranged to define user parameters before
including the machine and opsystem files, so the files can have
conditionals on the parameters.
1992-01-15 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (read_key_sequence): When expanding a function key
recognized with Vfunction_key_map, don't scan the expansion for
further function key sequences.
* keyboard.c (Vfunction_key_map): Real declaration moved to
keymap.c; this declaration made extern.
(syms_of_keyboard): DEFVAR and initialization of Vfunction_key_map
moved to keymap.c, since it should be initialized to a keymap, but
we don't want to rely on Qkeymap being initialized now.
* keymap.c (Vfunction_key_map): Variable moved here.
(syms_of_keymap): DEFVAR and init here.
* keymap.c (Fglobal_key_binding): Doc fix.
1992-01-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m-delta88.h: New file.
* window.c (window_scroll): New arg `noerror'.
(scroll_command, Fscroll_other_window): Pass that arg.
1992-01-15 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* process.c (sigchld_handler):
Set synch_process_death and synch_process_retcode.
1992-01-14 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* config.h-dist (SIGTYPE): New macro to help give signal handlers
the correct type.
* s/usg5-3.h (SIGTYPE): Define this to be void.
* dispnew.c (window_change_signal): Declare this to return
SIGTYPE.
* emacs.c (fatal_error_signal): Same.
* data.c (arith_error): Same.
* process.c (create_process_1, send_process_trap,
create_process_sigchld, sigchld_handler): Same.
(create_process): Declare sigchld according to SIGTYPE. This
means we don't have to cast the return value of signal.
* keyboard.c (input_poll_signal, interrupt_signal): Declare these
to return SIGTYPE.
(kbd_buffer_store_event): Include a forward declaration for
interrupt_signal here.
* sysdep.c (struct save_signal): Say the handler returns SIGTYPE
instead of int.
(save_signal_handlers): So we don't have to cast the return value
from signal here.
(sys_suspend): Declare oldsig according to SIGTYPE.
(select): Declare old_trap using SIGTYPE.
(select_alarm, wait_for_termination_signal): Declare these to
return SIGTYPE.
* emacs.c: #include <termios.h>, if we have it.
(fatal_error_signal): If we have termios, use tcgetpgrp to get the
terminal's process group.
* process.c: If we have termios, #include <termios.h> instead of
<termio.h>.
(process_send_signal): If we have termios, use tcgetpgrp to get
the terminal's process group. Have gid default to the child's
pid, to simplify the logic below.
* sysdep.c (flush_pending_output): If we are using termios, make
this function a no-op; since we're not in the tty's pgroup, we
would get a SIGTTIN.
1992-01-13 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* config.h-dist: Removed MAINTAIN_ENVIRONMENT clause.
* callproc.c: Removed support for MAINTAIN_ENVIRONMENT.
(init_callproc): Use getenv instead of egetenv to initialize
Vshell_file_name.
* emacs.c (decode_env_path): Use getenv instead of egetenv
* lisp.h: Removed support for MAINTAIN_ENVIRONMENT.
* process.c: Same.
* ymakefile: Same.
* dispnew.c (init_display): Call getenv instead of egetenv.
* editfns.c (Fgetenv): Function moved...
* callproc.c (Fgetenv): To here, and made to scan
Vprocess_environment instead of using the usual C getenv function.
(getenv_internal): New function.
(egetenv): New function.
* lisp.h: Added extern declaration for egetenv.
* editfns.c (syms_of_editfns): Adjusted.
* callproc.c (syms_of_callproc): Adjusted.
* window.h (minibuf_prompt_width): Declare this extern here, after
minibuf_prompt.
minibuf.c: Don't extern declare it here.
indent.c: As above.
* dispnew.c (buffer_posn_from_coords): If there is a prompt in the
minibuffer, account for its width when computing the buffer
position.
* Makefile (doall): Explicitly export CC to the xmakefile.
* ymakefile: Use /* */ around comments; # confuses cpp.
* ymakefile: Note that ralloc.o depends on mem_limits.h, xterm.h,
and config.h.
Note that vm-limit.o depends on mem_limits.h.
* lread.c (read_escape): Return \a as '\007', not '\a'; the latter
isn't portable, and this routine would have to be revised anyway
to deal with anything other than ASCII.
* keymap.c (current_minor_maps): Rewritten not to use
function-local static variables, to accomodate DGUX.
* xterm.h (UNBLOCK_INPUT): Replace "abort ()" with "(abort (),
0)", to avoid type conflicts on odd systems like Ultrix.
* xrdb.c: Include <sys/types.h>, and declare getuid to return uid_t.
* xdisp.c (redisplay_window): Use SET_PT macro instead of
assigning to point.
insdel.c (insert_from_string): Same.
* xterm.c (XTcursor_to): Declare it static at the function
definition, as well as at the top of the file.
(dumpglyphs): Removed declarations for buf and cp; these variables
are never used.
* lisp.h (NULL): Renamed to NILP, so as not to conflict with
<stdio.h>, and <stddef.h>. All callers changed; all
#undefinitions of NULL removed.
1992-01-12 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* xdisp.c (message): #ifdef NO_ARG_ARRAY, make a local block to
declare the explicit argument array.
* config.h-dist: Instead of reaching the machine- and
system-dependent files through symlinks, replace the strings
1992-01-09 Jim Blandy (jimb@pogo.cs.oberlin.edu)
* keyboard.c (stuff_buffered_input): Don't forget to increment
kbd_fetch_ptr while looping through kbd_buffer.
1992-01-08 Jim Blandy (jimb@occs.cs.oberlin.edu)
* keyboard.c (read_avail_input): Don't forget to fill in the
screen field in events read from the terminal.
* sysdep.c (kbd_input_ast, read_input_waiting): Call
kbd_buffer_store_event with a `struct input_event *', not a
character or a Lisp_Object.
1991-12-21 Jim Blandy (jimb@occs.cs.oberlin.edu)
* bytecode.c (docall): Don't remove protection from the arguments
to Ffuncall.
1991-12-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (Vfunction_key_map): New variable.
(read_key_sequence): Changed to recognize and substitute bindings
in Vfunction_key_map at any point in the sequence, unless they
conflict with ordinary bindings.
(syms_of_keyboard): DEFVAR, document, and initialize
Vfunction_key_map.
1991-12-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keymap.c (Vminor_mode_map_alist): New variable, to support
keymaps for minor modes.
(current_minor_maps, Fminor_mode_key_binding,
Fcurrent_minor_mode_maps): New functions.
(Fkey_binding): Rewritten to scan for minor mode bindings too.
(syms_of_keymap): DEFVAR, document, and initialize
Vminor_mode_map_alist, and defsubr the new Ffunctions.
(describe_buffer_bindings): Describe the bindings established by
minor modes too.
* keyboard.c (follow_key): New function, to support...
(read_key_sequence): Completely rewritten to handle scanning an
arbitrary number of keymaps at a time.
* keyboard.c (Fread_key_sequence): GCPRO keybuf, since it can hold
lisp expressions while waiting for input. Don't pass too many
arguments to read_key_sequence.
(command_loop_1): Don't pass too many arguments to read_key_sequence.
* keyboard.c (add_command_key): New function; there are several
places that add keys to this_command_keys, so we make one function
to do the work.
(read_char, Fexecute_extended_command): Call add_command_key
instead of writing out its code again.
(init_keyboard): Allocate this_command_keys according to
this_command_keys_size.
* lread.c (read1): Change comment to use `share-lib' instead of `etc'.
* doc.c (Fdocumentation_property, Fsnarf_documentation): Update
docstring similarly.
(Fsnarf_documentation): Use "../share-lib/" instead of "../etc/"
to find doc file while dumping.
* unexaix.c: Similar doc fix.
* ymakefile (etcdir): Variable removed.
(libsrc, archlib, sharelib): New variables, to take the place of
etcdir.
1991-12-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* ymakefile (CFLAGS): Don't automatically include C_DEBUG_SWITCH
in the value for CFLAGS; the configuration script will take care
of choosing the debugging and optimization switches.
* config.h-dist: Copy the GLYPH definitions from config.h to here.
1991-12-16 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* abbrev.c (Fexpand_abbrev): Run pre-abbrev-expand-hook.
(syms_of_abbrev): Define that variable.
1991-12-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* m/m-*.h: Since the m- is now redundant, renamed all files to
remove it, and changed references within files.
* s/s-*.h: Same business.
1991-12-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* config.h-dist (MULTI_SCREEN): Define this automatically when
we're using a window system.
1991-12-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* m/m-*.h (i.e. all machine config files): Added USUAL-OPSYS
comments to tell the configuration script what sort of operating
system this machine typically runs.
* config.h-dist (MScreenWidth, MScreenLength): Deleted; no longer
used.
1991-12-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* editfns.c (Fcurrent_time): New function, to return the current
time as a number, like the Unix time(3) function. This might be
fun to port.
(syms_of_editfns): defsubr it.
1991-12-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keymap.c (Vminor_mode_map_alist): New variable.
(current_minor_maps): New function.
(Fcurrent_minor_mode_maps): New function.
(syms_of_keymap): DEFVAR, document, and initialize
Vminor_mode_map_alist, and defsubr Fcurrent_minor_mode_maps.
* callproc.c (Vdata_directory): New lisp variable, for the
directory containing architecture-independent data files.
(init_callproc): Initialize Vdata_directory from PATH_DATA, and
make sure it exists. Renamed execdir to tempdir, because we use
it for both Vexec_directory and Vdata_directory.
(syms_of_callproc): Doc fix for Vexec_directory, new DEFVAR_LISP
for Vdata_directory.
* paths.h-dist (PATH_DATA): New path macro, to initialize
Vdata_directory.
* doc.c (get_doc_string): Use Vdata_directory to find the
docstrings, not Vexec_directory.
* lisp.h (Vdata_directory): New extern declaration, for above
users.
* config.h-dist: Changed references to ../etc to ../share-lib.
* callint.c (Fcall_interactively): For the 'k' interactive code,
cast the type of the symbol name before passing it to error.
1991-12-02 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (make_lispy_movement): Move call to
mouse_position_hook from here...
(kbd_buffer_get_event): To here, for symmetry with non-movement
events.
* keyboard.c (kbd_buffer_get_event): Set Vlast_event_screen for
mouse movements, too.
1991-11-27 Jim Wilson (wilson@wookumz.gnu.ai.mit.edu)
* alloca.c (alloca): Add parens to make precedence clearer.
1991-11-26 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
* search.c: Need to include sys/types.h because of recent mod to
regex.h.
1991-11-25 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* bytecode.c: BYTE_CODE_METER and BYTE_CODE_SAFE undefined by default.
(METER_CODE): Define same name whether metering or not.
(BinsertN): New byte code.
(Fbyte_code): Improve overflow/underflow error messages.
(docall): Put back previously lost code to remove protection
from funcall args.
1991-11-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* lisp.h (make_array): New extern declaration.
* alloc.c (make_sequence): Renamed to make_array; more accurate.
* keyboard.c (Fread_key_sequence, Fthis_command_keys): Callers fixed.
* macros.c (Fend_kbd_macro): Callers fixed.
1991-11-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (cmd_error): If an error occurs before somebody has
provided a screen to print it on, print it to stderr and exit
Emacs. Handle batch-mode errors with the same code.
* lisp.h (Qexternal_debugging_ouput): New extern declaration, for
use in cmd_error.
* screen.c (Fscreen_pixel_size, Fset_screen_position): Doc fix.
* window.c (Fwindow_at): Typecheck COORDINATES more thoroughly.
* screen.c (read_mouse_position): Function deleted.
(Fread_mouse_position): Renamed to Fmouse_position, and changed to
use mouse_position_hook.
(syms_of_screen): Adjusted accordingly.
* xfns.c (x_read_mouse_position): Function deleted.
* screen.h (SCREENP): The non-MULTI_SCREEN case used to say this
was false for all objects, but it should be true for the terminal
screen, so make its definition the same as in the MULTI_SCREEN
case.
* screen.h (SCREEN_LIVE_P): New predicate.
(CHECK_LIVE_SCREEN): New type-checking macro.
(Qlive_screen_p): New error-reporting symbol.
* screen.c (Qlive_screen_p): Declare the new symbol.
(Flive_screen_p): New lisp predicate.
(syms_of_screen): Initialize, staticpro, and defsubr the lot.
* dispnew.c (Fredraw_screen): Use CHECK_LIVE_SCREEN.
* screen.c (Fscreen_root_window, Fscreen_selected_window)
(Fnext_screen, Fset_mouse_position, Frestore_screen_configuration)
(Fmake_screen_visible, Fmake_screen_invisible, Ficonify_screen)
(Fdeiconify_screen, Fscreen_visible_p, Fredirect_screen_focus)
(Fscreen_focus, Fmodify_screen_parameters, Fset_screen_height)
(Fset_screen_width, Fset_screen_size, Fset_screen_position)
(Fselect_screen): Use CHECK_LIVE_SCREEN.
* window.c (Fwindow_at, Fcurrent_window_configuration): Use
CHECK_LIVE_SCREEN.
* xfns.c (Ffocus_screen, Fx_pixel_width, Fx_pixel_height): Use
CHECK_LIVE_SCREEN.
* screen.c (Fdelete_screen): Do nothing if SCREEN is already
deleted.
* screen.c (Qscreenp): Staticpro this symbol.
* xfns.c (Fx_create_screen): Doc fix.
* xfns.c (Fx_create_screen): Give the screen a minibuffer if the
'minibuffer parameter is t or nil; nil is the default value for
omitted parameters, and t is intuitive.
1991-11-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* eval.c (specbind): Check that the thing being bound is a symbol.
(funcall_lambda): Signal an invalid-function error if the
arguments are not all symbols.
1991-11-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (Fselect_screen): Don't select dead screens.
* print.c (print): Print dead screen objects starting with
"#<dead screen".
* keyboard.c (read_key_sequence): Make sure that the compound
events actually have valid window fields.
* window.c (next_screen_window): Function deleted; Fnext_window
can now do its job properly.
(window_from_coordinates, window_loop): Call Fnext_window instead
of next_screen_window.
* xdisp.c (redisplay): Don't clear out minibuffer windows in the
midst of the screen loop here. That's confusing.
(redisplay_window): Since this needs special code to detect
minibuffers anyway, put it here. And clear all the lines of a
multi-line minibuffer, not just the first one.
1991-11-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (Fdelete_screen): When searching Vscreen_list for a new
value for last_nonminibuf_screen, remember that the screens live
in the cars of the list, not the cdrs.
* xterm.c (x_make_screen_visible): Rearranged for clarity.
* xdisp.c (echo_area_display): Rearranged for clarity.
1991-11-06 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (next_screen, prev_screen): New meaning for MINI_SCREEN
argument helps implement the behavior of Fnext_window.
(Fnext_screen): Document the new behavior.
* screen.c (make_minibuffer_screen): Do set has_minibuffer for
minibuffer-only screens.
(Fscreen_parameters): Correctly generate value of minibuffer
parameter using SCREEN_HAS_MINIBUF and SCREEN_MINIBUF_ONLY_P.
* screen.h (SCREEN_HAS_MINIBUF): New predicate.
* dispnew.c (change_screen_size): Use it.
* screen.c (Fdelete_screen): Use it.
* screen.c (Vglobal_minibuffer_screen): Renamed
Vdefault_minibuffer_screen to better describe its significance.
(make_screen_without_minibuffer, syms_of_screen): Adjusted.
* xfns.c (Fx_create_screen): Doc string adjusted.
* xdisp.c (display_mode_line): Make the code which names the
screen after the current buffer not depend on
Vglobal_minibuffer_screen.
* xterm.c (Vglobal_minibuffer_screen): Don't declare this extern
here; it's never used.
1991-11-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (Fdelete_screen): Document the fact that surrogate
minibuffer screens may not be deleted.
* screen.h (SCREEN_MINIBUF_ONLY_P): New predicate, true iff the
screen's only window is a minibuffer, aka a "minibuffer screen" or
a "minibuffer-only" screen.
* dispnew.c (change_screen_size): Use it.
* screen.c (Fselect_screen, next_screen, prev_screen)
(Fdelete_screen): Use it.
* window.c (Fdisplay_buffer): Use it.
* screen.c (next_screen, prev_screen): Make MINIBUF a lisp
boolean, not a C boolean.
(Fnext_screen, Fdelete_screen): Changed to fit.
* window.c (Fnext_window, Fprevious_window): Changed to fit.
* screen.c (make_screen_without_minibuffer): Error string improvement.
* screen.c (syms_of_screen): Doc grammar fix for Vemacs_iconified.
* screen.c (next_screen): Added some sanity checks, rewrote comments.
* screen.h (Vglobal_minibuffer_screen): Don't declare this. It
shouldn't be used for anything but screen creation.
* window.c (Fminibuffer_window): Vglobal_minibuffer_screen is not
necessarily the screen containing the current minibuffer window.
Also, call choose_minibuf_window; it does much of the work here.
(Fnext_window): Used to insist on looping through all screens if
Vglobal_minibuffer_screen was non-nil. Now includes screen's
minibuffer window according to MINIBUF, no matter what screen it's
on, and ignores Vglobal_minibuffer_screen. Loop termination logic
cleaned up. Clarified doc string.
(Fprev_window): Same problems as Fnext_window, above.
* screen.c (Vglobal_minibuffer_screen): Documentation rewritten to
emphasize that it is only a parameter of the creation of
minibufferless screens, and not an indication of where the
minibuffer is.
(prev_screen): Used to assume that Vglobal_minibuffer_screen was
the only minibuffer-only screen, and would enter an infinite loop
if Vglobal_minibuffer_screen was the only screen in the list.
Rewritten to fix these problems.
* minibuf.c (Vglobal_minibuffer_screen): Don't declare it extern
here; it's not used.
* editfns.c (Fmessage): Don't call Fmake_screen_visible here.
* xdisp.c (message, message1): Call it here, so that Emacs C
functions like Fy_or_n_p make the screen visible too.
1991-11-04 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (readable_events): If EVENT_QUEUES_EMPTY, we can
short-circuit and say no. Otherwise, if do_mouse_tracking, we can
short-circuit and say yes. These things let us scan the event
queue less often.
* termhooks.h (mouse_tracking_enable_hook): Replaced by...
(mouse_moved, mouse_position_hook): It turns out that it is
possible and no less efficient simply to tell Emacs if the mouse
has moved since last noticed, and let it ask for the current mouse
position; X's pointer motion hints are a cool thing.
* term.c (mouse_tracking_enable_hook): Replaced by...
(mouse_position_hook): New, simpler interface.
* keyboard.c (struct movement, movement_buf, movement_ptr):
Replaced by...
(mouse_moved): This flag, to be used in conjuction with
mouse_position_hook.
(EVENT_QUEUES_EMPTY): Adjusted to use mouse_moved instead of
movement_buf and movement_ptr.
(tracking_off, Ftrack_mouse): Don't call mouse_tracking_enable
hook.
(note_mouse_position): Moved to xterm.c.
(get_mouse_position): Replaced by mouse_position_hook.
(make_lispy_event): Movement event generation code moved out to a
separate function...
(make_lispy_movement): Create a mouse movement event for the
current mouse position. Use mouse_position_hook instead of
get_mouse_position. Added static declaration for this above...
(kbd_buffer_get_event): Use mouse_moved instead of movement_buf
and movement_ptr. Call make_lispy_movement instead of
make_lispy_event.
(init_keyboard): Initialize do_mouse_tracking. Don't init
movement_ptr and movement_buf.
* xterm.h (STANDARD_EVENT_SET): Add PointerMotionMask and
PointerMotionHintMask to the set.
* xterm.c (pixel_to_glyph_translation): Renamed to
pixel_to_glyph_coords, made static, simplified to take advantage
of constant-size characters, and extended to return the bounding
rectangle of the glyph returned.
(construct_mouse_click): The 'button' field of a button event is
the button number, not a mask; convert it to a mask before
frobbing x_mouse_grabbed. Call pixel_to_glyph_coords properly.
(last_mouse_screen, last_mouse_glyph): New variables, to keep
track of when the pointer has moved to a different glyph.
(note_mouse_position): Moved here from keyboard.c and made static.
Check if the new mouse position is over a new glyph. If it is,
set mouse_moved flag; otherwise, call XQueryPointer to get the
next motion event.
(XTmouse_tracking_enable): No longer needed, since pointer motion
hints let us implement the simpler mouse position hook.
(XTmouse_position): New hook. Call XQueryPointer to get the
current mouse position and request notification about the next
mouse movement. Clear the mouse_moved flag.
(pixel_to_glyph_coords, construct_mouse_click,
note_mouse_position, XTmouse_position): Put these all on the same
page.
(XTread_socket): Case MotionNotify, call note_mouse_position with
the right args; don't call pixel_to_glyph_translation.
(x_term_init): Set mouse_position_hook instead of
mouse_tracking_enable_hook.
1991-10-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xdisp.c (redisplay_window): When trying to avoid starting
display at the end of the buffer: check that startp < ZV, not
startp <= ZV.
1991-10-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xterm.c (x_do_pending_expose, XTmouse_tracking_enable): Use
SCREEN_IS_X instead of testing output_method directly.
1991-10-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xdisp.c (redisplay): In the single-screen optimization, always
update the minibuffer's screen as well as the selected screen, no
matter what the echo_area_glyphs are. This makes sure that
messages get cleared after a keystroke.
1991-10-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* callint.c (Finteractive): Doc fix.
* xterm.c (XTmouse_tracking_enable): Block input while changing
the screens' input selection masks.
* window.c (change_window_height): If the window being resized is
the only window of the screen, no size change is possible; make
the delta be zero. Exit without "changing" the sizes of any
windows if the delta is zero.
* alloc.c: Don't bother to include xterm.h.
(Fgarbage_collect): Don't bother to BLOCK_INPUT here,
since we don't cons in the input handler.
1991-10-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* window.c (init_window_once): Set last_nonminibuf_screen to the
initial terminal screen, so that poor Fdisplay_buffer doesn't try
to create a new screen on a terminal.
1991-10-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m-intel386.h (signal): Optionally don't define it.
* s-isc2-2.h (DONT_DEFINE_SIGNAL): Define this.
1991-10-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* scroll.c (line_ins_del): Don't calculate costs off the end of mf
and ov; use < in loop condition, not <=.
* scroll.c (scroll_cost): Logic rearranged.
* dispnew.c (change_screen_size): Change "SCREEN_IS_TERMCAP
(screen) == output_termap" to "SCREEN_IS_TERMCAP (screen)"
(window_change_signal): Use SCREEN_IS_TERMCAP predicate instead of
testing output_method_directly.
1991-10-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xterm.h (STANDARD_EVENT_SET): Include ButtonReleaseMask in
STANDARD_EVENT_SET.
* xterm.c (XTmouse_tracking_enable): Don't bother or'ing
ButtonReleaseMask with the STANDARD_EVENT_SET.
* dispnew.c (buffer_posn_from_coords): If the coordinates are off
past the end of a line, return them as being *before* the newline,
not after.
* keyboard.c (kbd_buffer_get_event): Set input_pending after
reading the event, no matter what sort of event it is - i.e., move
the assignment to input_pending outside of the event lispifying
conditional.
* keyboard.c (note_mouse_position): Don't record a "new" mouse
position unless it really differs from the last one returned.
* keyboard.c (kbd_buffer_read_char): Renamed to
kbd_buffer_get_event, for consistency with kbd_buffer_store_event.
* window.c (Fwindow_at): Modified to take the coordinates as a
pair, not a two-element list, for ease of use and compatibility
with events. Make SCREEN argument second and optional.
(Fcoordinates_in_window_p): Modified to take and return the
coordinates as above, and to distinguish the right border as well
as the mode line.
(window_from_coordinates): Modified to distinguish the right
border as well as the mode line.
* lisp.h (Qmode_line, Qvertical_split): Declare this extern, from
keyboard.c.
* keyboard.c (make_lispy_event): Distinguish a window's right
border from its text area.
* window.c (coordinates_in_window): Make it static.
* window.c (Flocate_window_from_coordinates): Renamed to
Fwindow_at.
(syms_of_window): Adjusted.
* lisp.h: Adjusted to say so.
* screen.c (Fcoordinates_in_window_p, window_from_coordinates,
Flocate_window_from_coordinates): Functions moved to window.c.
(syms_of_screen): Adjusted.
* window.c (Fcoordinates_in_window_p, window_from_coordinates,
Flocate_window_from_coordinates): Here they are.
(syms_of_window): Adjusted.
* lisp.h: Adjusted to say so.
1991-10-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xterm.c (XTclear_end_of_line): This used to try to get the
cursor out of the way by comparing the line being cleared with
s->cursor_y, which is meaningless; it should have compared it with
s->phys_cursor_y. Changed to just mark the cursor as cleared if
it's in the area we're clearing.
1991-10-13 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m-intel386.h: Fix typo in #endif.
1991-10-12 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* callint.c (Fcall_interactively): Added new interactive spec 'K',
for mouse clicks. Added explanation to doc string. Removed 'e'
spec, which didn't work with the new input model anyway.
* keyboard.c (Fmouse_click_p): New function.
(syms_of_keyboard): defsubr it.
* keyboard.c (EVENT_QUEUES_EMPTY): Clarified comment.
(tracking_off): Change "if (!readable_events)" to
"if (!readable_events ())".
(Ftrack_mouse): Doc fix.
(kbd_buffer_read_char): Fix brainos in tossing of unwanted events.
Don't use EVENT_QUEUES_EMPTY to set input_pending; call
readable_events.
1991-10-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (Qmode_line): New quoted symbol.
(syms_of_keyboard): Initialize and staticpro it.
(make_lispy_event): Use it to indicate when a mouse position is in
a window's mode line.
* xterm.c (XTread_socket): Consider the window to be resized if
either the character or pixel dimensions have changed; this will
catch font size changes.
1991-10-08 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* process.c (wait_reading_process_input): Removed all the
exceptional condition stuff. Emacs lacks any way to respond to
such a state, and selecting for it without responding to it can make
Emacs loop indefinitely.
* xterm.c (XTread_socket, construct_mouse_click): Make sure that
all enqueued events have their timestamp field set.
* termhooks.h (struct input_event): Doc fix.
* keyboard.c (last_event_timestamp): New variable.
(get_mouse_position, kbd_buffer_store_event,
kbd_buffer_read_char): Make sure to fill in Vlast_event_screen and
last_event_timestamp.
* xselect.c (mouse_timestamp): Don't use this anymore.
(last_event_timestamp): Use this instead.
(Fx_own_selection, Fx_own_clipboard, Fx_get_selection)
(Fx_get_clipboard): Use last_event_timestamp instead of
mouse_timestamp.
* xdisp.c (redisplay): Don't pass extra arguments to
update_screen.
* keyboard.c (echo_truncate): Don't call echo here; this results
in extraneous echoing of characters.
(read_key_sequence): After calling echo_truncate, call echo_char
to put the character we just read into the minibuffer, if
appropriate.
* keyboard.c (read_key_sequence): Removed unused argument
no_redisplay.
1991-10-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xfns.c (x_create_screen): Initialize phys_cursor_x to -1, to
indicate that the screen has no displayed cursor.
* xfns.c (x_create_screen): Let InternalBorderWidth default to 1.
* xterm.c (x_display_bar_cursor): Declare this to be static void.
* xterm.c (XTupdate_begin): Don't turn off the cursor. This makes
ugly flickering. Instead, make it okay for XTins_del_lines to do
so:
* screen.h (struct screen): New field phys_cursor_glyph, keeping
track of the glyph under the currently displayed cursor. Since
current_glyphs is sometimes inaccurate when we want to undraw the
cursor (as when XTins_del_lines is called from do_scrolling), we
can't always get the GLYPH from there.
* xterm.c (x_draw_single_glyph): Take the glyph to draw as an
argument, instead of taking it from the screen matrix.
(x_display_box_cursor): Set and use s->phys_cursor_glyph.
* ymakefile: Note that scroll.o and xmenu.o depend on screen.h.
1991-09-29 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (make_lispy_event): When building mouse movement
event, use `m', not `event', dummy.
1991-09-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (Fscreen_parameters): Return the proper value for the
'minibuffer parameter for minibuffer-only screens.
* xdisp.c (redisplay_window): When the start position is forced,
constrain it to be within the visible region anyway.
* xterm.c (XTwrite_glyphs): Instead of turning off the cursor
before we write, just notice if we wrote over it.
* xfns.c (x_decode_color): If a screen has two planes, then it is
considered a color screen, and we should look up the color value.
* ymakefile: Include xselect.o and xrdb.o in XOBJ even when
HAVE_X_MENU is not defined.
* fns.c (Fdelete): This used to be named Fdelq; Roland forgot to
change the function name in his August 17 change.
(syms_of_fns): defsubr Fdelete.
1991-09-24 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* alloca.c: Do nothing if alloca is defined as a macro.
1991-09-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* m-pfa50.h: New file.
1991-09-06 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* unexec.c: Add conditionals for COFF_ENCAPSULATE.
1991-08-17 Roland McGrath (roland@geech.gnu.ai.mit.edu)
* fns.c (Fdelete): New fn. We have member now; we should have
delete too.
1991-08-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xfns.c (x_get_arg): Clean bad characters out of the screen name
before using it as a resource key.
* abbrev.c (Fexpand_abbrev): Don't let capitalization go past point.
* sysdep.c (sys_suspend): Don't use & before array name.
* sysdep.c [BROKEN_FIONREAD]: Undefine FASYNC.
* m-tandem-s2.h (START_FILES, LIB_STANDARD): Added.
* s/s-aix3-1.h: Define HAVE_TCATTR.
* xfns.c (Fx_grab_cursor, Fx_ungrab_cursor): Functions removed.
1991-08-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* bytecode.c (Qbyte_code_meter): New.
(Bend_of_line, Bset_marker, Bmatch_beginning, Bmatch_end, Bupcase)
(Bdowncase, BRgoto, BRgotoifnil, BRgotoifnonnil)
(BRgotoifnilelsepop, BRgotoifnonnilelsepop, BlistN, BconcatN): New
byte codes.
(Fbyte_code): Implemented new codes listed above. Added code to
count how many times a function is called.
(syms_of_bytecode): Initialize and staticpro Qbyte_code_meter.
* xfns.c (x_window): When setting the class hints, use the
screen's name as the res_name.
* xfns.c (x_make_screen_name): New function.
(Fx_create_screen): Use x_get_arg to find screen name; if none has
been specified, use x_make_screen_name; don't set the name again
at the bottom.
(x_get_arg): If SCREEN_NAME is nil, don't pass any class to
Fx_get_resource.
* xfns.c (x_get_arg, x_default_parameter): Take an extra argument
TYPE, instead of encoding the type in the first letter of the
property name.
1991-08-15 Roland McGrath (roland@albert.gnu.ai.mit.edu)
* buffer.c (Fkill_all_local_variables): Don't pass
Fmake_local_variable too many args. Use Fset instead.
1991-08-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xfns.c (emacs_class): Variable removed.
(EMACS_CLASS): New macro, specifying Emacs class for xrdb use.
Use a class of "Emacs", to be compatible with previous versions.
(Fx_get_resource, x_window, Fx_open_connection): Use macro here.
* buffer.c (Fgenerate_new_buffer): Function moved to
lisp/files.el.
(Fgenerate_new_buffer_name): New function which does only the
name-choosing work Fgenerate_new_buffer used to do.
(Frename_buffer): Added second optional argument DISTINGUISH,
which lets rename_buffer use generate-new-buffer-name if non-nil.
Return the name the buffer was given.
Do nothing if new name is already buffer's name.
* xfns.c (Fx_get_resource): Take third argument CLASS, and require
it to be specified whenever NAME is.
All callers changed.
[not HAVE_X11] (Fx_get_default): Only take the one arg.
[not HAVE_X11] (Fx_get_resource): Toss the second two args.
1991-08-13 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xfns.c (Fx_close_current_connection): Add \n to error message.
* keyboard.c (make_lispy_event): Added HP keys into the
function_key_names array.
* xterm.c (XTread_socket): For KeyPressed events, strip the
keysym's vendor-specific bit, and take a shot at fitting it into
the Emacs key numbering.
* screen.c (Vdefault_screen_alist): Definition moved from
screen.el to here.
(syms_of_screen): DEFVAR_LISP and initialize it here.
* screen.h: Declare it here.
* xfns.c (x_get_arg): Use it here.
* screen.c (make_screen): When choosing a buffer for the screen's
root window, shy away from buffers whose names start with a space.
1991-08-11 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* process.c (exec_sentinel, exec_sentinel_unwind): Move these
above status_notify.
* eval.c (Qinhibit_quit): New variable, to support Aug 5 changes
to process.c.
(syms_of_eval): Initialize and staticpro above.
* lisp.h: Added extern declaration for above.
1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* regex.c (re_search_2): When searching with the fastmap, test for
a translate table outside of the loop, not inside the loop.
1991-08-10 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* fns.c (Fequal): Don't crash on circular structure.
(internal_equal): New subroutine does the recursion.
* print.c (print): Recognize circular car pointers.
1991-08-10 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* process.c (wait_reading_process_input): Ignore exceptional
conditions on the keyboard input.
1991-08-06 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* lisp.h: Fiddled with formatting.
* process.c (exec_sentinel_unwind): New function.
(exec_sentinel): Restore the process's sentinel, using an
unwind_protect.
1991-08-05 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c: Doc fix.
1991-08-05 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* dired.h: Don't include search.h; it doesn't exist.
* process.c (read_process_output, exec_sentinel): Bind
Qinhibit_quit to true and call the filter directly instead of
through a condition-case.
(run_filter): Removed.
(this_filter, filter_process, filter_string): Variables now
unnecessary.
* xfns.c (Fx_get_resource): Take the screen name as an optional
argument and look up resources using the name of the screen as
part of the key.
[not HAVE_X11] (Fx_get_default): Take optional 2nd arg NAME and
ignore it.
(x_get_arg): Take the screen name as an arg, and call
Fx_get_resource with that argument.
(x_default_parameter, x_figure_window_size, x_icon): Pass the
screen's name to x_get_arg.
(Fx_create_screen): Make sure the screen name is either nil or a
string, and pass it to x_get_arg.
* xfns.c (Vx_screen_defaults): Variable removed; such settings
belong in the .Xdefaults file.
(syms_of_xfns): Don't defvar it here.
(Fx_create_screen): Don't use it here.
* keyboard.c (classify_object): #if 0'd function finally removed.
* xterm.c (Qmapped_screen, Qunmapped_screen, Qexited_scrollbar)
(Qexited_window, Qredraw_screen): Unused, so removed.
(syms_of_xterm): Don't bother to initialize above.
* xterm.c (init_input_symbols): Renamed to syms_of_xterm, for
consistency.
(x_term_init): Don't call it here.
* xfns.c (syms_of_xfns): Don't call syms_of_xselect here.
* emacs.c (main): Call them here.
* xterm.c (invocation_name): Made this a Lisp_Object, so that its
string value could be relocated properly.
(x_term_init, x_text_icon): Adjusted code appropriately.
(syms_of_xterm): staticpro invocation_name.
* xfns.c (invocation_name): Changed extern declaration, deleted
extra declaration.
(Fx_get_resource): Adjusted code appropriately.
1991-08-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* lread.c (read1): Accept #[...] for bytecode object.
* print.c (print): Print them that way.
1991-08-01 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* fileio.c (Fexpand_file_name): Avoid doing strlen (0).
* editfns.c, filelock.c [VMS]: Use pwd.h from Emacs, not from system.
* fileio.c [VMS]: Likewise. Also include stddef.h, string.h.
Include perror.h only once.
[VMS] (file_name_as_directory, directory_file_name): Remove
assignments from if conditions.
(Fexpand_file_name): Remove excess slash from end of user's home dir.
1991-08-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* emacs.c (main): Add SIGIO conditional within AIX conditional.
* xdisp.c (try_window_id): Compute proper position for screen bottom
when all changes are below the screen.
When first computing bp, don't go more than HEIGHT + 1 lines.
1991-07-31 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xterm.c (x_destroy_window): If we're destroying the currently
highlighted screen, clear x_highlight_screen.
* xdisp.c (display_text_line, display_string):
Don't go past endp for multi-column chars.
1991-07-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* lread.c (init_lread): If Vload_path was set specially before
dumping, preserve it by default.
* process.c (process_send_signal): Notice and deal if the
TIOCGPGRP ioctl says that the subprocess has no pgrp.
* xdisp.c (try_window_id): Always update window_end_* if successful.
* process.h (subtty): New slot.
* process.c (create_process): Set it.
(process_send_signal): Use it.
* alloc.c (Fmake_rope): Doc fix.
* screen.c (Fselect_screen): Doc fix.
* vms-pp.c: Fix comment.
* keymap.c (Fkeymapp, Fdefine_prefix_command): Doc fixes.
* window.c (window_select_count): No longer static.
(init_window_once): Increment window_select_count, to give each
window a unique use_time.
* window.h (window_select_count): extern this here.
* screen.c (make_screen): Stamp a new screen's selected window
with the proper selection time.
* ymakefile: xselect.o depends on screen.h, xterm.h, and config.h.
xrdb.o depends on config.h.
xterm.o depends on gnu.h.
* xfns.h: File removed - it only declared Vx_send_movement_events.
All includers changed.
1991-07-27 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keymap.c (Fcopy_keymap): Don't recursively copy maps inside symbols.
1991-07-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xdisp.c (redisplay): If echo_area_display puts text in a
surrogate minibuffer screen, don't neglect to update it.
* keyboard.c (kbd_buffer_store_event): Make sure
Vlast_event_screen is set properly for quit characters.
1991-07-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (command_loop_1): Pass both arguments to
Fselect_screen.
* screen.c (make_screen): Divide the size by sizeof (Lisp_Object)
before passing it to Fmake_vector.
* screen.h [not MULTI_SCREEN] (SCREEN_SCROLL_BOTTOM_VPOS): Fixed
definition.
* screen.c: #include termhooks.h and therefore stdio.h.
(make_screen): Initialize focus_screen member.
(Fdelete_screen): Refuse to delete SCREEN if it is a
surrogate minibuffer for some other screen, not just if it's the
global minibuffer screen.
(Fredirect_screen_focus, Fscreen_focus): New function.
(syms_of_screen): defsubr Sredirect_screen_focus.
* window.c: Don't include termhooks.h or stdio.h.
(Fselect_window): Removed grunge to support minibuffer hack.
* screen.h (struct screen): Added focus_screen member, and
accessor for it.
* alloc.c (mark_object): Mark focus_screen member of Lisp_Screens.
* xterm.c (XTscreen_rehighlight): Use the focus_screen member to
decide which screen to highlight.
(XTread_socket): Use focus_screen when enqueuing keystrokes.
* minibuf.c (read_minibuf, read_minibuf_unwind): Shift the
selected screen's focus around appropriately.
* termhooks.h (screen_rehighlight_hook): Doc fix.
* lisp.h (CHECK_IMPURE): Moved definition...
* puresize.h (CHECK_IMPURE): To here.
1991-07-25 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* dispnew.c (buffer_posn_from_coords): Bufp is broken; don't use it.
* xterm.c (XTscreen_rehighlight): Neatened sloppy logic.
* keyboard.c (read_key_sequence): When truncating a key sequence,
don't forget to put the new keystroke back in this_command_keys.
Do this before calling echo_truncate, and don't call echo_char.
1991-07-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xterm.c (x_term_init): Initialize x_focus_screen and
x_highlight_screen.
* xterm.c (XTscreen_rehighlight): Handle things correctly when
x_focus_screen is 0.
(XTread_socket): Process EnterNotify and LeaveNotify events with
.focus == 0 properly. For FocusOut events, pass the right
arguments to x_new_focus_screen.
* fileio.c (Finsert_file_contents): Use RETURN_UNGCPRO macro.
* buffer.c (Fbuffer_name): Fix typo in doc string.
(syms_of_buffer): Fix typo in before_change_function name.
1991-07-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.h (CHECK_SCREEN): Define a dummy version of this when
MULTI_SCREEN is not defined.
* sysdep.c (init_signals, sys_signal, sys_sigpause): New functions.
(sys_sigblock, sys_sigunblock, sys_sigsetmask): New functions.
* sysdep.c (_sobuf): Unsigned chars if DGUX.
* sysdep.c [DGUX]: Include file.h.
[DGUX] (sys_siglist): New variable.
* x11term.c (x_init_1) [SYSV_STREAMS]: Don't close the old
descriptor.
* keyboard.c (read_key_sequence): Treat function keys like ascii
characters.
* lread.c (init_lread, syms_of_lread): New names for init_read and
syms_of_read, for consistency.
* emacssignal.h: New file.
* data.c, keyboard.c, process.c, sysdep.c: Include it.
* data.c (arith_error): Use SIGEMPTYMASK.
* keyboard.c (sigfree, sigunblockx): Use SIGEMPTYMASK.
(sigholdx, sigblockx): Use sigmask.
(gobble_input): Use sigblockx instead of sigholdx, so that any
other blocked signals stay blocked during and after the call to
read_avail_input.
* process.c (create_process): Use sigmask.
[FASYNC] (request_sigio): Use sigunblock.
* xterm.c (sigmask): Removed #definition here.
* ymakefile (keyboard.o, process.o, sysdep.o, data.o): Make these
depend on emacssignal.h.
* window.c (Fselect_window): Modify surrogate minibuffer hack to
make the minibuffer the selected window of the selected screen,
AND select the minibuffer window's screen.
* minibuf.c (read_minibuf): If the minibuffer window is on a
different screen, save that screen's configuration too.
* window.c (Fset_window_configuration): Use SCREEN_ accessor to
get at a screen's root window. Removed unused variable
screen_to_select.
(Fcurrent_window_configuration): Take an optional argument SCREEN.
All callers changed.
* window.c (auto_new_screen, Vauto_new_screen_function): Renamed
to pop_up_screens and pop_up_screen_function, to be parallel with
pop_up_windows.
(display_buffer, syms_of_window): Changed appropriately.
* fns.c (Fload_average) [DGUX]: Add code to support DGUX.
* s-dgux.h, m-aviion.h: New files.
* emacs.c (main) [POSIX_SIGNALS]: Call init_signals.
* screen.c (Fdelete_screen): Update last_nonminibuf_screen if
the screen it's currently pointing to gets deleted.
1991-07-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (last_nonminibuf_screen): New variable.
(Fselect_screen): Set last_nonminibuf_screen if appropriate.
1991-07-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.h (last_nonminibuf_screen): Added declarations for new
variable.
* minibuf.c (active_screen): Variable removed.
(read_minibuf): Removed code to set and clear active_screen.
* window.c (Fdisplay_buffer): Rewritten to use
last_nonminibuf_screen.
* screen.c (next_screen): Use SCREEN_ accessors instead of ->.
* window.c (Fdisplay_buffer): Removed reference to
Fx_create_screen; we should rely on the auto-new-screen-function
being set to something appropriate.
1991-07-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): Restore the state of
this_command_key_count along with the echoing state.
1991-07-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xfns.c (Fx_synchronize): New function.
(syms_of_xfns): defsubr it.
* xdisp.c (redisplay): Don't turn on all_windows whenever we're
using a separate minibuffer screen. Even if there is some tweak
necessary, this wasn't it.
* process.c (status_notify): Do not forget to UNGCPRO.
* screen.c (next_screen): Re-work logic to skip minibuffer-only
screens so that it doesn't loop indefinitely, even when the only
screen is a minibuffer-only screen. Skip all screens that are
only minibuffers, not just when they are the global minibuffer
screen.
* xdisp.c (message, message1): If the screen's message buffer
is 0, toss the message; don't check the window system against
the screen output_method.
1991-07-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (read_key_sequence): When we truncate the echo
buffer because the user has switched screens, re-echo the
character that caused the truncation.
* lread.c (Fload): Change "source newer than ..." message not to
refer to "libraries." What is a "library," anyway?
* window.c: #include "termhooks.h", and therefore <stdio.h> too.
[MULTI_SCREEN] (Fselect_window): If the window being selected is
the selected screen's minibuffer, but it lives on another screen,
don't select that other screen - call the screen_rehighlight_hook
instead.
* termhooks.h (screen_rehighlight_hook): New hook, so that Emacs
can shift the screen highlighting when needed.
* term.c (screen_rehighlight_hook): Define it.
* xterm.c (x_highlight_screen): New variable.
(x_new_focus_screen): Move the rehighlighting code to...
(XTscreen_rehighlight): New function.
(x_display_bar_cursor, x_display_box_cursor): Use
x_highlighted_screen instead of x_focus_screen.
(x_term_init): Initialize screen_rehighlight_hook.
* ymakefile: Make window.o depend on termhooks.h.
* xfns.c (Fx_create_screen): Add mention of
global-minibuffer-screen to docstring.
* screen.c (make_screen_without_minibuffer): Improve error message
displayed when Vglobal_minibuffer_screen is not a proper screen.
1991-07-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* config.h (PURESIZE): Definition moved to...
* puresize.h: New file.
(PURESIZE): Define this here. This will allow people to change
their pure storage allocation without having to recompile most of
Emacs.
* data.c: #include puresize.h, since CHECK_IMPURE needs PURESIZE.
* alloc.c: #include puresize.h.
[HAVE_SHM] (pure_size): New variable, so that XPNTR doesn't depend
on PURESIZE.
[HAVE_SHM] (init_alloc_once): Initialize pure_size here.
* lisp.h [HAVE_SHM] (XPNTR): Defined in terms of pure_size,
instead of PURESIZE.
(pure_size): Extern declaration added here.
* ymakefile: Added puresize.h to dependencies for alloc.c and
data.c's .o files.
* emacs.c (main): Doc fix for kludge to scan for -d.
1991-07-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* termhooks.h (struct input_event): #if 0'd out the definition for
the screen_selected event type, and added the stipulation that the
{non_,}ascii_keystroke events specify the screen they happen in.
* xterm.c (x_new_focus_screen): Don't enqueue a screen_selected
event.
(XTread_socket): Calls to x_new_focus_screen in the EnterNotify,
FocusIn, LeaveNotify, and FocusOut event code don't worry about
enqueued events any more.
* keyboard.c (new_selected_screen): Removed - see below.
(Vlast_event_screen): New variable, visible to lisp code.
(echo_length, echo_truncate): New functions.
(readable_events): Removed screen_selected events from the set of
things to skip.
(kbd_buffer_store_event): Don't bother collapsing consecutive
screen_selected events.
(kbd_buffer_read_char): Don't process screen_selected events.
(make_lispy_event): Re-arrange scrollbar events to put the window
whose scrollbar was diddled right after the identifying symbol,
for consistency.
(read_key_sequence): Let the selected screen and the location of
the event affect the keymap used to find its binding.
(Fread_key_sequence): Update docstring.
(syms_of_keyboard): Added DEFVAR_LISP for Vlast_event_screen.
1991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* screen.c (next_screen): If !mini_screen, only exclude the global
minibuffer screen when the minibuffer is its only window.
(Fnext_screen): Make the docstring clearer about what MINISCREEN
means.
* window.c (Fother_window): Indicate that it takes both a required
and optional argument, instead of just one required.
1991-07-15 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
* buffer.c (Fkill_buffer): Rehacked kill-buffer-hooks to use
standard name kill-buffer-hook, and to use set_buffer_internal
instead of Fset_buffer. Use static variable containing symbol
instead of intern.
(syms_of_buffer, init_buffer_once): Qkill_buffer_hook =
'kill-buffer-hook.
1991-07-15 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keymap.c (Fsingle_key_description): When describing a listy
object, take the car to find the symbol that heads it, not the cdr.
* dispnew.c (buffer_posn_from_coords): Pass col and line to
compute_motion in the correct order.
* keyboard.c (make_lispy_event): When calculating rows and columns
for mouse clicks and movement events, don't forget to subtract the
position of the window's top left corner before passing them to
buffer_posn_from_coords.
* screen.c (coordinates_in_window): Removed useless test for *y ==
screen_height, and screen_height variable; this would be out of
range of all the windows anyway.
* xdisp.c (message1): Removed code to ignore messages before X has
started up; this issue has hopefully been addressed by the
condition-case in startup.el.
* editfns.c (init_editfns): Make user_name char * instead of
unsigned char *, since that's what most of the usages seem to
want. And when expanding ampersands in AMPERSAND_FULL_NAME mode,
don't try to use user_name as a string; use Vuser_name.
* minibuf.c (assoc_for_completion): New function.
(do_completion): Use that to check for exact match.
* minibuf.c (Ftry_completion): Fix handling of matches aside from
case. If ignoring case, and all else equal, try to preserve the
case of the characters in the input.
* process.c (status_notify): GCPRO tail.
* sysdep.c (creat_copy_attrs, rename_sans_version): Always set
protection to O:REWD when creating file. Added new function
rename_sans_version, which strips the version number from the target
filename, renames the temporary file to this filename, and then
sets the file protection of this new file to be the same as the file
being edited.
* sysdep.c [VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
(F_SETFL) [VMS]: Undefine this, to control conditionals.
(getpwnam): Make `full' unsigned.
(creat_copy_attrs): Add some casts.
(sys_access): Change prvmask and CHECKPRIV to use bitfields.
Add some casts, and make dummy an unsigned short int.
Don't use & on constants.
(vmserrstr): Add a cast.
(sys_creat): Define va_count before this function.
1991-07-14 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* sysdep.c (sys_sleep, input_wait_timeout): Don't use & on constant.
[VMS]: Include pwd.h from Emacs. Use sys/file.h if GCC.
(bzero, bcopy) [VMS]: Don't take address of `length'.
* sysdep.c (sys_suspend): Cast value of `signal' to insulate from
changed value type in sysV.3.
* sysdep.c (child_setup_tty): Turn off erase & kill chars for BSD.
* sysdep.c (discard_tty_input): Use TIOCFLUSH on Apollo.
(init_sys_modes): Avoid TIOCSTART on Apollo.
* sysdep.c: If HAVE_TERMIOS is not defined, define tcgetattr in
terms of the TIOCGETP ioctl.
(init_sys_modes): Handle VSUSP, V_DSUSP if HAVE_TCATTR.
(discard_tty_input, init_baud_rate, child_setup_tty)
(init_sys_modes, tabs_safe_p, reset_sys_modes):
Use tcgetattr, and if HAVE_TCATTR, use tcsetattr.
1991-07-13 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
* s-hpux8.h: New file.
* fileio.c [HPUX8]: Don't include errnet.h.
* unexhp9k800.c (unexec): Local variable i to avoid compiler bug?
* sysdep.c (insque) [WRONG_NAME_INSQUE]: New function.
* s-386ix.h (WRONG_NAME_INSQUE): Define it.
* xdisp.c (message_buf_print): New variable.
(message): Clear it here.
* dispextern.h: Declare it here.
* print.c (printchar, strout): Set it and test it here.
* keyboard.c (command_loop_1): Don't clear last_command when start
macro.
* keyboard.c (read_command_char): Exit at eof if noninteractive.
* indent.c (invalidate_current_column): New function.
* editfns.c (Fwiden, Fnarrow_to_region): Call it.
* process.c (create_process): Use O_NOCTTY whenever defined,
unless USG.
* process.c (Fprocess_send_eof): If using a pipe, close it.
(close_process_descs): Check IN and OUT for nonzeroness.
* process.c (process_send_signal): Use interrupt chars
to send certain signals to the process group.
(TIOCGETC): Undefine this if it is not really usable.
* sysdep.c (discard_tty_input): Do nothing if read_socket_hook.
* xfns.c (x_set_mouse_color): Change the default pointer shapes to
be closer to xterm and emacs 18.
* xterm.c (x_focus_on_screen, x_unfocus_screen): These no longer
call XSetInputFocus, because I think that the X-windows ICCCM
says that only the window manager can do this sort of thing.
* keyboard.c (read_char): When there is an unread command
character, goto reread_first when this_command_key_count is zero,
not when it is >= 0.
(command_loop_1): Reset this_command_key_count only if there is no
prefix argument. This makes echoing of keystrokes work correctly.
1991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* eval.c (Finteractive_p): Changed "! XTYPE (foo) == Lisp_Bar" to
"XTYPE (foo) != bar".
1991-07-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* eval.c (apply1): Don't forget to UNGCPRO before returning.
* xterm.c (XTupdate_begin): Undisplay the cursor here; do_scrolling
will call XTins_del_lines when the screen matrix is inaccurate, so
we cannot undisplay the cursor then, but do_scrolling is always
called within an update.
1991-07-10 David J. MacKenzie (djm@nutrimat)
* termcap.c, tparam.c [!emacs, USG || STDC_HEADERS]: Define bcopy
in terms of memcpy.
1991-07-09 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* scroll.c (do_scrolling): Use correct termination condition for
loop that uses the glyph pointers for the deleted lines to fill in
the inserted lines.
1991-07-08 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* editfns.c: Doc fix.
1991-07-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* dispnew.c (line_hash_code): Test m->highlight[vpos], not
m->highlight. All lines were getting hash codes of -1, because
the highlight vector was never NULL. Golly.
* process.c (list_processes_1): Handle status of network streams.
1991-07-02 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* doc.c (Fdocumentation_property):
Pass only strings to Fsubstitute_command_keys.
1991-07-02 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* editfns.c (init_editfns): If neither of the environment
variables are set, DON'T set Vuser_name to Vuser_real_name; it's
supposed to reflect the EFFECTIVE uid.
Get the full name according to Vuser_name if it differs from
Vuser_real_name, not if they are equal.
And pass Vuser_name to getpwnam in that case instead of user_name,
which might be 0.
* lisp.h (RETURN_UNGCPRO): New macro.
* bytecode.c (Fbyte_code): Do not remove GC protection from the
stack when making a function call, because the caller is
responsible for protecting the arguments to a MANY-arg'ed
function.
* eval.c (Fapply): If we use funcall_args, GCPRO it.
And when we call Ffuncall with funcall_args, tell it the correct
length of funcall_args, no matter which branch allocated it.
(Ffuncall): Don't gcpro the arguments before calling
Fgarbage_collect.
(Feval): If we're calling a subr that takes MANY args, don't
UNGCPRO until after we call the subr.
(apply1, call0, call1, call2, call3): GCPRO the arg arrays passed
to Ffuncall and Fapply.
* callproc.c (Fcall_process, Fcall_process_region): Don't GCPRO
the argument array.
* editfns.c (Finsert, Finsert_before_markers): Don't GCPRO the
argument array. Added comment about when GCPROing is not needed.
* mocklisp.c (Finsert_string): Don't GCPRO the argument array.
* keyboard.c (init_keyboard): Handle SIGQUIT with interrupt_signal
on any system that has HAVE_TERMIO, not just on USG systems.
1991-07-01 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* editfns.c (init_editfns): Test that user_name isn't 0.
1991-06-29 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* search.c: Doc fixes.
1991-06-28 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keyboard.c (make_lispy_event): Let the posns of mouse clicks and
mouse movements be nil when window_from_coordinates returns a
NON-window, not when it returns a window. Since posn is a lisp
object, don't call make_number when consing up the event.
Don't call make_number on the code member of the event.
* keyboard.c (struct movement): Make the x, y, and time members
Lisp_Objects, since it's easier to convert from a Lisp_Object than
to.
(note_mouse_position): Adjusted for the above.
(make_lispy_event): Removed code to make Lisp_Objects for those
members.
* xterm.c (XTread_socket): When handling LeaveNotify events,
remember that the focus member of the event is true when the
receiving window now has the focus, not when it is losing it.
* xfns.c (Ffocus_screen): Don't signal an error if SCREEN is
already the focus screen.
1991-06-26 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* alloc.c (Fmake_rope): Use sizeof (GLYPH) instead of 2 to
determine how large the string should be, and changed doc string
to describe ropes as strings of glyphs, not just as strings of
character pairs.
(Frope_elt): Use sizeof (GLYPH) as the element size, instead of
assuming that the elements are two bytes.
* lisp.h (typedef GLYPH): Moved the definition from here...
* config.h (typedef GLYPH): to here, so people can elect to get
better performance if they don't want to use huge fonts.
* xterm.c (dumpglyphs): Use XDrawImageString or
XDrawImageString16, Depending on sizeof (GLYPH).
* data.c (Fsetq_default): Call Fset_default to do the assignments,
not plain Fset.
The following changes were contributed by Jamie Zawinski
<jwz@lucid.com>:
* bytecode.c (Fbyte_code): BYTE_CODE_SAFE and BYTE_CODE_METER
options added.
Added Bmark, Bscan_buffer, Bset_mark to support error-checking for
these obsolete bytecodes.
Added Bunbind_all to support tail-call optimization (not yet
implemented).
Did NOT add the relative branch opcodes that were in the version
of bytecode.c that Jamie sent.
The branching bytecodes now only QUIT if they take the branch.
Btemp_output_buffer_show, Bforward_char, Bforward_word,
Bskip_chars_forward, Bskip_chars_backward, and Bforward_line
passed the wrong number of arguments to their subrs.
Brem, Bbuffer_substring, Bdelete_region, Bnarrow_to_region,
Bstringeqlsign, Bstringlss, Bequal, Bnthcdr, Bmember, Bassq,
Bsetcar, and Bsetcdr passed arguments to the subr in the wrong
order.
1991-06-25 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
* doc.c (Fdocumentation): Added a QUIT test to the loop that finds
the symbol's function value.
1991-06-24 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* xterm.c (dumprectangle): Removed call to XFlushQueue here.
* keyboard.c (command_loop_1): Call Fselect_screen to establish
the new selected screen after the key sequence has been read, not
at the top of the loop. This way, a key sequence will happen in
the screen it was typed at, or (to be more precise) the screen its
last character was typed at.
* keyboard.c (fast_read_one_key): Function deleted, since it had
been #if 0'd out a long time ago.
(command_loop_1): Support for fast_read_one_key removed.
* eval.c (Ffuncall): Do GCPRO the arguments, contrary to the May
16 change. The convention appears to be that the MANY-arged
callee must protect its own arguments.
(Fapply): Don't protect funcall_args; they are the caller's
responsibility.
* bytecode.c (Fbyte_code): GCPRO the section of the stack *above*
the args to Ffuncall, since it will be protected again once
Ffuncall returns and therefore should stay valid. If it is not
protected, string relocation may make it invalid.
* mocklisp.c (Finsert_string): GCPRO the arguments, since insert
may cause a garbage collection.
* editfns.c (Finsert, Finsert_before_markers): GCPRO the
arguments, since insert may cause a garbage collection.
* callproc.c (Fcall_process, Fcall_process_region): GCPRO the
arguments, since insert may cause a garbage collection.
1991-06-20 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* buffer.h (struct buffer_text, struct buffer): Small change to
comments.
* search.c (Fmatch_beginning, Fmatch_end): Fixed doc strings to
indicate that non-regexp searches set these too.
* window.c (Fset_window_start): If window is not the selected
window, set windows_or_buffers_changed, so that redisplay will
know that it should redisplay the window.
* callint.c (Finteractive): Changed doc string to indicate that
the interactive prompts are passed through format.
1991-06-20 Roland McGrath (roland@albert.gnu.ai.mit.edu)
* buffer.c (syms_of_buffer): buffer-undo-list doc fix.
1991-06-11 Roland McGrath (roland@albert.gnu.ai.mit.edu)
* data.c (Fsetq_default): Take multiple SYM, VAL args; syntax now
parallel to setq.
1991-05-25 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (kbd_buffer_read_char): Fix wait-for-input loop so
that we always process/toss events we don't want to return.
* screen.c (Fselect_screen): Call Ffocus_screen instead of
x_new_selected_screen, which doesn't exist anymore.
* xfns.c (Ffocus_screen): Declare the type of the SCREEN argument.
* xfns.c (Fx_track_pointer): Function #if 0'd out - I don't think
that this is a feature that we want.
(syms_of_xfns): Elide the defsubr for the above.
* xterm.c (x_mouse_screen, x_input_screen): Variable deleted,
since all we really need is x_focus_screen; all other issues are
the realm and responsibility of the window manager.
(x_new_selected_screen): Renamed to x_new_focus_screen, and
modified not to do thiogs inappropriate for signal handlers.
(XTread_socket): Change the handling of EnterNotify, LeaveNotify,
FocusOut and FocusIn events to use x_new_selected_screen, and
ditched code that deals with x_mouse_screen and x_input_screen,
since they don't exist anymore.
(x_display_bar_cursor, x_display_box_cursor): Compare s with
x_focus_screen to see what form the cursor should take.
(x_destroy_window): Don't bother with x_input_screen.
* xfns.c (x_mouse_screen): Removed extern declaration for this.
(Fx_grab_pointer): Confine the pointer to x_focus_screen, not
x_mouse_screen. This is wrong, but will make emacs compile until
this gets fixed.
1991-05-23 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (get_input_pending): Don't use trim_events; use
readable_events instead.
* keyboard.c (make_lispy_event): Remove case for window_sys_event,
since that type of event doesn't exist anymore.
* minibuf.c (Fcompleting_read): Document the backup-n argument.
* dispnew.c (init_display): Don't declare alternate_display extern
here. I can't figure out what this feature is, and it's broken.
* emacs.c (main): Don't test alternate_display and put its value
in the environment.
1991-05-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (struct movement): Made .used an int instead of a
char, since that's more likely to be stored atomically on SPARCS
and similar machines.
* termhooks.h (struct input_event): Removed the window_sys_event,
since it's not used anywhere. Added screen_selected event type.
The event handling code used to change the current buffer,
selected window, and selected screen out from under running lisp
code. Now we wait for a more convenient time by enqueuing an
event.
* xterm.c (XTread_socket): When handling FocusIn events and
EnterNotify events with the focus member set, enqueue a
selected_screen event instead of calling x_new_selected_screen.
* keyboard.c (trim_events): Function deleted; it is a bad idea to
delete events based on the current tracking state, since tracking
might be re-enabled later.
(readable_events): New function which searches the input queue for
readable events.
(tracking_off): Call readable_events to see if we should
redisplay.
(kbd_buffer_read_char): Toss events that we are not interested in.
This is a better place to do it than trim_events, since we know
that do_mouse_tracking will not change. Also, handle
screen_selected events.
(new_selected_screen): New variable, holding the screen which
should become selected the next time through command_loop_1.
(syms_of_keyboard): Initialize and staticpro new_selected_screen.
(command_loop_1): If there is a new screen to be selected, do so.
1991-05-21 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xdisp.c (message): Removed the if at the top that did not
display messages if the current screen was a termcap screen and a
window system will be used. The change to startup.el on May 18,
1991 replaces this.
* ralloc.c (check_memory_limits): If the address returned by the
allocator is not representable in a Lisp_Object, call memory_full
instead of printing a very silly "warning" message.
1991-05-19 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* xterm.c (XTread_socket): Don't overwrite the end of the buffer
with function keys.
* keyboard.c (tracking_off): Update input_pending after reading
all the input.
* process.c: #include "screen.h".
(wait_reading_process_input): Check if any screens have been newly
mapped and need updating.
* xterm.c (XTread_socket): Don't SET_SCREEN_GARBAGED when the
screen is unmapped; do this when is mapped.
(dumprectangle): Don't dump any data for garbaged screens.
1991-05-18 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* sysdep.c (init_sys_modes): Moved the clauses that set up
interrupt-driven input out of the "if running on a terminal"
clause, since these may need to be set up even when running on a
window system.
1991-05-17 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* process.c (Fprocess_status): For network connections, return
Qopen and Qclosed instead of Qrun and Qexit, as documented.
* lread.c (read1): Removed code that treated numbers starting with
a zero as octal.
1991-05-16 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* eval.c (Ffuncall): Don't gcpro the arguments; the caller
protects them.
(Fapply): Gcpro funcall_args, if we use them.
* xterm.c (notice_mouse_movement): #if 0'd this function out.
(XTread_socket): #if 0 the code that fakes motion events for
moving in and out of windows. Also, rearrange the MotionNotify
case to give character rows and columns to note_mouse_position,
not pixel x and y positions. Don't deal with scrollbars here.
* termhooks.h (struct input_event): Removed the mouse_movement
event kind.
* keyboard.c (movement_buf): A new buffer for mouse-movement events.
This is hairier than you might think; see the comments for this
and the comments for note_mouse_position and get_mouse_position
for an explanation of why this is hairy.
(movement_ptr): Where the event handler should store new mouse
locations.
(EVENT_QUEUES_EMPTY): New macro, to be used in the places that
used to compare kbd_fetch_ptr to kbd_store_ptr to see if there
were any events available; this macro tests the mouse movement
buffer too.
(Qmouse_movement): New symbol to head mouse movement events with.
(trim_events): Mouse movement events are no longer in kbd_buffer,
so don't try to trim them.
(tracking_off, kbd_buffer_read_char, get_input_pending): Use
EVENT_QUEUES_EMPTY.
(get_mouse_position): New function to retrieve a mouse position
from the buffer properly, no matter when the event-handling signal
occurs.
(kbd_buffer_read_char): If there is something in kbd_buffer, make
an event for that; if there is a mouse movement, make an event for
that; otherwise, the while loop lied.
(make_lispy_event): Added code to produce mouse movement events.
(init_keyboard): Clear the mouse movement buffer.
(Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen)
(Qexited_window, Qexited_scrollbar): Removed extern declarations
for these, since they're no longer generated.
(syms_of_keyboard): Initialize and staticpro Qmouse_movement,
remove DEFVAR_LISP for Vignore_mouse_events.
1991-05-14 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* lread.c (read1): Correctly parenthesize the shift when parsing
octal numbers, and signal an error if we see a non-octal digit.
1991-05-13 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (trim_events): New function, to remove uninteresting
events from the input queue.
(get_input_pending): Call trim_events before checking the queue,
so as not to advertise input we don't care about.
(Ftrack_mouse): A new function to enable mouse tracking for a
block of code.
(tracking_off): A function for unwind_protection; restore the
mouse tracking state to what it was outside of the track-mouse
(syms_of_keyboard): defsubr track-mouse.
(make_lispy_event): Find the window io which the click occurred
when processing mouse_click events, instead of trusting the window
tree in the signal-handling code. Include the buffer position in
the click event.
* xterm.c (construct_mouse_click): Return the click's screen, not
its window, and don't bother updating Vmouse_window. Calculate
the row and column of text-area clicks using
pixel_to_glyph_translation, since we know that those data
structures are alive in signal handlers.
* screen.c (window_from_coordinates,
Flocate_window_from_coordinates): Moved these to window.c, since I
need to be able to call them even if we don't have multi-screen
support.
(syms_of_screen): Removed defsubr for
Flocate_window_from_coordinates.
* window.c (window_from_coordinates, Flocate_window_from_coordinates):
Here they are.
(syms_of_window): Here is the defsubr.
* keyboard.c (note_mouse_position): New function to enqueue
mouse movement events properly.
(current_movement_event): New variable, to support the above. See
its comment for more explanation.
* termhooks.h (struct input_event): Change the .window member to
.screen, make it a struct screen *, and indicate that those events
which used to return windows now return screens. It is unsafe
for the event reader to traverse the window structure, because it
can be called by a signal handler.
1991-05-10 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keyboard.c (Vignore_mouse_events): Variable deleted.
(make_lispy_event): For mouse and scrollbar clicks, return the
position as a pair of numbers, not a list of two numbers.
1991-05-09 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* keyboard.c (do_mouse_tracking): Define this variable, which
controls whether kbd_buffer_read_char will ignore button up and
mouse movement events.
* termhooks.h: Declare do_mouse_tracking here.
* xterm.h (STANDARD_EVENT_SET): New constant, giving the event
mask all the windows use.
* xfns.c (Vx_send_mouse_movement_events): Removed this variable;
XTmouse_tracking_enable and do_mouse_tracking do its job better.
(syms_of_xfns): Remove the DEFVAR_LISP for the above.
(x_window): Don't ask for any pointer motion events or button
release events by default; use the unmodified STANDARD_EVENT_MASK.
The user will ask for them explicitly if he or she wants them.
And don't ask for backing store.
* xterm.c (XTmouse_tracking_enable): New function to
request/unrequest detailed mouse tracking information of the
server, and set the flag used by XTread_socket.
(x_term_init): Set mouse_tracking_enable_hook to
XTmouse_tracking_enable here.
(XTread_socket): Handle mouse movement events by calling
note_mouse_position.
* xterm.c (XTread_socket): For MapNotify events, go ahead and set
the screen's visible flag, so Expose events will work. Clear the
iconified flag.
* editfns.c (Finsert_char): Return immediately if n <= 0, not just
if n < 0, so that the `while' below does not become an infinite
loop.
* term.c (mouse_tracking_enable_hook): Added this variable to
allow emacs to request that the window system start or stop
detailed mouse tracking.
* termhooks.h (mouse_tracking_enable_hook): Declare it here.
* xfns.c: Declare the functions before initializing
x_screen_parm_table to point to them.
* xterm.c (XTread_socket): Don't send Qmapped_screen,
Qunmapped_screen, Qexited_scrollbar, Qexited_window,
Qredraw_screen - these are not features that we want to support.
1991-05-07 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* editfns.c (Finsert_char): Let strlen be the minimum of n and
256, not the maximum, so we use an n-byte buffer when n < 256, and
a 256-byte buffer many times when n > 256.
1991-05-05 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keymap.c (Fkeymapp): Fixed docstring to give the right
definition of a keymap.
1991-05-03 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* data.c (Fcompiled_function_p): New function.
1991-05-03 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* xfns.c (struct x_screen_parm_table): New type for recording
information about screen parameters.
(x_screen_parms): New table describing the existing parameters.
(init_x_parm_symbols, x_set_screen_param): Use x_screen_parms
instead of a large switch statement.
(x_figure_window_size): Make the default case of the switch call
abort instead of signalling an error, since window_prompting's
value is internally generated.
1991-05-01 Jim Blandy (jimb@churchy.gnu.ai.mit.edu)
* keymap.c (describe_map_tree): GCPRO the maps variable;
Fkey_description calls Fmapconcat, which eventually calls
Ffuncall, which can garbage-collect.
1991-04-28 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* dispnew.c (buffer_posn_from_coords): Use the information in bufp
to reduce the distance compute_motion must scan, when possible.
1991-04-27 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Qtop_level is initialized and
staticpro'd in syms_of_data too. Don't staticpro (or initialize)
it again here.
* macros.c (syms_of_macros): Since executing-macro and
executing-kbd-macro are actually the same variable, use
DEFVAR_LISP_NOPRO for the second one so it doesn't get staticpro'd
twice.
* process.c (syms_of_process): Don't staticpro or initialize Qexit
here, since syms_of_eval already does this and it's bad to
staticpro something twice.
(Qexit): Remove declaration here, so there will be a compilation
error if someone rearranges eval.c without fixing the Qexit stuff.
* eval.c (syms_of_eval): Add comment here to say that
syms_of_process cares about Qexit too.
* lread.c (init_obarray): Don't staticpro Vobarray, since the
DEFVAR_LISP in syms_of_read takes care of that.
1991-04-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* window.c (save_window_save): Always get the selected window's
value of point from its buffer, not just when it's also the
current buffer.
* lisp.h (Qdisabled): Declare this here so that the keys_of_*
files can disable the commands they define.
* casefiddle.c (keys_of_casefiddle): Make upcase-region and
downcase-region disabled, by default.
1991-04-16 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* bytecode.c (PUSH): Alliant can't be bothered to implement the
preincrement operator right, so use a comma.
* print.c (syms_of_print): staticpro Qexternal_debugging_output.
* editfns.c (clip_to_bounds): No longer static - used in window.c.
* window.c (unshow_buffer): Use clip_to_bounds to make sure we
change point to something legal.
1991-04-14 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* sysdep.c: Changes in formatting and comments.
1991-04-12 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* editfns.c (Fbuffer_substring): Don't call make_string, because
it may cause a compaction and move the buffer, and then copy the
wrong data.
* keyboard.c (read_char): Only GC if we've actually done enough
consing since the last gc to make it worthwhile.
1991-04-11 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
* keymap.c (access_keymap): Canonicalize the order of the
modifiers when you look up a symbol in a keymap, too.
(where-is-internal): If the keymap in which we found the
definition was reached by meta-prefix-char, replace it with the
metized character.
* eval.c (Fcondition_case): Initialize the `handler_list' member
of the catchtag.
* keyboard.c (read_char): Reset recent_keys_index when it is
greater than OR EQUAL to the number of elements in recent_keys,
stupid.
* keymap.c (access_keymap): When fetching the car of listy events,
no need to call Fcar_safe - extract the car directly.
* keyboard.c (read_key_sequence): Don't extract the car from listy
events here since 1) it strips information that we need from the
events, and 2) access_keymap will take care of that for us.
* macros.c (Qexecute_kbd_macro): New variable, used by
Fexecute_command.
(syms_of_macros): Initialize and staticpro Qexecute_kbd_macro.
* lisp.h: Add extern declaration for Qexecute_kbd_macro.
* keyboard.c (Fcommand_execute): Add an entry to the command
history for keyboard macros too.
* xterm.c (XTread_socket): If we get a MappingNotify event whose
request == MappingKeyboard, someone has changed the keyboard
mapping, and we should get the new mapping with
XRefreshKeyboardMapping.
1991-04-10 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
* commands.h: Declare last_command_char to be a Lisp_Object, not
an integer (ack).
* cmds.c (Fself_insert_command): If last_command_char is not an
integer, beep.
* minibuf.c (Fself_insert_and_exit): Same thing.
* keyboard.c (format_modifiers): New function, factoring out code
from modify_event_symbol and reorder_modifiers.
(modify_event_symbol): Call format_modifiers instead of doing the
work inline.
(reorder_modifiers): New function to put the modifiers on a
modified symbol in the canonical order.
* keymap.c (modify_event_symbol): Prepend the modifiers so they
appear in the canonical order: `M-C-S-U-'.
(store_in_keymap): If IDX is a symbol, put the modifiers in the
canonical order before storing.
1991-04-09 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keymap.c (Flocal_set_key, Fglobal_set_key): When checking types
of arguments, allow KEYS to be a vector or string, not just a
string.
(keymap_table): New static function to replace duplicated code in
access_keymap and store_in_keymap.
(access_keymap): Use keymap_table.
(store_in_keymap): Use keymap_table, and put non-character
definitions in dense keymaps *after* the vector.
* fileio.c (directory_file_name): Remove trailing slashes from
single-letter names like "a/" too. Let slen be the string length,
not one less than the string length.
* keyboard.c (Fset_input_mode): Don't complain that QUIT isn't an
ASCII character if it is nil - it is an optional parameter.
* keymap.c (Faccessible_keymaps): Use meta-characters in the key
sequences returned, carefully making sure that the sequences still
appear in order of increasing length.
1991-04-04 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* vmsfns.c (vms_trnlog): Increased size of str to 256 elements.
(vms_symbol): Increased size of str to 1025 elements.
1991-03-24 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* dispnew.c (pixel_to_glyph_translation): Moved this function to
xterm.c, since it is specific to X and only called by the X code.
* xterm.c (pixel_to_glyph_translation): Here it is.
1991-03-22 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* s-usg5-4.h (DATA_SEG_BITS): Definition deleted.
* m-intel386.h (DATA_SEG_BITS): Define here if USG5_4.
1991-03-22 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keymap.c (Faccessible_keymaps): Produce meta-characters in the
key sequences instead of [meta-prefix-char CHAR] sequences.
1991-03-21 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keymap.c (Flookup_key): If KEY is a zero-length array, then
return KEYMAP; this is more algebraically satisfying.
* dispnew.c (Fsit_for): If the time to sit is zero and there is no
input available, then return Qt, not Qnil.
* keyboard.c (read_char): If a quit occurs and we return
quit_char, clear Vquit_flag, so we don't end up returning it again
and again... All lisp code does this manually if they call
read-char with quits inhibited, so it's the right thing to do.
1991-03-20 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (read_char): If there is still no input available
after an auto-save, do a garbage-collection.
* undo.c (truncate_undo_list): Always leave at least one undo
record in the undo list. And use sizeof (struct Lisp_Cons), etc.
instead of 8, etc.
* keyboard.c (read_char): When deciding whether to wrap
recent_keys_index back to 0, compare it against
sizeof (recent_keys)/sizeof(recent_keys[0]),
not sizeof (recent_keys).
(quit_char): This can't be anything but an ASCII character, so it
shouldn't be a Lisp_Object. The declaration's comment says why.
(read_char, init_keyboard): Treat quit_char as an int now.
(Fset_input_mode): As above, and signal an error if QUIT is not an
ASCII character.
* callint.c (Fprefix_numeric_value): Use XFASTINT to initialize
val, not raw.
* fileio.c (Fmake_symbolic_link): Don't expand FILENAME; this
would make it impossible to make a link to a relative name.
1991-03-19 Jim Blandy (jimb@pogo.gnu.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Removed the DEFVAR_BOOL for
meta-flag. This cannot be a lisp variable because we need to
change the terminal settings whenever this flag changes. Change
this through set-input-mode instead.
1991-03-19 Richard Stallman (rms@mole.gnu.ai.mit.edu)
* keyboard.c (read_avail_input): Raise SIGHUP if no input on AIX.
1991-03-19 Jim Blandy (jimb@churchy.ai.mit.edu)
* keyboard.c (kbd_buffer_store_event, kbd_buffer_read_char)
(read_key_sequence, Fexecute_extended_command, Fset_input_mode)
(init_keyboard, syms_of_keyboard): Use XSET (var, Lisp_Int, exp)
instead of XSETINT (var, exp) in those cases where var is not
known to already be a Lisp_Int.
* search.c (skip_chars): Same.
* xterm.c (construct_mouse_click, XTread_socket): Same.
* callint.c (Fprefix_numeric_value): Make sure to return a
Lisp_Int even when RAW is a cons whose car is not a Lisp_Int.
* process.c (sigchld_handler): When searching for a process whose
pid is -1, make sure that the pid is an int first, since network
streams are in Vprocess_alist too.
* keyboard.c (syms_of_keyboard): Added DEFVAR_BOOL for
meta-flag. Emacs 18 had this, and I see no entry in the ChangeLog
saying that it was purposefully removed.
1991-03-17 Jim Blandy (jimb@geech.ai.mit.edu)
* keymap.c (Fcopy_keymap, Faccessible_keymaps, describe_map)
(append_key): Minor typos and brainos corrected.
* keyboard.c (read_char): Removed code to find the vector in a
(kbd-macro . VECTOR) - style macro, since the macro is represented
by the vector itself.
(read_char_menu_prompt): Changed to correctly recognize the new
dense keymap structures.
(read_key_sequence): Changed code that checks for keymapness to
use get_keymap_1 instead of doing the indirection and keymapness
testing itself.
(Fcommand_execute): A keyboard macro is now a string or a vector.
(Fexecute_extended_command): When expanding this_command_keys,
remember that it is now an array of Lisp_Objects, not chars.
* doc.c (Fdocumentation): Rearranged into a switch statement, and
made vectors macros, not keymaps.
* eval.c (Fcommandp): Removed code to recognize
(kbd-macro . VECTOR) as a command, and added code to recognize
vectors as commands.
* macros.c (Qkbd_macro): Variable deleted.
(syms_of_macros): Initialization of Qkbd_macro removed.
1991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
* minibuf.c (keys_of_minibuf): Changed all calls to
initial_define_lisp_key to calls to initial_define_key.
* keymap.c (describe_map): Adjusted to handle the new style of
keymap.
1991-03-14 Richard Stallman (rms@mole.ai.mit.edu)
* fileio.c (Fwrite_region): On VMS, don't try rewriting old version.
1991-03-14 Jim Blandy (jimb@pogo.ai.mit.edu)
* keymap.c (Faccessible_keymaps): Adjusted to handle the new style
of keymap.
(Fwhere_is_internal): Handle the new-style of keymaps.
Additionally, only check to see if a match is shadowed by a
binding in the local keymap when LOCAL_KEYMAP is non-nil, instead
of comparing elt against DEFINITION yet again.
(describe_map_tree): Handle key sequences that are vectors, as
well as those that are strings.
1991-03-13 Jim Blandy (jimb@churchy.ai.mit.edu)
* commands.h, keymap.c (meta_map, control_x_map): Make these
Lisp_Objects, not Lisp_Vectors.
keymap.c (syms_of_keymap): Same.
* keymap.c (Fuse_global_map): There is no longer any reason to
insist that KEYMAP must be a dense keymap; delete the code that
does so.
1991-03-12 Jim Blandy (jimb@wookumz.ai.mit.edu)
* commands.h, lisp.h: Changed global_map and current_global_map to
be Lisp_Objects, not Lisp_Vectors.
keyboard.c (read_key_sequence): Same.
keymap.c (Fkey_binding, Fglobal_key_binding, Fglobal_set_key)
(Fuse_global_map, Fwhere_is_internal, describe_buffer_bindings)
(syms_of_keymap): Same.
* keymap.c (Fdefine_key): Braino: increment idx and clear metized
flag even when the element of the key sequence isn't a character.
(Flookup_key): Fix same braino.
1991-03-10 Jim Blandy (jimb@wookumz.ai.mit.edu)
* keymap.c (get_keyelt): Use access_keymap to resolve indirect
entries, instead of duplicating its code.
(Fcopy_keymap): Handle the new keymap structure.
1991-03-09 Richard Stallman (rms@mole.ai.mit.edu)
* eval.c (struct catchtag): New field handlerlist.
(internal_catch, internal_condition_case): Set that field.
(unbind_catch): Use it.
1991-03-08 Richard Stallman (rms@mole.ai.mit.edu)
* m-intel386.h (signal): Maybe define if USG.
* keyboard.c (echo_char): Don't have space at end of echobuf.
1991-03-07 Jim Blandy (jimb@albert.ai.mit.edu)
* keyboard.c (syms_of_keyboard): Initialize mouse_syms, instead of
doing func_key_syms twice. Don't deal with scrollbar_syms, since
it doesn't exist.
1991-03-06 Jim Blandy (jimb@pogo.ai.mit.edu)
* keymap.c (access_keymap, store_in_keymap): Changed to handle the
new style of keymaps.
* fns.c (Fassq, Fcopy_alist): Changed docstring to promise to
ignore elements of LIST that are not conses. See access_keymap
and copy_keymap for a cheap excuse.
1991-03-06 Richard Stallman (rms@mole.ai.mit.edu)
* s-vms.h (DATA_START): Remove `+ 512'.
1991-03-05 Jim Blandy (jimb@spiff.ai.mit.edu)
* keymap.c (Fmake_keymap): Rewritten to construct the
new dense keymap structure: (keymap VECTOR . ALIST). Docstring
adjusted accordingly. This means that the keyboard macro
stupidity (see Feb 27, keyboard.c) is no longer needed.
1991-03-03 Richard Stallman (rms@mole.ai.mit.edu)
* sysdep.c (MEMORY_IN_STRING_H): New compilation flag.
* s-isc2-2.h: New file.
1991-02-27 Jim Blandy (jimb@churchy.ai.mit.edu)
* macros.c (Qkbd_macro): New variable, to hold the symbol
`kbd-macro', which we use to tag vector-style keyboard macros.
(syms_of_macros): Initialize and staticpro Qkbd_macro.
* eval.c (Fcommandp): Recognize the new keyboard macros.
* keyboard.c (Fcommand_execute): A keyboard macro is now a string,
or a cons whose car is the symbol `kbd-macro' and whose
cdr is a vector of events; previously, macros were strings or
vectors, but that makes it difficult to tell the difference
between macros and dense keymaps.
(read_char): Handle the new macros correctly, and re-allocate
this_command_keys correctly.
1991-02-26 Richard Stallman (rms@mole.ai.mit.edu)
* s-vms.h (calloc): Define like malloc, etc.
1991-02-26 Jim Blandy (jimb@spiff.ai.mit.edu)
* xterm.c (XTread_socket): Move enter_timestamp outside of the
function; static variables inside functions don't always work in
Emacs.
* editfns.c (in_accessible_range): Deleted - insufficently
general.
(clip_to_bounds): New function, much like in_accessible_range,
except that the upper and lower bounds are arguments.
(goto_char, save_restriction_restore): Rewritten to use
clip_to_bounds instead of in_accessible_range.
1991-02-25 Jim Blandy (jimb@pogo.ai.mit.edu)
* keymap.c (initial_define_lisp_key): Turn KEY into a Lisp_Int
before passing it to store_in_keymap.
* buffer.c (reset_buffer_local_variables): Don't try to initialize
the buffer's mouse_map and function_key_map fields, since they
don't exist anymore.
* macro.c (kbd_macro_buffer, kbd_macro_ptr, kbd_macro_end): These
are now all pointers to Lisp_Objects instead of chars.
(Fend_kbd_macro): Use make_sequence.
(store_kbd_macro_char): Argument c is now a Lisp_Object. Change
call to xrealloc to ask for Lisp_Objects instead of chars. Set
kbd_macro_end to the same place in the new buffer as it was in the
old one, not to the end of the buffer.
(Fexecute_kbd_macro): Allow MACRO to be a string or a vector.
(syms_of_macros): Allocate Lisp_Objects instead of chars for
kbd_macro_buffer.
* alloc.c (make_sequence): New function, useful to keyboard.c and
macro.c.
* keyboard.c (Fread_key_sequence): Use make_sequence.
(Fthis_command_keys): Use make_sequence.
1991-02-24 Jim Blandy (jimb@churchy.ai.mit.edu)
* keymap.c (Fwhere_is): If the command can't be found, the message
is now "foobie is not on any key.", instead of "... any keys.".
* keyboard.c (input_poll_signal): Pass 0 to read_avail_input,
instead of `&junk'. Removed variable `junk'.
(command_loop_1): Updated to handle the unified function key/mouse
event/keystroke arrangement.
(Finput_pending_p): Removed vestiges of code to handle
unread_input_char value of -1, since this doesn't happen anymore.
(read_char): Adapted to handle lispy events.
(read_char_menu_prompt): Allocate `menu' buffer using alloca,
instead of a variable-sized array, which is gcc-specific.
(Frecent_keys): Return the most recent "keystrokes" as a vector,
to accomodate lispy events.
(Fset_input_mode): Accomodate non-characters as quit keys. If
this is a bad thing, init_sys_modes will tell us.
(init_keyboard): this_command_keys is now an array of
Lisp_Objects; adjust the amount of storage we request to hold it.
Remember that quit_char can be any keystroke.
(syms_of_keyboard): last_command_char, last_input_char, help_char,
menu_prompt_more_char and meta_prefix_char are now DEFVAR_LISPs
instead of DEFVAR_INTs.
1991-02-24 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (wait_reading_process_input): Use NETCONN_P.
1991-02-23 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c (recent_keys, this_command_keys)
(menu_prompt_more_char, help_char, last_command_char, quit_char)
(last_input_char): Changed to Lisp_Objects, so we can use function
keys for them.
(Vglobal_function_map): Variable deleted.
(echo_char): Echo function keys too. The argument C is now a
Lisp_Object instead of a char.
(Fread_key_sequence): Removed sludge to handle window events
specially, and added sludge to handle sequences with
non-characters in them.
(classify_object): Elided, since this should go away soon.
(read_key_sequence): Adapted to look up symbols in keymaps,
just like characters.
1991-02-23 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (send_process): Handle EAGAIN like EWOULDBLOCK.
1991-02-22 Jim Blandy (jimb@pogo.ai.mit.edu)
* doc.c (substitute_command_keys): Call describe_map_tree with
only three arguments, since the CHARTAB arg has been disposed of.
* keymap.c (Fcurrent_global_map, Fuse_local_mouse_map): Functions
deleted, since the mouse maps are no longer separate from the key
maps.
(append_key): New function, which handles tacking a single
keystroke on the end of a key sequence, promoting strings to
vectors when needed.
(Faccessible_keymaps): Adjusted to return vectors for key
sequences, when necessary.
(Fkey_description): Removed stuff to handle mouse buttons and
other things specially, since this work will go into
Fsingle_key_description.
(Fsingle_key_description): SIMPLIFIED to handle everything
correctly! Jeepers!
(Fwhere_is_internal): Scan the assoc-list at the end of dense
keymaps, and construct strings or vectors.
(where_is_string, describe_buffer_bindings): Simplified by
deleting code to handle mouse button bindings specially.
(describe_map_tree): Removed CHARTAB argument; this was
a kludge to print out mouse events nicely, and is no longer
necessary. Nobody was using it anyway.
(describe_map): Removed ugly hack to handle mouse buttons
specially, added code to describe alists on dense keymaps, and
removed CHARTAB argument.
(describe_alist): Made to handle bindings of symbols as well as
characters. Removed CHARTAB argument.
(describe_vector): Removed CHARTAB argument, allocated KLUDGE
outside of loop and GCPRO'd it.
(syms_of_keymap): Remove last vestiges of Vglobal_mouse_map,
Vmouse_button_names, Suse_local_mouse_map,
Scurrent_local_mouse_map.
* buffer.h (struct buffer): Removed mouse_map and function_key_map
members, since they are now handled by the keymap element.
* keyboard.c (syms_of_keyboard): Change initialization of
meta_prefix_char, since it's now a Lisp_Object.
* keymap.c (Fkeymapp): Rewrote this to use get_keymap_1; now it's
a one-liner instead of a 13-liner.
(DENSE_TABLE_SIZE): Created new constant for the # of lookup-style
entries in a dense keymap, and the index of the map's assoc list.
Used it where appropriate.
(Fcopy_keymap): Notice that 129'th element in dense keymaps.
(Fdefine_key, Flookup_key): Reworked to deal with vectors of
symbols and characters as well as strings for key sequences.
(meta_prefix_char): Changed from an int to a Lisp_Object.
1991-02-21 Richard Stallman (rms@mole.ai.mit.edu)
* fileio.c (report_file_error): Don't downcase "I/O".
1991-02-20 Jim Blandy (jimb@geech.ai.mit.edu)
* keymap.c (access_keymap): Allow IDX to be any sort of bindable
event, and deal with the extended keymaps. IDX is now a
Lisp_Object instead of an int, obviously.
(store_in_keymap): Allow IDX to be any sort of bindable event, and
deal with the extended keymaps. IDX is now a Lisp_Object.
* xterm.c (construct_mouse_click): Add code to set the up_modifier
bit for ButtonRelease events.
* keyboard.c (kbd_buffer_store_event): Use XFASTINT and XSETINT to
access event->code, since it's a Lisp_Object.
(kbd_buffer_read_char): Golly, perhaps we should increment
kbd_fetch_ptr to remove the event we just read from the queue.
(modify_event_symbol): Stupid fixes: correctly look up unmodified
symbols when cache entry has a modified symbol vector. And, when
first adding the modified symbol vector, copy the old slot value
into it correctly.
1991-02-19 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c (command_loop_1): #if 0 the block of code which
handles mouse events and other lispy events specially, since I
hope it will go away soon.
* dispnew.c (Fsleep_for_millisecs): Pass all four arguments to
wait_reading_process_input, instead of just the first two.
* process.c (wait_reading_process_input): Remove support for
only waiting for mouse input, since that has been superceded.
This removes X dependencies from process.c, and eliminates some
references to code that should only exist when using X10.
* keyboard.c (mouse_moved_symbol, redraw_screen_symbol,
mapped_screen_symbol, unmapped_screen_symbol,
exited_window_symbol, exited_scrollbar_symbol): Renamed to
Qmouse_moved, Qredraw_screen, Qmapped_screen, Qunmapped_screen,
Qexited_window, Qexited_scrollbar, just as done in xterm.c.
(classify_object): Removed code to look up a function key in the
global and local function key keymaps, since this will be done
more generally.
(Fexecute_mouse_event): Elided this function with a #if 0; I
think it will go away once the more general keymap stuff is
implemented, but I'm not sure.
(syms_of_keyboard): Removed defsubr for Sexecute_mouse_event.
(where_is_string, describe_buffer_bindings, syms_of_keymap):
Elided code to handle mouse button bindings specially; I hope this
will go away.
* lread.c (syms_of_lread): Change defsubr for eval-buffer to
defsubr for eval-current-buffer.
* keymap.c (syms_of_keymap): defvar for Vglobal_function_map
removed, since that variable has disappeared.
* xterm.c (x_func_key_to_sym): Removed entirely, since we no
longer convert X keycodes to symbols in this section of code.
(x_convert_modifiers): New function to turn the X modifier bits
into struct input_event modifier bits.
(encode_mouse_button): Removed, since this work isn't done here
anymore.
(Vx_send_mouse_movement_events): Add an extern declaration for
this.
* termhooks.h: Only define struct input_event if the module
has previously #included lisp.h; this avoids forcing simple modules
like cm.c to #include lisp.h.
* term.c: #include "lisp.h" before #including "termhooks.h", since
the latter uses Lisp_Objects now.
* xfns.c (syms_of_xfns): Delete the defsubr for Sx_window_id,
since Fx_window_id is gone.
* xterm.c (construct_mouse_event): Construct a struct input_event
instead of a lispy event.
* screen.c (coordinates_in_window): Added explanatory comment.
(window_from_coordinates): Change PART, whose returned values are
dependent on X-windows, to be called MODELINE_P, with appropriate
new return values.
* xterm.c (notice_mouse_movement): Handle the X-windows dependent
stuff that used to be in window_from_coordinates here instead.
(XTread_socket): Modified to produce struct input_events
instead of lispy events.
1991-02-18 Jim Blandy (jimb@pogo.ai.mit.edu)
* termhooks.h: Added up_modifier to the enum for modifier bits;
this bit will be applied to mouse events.
(struct input_event): Changed specification of non_ascii_keystroke
events to send the function key number instead of a symbol.
* keyboard.c (modify_event_symbol): Re-arranged to work well
with function key/mouse button numbers instead of symbols.
And if (MODIFIERS & up_modifer), prepend "U-" to the name of the
symbol being constructed.
(make_lispy_event): Use the new modify_event_symbol.
* xterm.c (notice_mouse_movement): Adjusted this function to
work with a struct input_event instead of producing an
s-expression.
* xterm.c, xfns.c: Made all references to x_mouse_queue,
x_expose_queue, and the functions which manipulate them
conditional on having X10, since only X10 code ever places
anything in these queues.
1991-02-15 Jim Blandy (jimb@pogo.ai.mit.edu)
* termhooks.h: Define struct input_event, to represent input
events while they sit in the keyboard input buffer. Using lisp
objects to represent input events is a bad idea because the
routines which enqueue them can be called from signal handlers,
and therefore should not cons.
* keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Change
these to be of type `struct input_event *'.
(kbd_buffer_store_event): Manipulate struct input_events instead
of lisp objects.
(make_lispy_event): New function, to construct a lisp-style event
corresponding to a particular struct input_event.
(modify_event_symbol): New function, to add modifier prefixes to a
symbol, and look the new symbols up quickly if they've already
been created.
(kbd_buffer_read_char): Call make_lispy_event to turn the thing
in the keyboard buffer into the form that read_char is expecting.
(Qwith_modifier_keys): Define this new symbol variable.
(syms_of_keyboard): Initialize and protect Qwith_modifier_keys.
* xterm.c (init_input_symbols): Rearranged the code that produces
the func_key_syms array.
(x_func_key_to_sym): Simplified, since more will be handled in
make_lispy_event.
(XTread_socket): When handling KeyPress events, don't pass the
state of the modifier keys to x_func_key_to_sym, since it doesn't
care any more.
* sysdep.c (kbd_input_ast, end_kbd_input, read_input_waiting):
Rename kbd_buffer_store_char to kbd_buffer_store_event.
* keyboard.c (stuff_buffered_input): Since the keyboard buffer
holds lisp objects, only stuff entries that are Lisp_Ints, and
XINT them before passing them to stuff_char.
(kbd_buffer_store_char): Make this not a static function, since
sysdep.c calls it. And rename it kbd_buffer_store_event.
* keyboard.c (kbd_buffer, kbd_fetch_ptr, kbd_store_ptr): Made these
variables static, to document the fact that they're only used
within keyboard.c.
1991-02-13 Jim Blandy (jimb@pogo.ai.mit.edu)
* xterm.c (init_input_symbols): Remove the `xk-' prefix from all
the function key symbols, since they're going to be used for
function keys from all sorts of terminals, not just when running
under X.
* lread.c (read_escape): Removed support for mouse button escapes
(\S-, \U-, \C- applied to digits), because they're being replaced
by something more rational.
1991-02-09 Richard Stallman (rms@mole.ai.mit.edu)
* buffer.c: Doc fix.
* sysdep.c (dup2): Rewrite of non-F_DUPFD case.
1991-02-08 Richard Stallman (rms@mole.ai.mit.edu)
* m-intel386.h (LOAD_AVE_CVT): Add extra parens.
* s-usg5-4.h (LIBX11_SYSTEM): #undef it.
1991-02-07 Richard Stallman (rms@mole.ai.mit.edu)
* s-esix.h: New version from kayvan.
Adds HAVE_X11 conditional, NEED_PTEM_H, USG_SYS_TIME, USE_UTIME,
LIBS_DEBUG; removes #undef sigsetmask, LIBS_SYSTEM, ESIX,
MISSING_UTIMES.
1991-02-06 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (Faccept_process_output): Second arg gives timeout.
1991-02-06 Jim Blandy (jimb@geech.ai.mit.edu)
* lread.c (read_escape): Added support for \S- and \U- escapes (for
binding mouse buttons), and noted that \C- must work on digits.
* xterm.c (init_input_symbols): Was mistakenly renamed
init_inputs; named back.
* xterm.c (construct_mouse_click, encode_mouse_button): Rewritten
to build new-style mouse events.
* dispnew.c (update_line): Write a zero into obody[olen] to make
sure the lines in current_screen->glyphs remain terminated.
* xdisp.c (display_string, display_text_line): Don't write off
the end of the line and destroy the zero terminator when expanding
a tab.
* fns.c (Fy_or_n_p): Accept C-] (usually abort-recursive-edit) as
well as C-g to quit.
1991-02-05 Jim Blandy (jimb@geech.ai.mit.edu)
* sysdep.c, s-aix3-1.h, s-hpux.h, s-iris3-5.h, s-iris3-6.h,
* s-irix3-3.h, s-rtu.h, s-sunos4-1.h, s-unipl5-0.h, s-unipl5-2.h,
* s-usg5-0.h, s-usg5-2-2.h, s-usg5-2.h, s-usg5-3.h, s-xenix.h:
Globally replaced INTERRUPTABLE with INTERRUPTIBLE.
* xterm.c (construct_mouse_event): Renamed to
construct_mouse_click, since there are kinds of mouse events
besides clicks (movement, for example).
(XTread_socket): Rename calls here.
* xterm.c (mapped_screen_symbol, unmapped_screen_symbol)
(exited_scrollbar_symbol, exited_window_symbol)
(redraw_screen_symbol, mouse_moved_symbol): Renamed to
Qmapped_screen, Qunmapped_screen, Qexited_scrollbar,
Qexited_window, Qredraw_screen, Qmouse_moved, to agree with naming
conventions elsewhere in Emacs.
* xfns.c (text_part_sym, modeline_part_sym)
(vertical_scrollbar_sym, vertical_slider_sym, vertical_thumbup_sym)
(vertical_thumbdown_sym, horizontal_scrollbar_sym)
(horizontal_slider_sym, horizontal_thumbleft_sym)
(horizontal_thumbright_sym): Renamed to Qtext_part, Qmodeline_part,
Qvscrollbar_part, Qvslider_part, Qvthumbup_part, Qvthumbdown_part,
Qhscrollbar_part, Qhslider_part, Qhthumbleft_part,
Qhthumbright_part, to agree with the naming conventions elsewhere
in Emacs.
* xterm.c (XTread_socket): While handling EnterNotify events,
clear Vmouse_event here.
(notice_mouse_movement): Don't clear it here.
1991-02-04 Richard Stallman (rms@mole.ai.mit.edu)
* s-sunos4-0.h: Renamed from s-sunos4.h.
(read, write, open, close): Macro defs moved to s-sunos4-1.h.
(INTERRUPTABLE_*): Likewise.
* s-sunos4-1.h: New file.
1991-02-04 Jim Blandy (jimb@churchy.ai.mit.edu)
* keymap.c (Vglobal_mouse_map, Vglobal_function_map): Variables
removed in preparation for conversion to unified keymap format.
(Fmake_keymap): Make vector keymaps with 129 entries; the last
will be an assoc-list for looking up symbols. Update docstring to
describe 129'th element.
(Fmake_sparse_keymap): Update docstring to say that you can bind
symbols in these maps too.
(Fkeymapp): Recognize 129-element vectors as keymaps, not
128-element vectors.
(get_keymap_1): wrong_type_argument can no longer return a new
value supplied by the debugger; remove loop to support this.
* xterm.c (XTread_socket): When handling EnterNotify events,
enqueue fake mouse events iff Vx_send_mouse_movement_events !=
Qnil.
* xfns.c (Fx_window_id): Function removed; Fscreen_parameters
already provides this information.
* xterm.c (x_term_init): Cleaned up the code to get the host name,
and removed fixed limit on host name length.
* window.c (Fscroll_other_window): Don't explicitly save
current_buffer and point; the save_excursion will take care of
that anyway.
* dispnew.c (safe_bcopy): Rewritten to handle overlapping regions
with multiple calls to bcopy instead of a stupid copy loop.
* xterm.c, xfns.c (Vscreen_part, Vx_send_movement_events): These
variables renamed to Vmouse_screen_part,
Vx_send_mouse_movement_events.
* lread.c (Feval_buffer): Function deleted.
(Feval_current_buffer): Removed "#if 0 ... #endif" around this
function.
1991-02-03 Richard Stallman (rms@mole.ai.mit.edu)
* Makefile, ymakefile (SHELL): Force use of sh.
* s-usg5-4.h (USG5_4): Define it.
(LOAD_AVE_*): Don't define them.
* m-intel386.h (LOAD_AVE_*): Define, if USG5_4.
* buffer.c (Fbuffer_local_variables): Omit slots with no names.
1991-02-03 Jim Blandy (jimb@geech.ai.mit.edu)
* xterm.c (x_term_init, init_input_symbols): Moved these to the
bottom of the file, 1) to be consistent with the other files, and
2) so it can initialize some variables I want.
1991-02-02 Jim Blandy (jimb@churchy.ai.mit.edu)
* xterm.h: Added external declaration for x_focus_screen.
* search.h: File deleted.
* buffer.h: Declare searchbuf here instead.
* screen.c (Ffocus_screen, Funfocus_screen): Moved these functions
to xfns.c, since they're x-specific.
(syms_of_screen): Removed defsubr calls for above.
* xfns.c (Ffocus_screen, Funfocus_screen): Here they are.
(syms_of_xfns): The defsubrs are here now.
* buffer.h (PT): Make this expand to an expression which is not an
l-value, to prevent people from assigning to it. If everyplace
uses SET_PT, it will be easier to merge in the interval code.
(point): Similar changes here.
(SET_PT): This can no longer be written in terms of PT, so write
out current_buffer->text.pt.
* xterm.c (x_new_font): Rewritten to remove arbitrary limit on
size of x_font_table.
(x_font_table_size): Created new variable.
(n_available_fonts, font_names, font_info, MAX_FONTS): Deleted
these variables/macros.
* dispnew.c (scroll_screen_lines): Instead of disabling the lines
vacated by the scroll (i.e. zeroing enable), mark them as enabled
but empty.
* callint.c (Fcall_interactively): Move UNGCPRO down, so that
stuff is protected while we build the command history entry and do
the function call.
* xterm.c (XTupdate_end): Turn cursor on, even if we don't
currently have the focus.
* minibuf.c (temp_echo_area_glyphs): Clear echo_area_glyphs and
previous_echo_glyphs, so the message we're displaying will
supercede any existing message.
* keyboard.c: Removed external declaration of echo_area_glyphs,
since it's declared in window.h.
1991-01-31 Jim Blandy (jimb@pogo.ai.mit.edu)
* xterm.c (XRINGBELL): Pass 0 as the second argument to XBell;
respect the user's preferences.
1991-01-30 Jim Blandy (jimb@pogo.ai.mit.edu)
* xterm.c (x_draw_single_glyph): New function, created to simplify
cursor drawing/undrawing.
(x_display_box_cursor): Rewritten to properly handle the box
cursor in its filled and hollow forms.
* xterm.h (enum text_cursor_kinds): Added enum for the different
kinds of cursors which might be displayed in a window.
(struct x_display): Added member `text_cursor_kind' which says
which kind of cursor is currently being displayed in the window, so
we can arrange to redraw it effectively.
* keyboard.c (command_loop_1): When handling the forward_char
command, don't let point move to the location after the end of the
buffer.
* keyboard.c (poll_suppress_count): Define this even if
POLL_FOR_INPUT is not defined, because this makes lots of #ifdef
clauses unnecessary, and doesn't hurt, because
{start,stop}_polling become nops.
* config.h, config.h-dist: Make these #include "system.h" and
"machine.h", and let the config script link these appropriately,
instead of using the machine-specific names and expecting the user
to edit this file.
1991-01-29 Jim Blandy (jimb@churchy.ai.mit.edu)
* window.c (Fdelete_window): sib is a Lisp_Object; treat it as
such.
* xterm.c (screen_unhighlight): When the focus leaves a screen,
draw the cursor as a box instead of making it disappear entirely.
1991-01-29 Richard Stallman (rms@mole.ai.mit.edu)
* unexec.c (make_hdr) [TPIX]: Set f_hdr.f_nscns and f_thdr.f_scnptr.
* sysdep.c [BROKEN_TIOCGWINSZ]: Undef TIOCGWINSZ.
* process.c (wait_reading_process_input): Don't ignore
a zero-length read on a network connection. Do close it.
* sysdep.c (hft_init, hft_reset): Pass &junk as arg to HFQERROR.
Do nothing if not HFT.
1991-01-29 Jim Blandy (jimb@albert.ai.mit.edu)
* xfns.h: Created, to declare things defined in xfns.c.
Declare Vx_send_movement_events.
* xfns.c: #include "xfns.h".
(Vx_send_movement_events): Define this variable.
(syms_of_xfns): DEFVAR_LISP it.
* xterm.c: #include "xfns.h".
(XTread_socket): Place a mouse-moved event in the buffer iff
Vx_send_movement_events says to.
1991-01-28 Jim Blandy (jimb@geech.ai.mit.edu)
* ymakefile: Noted that callint.o depends on mocklisp.h,
and dired.o on search.h.
* environ.h: Deleted - its creation in the first place was misguided.
callproc.h: Removed #include "environ.h", and added declarations
for environ.h
* buffer.c (syms_of_buffer): Add more detailed documentation to
buffer-undo-list.
* lisp.h (poll_suppress_count): Add external declaration for this here.
1991-01-28 Richard Stallman (rms@mole.ai.mit.edu)
* m-sun3-68881.h, m-sun3-fpa.h, m-sun3-soft.h: New files.
1991-01-27 Jim Blandy (jimb@geech.ai.mit.edu)
* lisp.h (struct handler): Add poll_suppress_count member, so
we can restore poll_suppress_count when we handle an error.
* eval.c (struct catchtag): Add it here too, for throws.
(internal_catch, Fcondition_case, internal_condition_case): Record
the value of poll_suppress_count here in the handler and catch tag.
(Fthrow, Fsignal): Restore it here.
1991-01-25 Jim Blandy (jimb@churchy.ai.mit.edu)
* xterm.c (x_display_box_cursor): If we're undrawing the cursor by
redrawing the character underneath it, draw according to that
line's highlight, instead of assuming it's in the normal GC.
1991-01-25 Richard Stallman (rms@mole.ai.mit.edu)
* buffer.h (PTR_CHAR_POS): Value was too small by 1.
1991-01-16 Richard Stallman (rms@mole.ai.mit.edu)
* doprnt.c (doprnt): Check for overflow in fmtcpy.
1991-01-16 Jim Blandy (jimb@churchy.ai.mit.edu)
* window.c (Fdelete_window): If the deletee gives its space to its
next sibling, that sibling needs to have its top/left side pulled
back to where the deletee's is.
1991-01-15 Jim Blandy (jimb@geech.ai.mit.edu)
* doc.c (Fsnarf_documentation): Handle attaching docstrings to
bytecode objects too.
* syntax.h (syntax_spec_code): Make external declaration for this
unsigned char to match the definition in syntax.c.
* indent.c (compute_motion): Added comments describing how it
can be used.
1991-01-15 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (create_process): Use SETUP_SLAVE_PTY if defined.
* s-usg5-4.h (HAVE_PTYS, HAVE_SETSID): Defined.
(HAVE_WAIT_HEADER, WAITTYPE, wait3, WRETCODE): New macros.
(TIOCSIGSEND): Alias for TIOCSIGNAL.
(FIRST_PTY_LETTER): Overridden.
(PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF, SETUP_SLAVE_PTY): New macros.
* m-ibmrs6000.h (CANNOT_DUMP): Undefine it.
(UNEXEC): Define it.
(PURE_SEG_BITS, SHMKEY): Define only if CANNOT_DUMP.
(LINKER): Override it. Then add -bnodelcsect.
* xfns.c (Fx_get_default): Try reversing XGetDefault args if it fails.
1991-01-13 Richard Stallman (rms@mole.ai.mit.edu)
* s-usg5-4.h (LOAD_AVE_CVT): Cast value to int.
* keyboard.c (read_avail_input): Signal SIGHUP if FIONREAD fails.
* ymakefile: Put tokens after #endif into comment.
* filelock.c (lock_file_owner_name): Declare argument type.
* syntax.c (syntax_spec_code): Type now unsigned char.
* process.c (wait_reading_process_input):
Call status_notify even when not doing redisplay.
* emacs.c (Fkill_emacs): Turn off SIGIO before exiting.
* s-usg5-3.h (USG5_3): Define it.
* m-ibmps2-aix.h [USG5_3]: Define TEXT_START as 0.
Don't define DATA_START or DATA_END or TEXT_END or DATA_SEG_BITS.
Override various other symbols at end of file.
1991-01-12 Jim Blandy (jimb@churchy.ai.mit.edu)
* window.c (window-configuration-p): Closing paren needed. Added.
* keyboard.c (command_loop_1): When displaying a message over an
active minibuffer, call Fsit_for with three arguments, not two.
1991-01-12 Richard Stallman (rms@mole.ai.mit.edu)
* s-irix3-3.h (HAVE_SYSVIPC): Defined.
1991-01-12 Jim Blandy (jimb@pogo.ai.mit.edu)
* dispnew.c (buffer_posn_from_coords): Compute_motion starting
from bufp[y] instead of counting from the top of the window.
1991-01-11 Richard Mlynarik (mly@pizza.ai.mit.edu)
* window.c (window-configuration-p): Needed. Added.
1991-01-11 Jim Blandy (jimb@churchy.ai.mit.edu)
* dispnew.c (buffer_posn_from_coords): Remember to deduce space
for the line continuation markers and the window separators from
the window width.
1991-01-11 Richard Stallman (rms@mole.ai.mit.edu)
* m-tower32v3.h (VALBITS, GCTYPEBITS): Use 26 bits for pointer.
1991-01-10 Richard Stallman (rms@mole.ai.mit.edu)
* fileio.c (Fcopy_file): Always close descriptors.
* s-sunos4.h: read, write, open and close are interruptable.
1991-01-09 Jim Blandy (jimb@churchy.ai.mit.edu)
* xterm.c, dispnew.c (pixel_to_char_translation): Renamed to
pixel_to_glyph_translation, and rewritten. Just get coordinates,
don't return anything.
(buffer_posn_from_coords): New function - given a window and
co-ordinates on the screen, find the buffer position at those
co-ordinates.
1991-01-08 Jim Blandy (jimb@geech.ai.mit.edu)
* alloc.c (Fmake_byte_code): Flesh out docstring.
* window.c (window_loop): Pick the first window correctly, even
when screen == 0.
* dispnew.c (scroll_screen_lines): Don't forget to call
update_begin at the top of the down-scrolling section.
And rotate by amount, not -amount, in the up-scrolling section.
* xterm.h (MAX_FONTS, x_font_table, n_fonts): Removed external
declarations for these variables, since they're declared static in
xterm.c and not used elsewhere.
* xterm.c (MAX_FONTS): Moved definition of this to here from
xterm.h.
* xterm.c (x_new_font): If you can't find the requested font,
return a code which indicates this, instead of calling abort.
1991-01-07 Jim Blandy (jimb@churchy.ai.mit.edu)
* xdisp.c (redisplay, display_mode_line): To test
Vglobal_minibuffer_screen for validity, you must check that its
type is Lisp_Screen; comparing it to Qnil isn't good enough.
* screen.c (syms_of_screen): Initialize Vglobal_minibuffer_screen
to Qnil; otherwise, it inhibits decent redisplay (is that another
bug?)
* dispnew.c (init_display): Make sure that the standard input is a
terminal here.
* emacs.c (main): Not here, since we don't know yet if we want to
use a window system of some sort.
* xfns.c (x_make_gc): Delete code to support default_face and
highlight_face, since they're part of the interval code, and
shouldn't be installed yet.
* dispnew.c (init_display): Calculate_costs expects a screen
parameter; pass selected_screen, instead of nothing.
* search.c (Freplace_match): Protect STRING.
* process.c (run_filter): New function.
(read_process_output, exec_sentinel): Use run_filter to call the
process's filter function.
(status_notify): GCPro MSG.
* process.c (Fopen_network_stream): Protect various args.
* print.c (Fprin1_to_string, Fprint): Protect OBJ.
* lread.c (Feval_region): Check type of B.
* keymap.c (describe_alist): Protect ELT_PREFIX and TEM2.
(describe_vector): Likewise for ELT_PREFIX and TEM1.
1991-01-06 Richard Stallman (rms@mole.ai.mit.edu)
* sysdep.c (init_sys_modes): Turn off VSUSP and V_DSUSP if they exist.
Only on a MIPS.
1991-01-05 Jim Blandy (jimb@spiff.ai.mit.edu)
* xselect.c (x_answer_selection_request): For incremental, set
format to 32 and send only 1 element. Pass the address of size,
not size itself.
(x_selection_arrival): For incremental, delete the property
containing the size of the transfer. This generates a
PropertyNotify to the owner, starting the exchange.
* xrdb.c (get_user_app): Pass correct number of parameters to
sprintf.
* xfns.c (x_window): Don't use backing store or saveunders; they
seem to slow down suns.
(x_icon): Set the InputHint to the window manager to False.
(x_make_gc): Initialize gc_values.line_width to zero before
creating the normal video GC, since it uses it. And set the
default_face and hilite_face gcs here.
(install_vertical_scrollbar): Add 2 to thumbdown y position, and
don't add ibw.
* insdel.c (insert, del_range): Use SET_PT rather than assigning
point directly.
* window.c (Fselect_window): Here too.
* xdisp.c (redisplay_all_windows): Removed static declaration for
this nonexistent function.
1991-01-04 Jim Blandy (jimb@pogo.ai.mit.edu)
* window.c (window_loop): Neatened up. MINI being non-zero now
makes it recognize active minibuffer windows. Iterates properly
over multiple screens when asked nicely.
(Fget_lru_window, Fget_largest_window): SCREENS arguments are now
declared as a Lisp_Object, and documented.
(Fget_buffer_window): SCREENS argument is now documented.
(Fdelete_other_windows): Delete other windows on the argument
window's screen, not the current screen.
* screen.c (window_from_coordinates): Changed other reference to
Fnext_window to use next_screen_window; see below.
* window.c (Fnext_window, Fprevious_window): Accept non-nil, non-t
values for mini, and don't turn off all-screens when mini is t but
there is no global minibuffer screen. Remove screen_{root,mini}
variables.
(Fother_window): Added second argument all_screens.
* undo.c (record_delete): Removed dead variable llength.
* data.c (Qkeyp, Fkeyp): Removed these and supporting code.
* keymap.c (Fsingle_key_description): Report an error instead of
calling wrong_type_argument.
* lisp.h (Qkeyp): Removed external declaration for this.
1991-01-03 Richard Stallman (rms@mole.ai.mit.edu)
* search.c (search_buffer): Return starting position if count == 0.
1991-01-02 Jim Blandy (jimb@pogo.ai.mit.edu)
* scroll.c (do_scrolling): Use correct limits on loop to clear
lines just inserted--old version lost a line.
* screen.c: #ifdef HAVE_X_WINDOWS, #include xterm.h
(Ffocus_screen, Funfocus_screen): Use Joe's new definitions, and
only define these functions ifdef HAVE_X_WINDOWS.
(window_from_coordinates): Use next_screen_window instead of
Fnext_window, so that global minibuffers work.
* lread.c (syms_of_read): Don't forget to defsubr
read-char-exclusive.
* lisp.h (Fscreenp, Fselect_screen, Ffocus_screen)
(Funfocus_screen, Fselected_screen, Fwindow_screen)
(Fscreen_root_window, Fscreen_selected_window, Fscreen_list)
(Fnext_screen, Fdelete_screen, Fread_mouse_position)
(Fset_mouse_position, Fmake_screen_visible, Fmake_screen_invisible)
(Ficonify_screen, Fdeiconify_screen, Fscreen_visible_p)
(Fvisible_screen_list, Fscreen_parameters)
(Fmodify_screen_parameters, Fscreen_pixel_size, Fscreen_height)
(Fscreen_width, Fset_screen_height, Fset_screen_width)
(Fset_screen_size, Fset_screen_position, Fcoordinates_in_window_p)
(Flocate_window_from_coordinates, Frubber_band_rectangle): Added
extern declarations for all these.
* lisp.h (Qscreenp): Added an extern declaration for this.
* lisp.h (DBL_DIG): Added constant for the maximum number of
decimal digits a float could print to. Used in print.c.
* keymap.c (Fkey_description): Produce pretty descriptions of
mouse and window system events too.
(Fsingle_key_description): Signal an error if obj is not a key.
* data.c (Fkeyp, Qkeyp): Added predicate to recognize things which
can be bound - this includes keys, symbols (for function keys and
window system events), and conses (for mouse events).
* lisp.h (Qkeyp): Added external declaration for this.
* keyboard.c (Frecursive_edit): Don't specbind the standard IO here.
(recursive_edit_1): Do it here, and don't forgot to unbind_to.
(command_loop_1): Reset no_redisplay after mouse commands.
(classify_object): Place the object in read_key_sequence_cmd.
(Fread_key_sequence): Recognize that when read_key_sequence
returns -1 or -2, it's a mouse event or window system event.
1991-01-01 Jim Blandy (jimb@pogo.ai.mit.edu)
* fileio.c (Fwrite_region): We should dereference GPT_ADDR[-1]
before comparing it to '\n' for VMS cruft.
(Fdo_auto_save): Don't call run-hooks before it's defined. This
only happens before emacs is dumped, when loading inc-vers.el.
* eval.c (Fsignal): TOTALLY_UNBLOCK_INPUT here.
(error): Not here.
(Feval): We use argvals[0..5], so declare it to have six elements
instead of just five.
1990-12-30 Richard Stallman (rms@mole.ai.mit.edu)
* eval.c (Fsignal): Don't ever return.
Call error instead if user tries to use debugger to return.
* eval.c (unbind_to): New second arg is value to return. gcpro it.
All callers changed to pass the arg; if a caller uses unbind_to
just before returning, it passes as this arg the value it wants
to return, then it returns whatever comes back.
1990-12-28 Jim Blandy (jimb@geech.ai.mit.edu)
* print.c (print): Put obj in a non-register variable so
we could gcpro it. Also fixed some syntax errors.
* editfns.c (Fformat): Declare nstrings, and declare nstrings and
strings in a local block.
(Fformat): XFLOAT(args[n]) isn't a float; ->data is.
1990-12-27 Richard Stallman (rms@mole.ai.mit.edu)
* m-tower32.h: Add comments for how to optimize.
* m-tower32v3.h: New file.
* fileio.c (Fwrite_region): Save errno around unlock_file.
1990-12-26 Richard Stallman (rms@mole.ai.mit.edu)
* editfns.c (Fformat): Handle floats. Convert between int and float.
Don't truncate value at null char coming from doprnt.
* doprnt.c (doprnt): Replace tembuf with malloced buff if too small.
Handle %e, %f and %g.
1990-12-25 Richard Stallman (rms@mole.ai.mit.edu)
* abbrev.c (Fexpand_abbrev): Use insert_from_string, not insert.
(Funexpand_abbrev): Likewise.
* doc.c (Fsubstitute_command_keys): Likewise.
* editfns.c (Finsert, Finsert_before_markers): Likewise.
* minibuf.c (Fminibuffer_complete_word): Likewise.
* mocklisp.c (Finsert_string): Use insert1.
* vmsfns.c (Fdefault_subproc_input_handler): Likewise.
* print.c: Don't use strout for the text of a Lisp string.
(print_string): New function to use instead.
(print): Use print_string when no escapes needed.
When printing with escapes, protect the string and check addr often.
1990-12-24 Richard Stallman (rms@mole.ai.mit.edu)
* insdel.c (insert_from_string): New function.
1990-12-20 Richard Stallman (rms@mole.ai.mit.edu)
* term.c (ins_del_lines): Handle scroll region wrt chars_wasted.
1990-12-16 Jim Blandy (jimb@pogo.ai.mit.edu)
* Globally renamed InsStr to insert_string.
1990-12-15 Richard Stallman (rms@mole.ai.mit.edu)
* s-usg5-3.h (USG_SHARED_LIBRARIES): Define it.
* m-intel386.h (C_SWITCH_MACHINE): New macro.
1990-12-15 Jim Blandy (jimb@pogo.ai.mit.edu)
* alloc.c (STRING_FULLSIZE): Use sizeof(struct Lisp_String)
instead of sizeof(int).
1990-12-14 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c (Fread_key_sequence): Clear this_command_key_count
here; who unfixed this?
1990-12-12 Richard Stallman (rms@mole.ai.mit.edu)
* abbrev.c (Fdefine_abbrevs): Don't crash when EXPANSION is nil.
1990-12-11 Richard Stallman (rms@mole.ai.mit.edu)
* eval.c (Fmacroexpand): Change handling of (foo . bar) in ENV.
1990-12-10 Richard Stallman (rms@mole.ai.mit.edu)
* m-pmax.h (SYSTEM_MALLOC): Define it.
* process.c (wait_reading_process_input): Ignore failure with EIO.
1990-12-09 Richard Stallman (rms@mole.ai.mit.edu)
* m-iris4d.h (LOAD_AVE_CVT): Divide by 1024.
(LIB_STANDARD): Use -lbsd first.
(LIBS_MACHINE): Don't use -lbsd here.
* s-irix3-3.h (ADDR_CORRECT): Macro deleted.
(LIBS_MACHINE): Macro deleted.
(LDAV_SYMBOL): Delete the `_' from start of symbol.
* process.c (create_process): Delete duplicate sigsetmask.
* m-ibmrt.h (RTPC_REGISTER_BUG, SHORT_CAST_BUG): Macros deleted.
(C_SWITCH_MACHINE): Use -D to define alloca.
(SIGN_EXTEND_CHAR): Use a cast.
1990-12-05 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c (Fsuspend_emacs): Protect STUFFSTRING.
(cmd_error): Protect TAIL while printing.
(input_poll_signal, start_polling): Use polling_period.
(syms_of_keyboard): Initialize it and make it a Lisp var.
* fns.c (Fyes_or_no_p): Protect PROMPT for entire loop.
* fileio.c (Frename_file): Protect args.
* fileio.c (Fadd_name_to_file): Protect the args.
(Fcopy_file, Fmake_symbolic_link): Likewise.
(Finsert_file_contents): Protect FILENAME.
1990-12-04 Jim Blandy (jimb@geech.ai.mit.edu)
* eval.c (Fbacktrace): gcpro TAIL.
* emacs.c (Fkill_emacs): gcpro ARG.
* editfns.c (Fformat): Remove remains of gcpro'd args.
* dispnew.c (syms_of_dispnew): Don't clobber Vwindow_system_version
if CANNOT_DUMP.
* dired.c (file_name_completion): Check that FILE is a string.
* buffer.c (Fbury_buffer): Don't init BUF1.
* doc.c (Fsubstitute_command_keys): Protect STR and don't keep a
pointer to the middle of it.
* m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Override for BSD.
* process.c (sigchld_handler): Clear synch_process_alive if the
dying process isn't in the table at all.
* callproc.c (call_process_cleanup): Clear synch_process_alive.
1990-12-03 Jim Blandy (jimb@geech.ai.mit.edu)
* callproc.c (Fcall_process): Change synch_process_pid to
synch_process_alive, as a general flag that we are waiting for
a synchronous process to die. This obviates the need to block
SIGCHLDs until we know the pid.
* sysdep.c (wait_for_termination): Wait for synch_process_alive to
be false.
* process.c (sigchld_handler): If pid not recognized, look for a
process recorded with pid -1.
(create_process): Set pid to -1 before the fork.
Store correct pid right after the fork.
Don't change sigchld handler on system V.
* process.c (Fstart_process): Set BUFFER before other string vars
so a gc in Fget_buffer_create won't clobber them.
1990-11-30 Richard Stallman (rms@mole.ai.mit.edu)
* keyboard.c (read_command_char): Save and restore getcjmp.
1990-11-29 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (status_convert): Use WRETCODE for exited process.
1990-11-26 Richard Stallman (rms@mole.ai.mit.edu)
* s-usg5-4.h (LIB_STANDARD): Add libucb.a.
(NEED_PTEM_H): Define this instead of NEED_SIOCTL.
* m-ibm370aix.h, m-ibmps2-aix.h, m-ibmrs6000.h (NEED_SIOCTL):
Undefine this.
(NEED_PTEM_H): Likewise.
* s-sunos4.h (O_NDELAY): Don't define this.
* print.c (Fwith_output_to_temp_buffer): Don't eval first arg twice.
1990-11-22 Richard Stallman (rms@mole.ai.mit.edu)
* m-hp9000s300.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Alternate defs for BSD.
1990-11-21 Jim Blandy (jimb@churchy.ai.mit.edu)
* dispnew.c (init_display): Check if we're using a window system
before trying to initialize the terminal. If someone has
indicated that they want to use a window system, we shouldn't
bother initializing the terminal. This is especially important
when the terminal is so dumb that emacs gives up and doesn't bother
using the window system.
1990-11-20 Jim Blandy (jimb@churchy.ai.mit.edu)
* print.c (Fexternal_debugging_output): Added new function which
writes a character to stderr, for use when debugging emacs with
gdb.
1990-11-14 Jim Blandy (jimb@churchy.ai.mit.edu)
* dispnew.c (window_change_signal): Used to assume that SIGWINCHes
always applied to the currently selected screen. Now it scans the
list of screens for a screen controlled by termcap, and changes that
screen's size.
1990-11-13 Richard Stallman (rms@mole.ai.mit.edu)
* fileio.c (err_str): New macro.
(Finsert_file_contents, Fwrite_region): Use it in error messages.
1990-11-12 Richard Stallman (rms@mole.ai.mit.edu)
* insdel.c (del_range): Supply missing arg to gap_left.
1990-11-11 Jim Blandy (jimb@churchy.ai.mit.edu)
* regex.c: Disabled definition of NULL from lisp.h
* crt0.c (_start): Added static declaration of start1.
* xfns.c: Added definition for Vbar_cursor.
(syms_of_xfns): Added DEFVAR_LISP clause for Vbar_cursor.
* xterm.c (XTread_socket): Passed &event.xkey instead of &event to
XLookupString, so things will typecheck nicely.
* Globally rewrote all references to Vmouse_buffer to use the
buffer viewed by Vmouse_window instead.
* alloc.c (xmalloc, xrealloc): Removed calls to
{un,}hold_window_change. The new SIGWINCH-handling code and
do_pending_window_change make them unnecessary.
1990-11-11 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (wait_reading_process_input): Make Available static;
don't clear when a nonzero bit is found.
* fns.c (Fnthcdr): Stop loop if reach end.
* dispnew.c: Include fcntl.h if HAVE_TERMIO.
1990-11-10 Jim Blandy (jimb@pogo.ai.mit.edu)
* alloc.c (make_uninit_string): No longer declared static, and
extern declaration added to lisp.h. It's used in dired.c.
1990-11-08 Jim Blandy (jimb@geech.ai.mit.edu)
* dispnew.c (do_pending_window_change): Changed incorrect call to
change_window_size_1 into a loop which scans list of screens and
resizes those that need resizing.
1990-11-06 Richard Stallman (rms@mole.ai.mit.edu)
* m-ibmrs6000.h (CANNOT_DUMP): Define it.
* process.c (create_process): Unblock SIGCHLD in the child.
* process.c (wait_reading_process_input): Don't read input
from more than one process between calls to `select'.
1990-11-02 Richard Stallman (rms@mole.ai.mit.edu)
* callint.c (syms_of_callint):
Initialize Vprefix_arg and Vcurrent_prefix_arg.
1990-11-01 Richard Stallman (rms@mole.ai.mit.edu)
* dired.c (Fdirectory_files): Avoid using MAXNAMLEN.
1990-10-31 Jim Blandy (jimb@churchy.ai.mit.edu)
* process.c (MAXDESC): Enclosed definition in `#ifndef ... #endif'
clause.
* bytecode.c: Included syntax.h to declare syntax_code_spec.
* syntax.h (syntax_spec_code): Added extern declaration for this.
* floatfns.c (float_error): Added static declaration for this at
the top of the file.
1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
* indent.c (position_indentation): Renamed stray `bf_cur' to
`current_buffer', and old `CharAt' usages to `FETCH_CHAR'.
* buffer.c (Fbuffer_disable_undo): The symbol object for this
subroutine was still named Sbuffer_flush_undo, and the symbol's
lisp name was similarly out of date. Renamed both, and added an
alias in lisp/subr.el .
* keyboard.c (Fset_input_mode): A `meta_flag' had escaped being
renamed to `meta_key'.
1990-10-29 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (Fprocess_send_region, Fprocess_send_string):
Break data into bunches less than 500 bytes.
Accept process output between bunches.
??? Must update manual.
1990-10-29 Jim Blandy (jimb@pogo.ai.mit.edu)
* window.c (Fset_window_start, window_scroll): Renamed stray
references to `redo_mode_line' to `update_mode_line'.
* xdisp.c (decode_mode_spec): Renamed stray references to `bf_cur'
and `bf_modified' to `current_buffer' and `MODIFF'.
1990-10-25 Jim Blandy (jimb@pogo.ai.mit.edu)
* environ.h: File created - contains declarations for users of the
environment variable list.
* callproc.c (environ): Removed extern declaration of environ, and
included environ.h.
1990-10-24 Jim Blandy (jimb@pogo.ai.mit.edu)
* callproc.c (init_callproc): Removed extern declaration of
environ - it's already taken care of at the top of the file.
* mocklisp.h: File created - externally declares certain
functions defined in mocklisp.c.
* lisp.h (Fread_buffer, Fread_key_sequence): Added extern
declarations for these functions.
* callint.c (ml_apply, Fread_buffer, Fread_key_sequence): Removed
extern declarations for these functions, included mocklisp.h.
Moved external declaration of index to top of file.
1990-10-24 Richard Stallman (rms@mole.ai.mit.edu)
* ymakefile (GNULIB_VAR): New make variable.
(LIBES): Use that, not GNULIB directly.
(GNULIB): Don't define if already defined.
1990-10-23 Jim Blandy (jimb@geech.ai.mit.edu)
* indent.h (last_known_column_point): Added extern declaration for
this variable.
* buffer.c (last_known_column_point): Removed extern declaration for
this variable, included indent.h.
(Vprin1_to_string_buffer): Removed extern declaration - it's
already in lisp.h.
* lisp.h (catchlist, backtrace_list, stack_bottom)
(current_global_map): Added extern declarations for these
variables.
* alloc.c: Removed external declarations for catchlist,
backtrace_list, and stack_bottom, since this file includes
lisp.h.
* callint.c (current_global_map): Removed extern declaration.
* search.h: New file - declares searchbuf.
* dired.c (Fdirectory_files): Removed extern declaration of
searchbuf, included search.h.
* Globally renamed `CHAR_AT_POSITION' to `FETCH_CHAR'.
1990-10-22 Richard Stallman (rms@mole.ai.mit.edu)
* keyboard.c (quit_char): New variable.
(init_keyboard): Initialize it.
(Fset_input_mode): New optional arg to set quit_char.
(command_loop_1, read_char, kbd_buffer_store_char):
(read_avail_input): Use quit_char, not C-g.
* sysdep.c (init_sys_modes): Use quit_char to set special chars.
* xterm.c (x_term_init): Pass new arg to Fset_input_mode.
1990-10-22 Jim Blandy (jimb@pogo.ai.mit.edu)
* xdisp.c: Added `extern' declaration for command_loop_level.
* term.c (term_init): Internal cleanups.
(write_glyphs): Renamed argument `start' to `string'.
1990-10-21 Richard Stallman (rms@mole.ai.mit.edu)
* xterm.c (FIONREAD): Undefine if BROKEN_FIONREAD.
(SIGIO): Undefine if no FIONREAD.
(ioctl.h, termio.h, strings.h, string.h): Include them before those.
* alloc.c (make_vector_from_string, Fvector_from_string):
Functions deleted.
* sysdep.c (select): Handle timeout == 0. Add var local_timeout.
* alloc.c (make_uninit_string, make_float): Use VALIDATE_LISP_STORAGE.
(Fcons, Fmake_vector, Fmake_symbol, Fmake_marker): Likewise.
(Fmake_vector_from_list): Likewise.
(VALIDATE_LISP_STORAGE): New macro.
1990-10-20 Richard Stallman (rms@mole.ai.mit.edu)
* dispnew.c (scrolling): Give up if some new lines not enabled.
(update_screen): Rework outq logic.
* xdisp.c (message, message1): Clear noninteractive_need_newline.
1990-10-19 Jim Blandy (jimb@pogo.ai.mit.edu)
* scroll.c (do_scrolling): Allocate queue using alloca instead
of variable-sized arrays.
1990-10-19 Richard Stallman (rms@mole.ai.mit.edu)
* buffer.c: Doc fix.
1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
* print.c (internal_with_output_to_temp_buffer): Install an
unwind_protect to make sure the current buffer is restored.
* minibuf.c (read_minibuf): Call recursive_edit_1 instead of
Frecursive_edit, to support the new command_loop_level
arrangement.
* malloc.c (calloc): Added this function, in case something linked
with emacs calls it.
* lread.c (openp): Since access returns 0 on success, change that
into a 1 before returning it.
* lisp.h: Deleted DEFSIMPLE and DEFPRED, since they're no
longer used.
1990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
* m-intel386.h (alloca): Define as builtin, if using GCC.
* m-att3b.h (NEED_PTEM_H): Define this for 3b2.
* s-aix3-1.h (SYSV_SYSTEM_DIR): Define it.
* print.c (print): Improve error message for bad data type.
1990-10-18 Jim Blandy (jimb@pogo.ai.mit.edu)
* keymap.c (Flookup_key): Rearranged to use an index into the key
sequence instead of a pointer and a level counter.
1990-10-18 Richard Stallman (rms@mole.ai.mit.edu)
* floatfns.c (sinh, cosh): On VMS, define to use exp.
(IN_FLOAT): Detect errors reported using errno.
(float_error): Define function unconditionally.
Reestablish handler when called, if not BSD.
1990-10-17 Richard Stallman (rms@mole.ai.mit.edu)
* m-delta.h (C_DEBUG_SWITCH): Don't define this.
1990-10-17 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c (command_loop): Made call to command_loop_2
conditional on minibuf_level too (it used to be only conditional
on command_loop_level), since this is what 18.56 and all the other
functions in Emacs 19 keyboard.c do.
1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c (read_char): Don't echo dash if there is already
something else being displayed in the echo area.
1990-10-16 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (status_convert): If killed by signal, use WTERMSIG.
* data.c (arith_error): Reestablish handler on VMS.
* keyboard.c (start_polling, stop_polling): New functions.
(input_poll_signal): New function, handles periodic alarms.
(read_command_char): Turn off polling temporarily.
* xdisp.c (redisplay): Likewise.
* process.c (wait_reading_process_input, create_process): Likewise.
1990-10-16 Jim Blandy (jimb@pogo.ai.mit.edu)
* indent.c (position_indentation): Instead of using CharAt, use a
pointer to scan the buffer - this is faster.
* emacs.c (Fdump_emacs): The conditional expression which passes
symname to unexec was missing a `: 0'.
* dispnew.c (rotate_vector): Was rotating backwards.
1990-10-15 Jim Blandy (jimb@pogo.ai.mit.edu)
* dired.c (file_name_completion): Use scmp to compare names.
1990-10-15 Richard Stallman (rms@mole.ai.mit.edu)
* process.c (create_process): Don't turn off handling of SIGCHLD.
Just set a flag if a signal comes in when not wanted.
(create_process_sigchld): New signal handler.
1990-10-14 Richard Stallman (rms@mole.ai.mit.edu)
* bytecode.c: De-implement Bmark, Bset_mark, Bscan_buffer.
Mark Bsymbol_function, Bfset, Bread_char as obsolete.
Implement codes Bmult, Bforward_char...Bwiden,
and Bstringeqlsign...Bintegerp.
1990-10-12 Jim Blandy (jimb@pogo.ai.mit.edu)
* buffer.c (list_buffers_1): Select the buffer given in
Vstandard_output using Fset_buffer instead of set_buffer_internal.
* buffer.c (set_buffer_internal): Deleted variable swb - it's
never used.
* buffer.c (count_modified_buffers): Function deleted - it's
not used anymore.
1990-10-11 Jim Blandy (jimb@pogo.ai.mit.edu)
* buffer.c (reset_buffer_local_variables, buffer_local_variables):
added support for default values for buffer local variables which
do not have a DEFVAR_PER_BUFFER, as described in the comments
above buffer_local_flags.
* buffer.c (Fget_buffer_create): Move initialization of
b->save_length and b->last_window_start to reset_buffer.
1990-10-11 Richard Stallman (rms@mole.ai.mit.edu)
* m-ibmps2-aix.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Define them.
(C_DEBUG_SWITCH): Delete -fstrength-reduce.
* unexmips.c (unexec): Add conditional for MIPS2.
1990-10-10 Richard Stallman (rms@mole.ai.mit.edu)
* m-iris4d.h (LIBS_MACHINE): Use -lsun, don't use -lPW.
* unexelf.c: New file.
* s-usg5-4.h: New file.
* unexec.c [USG_SHARED_LIBARARIES]: Numerous changes under this cond.
(copy_text_and_data): New second argument.
1990-10-10 Jim Blandy (jimb@pogo.ai.mit.edu)
* alloc.c (gc_sweep): Only unchain markers that are in a buffer.
1990-10-10 Mike Rowan (mtr@apple-gunkies)
* process.c: Merged in more changes from 18.56: update_status,
FD_SET changes (define all the FD_ macros). Other small changes.
1990-10-09 Jim Blandy (jimb@churchy.ai.mit.edu)
* xdist.c (decode_mode_spec): Reworked code to handle %* - it now
goes like `if return else if return else ... return' instead of
using a conditional operator.
* xdist.c (fmodetrunc): Function deleted - no longer used.
1990-10-09 Richard Stallman (rms@mole.ai.mit.edu)
* xdisp.c (decode_mode_spec): Handle dashes in wide windows.
1990-10-08 Richard Stallman (rms@mole.ai.mit.edu)
* sysdep.c (sys_open, sys_close, sys_read, sys_write):
Don't handle EAGAIN.
* process.c (wait_reading_process_input): Handle nread==-1
for O_NDELAY like O_NONBLOCK.
* s-vms.h (LINK_CTRL_SHARE): Turn on again.
tranle@intellicorp.com found it needed in VMS 5.3.
* emacs.c (main): Move VMS declaration of environ outside function.
* vmsfns.c (Fdefault_subproc_input_handler): InsCstr -> insert.
1990-10-07 Richard Stallman (rms@mole.ai.mit.edu)
* m-pmax.h (START_FILES): Handle crt0.o in different dir in Ultrix 4.0.
* s-sunos4.h (O_NDELAY): Define only if not defined.
1990-10-06 Jim Blandy (jimb@pogo.ai.mit.edu)
* sysdep.c (tabs_safe_p, get_screen_size): Renamed `sg' to `tty'.
* sysdep.c (init_baud_rate): Rearranged code for calculating
baud_rate.
1990-10-05 Jim Blandy (jimb@pogo.ai.mit.edu)
* search.c (Freplace_match): Used Finsert_buffer_substring instead
of place and deleted place.
* search.c (place): Function removed.
* process.c (count_active_processes): Deleted; not used.
* minibuf.c (read_minibuf): Renamed `prefix' argument to `initial'.
1990-10-01 Jim Blandy (jimb@pogo.ai.mit.edu)
* lread.c (Fload): Renamed `MISSING-OK' to `NOERROR'.
* keyboard.c (describe_map): Renamed `keys' to `string'.
* keyboard.c `Vauto_save_interval' unrenamed back to
`auto-save-interval'.
* keymap.c (Fdefine_key, Flookup_key): Renamed arguments called
`keys' to `key'.
1990-10-01 Richard Stallman (rms@mole.ai.mit.edu)
* sysdep.c (sys_open, sys_close, sys_read, sys_write):
Handle EAGAIN like EINTR.
1990-09-30 Richard Stallman (rms@mole.ai.mit.edu)
* insdel.c (gap_left, gap_right): Use bcopy if requested.
New config parameters GAP_USE_BCOPY, BCOPY_SAFE_UPWARD,
and BCOPY_SAFE_DOWNWARD.
* eval.c (find_handler_clause): Bind debug-on-error to nil.
(Qdebug_on_error): New variable.
(syms_of_eval): Initialize that.
* sysdep.c: Include various headers for ptys, for hpux, aix, and sysv.
* dispnew.c (preserve_other_columns): Fix args to second bcopy.
1990-09-30 Jim Blandy (jimb@pogo.ai.mit.edu)
* keyboard.c: `auto_save_interval' renamed to
`Vauto_save_interval', since it *is* a lisp-accessible variable.
* fileio.c (Fdo_auto_save): Call record_auto_save so that
read_char knows when we've auto-saved.
* keyboard.c (record_auto_save): Added function to support the new
auto-save conditions.
* keyboard.c (read_char): Use num_input_chars and last_auto_save
instead of keystrokes to decide when to autosave.
* keyboard.c (keystrokes): Variable deleted.
1990-09-30 Mike Rowan (mtr@spike.ai.mit.edu)
* keyboard.c, alloc.c: Added malloc warning code from
18.56.
* dispnew.c, xdisp.c: (un)hold_window_change no longer exists;
added do_pending_window_change from 18.56.
* process.c, process.h: Add the raw_status_low and raw_status_high
code from 18.56.
1990-09-29 Richard Stallman (rms@mole.ai.mit.edu)
* alloca.s: Handle ns32000 like ns16000.
* m-ns32000.h: New file.
* lread.c (Fload): Warn if elc file older than source file.
* ymakefile (LIB_X11_LIB): New parameter, default -lX11.
(LIBX): Use that.
* Makefile (xmakefile): Delete junk.c at the beginning.
* hftctl.c: Include termios.h before termio.h.
Define TCGETS and TCSETS if nec.
Give some forward declarations for the static functions.
Reformat in usual GNU style.
* m-orion105.h (LOAD_AVE_TYPE, FSCALE): Changed from double and 1.0.
* m-delta.h: New file.
1990-09-28 Richard Stallman (rms@mole.ai.mit.edu)
* fns.c (Frequire): Undo certain things on failure, like autoload.
1990-09-28 Jim Blandy (jimb@pogo.ai.mit.edu)
* fileio.c (Fwrite_region): Renamed variable `fd' to `desc' and
changed argument to open from `1' to `O_WRONLY'.
* fileio.c (O_WRONLY): Added clause to define this if not already
defined.
* emacs.c (Fdump_emacs): Removed a_name variable.
* emacs.c (Fkill_emacs): Removed code which asked about modified
buffers and running subprocesses.
* editfns.c (Fcurrent_time_string): Renamed variable `now' to
`current_time'.
* dispnew.c (update_line): Renamed variables `m1' and `m2' to
`begmatch' and `endmatch'.
* dispnew.c (update_screen): Use preempt_count as a limit instead
of a counter; count with i instead.
* dispnew.c (visible_bell, inverse_video, baud_rate)
(Vwindow_system): Rearranged comments.
1990-09-27 Richard Stallman (rms@mole.ai.mit.edu)
* emacs.c (main) : Set the DISPLAY environment value when both of
MAINTAIN_ENVIRONMENT and HAVE_X_WINDOW are defined.
* m-convex.h (LIB_STANDARD, LIBS_MACHINE): Remove these, they
cause an unnecessary C1/C2 dependency.
* m-convex.h (LD_SWITCH_MACHINE): Use -e__start to specify
where crt0.c begins.
* m-convex.h (HAVE_SETSID): Define; must call setsid
when creating an inferior with a different controlling tty.
* process.c (create_process): Rearrange so that HAVE_SETSID
will be seen when not under USG.
* m-convex.h (S_IFMT etc): Define in case of posix compilation.
* m-convex.h (FIRST_PTY_LETTER): Do it at runtime.
* unexconvex.c (first_pty_letter): Routine to locate lowest pty.
* unexconvex.c: Rewrite so it can cope with thread-local sections.
* sysdep.c (select): Use process_tick and update_tick,
not child_changed.
1990-09-23 Richard Stallman (rms@mole.ai.mit.edu)
* keyboard.c (Fsuspend_emacs): Check screen size after resume.
1990-09-19 Richard Stallman (rms@mole.ai.mit.edu)
* editfns.c: Doc fix.
1990-09-18 Richard Stallman (rms@mole.ai.mit.edu)
* window.c (Fsplit_window): Minor cleanup.
1990-09-17 Richard Stallman (rms@mole.ai.mit.edu)
* emacs.c (main) [USG_SHARED_LIBRARIES]: Call brk.
1990-09-13 Richard Stallman (rms@mole.ai.mit.edu)
* floatfns.c (float_error_arg): New variable.
(IN_FLOAT): New arg; sets float_error_arg. All uses changed.
(float_error): Use that value when signaling error.
1990-09-11 Richard Stallman (rms@mole.ai.mit.edu)
* unexaix.c, m-ibmr2.h, s-aix3-1.h: New files.
* ymakefile (allocaobj): New variable. Used in otherobjs.
Eliminates assignment of mallocobj using itself.
(mallocobj): Handle SYSTEM_MALLOC without HAVE_ALLOCA.
(xemacs): Use -nl option if HAVE_SHM.
* sysdep.c: Change IBMRTAIX conditionals to AIX.
Move hft.h to the top.
[IBMR2AIX]: Use termios.h and change macros accordingly.
(child_setup_tty): Change IBMRTAIX to AIX.
(setpgrp_of_tty): Handle IBMR2AIX.
(init_sys_modes): Handle IBMR2AIX. Output special things for AIX.
(reset_sys_modes): Output special things for AIX.
(hft_init, hft_reset): Conditionals for IBMR2AIX.
* process.c: Change IBMRTAIX to AIX controlling time.h.
[AIX]: Include sys/pty.h and unistd.h.
(wait_reading_process_input): If AIX, handle EBADF differently.
(create_process): Handle HAVE_SETSID. Change conditional to AIX.
* lisp.h (XPNTR): New definition if HAVE_SHM.
(NULL): Undef before defining.
* emacs.c (main): If HAVE_SHM, call map_in_data.
Use AIX, not IBMRTAIX, for signal conditional.
(Fdump_emacs_data): New function if HAVE_SHM.
(Fdump_emacs): Don't define if HAVE_SHM.
* alloc.c (pure, PUREBEG): If HAVE_SHM, define place for a segment.
1990-09-03 Mike Rowan (mtr@apple-gunkies)
* sysdep.c: Added setup_pty from 18.56
* process.c: Merged in 18.55->6 changes. Same for process.h
globally replaced:
redisplay_preserving_echo_area -> redisplay_preserve_echo_area
SetBfp -> set_buffer_internal
buffer_flush_undo -> buffer_disable_undo
redo_mode_line -> update_mode_line (window.h)
1990-08-31 Richard Stallman (rms@mole.ai.mit.edu)
* data.c (Fmake_local_variable): If var is local when set, make it
local now in this buffer.
* data.c (Fstring_to_int): Finish eliminating second arg.
* data.c (Faset): Require integer as third arg for string.
1990-08-28 Richard Stallman (rms@mole.ai.mit.edu)
* search.c: Doc fix.
* screen.h (SCREEN_SCROLL_BOTTOM_VPOS): New macro.
* xdisp.c (screen_bottom_vpos): Variable used if just one screen.
(redisplay, try_window_id): Set that field in screen.
* dispnew.c (scrolling, update_screen): New arg scroll_bottom_vpos.
* dispnew.c (scroll_screen_lines): Mark newly empty lines as empty.
(scrolling): Give up if any line in current_screen not enabled.
1990-08-27 Roland McGrath (roland@churchy.ai.mit.edu)
* dired.c (Ffile_attributes): Return the device number too (elt 11
of the returned list).
1990-08-27 Richard Stallman (rms@mole.ai.mit.edu)
* sysdep.c (wait_for_kbd_input): Frob waiting_for_input here.
* keyboard.c (kbd_buffer_read_command_char): Not here.
* sysdep.c (wait_for_kbd_input): Clear process_ef before snarfing
process input.
* fileio.c (Fdirectory_file_name): On VMS, leave space for log name.
* sysdep.c (init_sys_modes): Clear process_ef only the first time.
* vmsfns.c (process_exit): Logic of deletion was wrong.
(Fspawn_subprocess): Correctly reuse existing struct process_list.
1990-08-22 Richard Stallman (rms@mole.ai.mit.edu)
* m-plexus.h (LD_SWITCH_MACHINE): New macro.
1990-08-22 Joseph Arceneaux (jla@geech)
* xterm.c (XTread_socket): Cleaned up #ifdefs prior to event
reading loop. Also handle FIOSNBIO.
1990-08-19 Joseph Arceneaux (jla@geech)
* xterm.c (dumplyphs): Last vestige of MScreenWidth removed.
* config.h: MScreenWidth, MScreenHeight definitions removed.
1990-08-18 Joseph Arceneaux (jla@geech)
* scroll.c (do_scrolling): Pass the correct sizes to bcopy.
* dispnew.c (make_screen_glyphs): Likewise.
1990-08-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispnew.c (scroll_screen_lines, free_screen_glyphs): Only deal
with the X components of screen_glyphs if SCREEN_IS_X.
free_screen_glyphs now takes screen argument.
* window.c (Fnext_window, Fprevious_window): Fixed typo. New
behaviour: mini non-nil implies all_screens if global mini screen
exists, implies current screen only if not.
(Fdisplay_buffer): Simplification of multi-screen code.
1990-08-15 Richard Stallman (rms@mole.ai.mit.edu)
* buffer.c: Doc fix.
1990-08-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispnew.c (update_line): Simplification of pixel size code, only
done if screen is X.
(update_screen): Only set pixel stuff if screen is X.
1990-08-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-targon31.h (NO_REMAP): Definition removed.
(SEGMENT_MASK): New macro.
1990-08-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* lread.c (eval-region): Don't set opoint to point, etc.
Fnarrow_to_region from BEGV, not b.
(eval-buffer): New subr, generalization of eval-current-buffer.
(eval-current-buffer): Moved to elisp, in simple.el.
* xfns.c (x_y_pos): Nuked. Replaced by pixel_to_char_translation
and notice_mouse_movment (dispnew.c, xterm.c).
(Fx_point_coordinates): Also nuked.
(mouse_buffer_offset): New lisp variable.
* xterm.c (notice_mouse_movement): Use it in call to
pixel_to_char_translation.
* screen.h: For non-multiscreen, XSCREEN returns selected_screen,
as does WINDOW_SCREEN.
* xdisp.c (display_mode_line): Set desired_glyphs->bufp to 0 for
mode line.
All occurences of struct screen * replaced with SCREEN_PTR.
1990-08-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xmenu.c (list_of_items, list_of_panes): Fixed wrong params to
wrong_type_argument.
1990-08-12 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispnew.c (pixel_to_char_translation): New algorithm for
finding y.
* xfns.c (install_*_scrollbar): No more height, width parameters.
Don't block input here.
(x_set_*_scrollbar): Block input here.
* xterm.c (notice_mouse_motion): Check if the mouse is still in
the window.
(encode_mouse_button): Don't bother about motion types.
1990-08-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-convex.h (C_SWITCH_MACHINE, LIB_STANDARD, LIBS_MACHINE):
(LD_SWITCH_MACHINE): Add definitions for Convex V 4.0.
1990-08-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_grab_pointer): Call XCreateFontCursor on shape,
setting new variable grabbed_cursor. Return Qt if successful,
Qnil otherwise.
(Fx_ungrab_pointer): Free grabbed_cursor if non zero. Return Qnil.
1990-08-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (x_figure_window_size): Don't set pixel sizes until
height and width are determined.
1990-08-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_grab_pointer): New parameter to explicitly ignore
keyboard events.
* xterm.c (notice_mouse_movement): Use pixel_to_char_translation
to get char position and buffer offset.
1990-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c [NEED_PTEM_H]: New flag macro says include ptem.h.
1990-08-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispextern.h: Element bufp of screen_glyphs no longer dependent
on X windows.
* xdisp.c (display_text_line): Likewise.
* xfns.c (Fx_grab_pointer, Fx_ungrab_pointer): New subrs.
(x_figure_window_size): Set pixel_width and pixel_height of
screen, using font height and width.
* xfns.c: Vmouse_grabbed renamed Vmouse_depressed.
* xterm.c: Likewise.
(construct_mouse_event): Don't check mouse coordinates; this is
done by the notice_mouse_motion. Don't grab the mouse here.
* dispnew.c (update_line): Set the pix_width and pix_height of the
line. This fashion of doing so is temporary.
1990-08-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispextern.h: screen_glyphs struct elements bottom_right_x,
bottom_right_y changed to pix_width and pix_height.
* scroll.c: Likewise.
* dispnew.c: Likewise.
(update_screen): Set top_left_x, top_left_y for X windows.
* xterm.h: Macros PIXEL_{WIDTH,HEIGHT} now use the display
structure elements.
1990-08-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (x_window_to_scrollbar): Return Lisp symbol in parameter
PART_PTR, rather than string.
Declare these symbols.
New variable Vscreen_part, indicates which part of the screen the
mouse is in.
* xterm.c (notice_mouse_motion): Do XQueryPointer first thing.
Set Vmouse_event to Qnil.
(construct_mouse_event): Don't check if mouse has moved or not.
When returning cons, part is now already lisp symbol.
(XTread_socket): Set Vmouse_window = Vscreen_part = Qnil when
leaving screen, as well as setting x_mouse_x = x_mouse_y = -1.
* keyboard.c: Vmouse_window, Vmouse_event declared extern and no
longer DEFVARed: they are already delclared in window.c.
* screen.c (window_from_coordinates): Use Fnext_window, even if
MULTI_SCREEN, to obtain the next window. This is an test.
Also, new paramater part returns text or modeline symbol.
(Flocate_window_from_coordinates): Pass &part to
window_from_coordinates.
(coordinates_in_window): Don't say modeline if window_height is 1,
as this is likely to be the minibuffer.
1990-08-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (Fcoordinates_in_window_p): Doc fix. Simplified.
(window_from_coordinates): New function.
(Flocate_window_from_coordinates): Use it.
* keyboard.c (classify_object): New function for dealing with the
input object. New symbol, mouse-motion, called here.
Call to mouse-motion-handler now takes no parameters.
(read_key_sequence): Use the new function. Don't set keybuf[0]
to 0.
* xterm.c (init_input_symbols): Create all the Lisp symbols
returned in the input stream.
(func_key_syms): New array to hold all symbols for function keys.
(x_func_key_to_sym): Use this array.
(notice_mouse_movement): New function for dealing with motion
events.
(XTread_socket): Use it here.
1990-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* callproc.c (child_setup): Report error in chdir.
1990-08-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* lisp.h: New macro XFLOATINT. extract_float declared.
* floatfns.c (Ffloor): Call floor, not ceil.
(extract_float): No longer static.
* bytecode.c (Fbyte_code): Correctly handle floats in case Beqlsign.
1990-07-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keyboard.c (read_key_sequence): When downcasing letters,
don't change the value returned in keybuf.
(This is an experiment; it might be unpleasant in
things such as C-h c, but it is an improvement
for M-x global-set-key.)
1990-07-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* eval.c: Doc fix.
1990-07-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s-iris*.h (SYSTEM_TYPE): Change silicon-graphics-unix to irix.
1990-07-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* indent.c (Fmove_to_column): End-test was off by 1.
* abbrev.c (Fexpand_abbrev): Return nil if alloca arg would be neg.
1990-07-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xdisp.c (display_text_line): String to rope copy for inserting
arrow text.
1990-07-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xdisp.c (display_mode_line): Check that the name has actually
changed before calling x_set_name.
* ralloc.c (check_memory_limits): New function.
Also check if new memory will be larger than elisp pointer.
(r_alloc_sbrk): Call this function.
(relocate_blocs_upward, relocate_blocs_downward): Eliminated.
(r_alloc_sbrk): Use relocate_some_blocs instead of the eliminated
functions.
* vm-limit.c (morecore_with_warning): Check if new memory larger
than elisp pointer size.
1990-07-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keyboard.c (save_getcjmp, restore_getcjmp): New functions.
(read_char): Use them around Fdo_auto_save.
* process.c (read_process_output, exec_sentinel): Use them.
* fileio.c (Fdo_auto_save): Run auto-save-hook.
1990-07-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispnew.c (safe_bcopy): No longer static.
* ralloc.c (relocate_blocs_upward, relocate_blocs_downward):
Use safe_bcopy.
* mem_limits.c: typedef SIZE.
1990-07-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* fileio.c (Finsert_file_contents): Initialize how_much when exiting
main loop.
* m/m-mips.h: Added stuff from the 18.56 version.
1990-07-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* indent.c (Fmove_to_column): Set end to ZV.
1990-07-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c (init_editfns): Let envvar NAME override full name.
* buffer.c (list_buffers_1): Avoid error with list-buffers-directory.
1990-07-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* buffer.c (list_buffers_1): Don't check list-buffers-directory.
1990-07-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xdisp.c (display_text_line): Don't print ellipsis if they're
off the left edge.
1990-07-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s-386-ix.h: Define BROKEN_TIOCGETC.
1990-07-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-pmax.h: Undef LD_SWITCH_MACHINE, change DATA_START
and DATA_SEG_BITS.
1990-07-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s-iris3-6.h (HAVE_GETWD): Define this.
(KERNEL_FILE): Change to /unix.
(sigsetmask, sigblock, NEED_ERRNO, C_SWITCH_MACHINE): Turn off.
(SIGIO): Don't undefine it.
(LIBS_MACHINE): Remove -lbsd.
* minibuf.c (Fall_completions, do_completion): Treat nil as alist.
(Ftry_completion): Likewise.
1990-07-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c: Undefine TIOCGETC if BROKEN_TIOCGETC defined.
* s-usg5-3.h, s-xenix.h: Define BROKEN_TIOCGETC.
1990-06-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (Fopen_network_connection): Minor cleanup.
1990-06-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-sun3.h: Add comments for dealing with 68881.
1990-06-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-ibmps2-aix.h [__GNUC__]: Define LIB_STANDARD and C_DEBUG_SWITCH,
and don't define LIBS_MACHINE.
(HAVE_WAIT_HEADER): Define this.
Also reordered definitions so recently added ones are together.
1990-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* insdel.c (insert): Error if buffer would get too long.
* fileio.c (Finsert_file_contents): Likewise.
1990-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* syntax.c (scan_sexps_forward): Allow Squote inside symbols.
1990-06-16 Joseph Arceneaux (jla@geech)
* window.c (Fscroll_other_window): Don't unbind_to. Keep track of
current_buffer and point explicitly.
1990-06-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* term.c (cursor_to): Only add chars_wasted if not calling hook.
(clear_end_of_line_raw): Likewise.
(clear_end_of_line): Check that screen is termcap before using
chars_wasted.
(ins_del_lines): Eliminated local copybuf[].
(calculate_ins_del_char_costs): Now has screen parameter.
DCICcost: Change to char_ins_del_costs and defined with
SCREEN_WIDTH (screen).
DC_ICcost: Changed to char_ins_del_vector.
* term.h: DCICcost no longer defined here. DC_ICcost no longer
declared here.
* dispnew.c: char_ins_del_cost defined here. char_ins_del_vector
declared extern here.
1990-06-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
Globally replaced screen_width with macro
SCREEN_WIDTH (selected_screen).
* dispnew.c (init_display): Don't set SCREEN_WIDTH, etc. from
screen_width.
(change_window_size): No longer check output_type and set
ScreenRows.
1990-06-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* indent.c (Findent_to): Don't fail to return value.
(Fmove_to_column, Fcurrent_column): Doc fixes.
1990-06-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (echo_prompt): Now uses glyphs.
echobuf, echobuf_ptr: These variables now glyphs.
1990-06-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* fileio.c (Fdo_auto_save): Use glyphs_to_str_copy to set
omessage.
* alloc.c (Fgarbage_collect): Ditto.
* xdisp.c (message): message_buf set here, realloced if smaller
than screen width.
message_buf now type GLYF *. New variable message_buf_size holds
its size.
Use temp_buf for call to doprnt, then use str_to_glyph_cpy to set
echo_area_glyphs.
* print.c (printchar, strout): Use message_buf_size. Convert to
glyfs before assigning chars.
(str_to_glyph_cpy, str_to_glyph_ncpy)
(glyph_to_str_cpy, glyph_to_str_ncpy): New functions.
1990-06-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (command_loop_1): Clear this_command_key_count here.
(Fread_key_sequence): And here.
(read_key_sequence): Not here.
* dispnew.c (update_screen):
Add missing else in handling cursor_in_echo_area.
* xdisp.c (redisplay_window): Eliminate lpoint. Alter opoint
if point should be changed permanently in the selected window.
* window.c (unshow_buffer): Don't set pt in selected window's buffer.
* xdisp.c (decode_mode_spec): Don't truncate buffer or file name.
* editfns.c (Finsert_buffer_substring): Don't fail to set beg, end.
* keyboard.c (command_loop_level): New variable.
Used in place of RecurseDepth, but different meaning.
(recursive_edit_1): New function.
(Frecursive_edit): Call it.
* minibuf.c (read_minibuf): Call recursive_edit_1.
* xdisp.c (RecurseDepth): Variable deleted.
display_minibuffer_message renamed echo_area_display.
* print.c: Include dispextern.h.
(printchar, strout): Use message_buf.
* scroll.c (CalcIDCosts): Dynamically allocate ILcost, etc.
(ILcost, DLcost, ILncost, DLncost): Now pointers.
(do_scrolling): Use alloca for queue.
* term.c (term_init): selected_screen as arg to calculate_costs.
(calculate_costs):
Dynamically allocate chars_wasted, copybuf, DC_ICcost.
Set RPov based on actual width.
(chars_wasted, copybuf, DC_ICcost): Now pointers.
* xterm.c (x_term_init): Don't set dont_calculate_costs anymore.
1990-06-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* term.c (calculate_ins_del_char_costs, string_cost_one_line):
Made static.
* dispnew.c: Declare scrolling_1;
* scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): Renamed
calculate_ins_del_char_costs, ins_del_costs, and line_ins_del.
CalcIDCosts1 and CalcLID also renamed.
(calculate_scrolling): Now void.
* Global renaming: bf_modified -> MODIFF. CharAt -> CHAR_AT_POSITION.
BufferSafe{Floor,Ceiling} -> BUFFER_{FLOOR,CEILING}_OF.
SetPoint -> SET_PT.
* xterm.c (x_term_init): Don't CalcIDCosts here anymore.
1990-06-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* print.c: Include dispextern.h.
(printchar, strout): Use message_buf.
* sysdep.c (get_screen_size): Don't use MscreenWidth, MscreenLenght.
* term.c: Likewise.
* scroll.c (CalcIDCosts, CalcIDCosts1, CalcLID): These now take a
screen argument.
(CalcIDCosts): Dynamically allocate ILcost, etc.
(ILcost, DLcost, ILncost, DLncost): Now pointers.
(do_scrolling): Use alloca for queue.
* dispnew.c (remake_screen_structures): Allocate message_buf.
Don't use MscreenWidth, MscreenLenght.
* xdisp.c: bf_cur replaced with current_buffer.
Calls to SetBfx deleted.
message_buf is now char *.
(message): Use SCREEN_WIDTH macro as limit for doprnt.
* indent.c (current_column): Detect special case when point == BEGV.
* buffer.h (struct buffer_text): Component modified renamed to
modiff. All refs changed to macros below.
(MODIFF, BUF_MODIFF): New macros.
Macro SetBfx removed.
Macro SetPoint renamed SET_PT.
* fileio.c (Fexpand_file_name): Simplified.
1990-06-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dired.c: Doc fix.
1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* search.c (Fsearch_forward): Docstring fix.
1990-05-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dired.c: Comment added.
1990-05-31 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* process.c (Fprocess_connection): Return the type of a process
object.
(syms_of_process): Initialize pty_process and stream_process.
Declare Fprocess_type.
* process.h New element type to struct Lisp_Process.
* syntax.c (scan_sexps_forward): Initialize curlevel->last to -1.
1990-05-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* fileio.c (Finsert_file_contents): Use new variable how_much to
hold read result.
1990-05-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* lread.c (read_char_exclusive): New subr.
1990-05-24 David Lawrence (tale@pogo.ai.mit.edu)
* fileio.c (file_executable_p): New function.
1990-05-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* insdel.c (make_gap): Only set BEG_ADDR if BUFFER_REALLOC was
successful.
* editfns.c (syms_of_editfns): DEFVAR the new variables.
* eval.c (Finteractive_p): Don't skip the first frame if the
function was compiled.
* print.c (print): Use ... only for conses, and instead of normal
print.
1990-05-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* Renamed meta_flag meta_key.
* termopts.h: Comment changes.
1990-05-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* buffer.h: upcase_table and downcase_table are now Lisp_Objects.
* alloc.c (mark_object, gc_sweep): Related changes.
* casetab.c: Ditto.
1990-05-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* minibuf.c (Fall_completions): Protect STRING from gc.
Copy ALIST to TAIL to protect it.
* paths.h-dist: Doc fix.
1990-05-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* search.c (Flooking_at, search_buffer): Use new accessors.
* indent.c (Fcurrent_column): Likewise.
* minibuf.c (read_minibuf): Likewise.
* regex.c (re_match_2): Use PTR_CHAR_POS.
* editfns.c (Fbuffer_size, Fnarrow_to_region, Fbuffer_substring):
(Fbuffer_string, Finsert_buffer_substring): Likewise.
(save_restriction_restore): Likewise.
* dispnew.c (direct_output_for_insert): Likewise.
* fileio.c (Fwrite_region, Finsert_file_contents): Likewise.
(Fdo_auto_save): Likewise.
* insdel.c (move_gap, gap_left, gap_right, make_gap): Likewise.
(InsCStr, del_range, modify_region): Likewise.
* process.c (Fprocess_send_region): Likewise.
* xdisp.c (try_window, try_window_id, display_text_line): Likewise.
(redisplay): Likewise.
* buffer.c (list_buffers_1): Likewise.
* marker.c (marker_position, Fset_marker, set_marker_restricted):
(Fmarker_position): Likewise.
* window.c (unshow_buffer, Fset_window_configuration): Likewise.
(Fset_window_buffer): Likewise.
* editfns.c (save_restriction_restore): Use a macro to alter point.
* lread.c (readchar): Use new accessors, and avoid knowing about
the text field of a buffer.
* window.c (Fpos_visible_in_window_p): Likewise.
* buffer.h (struct buffer): Make the syntax table a Lisp object.
* alloc.c (mark_buffer): No need to treat it specially.
* syntax.c (Fsyntax_table, Fset_syntax_table, Fdescribe_syntax):
(Fmodify_syntax_entry): Adjust for this change.
* buffer.c (reset_buffer_local_variables): Need not be special.
(init_buffer_once): Make this slot a defaulted local variable.
* syntax.h: Adjust macros for this change.
(Vstandard_syntax_table): Define as macro, in buffer_defaults.
* syntax.c (syms_of_syntax): Don't staticpro it here.
(Fset_syntax_table): Set the flag in local_var_flags.
* buffer.h (struct text): Represent the buffer dimensions
with new slots, memory, begv, pt, gpt, zv, z and gap_size.
(BEGV, etc.): Use new slots.
(CharAt): Likewise.
(BufferSafeCeiling, BufferSafeFloor): Use new slots; fix old bugs.
(bf_p1, bf_s1, etc.): Old macros deleted.
* buffer.c (Fget_buffer_create): Set up memory and new slots.
(Fkill_buffer): Likewise.
* insdel.c (move_gap, gap_left, gap_right, make_gap): Update new slots.
(del_range, InsCStr): Likewise.
* fileio.c (Finsert_file_contents): Likewise.
* window.c (temp_output_buffer_show): Likewise.
* xdisp.c (decode_mode_spec, try_window_id): Likewise.
* insdel.c (make_gap): Complete rewrite. Arg is amount of new gap
to create. All calls changed.
(gap_left): New argument NEWGAP.
* buffer.c (Fset_buffer): Check for deleted buffer.
(SetBfp): Don't check.
(SetBfp, Frename_buffer): Local cleanups.
* print.c (PRINTPREPARE): Use Fset_buffer.
* buffer.c (SetBfp): Don't bother with selected window or its point.
* window.c (Fselect_window): Always set pointm of old window.
* editfns.c: Eliminate all use of DEFSIMPLE and DEFPRED.
* indent.c, keyboard.c: Ditto.
* search.c (skip_chars): Eliminate PointLeft and PointRight.
* cmds.c (SelfInsert): Likewise.
1990-05-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xdisp.c (try_window): No return value.
Fix calls to try_window.
* Global variable RedoModes is now redraw_mode_line.
1990-05-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keymap.c (Fdefine_key, Flookup_key): Local cleanups.
* sysdep.c (sys_suspend): Use save_signal_handlers and
restore_signal_handlers to save and restore signal state.
* indent.c (Findent_to): Merge guts of indentation into here.
(position_indentation): Scan with a pointer, for speed.
* casefiddle.c (operate_on_word): Just return the other end.
(Fupcase_word, Fdowncase_word, Fcapitalize_word):
Pass that value to casify_region.
* editfns.c (init_editfns): Store system and user names as
strings to avoid arbitrary limits.
* keymap.c (describe_vector, describe_alist): Make elt_prefix
and elt_describer responsible for indentation and newlines.
Local cleanups.
(describe_command): Do indentation and newline.
(describe_map): Add space to end of prefix.
* syntax.c (describe_syntax): Do indentation and newline.
1990-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (create_process) [not USG]: Put subproc in pgrp 0.
1990-05-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* dispextern.h: New struct screen_glyfs replaces struct
display_line.
* screen.c: New screen elements current_glyfs, desired_glyfs, and
temp_glyfs.
* dispnew.c (make_screen_glyfs, free_screen_glyfs):
(remake_screen_glyfs): New functions.
(make_display_lines, new_display_line, return_display_line):
Functions deleted.
(change_screen_size, init_display): Use the new functions.
(cancel_line, clear_screen_records, get_display_line):
Rewritten for new data structures. get_display_line no longer
returns anything.
(preserve_other_columns, preserve_my_columns): Likewise.
(cancel_my_columns, direct_output*): Likewise.
(update_screen, update_line, quit_error_check, scrolling): Likewise.
(scroll_screen_lines): Likewise.
(rotate_vector, safe_bcopy): New subroutines.
(line_hash_code, line_draw_cost): Cleaned up.
Args are different, and hash computation too.
(update_screen): Rearrange buffer-emptying code.
* xdisp.c (display_minibuf_message, redisplay): Rewritten for new
structures.
(display_text_line, display_mode_line): Likewise.
(display_mode_element, display_string): Likewise.
(decode_mode_spec): Local cleanups.
* scroll.c (do_scrolling): Rewritten for new data structures.
* xterm.c (XTflash): Use this new structure.
* editfns.c (in_accessible_range): New function.
(Fgoto_char, save_restriction_restore): Use it.
(save_excursion_save, Fcurrent_time_string): Local cleanups.
* process.c (Fprocess_kill_without_query): New arg; new return value.
(count_active_processes): Function deleted.
* fileio.c (Finsert_file, Fwrite_region): Local cleanups.
* fns.c (Fsubstring): Local cleanup.
* keyboard.c (echo_prompt, echo_char, echo_dash, echo): New functions.
(cancel_echoing): Likewise.
(immediate_echo, echoptr): New variables.
(command_loop_1, request_echo, get_char, read_key_sequence):
(set_waiting_for_input, interrupt_signal): Related changes.
(get_char): No more declaration of request_echo. Local cleanups.
(this_command_key...): New variables.
(Fexecute_extended_command, Fthis_command_keys): Related changes.
(init_keyboard, get_char): Likewise.
* macros.c (Fstart_kbd_macro): Local cleanup.
* minibuf.c (read_minibuf): No more delcaration of
Frestore_screen_configuration.
* search.c (Fregexp_quote): Simplified.
1990-05-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* process.c (Fopen_network_stream): Also handle numeric inet addresses.
1990-05-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* alloca.c: #ifdef __STDC__ rather than X3J11/
1990-05-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (Fmake_symbolic_link): Delete old file if permitted.
1990-05-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* data.c (Fstring_to_int): Delete disabled feature
of accepting `yes' and `no'.
* xdisp.c (redisplay, redisplay_preserving_echo_area):
Two functions replace DoDsp. All callers changed.
(redisplay, redisplay_window): Eliminate `inhibit_hairy_id'.
(redisplay_window): No return value. Local cleanups.
* alloc.c (Fmake_marker): Delete `modified' field.
* insdel.c (adjust_markers): Likewise.
* abbrev.c (Fdefine_mode_abbrev): Clean up error message.
1990-05-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_draw_rectangle, Fx_erase_rectangle): Simplified.
* xterm.c (x_display_cursor): Don't check s->phys_x when drawing
cursor.
* undo.c: New version.
* undo.h: No longer exists.
* alloc.c (Fgarbage_collect): Call truncate_undo_list.
(syms_of_alloc): Define vars undo-threshold and undo-high-threshold.
* buffer.c (Fget_buffer_create): Set undo_list to t or nil.
(Fbuffer_disable_undo, Fbuffer_enable_undo): Likewise.
(Fkill_buffer): Likewise.
(init_buffer_once): Set up local variable buffer-undo-list.
(syms_of_buffer): Likewise.
* buffer.h: New element undo_list in struct buffer.
* fileio.c (Finsert_file_contents): Store nil in undo_list.
* buffer.c: Variable bf_text deleted.
(Fkill_buffer, SetBfp): Delete code that worked with it.
(SetBfx): Now a macro in buffer.h
* editfns.c (Fwiden, Fnarrow_to_region): Related changes.
(save_restriction_save, save_restriction_restore): Likewise.
(Finsert_buffer_substring): Likewise.
* fileio.c (Fdo_auto_save): Likewise.
* insdel.c (make_gap): Likewise.
* lread.c (readchar): Likewise.
* marker.c (Fmarker_position, marker_position): Likewise.
(Fset_marker): Likewise.
* xdisp.c (DoDsp): Likewise.
1990-04-30 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* buffer.h: New macro R_ALLOC_SET_BUFFER for declaring all the
text pointers of a buffer to the relocating allocator.
* buffer.c (Fbury_buffer, SetBfx, SetBfp): Use the macro.
* editfns.c (Finsert_buffer_substring): Ditto.
* fileio.c (Fdo_auto_save): Ditto.
* insdel.c (make_gap): Ditto.
* xfns.c (adjust_scrollbars): Don't set bf_cur->text.
1990-04-26 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* minibuf.c: Declare active_screen struct screen *, not
Lisp_Screen *.
1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (XTupdate_end): Only x_display_cursor if s is x_input_screen.
1990-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fns.c (Fy_or_n_p): If a C-g comes in and does not quit, quit by hand.
* buffer.c (Frename_buffer): Allow renaming to same name it has.
1990-04-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_open_connection): Attach xrdb to x_current_display.
1990-04-17 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (dumpborder): Now only used for X10.
(highlight, unhighlight): New functions for X11.
1990-04-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* cm.c (Wcm_init): Return -2 if screen size not specified.
* term.c (term_init): Special error message for that case.
1990-04-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s-sunos4.h, s-sunos4shr.h (SYSTEM_MALLOC): Define it.
1990-04-15 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_get_resource): Concatenate invocation_name before
the resource tag.
(Fx_create_screen): Use the latest resource id's.
1990-04-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_get_resource): New subr.
(Fx_open_connection): Call x_load_resources. New parameter
xrm_string.
* xrdb.c: New file for doing resource manager stuff.
* xscrollbar.h: New file for scrollbar bitmaps.
* xselect.h: New file for the X selection stuff.
* ymakefile: Take note of these new files.
1990-04-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (x_term_init): Use MAXPATHLEN.
1990-04-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* buffer.c (list_buffers_1): Get filename from list-buffers-directory.
1990-04-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (coordinates_in_window): Return -1 if in modeline of window.
(Fcoordinates_in_window_p): Return Qt if in modeline of window.
(Flocate_window_from_coordinates): Use next_screen_window if
MULTI_WINDOW is defined.
1990-04-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (construct_mouse_event): Deal with the motion events
first. Only grab the mouse when in the scrollbar.
1990-04-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (coordinates_in_window): Include mode line as part of
window.
* xterm.c (XTread_socket): Initialize nbytes to 0.
(x_display_cursor): Don't draw if screen not selected.
* xdisp.c (DoDsp): Additional checks for screen being visible.
1990-04-03 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* editfns.c (Fmessage): If there is a global minibuffer screen,
raise it before displaying the message.
* window.c (window_loop): Parameter SCREENS now affects which
screen is scanned for windows. All subrs calling window_loop must
pass a Lisp_Object here now.
1990-04-01 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* window.c (window_loop): Additional parameter mini to control
minibuffer selection or not.
(Fget_lru_window):
(Fget_largest_window):
(Fget_buffer_window):
(Fdelete_other_windows):
(Fdelete_windows_on):
(Freplace_buffer_in_windows): Use that parameter.
1990-03-29 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (Fselect_screen): Raise the selected screen.
* window.c (Fget_buffer_window):
(Fget_largest_window):
(Fget_lru_window): New parameter all_screens.
(Fdisplay_buffer): Use the new param in Fget_lru_window,
Fget_buffer_window, and Fget_largest_window.
(Fscroll_other_window): Use new param in Fget_buffer_window.
* buffer.c (Fother_buffer): Ditto.
* xterm.c (x_display_cursor): Always draw the cursor if ON is
true. Don't check if the screen S is selected or equal to
mouse-screen.
* xfns.c (Fx_track_pointer): Don't turn off cursor, just call
x_display_cursor.
1990-03-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* data.c (Fmake_local_variable): Give the variable value nil if
unbound.
* window.c (Fnext_window, Fprevious_window): For MULTI_SCREEN,
check if Vglobal_minibuffer_screen is non-nil and maybe call
next_screen.
* screen.c (Fscreen_selected_window):
(Fscreen_root_window): If screen is nil, use selected-screen.
1990-03-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (XTread_socket): SET_SCREEN_GARBAGED which returning
symbol which causes DoDsp to be invoked.
* keyboard.c (read_key_sequence): Don't SET_SCREEN_GARBAGED here.
* screen.h: New macro SET_SCREEN_GARBAGED.
* xfns.c:
* window.c:
* sysdep.c:
* keyboard.c:
* dispnew.c: Use the new macro.
1990-03-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_own_selection): Only take one argument, string.
1990-03-24 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (select_visual): Catch bullshit machines whose hardware
doesn't support the X server pixel depth by looking at colormap_size.
(x_decode_color): Use x_screen_planes to check for color.
1990-03-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (x_display_cursor): Try using vertical bar cursor.
(clear_cursor): Call x_display_cursor for X11.
* xfns.c: Zotzed Vx_pointer_mask.
(Fx_track_pointer): Call x_display_cursor if we just
wasted the cursor. Break out of loop if no display line.
Use mode line cursor if we're there.
(x_y_pos): New function.
(x_set_font): Dont' set x_font_{width,height}, they are gone.
1990-03-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_track_pointer): Check that s == selected_screen each
time through loop. If event is nil, read mouse position.
* keyboard.c (get_char): DoDsp only if selected_screen visible.
* xterm.c (XTread_socket): Mark screen as visible only on expose
event.
* emacs.c (main): Check here for "-d" option and set display_arg.
* dispnew.c (init_display): Set Vwindow_system, etc. if display_arg.
1990-03-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (read_key_sequence): Don't DoDsp if the screen was
just unmapped.
(command_loop_1): Call the mouse motion handler before calling
read_key_sequence.
(interrupt_signal): Fixed typo checking screen type.
* xfns.c (Fx_track_mouse): Don't crash because of null display
line. Don't set obj til call to get_char.
* xterm.c (x_term_init): Disable SIGWINCH here.
* fns.c (Fmember): New subr.
* dispnew.c (init_display): Don't check env variable DISPLAY to
set Vwindow_system. Now done in startup.el.
* emacs.c: Removed variables xargc, xargv.
1990-03-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_track_pointer): Go faster.
* screen.h: New macro SCREENP.
* window.c (Fminibuffer_window): Rewritten.
1990-03-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c (perror): Control with HAVE_PERROR as well as HPUX.
* s-hpux.h (HAVE_PERROR): Define it.
1990-03-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (command_loop_1): Restructured handling of X event
things.
(read_key_sequence): Handle new `unmapped-screen' symbol with new
Vunmap_screen_hook.
* xterm.c (XTread_socket): Return unmapped-screen symbol if the
window for UnmapNotify events.
* lread.c (Feval_region): GCPRO opoint.
1990-03-16 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (command_loop_1): Call mouse-motion handler with
argument. Also, don't call undo-boundary.
* process.c (create_process): Set the process group for BSD at
the same time as for USG.
1990-03-14 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (x_new_selected_screen): Set x_input_screen here.
1990-03-11 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c: Vx_mouse_grabbed now Vmouse_grabbed.
(XTread_socket): Generate exited-window symbols on LeaveNotify
even if screen is focused.
* xfns.c: Vx_mouse_grabbed now Vmouse_grabbed.
(outline_region): Now static.
(Fx_track_pointer): Check x_mouse_screen == s in loop.
1990-03-10 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (encode_mouse_button): Correctly get the button from
Motion events.
* xfns.c (x11_encode_mouse_button): Nuked.
(encode_mouse_button, Fx_mouse_events, Fx_get_mouse_event): #if 0'd.
* keyboard.c (get_char): Re-set obj if we've keyboard-translated c.
1990-03-08 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (x_focus_screen): No longer static.
(x_error_handler): Use XDefaultIOError.
* screen.c (Ffocus_screen): New subr, removed Fscreen_has_focus.
(Fselect_screen): New, optional parameter no_enter.
(Frestore_screen_configuration):
(Fdelete_screen): Pass second parm Qnil to Fselect_screen.
* window.c (Fdisplay_buffer, Fset_window_configuration): Pass
second parm Qnil to Fselect_screen.
1990-03-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (Fscreen_has_focus): New subr.
(Fselect_screen): Use x_focus_on_screen to physically select the
screen.
1990-03-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (x_set_mouse_position): Moved to xterm.c.
* fileio.c (Fremove_directory): New subr.
* screen.c (Frelease_focused_screen): Just call x_unfocus_screen.
* xterm.c (XTread_socket): On FocusOut, if s isn't mouse screen,
return exited-window. On LeaveNotify, simplify if expression for
dumpborder. Reworked FocusIn/FocusOut events.
(x_unfocus_screen): Check that screen is x_focus_screen.
(x_set_mouse_position): Moved from xfns.c. Use new macro
XWarpPointer.
* xterm.h: New macro XWarpPointer.
* buffer.c: Replaced Fbuffer_flush_undo with
Fbuffer_disable_undo.
* process.c: Ditto.
1990-03-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (XTupdate_end): Use parameter s rather than
updating_screen.
(XTread_socket): On EnterNotify, don't check s != focus_screen
before selecting. On Focus In/Out don't set/reset mouse_screen.
1990-03-04 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* eval.c: If using X windows, include xterm.h.
(error): TOTALLY_UNBLOCK_INPUT if using X.
* xterm.h (BLOCK_INPUT, UNBLOCK_INPUT): No signal stuff, just inc
and decrement x_input_blocked.
* xfns.c (adjust_scrollbars): Don't BLOCK_INPUT.
(x_set_font): Check result of x_new_font. Call error if nonzero.
(x_set_icon_type): Check result of x_*_icon, maybe call error.
* screen.c (Fdeiconify_screen): Use x_make_screen_visible rather
than x_deiconify_screen. Return screen.
(Fmake_screen_visible): Don't raise it here. Return screen.
* xterm.c (XTwrite_glyfs): Don't show cursor if screen is
global-minibuffer-screen.
(x_new_selected_screen): Do dumpborder and check auto-raise here,
rather than XEvent switch.
(x_deiconify_screen): No longer exists.
(x_do_pending_expose, x_clear_cursor):
(x_invert_screen, scraplines, stufflines, x_bitmap_icon):
(x_text_icon, x_new_font): Don't BLOCK_INPUT.
(XTins_del_lines): BLOCK_INPUT here.
(XTupdate_end): Don't turn on cursor if minibuffer-screen.
(XTread_socket): On MotionNotify, just that screen is selected before
processing.
(XTtopos): If updating_screen, just set x and y, don't flush.
(x_bitmap_icon):
(x_text_icon):
(x_new_font): Return 1 if failed, don't call error.
(x_make_screen_visible): Raise the screen as well.
1990-03-02 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (Frelease_focused_screen): Just check that screen is
selected.
1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.c (Fselect_screen_focused, Frelease_focused_screen): New
subrs.
* xterm.c (x_focus_on_screen, x_unfocus_screen): New procedures
to implement focusing.
1990-02-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* casefiddle.c: Doc fix.
1990-02-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.h: Redefined BLOCK_INPUT and UNBLOCK_INPUT to use sigblock
and sigsetmask if available.
* xterm.c: Declare BLOCK_INPUT_mask if have SIGIO and FIONREAD.
1990-02-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* minibuf.c (Fread_from_minibuffer): Initialize pos to 0.
1990-02-25 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (read_key_sequence): Handle mapped-screen event
symbol by calling new hook Vmap_screen_hook.
* xterm.c (x_make_screen_invisible): Use the new Xlib function
XWidthdrawWindow.
(x_iconify_screen): Use the new Xlib function XIconifyWindow.
(XTread_socket): Return mapped-screen symbol to signal
mapped-screen events.
1990-02-23 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (command_loop_1): Check the character for width 1
before doing direct_output_forward, as well as the cursor position
on the screen.
* xdisp.c (DoDsp): Use redisplay_windows rather than
redisplay_all_windows, which was removed.
1990-02-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* unexencap.c: New file, waiting for papers.
1990-02-22 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c: Removed much debugging stuff.
* xterm.c: Removed much debugging stuff.
(x_error_handler): For X11, if caught BadAlloc error while
converting selection (note new variable x_converting_selection),
just set new variable x_selection_alloc_error.
* xfns.c: Massive changes for crufty selection processing details.
New X atoms: Xatom_clipboard, Xatom_delete, Xatom_insert_selection,
Xatom_insert_property, Xatom_pair.
1990-02-21 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (kbd_buffer_store_char): Check NULL objects.
* xterm.c (XTread_socket): Correctly advance bufp for all KeyPress
events.
1990-02-20 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (kbd_buffer_get_char): Use KBD_BUFFER_SIZE rather
than sizeof kbd_buffer.
(read_key_sequence): Upon redraw-display symbol, set
screen_garbaged.
* xterm.c (XTread_socket): On EnterNotify events, make sure to
return mouse event for both scrollbars and windows.
1990-02-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* casefiddle.c (casify_region): Move the new statement.
1990-02-19 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* casefiddle.c (casify_region): Return if beginning and end same.
1990-02-18 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (kbd_buffer_store_char): Use KBD_BUFFER_SIZE rather
than sizeof kbd_buffer.
* fns.c (Fy_or_n_p): Only accept ints from get_char.
1990-02-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* minibuf.c (Fread_from_minibuffer): New arg POSITION.
* unexsunos4.c: New file. Waiting for papers.
* s-sunos4shr.h: New file.
* emacs.c (main) [RUN_TIME_REMAP]: Call run_time_remap.
* ymakefile (LD): Let config file override with LD_CMD.
1990-02-14 Joseph Arceneaux (jla@albert.ai.mit.edu)
* keyboard.c (read_avail_input): Pass read_socket_hook
KBD_BUFFER_SIZE rather than doing sizeof (buf).
* xterm.c (XTread_socket): Set event.type = MotionNotify when
entering screen or scrollbar to fake motion event.
1990-02-13 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* window.c (next_screen, prev_screen): Moved to screen.c.
(Fnext_window): If mini non-nil, count the separate minibuffer
screen.
* screen.c (Fnext_screen): New subr.
1990-02-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xdisp.c (display_text_line, try_window, try_window_id, DoDsp):
Don't display overlay arrow on more than one line in a window.
1990-02-12 Joseph Arceneaux (jla@albert.ai.mit.edu)
* doprnt.c (doprnt): Expand size of tembuf to 512.
1990-02-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* minibuf.c (Fread_no_blanks_input): Make second arg optional.
1990-02-09 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* keyboard.c (get_char): Remember to set obj when executing macro.
(read_key_sequence): Handle the exited-scrollbar symbol.
Compare obj, not read_key_sequence_cmd.
* xterm.c (x_make_screen_visible, x_deiconify_screen): Check
window-manager variable.
(x_make_screen_invisible, x_iconify_screen): Don't use new R4
calls (they crash), do it ourselves.
(XTread_socket): Return exited-scrollbar symbol when doing so.
1990-02-08 Joseph Arceneaux (jla@albert.ai.mit.edu)
* xterm.c (construct_mouse_event): Rewritten to do mouse-motion
compression. All mouse processing now done here.
Also, just use nil and t for x-mouse-grabbed. Record buttons
pressed in new variable x_mouse_grabbed. XGrabPointer on button
depression.
* xfns.c (Fx_horizontal_line): Use x_mouse_grabbed.
1990-02-07 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xdisp.c (DoDsp): If only updating selected screen, but there is
a minibuffer screen, update it as well.
1990-02-06 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_pixel_width, Fx_pixel_height): New subrs.
* xterm.h: New components pixel_width, pixel_height, to x_display.
* xterm.c (XTread_socket): On configure notify, set these components.
* window.c (Fset_window_configuration): Select the screen of the
root window if it's not the selected_screen.
* minibuf.c (read_minibuf): Remove all the screen selection stuff,
now that this is integrated in Fset_window_configuration.
1990-02-05 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* screen.h: Declare Vglobal_minibuffer_screen.
* xdisp.c (DoDsp): Set all_windows if using global-minibuffer-screen.
1990-02-03 Joseph Arceneaux (jla@geech)
* window.c (Fset_window_configuration): Make sure to set
window->next to nil for a minibuffer-only screen.
* screen.c (make_minibuffer_screen): Set mini_window->next nil.
1990-02-01 Joseph Arceneaux (jla@albert.ai.mit.edu)
* screen.c (make_screen): Set wants_modeline elt to 1.
* window.c (Fset_window_configuration): Use screen->root_window
as arg to delete_all_subwindows rather than minibuf_window->prev.
* minibuf.c (read_minibuf): Don't unwind with
Frestore_screen_configuration. Save selected_screen if different
than minibuf screen, and re-select it after reading minibuf.
* screen.c: #if 0 Fscreen_configuration,
Frestore_screen_configuration.
1990-02-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-ibmps2-aix.h: Undef NEED_SIOCTL.
(SIGN_EXTEND_CHAR): Cast to `signed char'.
1990-01-28 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xfns.c (Fx_track_pointer): Rewrote this to loop while there are
mouse events.
* xterm.c (XTread_socket): Return left-window-event symbol upon
LeaveNotify.
* keyboard.c (read_key_sequence): Handle this symbol.
1990-01-27 Joseph Arceneaux (jla@churchy.ai.mit.edu)
* xterm.c (x_display_cursor): Use dumpglyfs with SPACEGLYF for
cursor, as `XFillRectaogle's kill HP-BSD server.
* xterm.h: Added nontext_cursor, modeline_cursor to x_display
structure.
* xfns.c (x_set_mouse_color, Fx_track_pointer): Changes to use
nontext_cursor.
1990-01-25 Joseph Arceneaux (jla@albert.ai.mit.edu)
* xterm.h: Changed the face structure for X11 to handle GCs and
pixmaps.
* xterm.c (XTread_socket): Return a motion event when mouse enters
scrollbar or window.
(x_make_screen_invisible): Use the new X11R4 function XWithdrawWindow.
(x_iconify_screen): Use the X11R4 function XIconfifyWindow.
(dumpglyfs): Use the new face structure.
* xfns.c (install_vertical_scrollbar, install_horizontal_scrollbar):
Accept EnterNotify events. Use XMapSubwindows rather than mapping
each one.
(Fx_set_face_font): New subr for X11 to set face GC.
1990-01-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (direct_output_for_insert): Give up if buf in 2 windows.
* keyboard.c (command_loop_1):
Dumb bugs disabled special fast display for character motion.
* xdisp.c (DoDsp): For cursor motion within line,
hpos result from compute_motion is relative to window.
1990-01-24 Richard Stallman (rms@albert.ai.mit.edu)
* eval.c (Fmacroexpand): Handle explicit macros ((macro ...) ...).
1990-01-18 Joseph Arceneaux (jla@spiff)
* undo.c (Fundo_more): Fixed typo.
1990-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xdisp.c (display_text_line): When checking HPOS for continuation
line, compensate for w->left.
1990-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c [no FIONREAD]: Undefine SIGIO.
* buffer.c (SetBfp): Use XTYPE to test for no selected window yet.
* editfns.c, dispnew.c, fileio.c, process.c, sysdep.c, xterm.c:
Uniformly let NEED_TIME_H control use of time.h instead of sys/time.h.
* xterm.h (TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT): Don't use
SIGIO if no FIONREAD.
1990-01-15 Joseph Arceneaux (jla@spiff)
* xfns.c (x_set_mouse_color): Set non-text pointer shape with new
variable Vx_nontext_pointer_shape.
* keyboard.c: More checks for evil bug which trashes kbd_*_ptr.
* m/hp300bsd.h: Try using BSD load average stuff.
1990-01-11 Joseph Arceneaux (jla@spiff)
* xfns.c (x_draw_pixmap): New routine.
1990-01-10 Jim Kingdon (kingdon@pogo)
* m/hp300bsd.h: New file
1990-01-08 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_window_id): New subr.
* screen.c (make_screen): Set wants_modeline elt to mini_p.
If mini_p 0, then set root_window->next to nil.
1990-01-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c (Fchar_after): Set N after coercing marker.
1990-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* buffer.c (Fkill_all_local_variables): Force mode line update.
1990-01-05 Joseph Arceneaux (jla@spiff)
* insdel.c: Declare Vfirst_change_function.
* keyboard.c (read_key_sequence): Function keys are now lisp symbols.
(kbd_buffer_store_char): Abort if store pointer past
buffer. Temproarry; This shouldn't be able to happen.
(read_key_sequence): #ifdef HAVE_X_WINDOWS code
which handles complex objects.
(command_loop_1): Check not termcap screen before
processing non-char input.
(kbd_{store,fetch}_char): More debugging checks.
* screen.c (make_screen): Set root_window height to 9 if mini_p.
(make_minibuffer_screen): Set the mini window's next,
prev, and screen elements.
* xterm.c (x_func_key_to_sym): New function, uses new variable
func_key_syms.
(XTread_socket): Use this in KeyPress event for function keys.
(XTflash): Draw solid rectangle in middle of screen.
(x_set_offset): Set the size hints as well when doing
this.
(XTflash): Just dumpglyfs instead of redrawing the
screen after flashing the rectangle.
* lread.c (syms_of_lread): defsubr Fread_event.
1990-01-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* buffer.h, buffer.c (Vfirst_change_function): New Lisp variable.
* insdel.c (signal_before_change): Call that function.
* keyboard.c (cmd_error): Don't crash if TAIL is nil.
1989-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* minibuf.c: Doc fixes.
1989-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (create_process): Unhold SIGCHLD in the child.
1989-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (create_process): Treat HPUX like BSD for sigsetmask.
1989-12-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fns.c (Fmapconcat): Gcpro SEP around mapcar1.
1989-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (get_display_line): Don't touch X data if not using X.
* syntax.c (Fscan_sexps): Fix fatal documentation typo.
* lread.c: Include commands.h.
* xterm.c (construct_mouse_event): Delete unreached return at end.
(x_wm_set_size_hint): #if 0 some broken code.
* cmds.c (SelfInsert): Set HAIRY if have before or after change hooks.
* editfns.c (Fsubst_char_in_region, Ftranslate_region):
Call signal_after_change for chars changed.
* undo.c (Fundo_more): When undoing Uchange, do signal_after_change.
* casefiddle.c (casify_region): Do modify_region before the change,
signal_after_change afterward.
* insdel.c (prepare_to_modify_buffer): Call signal_before_change.
(del_range, InsCStr): Call signal_after_change.
(signal_after_change, signal_before_change): New functions.
1989-12-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (init_display) [VMS]: Downcase terminal type.
1989-12-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c: Use NEED_SIOCTL to control use of sioctl.h.
* m/m-mips.h, m/m-iris4d.h: Define that.
* m/m-ibmps2-aix.h (NEED_SIOCTL, HAVE_UNION_WAIT, HAVE_PTYS): Define.
(HAVE_SYSVIPC, HAVE_SOCKETS, X_DEFAULT_FONT): Define.
(sigsetmask): #undef this.
1989-12-15 Joseph Arceneaux (jla@spiff)
* lread.c (Fread_char): Catch error if read non-char.
(Fread_event): New subr. Return any input object.
1989-12-14 Joseph Arceneaux (jla@spiff)
* xfns.c: New variable Vx_no_window_manager.
(Fx_track_pointer): If bufp < 0, abort.
* xterm.c (XTread_socket): When leaving window, set x_mouse_x and
x_mouse_y to -1.
1989-12-13 Joseph Arceneaux (jla@spiff)
* xterm.c (XTread_socket): On ConfigureNotify events, return
"redraw-screen" symbol.
(dumpborder): Only do border stuff if x-no-window-manager non nil.
Also check if there is a tracking rectangle.
(XTupdate_begin): If there is a mouse tracking rectangle, erase
it.
* keyboard.c (read_key_sequence): Return -2 for symbols.
(command_loop_1): DoDsp when 'redraw-screen arrives as input.
For mouse events, call Fexecute_mouse_event with
read_key_sequence_cmd instead of Vmouse_event.
1989-12-08 Joseph Arceneaux (jla@spiff)
* process.c (create_process): For not USG, properly set the
process group.
1989-12-07 Joseph Arceneaux (jla@spiff)
* term.c (topos): Under X Windows, abort if topos_hook not
correct. Temporary.
* xfns.c (Fx_horizontal_line): New subr.
1989-12-05 Joseph Arceneaux (jla@spiff)
* keyboard.c (Fexecute_mouse_event): Don't set Vmouse_window here
for X11.
* xterm.c (construct_mouse_event): Vx_mouse_grabbed now indicates
which keys are depressed.
(construct_mouse_event): Set Vmouse_window here.
1989-12-04 Joseph Arceneaux (jla@spiff)
* screen.c (coordinates_in_window): New function.
(Fcoordinates_in_window_p): Rewritten to use above.
* dispextern.h: New element bufp for display_line structure when
using X windows.
* xdisp.c (redisplay_window): Set this to the position in the
buffer of the first char in this display line.
* dispnew.c (get_display_line): Set this to -1 here.
1989-12-03 Joseph Arceneaux (jla@spiff)
* alloc.c: Upped NSTATICS from 200 to 256.
* xterm.c (XTread_socket): Report MotionNotify events only if
mouse has changed character position. Call x_read_mouse_position.
Set Vmouse_event here.
* xfns.c (x_read_mouse_position): Set new global variables
x_mouse_x and x_mouse_y.
* keyboard.c: Vignore_mouse_events: New variable.
* syntax.c (Fscan_sexps): Doc change.
* lread.c (Fread_char): Return only chars. If new variable
Vignore_mouse_events non nil, execute any mouse events which
appear.
1989-12-01 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_track_pointer): Draw half-sized rectangles for '\n'.
(x_rectangle): Draw half-size if negative argument.
* xterm.c (XTread_socket): Abort if garbage collecting when doing
mouse events.
* ymakefile: #define FLOATSUP if LISP_FLOAT_TYPE defined.
* emacs.c (main): If BSD, set pgrp to pid.
1989-11-30 Joseph Arceneaux (jla@spiff)
* callint.c (Fcall_interactively): For case 'e', set varies[i] to
avoid entering in the command history.
* xterm.c: Removed the function x_indicate_pointer_char.
(XTread_socket): When leaving window, erase mouse tracking box if
it exists.
* xfns.c (Fx_track_pointer): New function, does what
x_indicate_pointer_char used to.
(x_read_mouse_position): Subtract internal_border_width.
* screen.c: No rubber-banding function for X11.
* window.c (Fmove_to_window_line): Document string fix.
1989-11-29 Joseph Arceneaux (jla@spiff)
* lread.c (Fread_char): Return a Lisp_Object (directly from
get_char).
* keyboard.c:
* xterm.c: Function keys now arrive as cons cells.
1989-11-27 Joseph Arceneaux (jla@spiff)
* keyboard.c (read_key_sequence): Handle Lisp_Symbols on input
(function keys). Also, handle these and mouse events with
prefixes (by ignoring the prefixes for now).
* xfns.c: New variable Vx_mouse_grabbed.
* xterm.c (construct_mouse_event): Use it.
(XTread_socket): Return Lisp_Symbol for function key.
* buffer.c (reset_buffer_local_variables): Set function_key_map to
Qnil.
1989-11-24 Joseph Arceneaux (jla@spiff)
* buffer.h: Per-buffer function key maps.
* keyboard.c (read_avail_input): Convert chars to Lisp_Objects in
case of stdin.
1989-11-22 Joseph Arceneaux (jla@spiff)
* keyboard.c (read_key_sequence): Check type of object returned
from get_char. Handle mouse events (set Vmouse_event) and
function keys.
(get_char_menu_prompt): Return a Lisp_Object.
(Fexecute_mouse_event): No longer set Vmouse_event.
Vmouse_window set here.
* xterm.c (XTread_socket): KeyPress events now return
Lisp_Objects, as do ButtonPress events.
(construct_mouse_event): New function.
(encode_mouse_button): New function.
1989-11-21 Joseph Arceneaux (jla@spiff)
* keyboard.c (kbd_buffer_store_char, kbd_buffer_get_char):
Store and get Lisp_Objects.
(get_char): Use those Lisp_Objects.
* fileio.c (Fread_filename_internal): If exactly complete, but
string was modified, return string.
* minibuf.c (temp_minibuf_message): Pass correct arguments to Fsit_for.
1989-11-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s-386-ix.h: New file.
1989-11-17 Joseph Arceneaux (jla@spiff)
* xterm.c (dump_rectangle): Flush the X queue.
1989-11-16 Joseph Arceneaux (jla@spiff)
* xmenu.c (xmenu_show): Use ButtonReleaseMask instead of
ButtonRelease.
* fileio.c (Fmake_directory): New subr.
1989-11-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* config.h-dist (C_SWITCH_SITE, LD_SWITCH_SITE): Mention these.
(HAVE_X11): Renamed from X11 and defined by default.
It shoukld have no effect when not using X.
1989-11-14 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_get_selection, x_selection_arrival): Use &event
instead of event.
(x_selection_arrival): For incremental selections, loop on
XGetWindowProperty if one is not enough.
1989-11-13 Joseph Arceneaux (jla@spiff)
* ymakefile: Just link if ../oldXMenu/libXMenu11.a already exists.
1989-11-09 Joseph Arceneaux (jla@spiff)
* m/m-sparc.h: If __GNUC__ use "-O", else "-O2"
1989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* search.c (Fstore_match_data): A marker pointing nowhere, treat as 0.
1989-11-08 Joseph Arceneaux (jla@spiff)
* search.c (Fmatch_data): Fixed typo.
* insdel.c (make_gap): Use BUFFER_REALLOC instead of realloc.
* buffer.c (Fget_buffer_create): Use new define BUFFER_ALLOC in
place of malloc, and set b->data.
(Fkill_buffer): Use BUFFER_FREE on b->data, rather than malloc on
b->p1 + 1.
* buffer.h: New element data in buffer_text structure.
New define for it, bf_data.
1989-11-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* marker.c (Fset_marker): Don't force POS into visible range.
* window.c (set_marker_restricted): New function does what
Fset_marker did. All calls in this file now use the new function.
1989-11-07 Joseph Arceneaux (jla@spiff)
* buffer.h: Defines for allocating buffer variables.
* ralloc.c: Completely rewritten.
* alloc.c (xmalloc, xrealloc): Return 0 immediately for requests
of 0 size.
1989-11-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* search.c (Flooking_at, Fstring_match, search_buffer):
Record in search_regs_from_string whether matching against a string.
(Fmatch_data): Save data as integers if from a string.
* s-umips.h: Now include either s-usg5-2-2.h or s-bsd4-3.h
and then override as needed.
* m-mips.h: System dependence deleted.
LD_SWITCH_MACHINE remains w/ options needed on all systems.
* m-pmax.h: A little of that (LIBS_DEBUG) moved here.
No need to undef LIBS_MACHINE.
* fns.c (Fload_average): FIXUP_KERNEL_SYMBOL_ADDR is now general hook.
* s-umips.h: Define it.
* sysdep.c: Handle BROKEN_FIONREAD.
1989-11-03 Joseph Arceneaux (jla@spiff)
* config.h-dist: Mention LISP_FLOAT_TYPE, GNU_MALLOC, and REL_ALLOC.
* s/s-umips.h: New file.
1989-11-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (Fopen_network_stream): Handle EINTR in connect.
Describe errno in err msg if connect fails.
1989-11-02 Joseph Arceneaux (jla@spiff)
* vm-limit.c: New file.
* ralloc.c: New file.
* ymakefile: Take vm-limit.o into account.
1989-11-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* alloc.c (staticvec): Make this a simple vector of pointers
rather than an alias for a vector of chars.
1989-11-01 Joseph Arceneaux (jla@spiff)
* window.c: Moved some functions (save_window_save,
replace_window, unshow_buffer) around.
* search.c: Moved function place.
* lread.c: Moved function read_escape.
* unexec.c: Declarations for make_hdr, copy_text_and_data,
copy_sym. Declare mark_x as static void.
* dispextern.h: Removed declaration of new_display_line.
* emacs.c: Do malloc_init if GNU_MALLOC.
* gmalloc.c (malloc_init): New function.
* xfns.c (x_rectangle, Fx_draw_rectangle, Fx_erase_rectangle)
(outline_region, Fx_countour_region, Fx_uncontour_region): New
subroutines for drawing rectangles and things.
(Fx_point_coordinates): New subr.
1989-10-31 Joseph Arceneaux (jla@spiff)
* All .c and .h files: New copyright header.
1989-10-30 Joseph Arceneaux (jla@spiff)
* gmalloc.c: New GNU malloc.
* emacs.c (main, Fdump_emacs): No malloc init if GNU_MALLOC.
* ymakefile: Check if GNU_MALLOC defined.
1989-10-27 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_pointer_char): New subr.
* xterm.c (x_indicate_pointer): New procedure.
* alloc.c (Fmake_vector_from_list, make_vector_from_list): New subrs.
1989-10-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xterm.c (x_term_init):
Negate arg to fcntl F_SETOWN if F_SETOWN_SOCK_NEG.
* keyboard.c (Fset_input_mode) [NO_SOCK_SIGIO]:
No interrupt input if using a socket.
* m-sequent.h: Define NO_SOCK_SIGIO, F_SETOWN_SOCK_NEG, MAIL_USE_FLOCK.
1989-10-26 Joseph Arceneaux (jla@spiff)
* xterm.c (x_handle_error_gracefully): Make sure to completely
release input before returning, using:
* xterm.h New macro TOTALLY_UNBLOCK_INPUT.
* xmenu.c (xmenu_quit): No longer use this error_handler; use
default one.
1989-10-25 Joseph Arceneaux (jla@spiff)
* config.h-dist: Comment fix.
1989-10-24 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_draw_lines, translate_vectors): New functions.
1989-10-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* search.c (search_buffer): Always find null string.
* window.c (window_loop): For UNSHOW_BUFFER, don't Fset_buffer
unless window is the selected one.
1989-10-20 Joseph Arceneaux (jla@spiff)
* xdisp.c (display_minibuf_message): Choose minibuf screen first
of all. Return if not visible.
1989-10-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_handle_error_gracefully): New procedure to handle
non-fatal X errors.
(x_error_handler): Use it.
(acceptable_x_error_p): New macro.
* xfns.c (Fx_own_selection): Use second parameter SCREEN.
* xdisp.c (message, message1): No longer displays messages
when using X but not yet mapped.
1989-10-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-pyramid.h (NO_ARG_ARRAY): Define if using GCC.
1989-10-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* vmsfns.c (process_command_input): Call clear_waiting_for_input.
1989-10-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* syntax.c (scan_words): If words_include_escapes not 0,
treat Sescape and Scharquote like Sword.
(syms_of_syntax): Define Lisp variable.
* process.c (wait_reading_process_input): Get rid of kbd_count.
Use detect_input_pending.
* sysdep.c (select, read_input_waiting): Likewise.
(read_input_waiting): Don't read directly into kbd_buffer;
use kbd_buffer_store_char.
* keyboard.c: Don't define kbd_count.
* keyboard.c (read_key_sequence): Reject the prefix char generated
for a Meta char, if it finds a non-prefix definition.
1989-10-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (wait_reading_process_input): READ_KBD==2 means
wait until have mouse input.
* xfns.c (Fx_get_mouse_event): Use that.
* xterm.c (mouse_event_pending_p): New subroutine.
1989-10-13 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (x_selection_arrival):
(x_send_incremental):
(x_answer_selection_request): New procedures for incremental
selection transfer.
1989-10-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* lread.c (complete_filename_p): New function which replaces
absolute_filename_p. This one doesn't consider "~" valid.
1989-10-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* buffer.c: Comment fix.
1989-10-11 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (Fx_open_connection) New X atoms Xatom_incremental and
Xatom_multiple.
* xterm.h: New macros MAX_SELECTION and SELECTION_LENGTH.
* process.c (child_sig): Check pid <= 0 in case WNOHANG not defined.
1989-10-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* termcap.c (tgetent, gobble_line): Always store null at end of bfr.
Allocate one extra byte at end to ensure space.
Clean up order of arithmetic when updating ptrs into buffer
after xrealloc.
1989-10-10 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (Fx_open_connection): Make all X Atoms here.
* xterm.c (x_iconify_screen): Cleaned up this code.
(x_term_init): Removed warpmouseondeiconify stuff.
1989-10-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xdisp.c (DoDsp): Make sure to call unhold_window_change after
before all returns.
* minibuf.c (read_minibuf): Changed set_mouse_position to
Fset_mouse_position.
* xterm.c (XTread_socket): dumprectangle (whole screen) instead of
DoDsp in ConfigureNotify event.
(x_wm_set_size_hint): New calculations for size_hints.
* screen.c (Fset_mouse_position): No more function
set_mouse_position; use x_set_mouse_position directly.
* xfns.c (x_set_cursor_color): Really decode Vx_cusor_fore_pixel
if set. Define new cursor before freeing old. This may eliminate
a server bug on the Sony.
Also check for invisible cursors.
(x_set_mouse_color): Check for invisible pointers.
(x_resize_scrollbars): BLOCK_INPUT whilst doing operations.
(adjust_scrollbars): Likewise.
1989-10-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m/m-hp9000s800.h (XUNMARK): Delete definition.
(S_IFLNK): Do not undef it.
1989-10-03 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* dispnew.c (get_display_line): If screen not visible, abort.
1989-10-02 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_make_screen_visible): Set s->visible, unset
s->iconified for HAVE_X11.
1989-09-29 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (XTread_socket): Check screen s before proceeding for
MapNotify event.
* xterm.c: No longer sets the variable mouse_down_timestamp.
* xfns.c (Fx_get_mouse_event): mouse_timestamp (formerly
mouse_down_timestamp) set here. Also, mask out upper 9
bits before doing XSET.
1989-09-28 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (Fx_geometry): Kludge for the case of position `-0'.
(Fx_get_mouse_event): Also return the time stamp as last list elt.
(Fx_color_display_p):
(Fx_defined_color):
(x_decode_color):
(defined_color): Eliminate screen argument.
(Fx_create_screen): No more ColorMap component to display.x.
* xterm.h: Likewise.
1989-09-27 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (Fx_own_selection, Fx_get_selection, x_disown_selection):
New funcs, which use new variables Vx_selection_value,
x_begin_selection_own, mouse_down_timestamp, requestor_time,
requestor_window, property_name, and x_begin_selection_own.
* xterm.c (XTread_socket): Only do stuff if s for FocusOut under X11.
SelectionClear:
SelectionRequest:
SelectionNotify: New events to handle the selection inter-client
communication mechanism.
ButtonPress: Set mouse_down_timestamp.
1989-09-26 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c: New variable Vx_cursor_fore_pixel.
1989-09-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lread.c (openp): Don't ! the result of `access'.
1989-09-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (Fread_file_name_internal): Try to work properly
if dirs are specified using environment vars. Preserve use of vars.
1989-09-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c: Comment fix.
1989-09-18 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_get_cut_buffer): XFree the data returned by
XFetchBytes.
1989-09-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (Fwrite_region): Reinstall #if 0 around fstat.
1989-09-12 Joseph Arceneaux (jla@spiff)
* xfns.c (defined_color): New function to test if a color is
currently defined.
(x_decode_color): Use defined_color.
(Fx_defined_color): New subr.
(select_visual): Select the appropriate X11 Visual.
(Fx_open_connection): Use select_visual. screen_visual now
global and used when making emacs windows.
(Fx_color_display_p): New subr.
1989-09-11 Joseph Arceneaux (jla@spiff)
* fileio.c (Fwrite_region): Fixed typo.
* keyboard.c (Fdiscard_input): Fixed typo.
* window.c (Fnext_window): Fixed typos.
* alloc.c (xmalloc, xrealloc): hold_window_changes whilst doing
the associated operations.
* dispnew.c (init_display):
(Fsleep_for, Fsit_for):
* process.c (Faccept_process_output):
* keyboard.c ({clear,set}_waiting_for_input):
(quit_throw_to_get_char, get_char):
* xdisp.c (DoDsp, message, message1): Undid changes of Aug. 23
(see below); accept window changes most of the time.
1989-09-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keyboard.c: Eliminate kbd_count, and use two pointers,
kbd_fetch_ptr and kbd_store_ptr. Assume buffer is empty when
they are equal. This should eliminate timing error.
(kbd_buffer_store_char): Update kbd_store_ptr when storing.
Don't ever fill the entire buffer.
(kbd_buffer_get_char): Update kbd_fetch_ptr when fetching.
(stuff_buffered_input): Likewise.
(get_input_pending): Compare the two pointers.
* fileio.c (Fwrite_region): Reenable using fstat rather than stat
to get the modtime of the file just written, except on VMS and APOLLO.
1989-09-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* emacs.c, doc.c, filelock.c: Move Emacs header includes after
system header includes, and #undef NULL in between.
1989-08-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c [SYSV_PTYS]: If `titan', include some other files.
1989-08-29 Joseph Arceneaux (jla@spiff)
* fileio.c: read-file-name replaced with new version, formerly
called new-read-file-name.
1989-08-26 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
* window.c (Fscroll_other_window): Use save-excursion (in effect)
to save and restore current buffer and point.
(window_scroll): If selected window's buffer isn't current,
make it current, using save-excursion to go back.
1989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
Use two variables to convey reason for synch process death,
to avoid consing in signal handler.
They are synch_process_death and synch_process_retcode.
* callproc.c (Fcall_process): Use both variables.
* process.c (child_sig): Set both variables.
1989-08-24 Joseph Arceneaux (jla@spiff)
* xterm.c (x_wm_set_size_hint): Use new ICCCM values for size_hints.
1989-08-24 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
* buffer.c: Doc fix.
1989-08-24 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_create_screen): X11 part. Set height and width to 0
before calling change_screen_size.
* buffer.c (kill-all-local-variables): Changed doc string.
1989-08-23 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
* dispnew.c (init_display): Call hold_window_change.
(Fsleep_for, Fsit_for): Temporarily unhold, while waiting.
* process.c (Faccept_process_output): Likewise.
* keyboard.c ({clear,set}_waiting_for_input): Temporarily unhold.
(quit_throw_to_get_char, get_char): Rehold.
* xdisp.c (DoDsp, message, message1):
Unhold and rehold momentarily before any real work.
* Makefile (CPP): Use $(CC).
1989-08-22 Joseph Arceneaux (jla@spiff)
* xfns.c (x_set_mouse_color): Use new variables Vx_pointer_mask,
Vx_pointer_shape.
1989-08-21 Richard Stallman (rms@apple-gunkies.ai.mit.edu)
* alloc.c (malloc_warning): Do nothing if ignore_warnings.
(init_alloc_once): Set ignore_warnings while initializing allocation.
* buffer.c: Doc fix.
1989-08-21 Joseph Arceneaux (jla@spiff)
* xterm.c (x_calc_absolute_position): New function to calculate
positive screen position.
(x_set_position): Use it.
(x_reset_cursor): No longer exists.
* xfns.c (x_set_mouse_color): Reset the cursor even if there's no
X window.
(x_figure_window_size): Use x_calc_absolute_position.
(x_set_mouse_color): Rewrote this function. Always set cursor and
its color. If the window exists, then attach the cursor to it.
No longer uses x_reset_cursor.
(x_create_window):
(x_set_background):
(x_set_foreground): Use x_set_mouse_color instead of x_reset_cursor.
1989-08-18 Richard Stallman (rms@hobbes.ai.mit.edu)
* vmsfns.c: Define PRV$V_... syms if prvdef.h does not.
1989-08-18 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_geometry): New subr.
(x_figure_window_size): Don't worry about "geometry" here anymore;
now done in x-win.el.
(x_icon): Look in parms for iconic-startup rather than in variable.
1989-08-16 Joseph Arceneaux (jla@spiff)
* xfns.c (x_set_*_scrollbar): Don't destroy a scrollbar if it
doesn't exist. Also set scrollbar size only if actually creating
one.
(x_set_name): Don't do anything if the X window doesn't exist.
Set the icon name as well.
(x_window): Set the class hints for the window.
1989-08-16 Richard Stallman (rms@hobbes.ai.mit.edu)
* lread.c (Fload): Fix unterminated comment.
* scroll.c (scrolling_max_lines_saved): Replace fixed threshold of 20
with 1/4 of average length of lines.
1989-08-13 Joseph Arceneaux (jla@spiff)
* ymakefile: Do ${make} for oldXMenu.
1989-08-13 Richard Stallman (rms@hobbes.ai.mit.edu)
* eval.c: Doc fix.
1989-08-12 Richard Stallman (rms@hobbes.ai.mit.edu)
* emacs.c (main): Check for failure opening -t device.
Fatal error if terminal isn't a real terminal.
* window.c (Fscroll_other_window): Let Vother_window_scroll_buffer
specify a buffer to scroll.
1989-08-11 Richard Stallman (rms@hobbes.ai.mit.edu)
* dispnew.c: Handle BROKEN_FIONREAD as in other files.
1989-08-09 Joseph Arceneaux (jla@spiff)
* ../oldXMenu/Makefile: Removed all the unneccessary X stuff.
1989-08-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (barf_or_query_if_file_exists): When signalling,
provide the expected args for a file-error.
1989-08-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c: Let NEED_BSDTTY control include of bsdtty.h.
* process.c [BSD or STRIDE]: If ioctl.h fails to define O_NDELAY,
and we need it, try fcntl.h.
* s-bsd*.h, s-rtu.h, s-umax.h, s-unipl*.h: Define HAVE_UNION_WAIT.
* m-stride.h: Likewise.
* process.c: Decide which type to use with `wait'
according to HAVE_UNION_WAIT. If WAITTYPE already defined,
assume everything all set up for this.
* m-hp9000s300.h: Unless NOT_C_CODE or NO_SHORTNAMES,
define WAITTYPE and WRETCODE, and include sys/wait.h.
1989-08-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* callproc.c (child_setup): Get rid of junk in #if 0.
1989-08-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* abbrev.c (Fdefine_abbrev): Allow nil spec'd as expansion.
(Fexpand_abbrev): Eliminate abbrev length limit; use alloca.
Eliminate redundant tests, always true.
Record positions of both start and end of abbrev.
Handle whitespace following the abbrev, before point.
* callproc.c (Fcall_process_region): Use unwind-protect to delete
temp file.
* lread.c (load_unwind): Free the pointer-word malloc'd in Fload.
1989-08-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* emacs.c (Fdump_emacs): Doc fix.
1989-08-02 Joseph Arceneaux (jla@spiff)
* xfns.c: Reorganized several functions to be in same order as the
enum list.
(x_set_border_color): For X11, don't set pix to -1 for
gray values.
(Fx_create_screen): Simplified this function even more.
1989-07-31 Joseph Arceneaux (jla@spiff)
* keymap.c: New subrs Fuse_local_mouse_map, Fcurrent_local_mouse_map.
* xfns.c (x_set_mouse_color):
(x_set_cur): No need to redraw display after doing these.
(Fx_get_mouse_event): Accept motion events.
(x11_encode_mouse_button): Encoding a la X11, except for one
kludge. This is used only for motion events.
* xterm.c (XTread_socket): Handle motion eveots.
1989-07-26 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_create_screen): I couldn't take it any more, the
ugliness of this routine offended me too deeply. It is now
completely rewritten for X11 and uses subroutines:
(x_figure_window_size)
(x_create_window)
(x_icon)
(x_make_gc)
(Fx_draw_rectangle):
(Fx_erase_rectangle): New subrs.
* m/m-intel386.h: Changes in LOAD_AVE_TYPE, LOAD_AVE_CVT, and
FSCALE to make loadst work correctly.
1989-07-24 Joseph Arceneaux (jla@spiff)
* xfns.c (Fmodify_screen_parameters): Check s->output_method
before looping through alist.
(Fx_create_screen): Call x_default_parameter for font.
Don't add the scrollbar widths when making the main window: this
is done when the scrollbar is actually made.
(x_set_vertical_scrollbar): Set v_scrollbar_width here instead of
in install_vertical_scrollbar. Also, pass that function macros
PIXEL_WIDTH, PIXEL_HEIGHT as args.
(x_set_horizontal_scrollbar): Likewise.
* xterm.c (x_set_window_size): Don't call the things called
anyway upon the ConfigureNotify event.
(x_set_offset): Use the screen-size lisp variables for these
calculations.
* xterm.h: Added the screen parameter declarations from xfns.c for
X11.
1989-07-21 Joseph Arceneaux (jla@spiff)
* sysdep.c: Don't include sioctl.h on mips.
* buffer.c (Flist_buffers): Pass prefix as arg.
* editfns.c (Finsert_char): Insert at most 256 chars at a whack.
* xterm.c (x_draw_box): Moved cursor box right by one pixel.
1989-07-20 Joseph Arceneaux (jla@spiff)
* xfns.c: New variable x_screen_visuals, set if Fx_open_display,
to be used in screen-color-p.
* process.c (create_process): Don't call setpgrp_of_tty here.
Also, do setpgrp for USG regardless of HAVE_PTYS.
* callproc.c (child_setup): Ignore argument set_pgrp and always do
setpgrp_of_tty.
(Fcall_process): Don't call setpgrp_of_tty here.
* keyboard.c (command_loop_1): Make sure Vprefix_arg is NULL
before finalizing_kbd_macro_chars;
1989-07-19 Joseph Arceneaux (jla@spiff)
* xfns.c (Fx_rebind_key): Completely rewrote this function for
X11.
1989-07-13 Joseph Arceneaux (jla@spiff)
* emacs.c:
* process.c:
* unexec.c:
* m/m-ibmrt-aix.h: Changed IBMRTAIX to IBMAIX.
* sysdep.c: Likewise. Also, don't define our closedir if IBMAIX.
* m/m-ibmps2-aix.h: New file.
1989-07-12 Joseph Arceneaux (jla@spiff)
* xdisp.c (message, message1): If using x, but haven't mapped the
window yet, use noninteractive output.
* dispnew.c (Fredraw_display): Don't redraw a screen which is not
visible.
* xterm.c (x_set_window_size): Don't DoDsp if screen isn't visible.
* xfns.c (x_set_mouse_color)
(x_set_border_color)
(x_set_cursor_color)
(x_set_background_color)
(x_set_foreground_color): Don't redraw when screen isn't visible.
1989-07-11 Joseph Arceneaux (jla@gluteus)
* xterm.c (x_term_init, XTread_socket): Use ConnectionNumber for
both X10 and X11. This is #defined for X10.
* screen.c (Fset_screen_width, Fset_screen_height): These now take
a SCREEN argument.
1989-07-10 Joseph Arceneaux (jla@gluteus)
* xterm.c (x_set_window_size): Call x_wm_set_size_hint.
(x_new_font): Don't call x_wm_set_size_hint.
* xfns.c (x_set_internal_border_width): Don't call
x_set_resize_hint, and call x_set_window_size after BLOCK_INPUT.
* screen.c, dispnew.c (Fset_screen_width, Fset_screen_height):
These functions have moved to screen.c.
1989-07-07 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
* eval.c (Ffuncall): Handle 6 arguments. Also, print a nice error
message if there are more than 6 args.
* fns.c (Fyes-or-no-p):
* minibuf.c (read_minibuf_unwind):
(Fread_minibuffer):
(Fread_no_blanks_input):
(Fcompleting_read): Extra arg to read_minibuf.
* callint.c (Fcall_interactively):
* keyboard.c (Fexecute_extended_command):
* minibuf.c (Fread_command):
(Fread_function):
(Fread_variable):
(Fread_buffer): Extra arg to Fcompleting_read.
1989-07-05 Joseph Arceneaux (jla@spiff)
* minibuf.c (read_minibuf): New argument back_n is number of
characters to back-up point by.
(Fcompleting_read): Same.
* fileio.c (Fnew_read_file_name): New version of Fread_file_name
using the above features.
(Finsert_file_contents): Check for negative file length.
1989-07-03 Joseph Arceneaux (jla@spiff)
* xfns.c (x_pixel_width, x_pixel_height) New functions.
* screen.c (Fscreen_pixel_size): New subr.
1989-06-30 Joseph Arceneaux (jla@spiff)
* xterm.c: Use invocation_name as argument to XGetDefaults.
1989-06-29 Joseph Arceneaux (jla@spiff)
* xterm.c (x_error_handler) #ifdef sony_news use XDefaultError
instead of XPrintDefaultError due to weirdness in Sony library.
* xterm.c: Avoid infinite raise/lower, enter/leave cycle when both
auto_raise and auto_lower are set by checking times between
consecutive Enter events.
1989-06-27 Joseph Arceneaux (jla@sugar-bombs.ai.mit.edu)
* screen.c (Fselect_screen):
* window.c (Fselect_window): The previous strategy was bugging the
lisp stuff, so these are now rewritten.
1989-06-26 Joseph Arceneaux (jla@galapas.ai.mit.edu)
* cm.c (Wcm_init): Don't check for Wcm.cm_ds, since this has been
removed.
(losecursor): This function now a #define in cm.h.
* xterm.c (x_iconify_screen): Send message to root window to do
this, as per latest Inter-Client Communications Conventions. This
is commented out until it's implemented by X. For now, do it with
the iconic_state hint.
(x_deiconify_screen): For X11, just Map the window, as per the new
ICCC.
(x_make_screen_visible): Only handle visible and iconified screen
elements for X10; these variables are handled in event processing
for X11.
(x_make_screen_invisible): Send an UnmapNotify event to the root
window to aprise the window manager of the change.
(XTread_socket): Catch VisibilityNotify events.
1989-06-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fsplit_window): If horizontal, round left window size up.
1989-06-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* cm.h (cmplus): Improve formatting.
Use losecursor when reach end of line, if losewrap.
* cm.h: New fields to handle multi-line and multi-char motion,
and both max and min cost for certain operations.
* term.c (term_init): Init those fields.
* term.c (clear_end_of_line_raw): Don't clear last char of last line
if autowrap.
* abbrev.c (Finsert_abbrev_table_description): Make 2nd arg optional.
1989-06-23 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c, lisp/term/x-win.el: C routine Fscreen_color_p now lisp
function x-color-screen-p in x-win.el.
(x_set_cursor_color): New method: first disallow same cursor as
background, then if cursor not foreground, use it as cursor
foreground.
1989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lisp.h (XPNTR): Don't define if already defined.
1989-06-22 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
* screen.c: New subrs Ficonify_screen, Fdeiconify_screen,
Fread_mouse_position, Fset_mouse_position.
* xterm.c: New functions x_deiconify_screen, x_iconify_screen.
1989-06-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fsplit_window, change_window_height):
Enforce minimum of 2 for window_min_width and window_min_height.
1989-06-22 Joseph Arceneaux (jla@galapas.ai.mit.edu)
* dispnew.c (unhold_window_change): Don't set and unset in_display
before and after calling change_screen_size.
1989-06-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* buffer.c (Fkill_buffer): Ignore errors deleting auto-save file.
Delete only if delete-auto-save-files.
* data.c (Fmake_local_variable): Don't change value if unbound.
1989-06-20 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* screen.c (Fselect_screen): Use x_set_mouse_position instead of
x_enter_screen.
* xterm.c (x_enter_screen): Deleted, now merged with
* xfns.c (x_set_mouse_position): If the position is negative, use
the center screen position.
* data.c (swap_in_symval_forwarding): Declared tem1.
(Fset): Changed variable name void to voide. Also, set it to a C
true/false, rather than Qt or Qnil.
1989-06-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* eval.c (Fdefvar): Operate on default value if sym is buffer-local.
(Fdefconst): Likewise.
Allow buffer-local variables to be void in one buffer
or in the default value.
* data.c (swap_in_symval_forwarding): New function.
(Fboundp, Fsymbol_value): Use that.
(default_value): New function.
(Fdefault_value): Use that.
(Fdefault_boundp): New function, uses that.
1989-06-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile: New variable OLDXMENU has filename of libXMenu.a
as a target. Make temacs depend on it.
1989-06-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile [HAVE_X11, HAVE_X_MENU]: Build oldXMenu.
* xmenu.c: Get XMenu.h from sibling dir.
* buffer.c (Fkill_buffer): Return t if buffer is killed.
Delete auto-save file if any.
1989-06-09 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* window.c: Initialize auto_new_screen to 0 (nil).
* screen.c (make_screen): Added auto_lower to the list of screen
elements initialized.
(make_minibuffer_screen): Likewise.
1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fset_window_point): Don't lose if window's buffer is
not current.
1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (Fx_open_connection): Added 9 Lisp variables
defined by the screen and server.
1989-06-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-pmax.h: New file.
1989-06-08 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c: Removed superfluous definition of gray_bits.
1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-hp9000s300.h: Define NEED_BSDTTY unless NOMULTIPLEJOBS.
1989-06-07 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* emacs.c (Fkill_emacs): If under X, call
Fx_close_current_connection. This has fixed the "bad file" bug.
* xfns.c (Fx_close_current_connection): Added this subr which for
the moment serves only to close the X-connection when killing emacs.
1989-06-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-hp9000s800.h: Define NEED_BSDTTY here.
* s-hpux.h: Not here.
1989-06-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s/s-hpux.h: Define NEED_BSDTTY.
1989-06-06 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_new_selected_screen): Make the new selected_screen
and it's selected_window's screen be the same.
(x_enter_screen): Calculate the middle of the screen, and warp the
mouse there. Also, raise the screen before doing so.
1989-06-05 Joseph Arceneaux (jla@cream-of-wheat.ai.mit.edu)
* xterm.c (x_set_window_size): If not already in DoDsp (checked
with variable in_display) then DoDsp here. Handles redisplay
after screen configuration.
(x_error_handler): Print out stuff about the error if we're in
debug mode.
* dispnew.c (change_screen_size): No longer call DoDsp here.
1989-06-05 Chris Hanson (cph@kleph)
* syntax.c (Fmodify_syntax_entry): Change documentation string to
reflect earlier change to action of `p' syntax bit.
1989-06-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lread.c (read1): Don't accept "" in middle of string.
1989-05-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* search.c (Freplace_match): If \N has nothing to insert,
insert nothing.
1989-05-29 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
* xfns.c (Fx_create_screen): If parms is nil and
Vx_screen_defaults isn't, then use them.
(Fdisplay_buffer): Call Fx_create_screen with Qnil.
1989-05-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* syntax.c (scan_lists): Once within a word, treat Squote like Sword.
1989-05-24 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* dispnew.c (change_screen_size): DoDsp if not pretend.
1989-05-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* search.c (skip_chars): Dumb error checking for \.
1989-05-22 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* screen.c (Fselect_screen): Under X, basically just warp the
cursor into the desired screen. The event handler will then do
the right thing.
(Frestore_screen_configuration): Don't set the mouse position.
* window.c (Fselect_window): If window's screen is not selected,
call Fselecte_screen.
(Fdisplay_buffer): Call Fx_create_screen with x-screen-parameters
as argument instead of nil.
* keyboard.c (clear_waiting_for_input): Don't call
x_new_selected_screen here.
* xterm.c (XTread_socket): Add case slots for CirculateNotify and
CirculateRequest events.
1989-05-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* doc.c (Fsubstitute_command_keys): Evaluate \\<...> keymap
in proper buffer.
* keymap.c (Fapropos_internal): New Lisp function, old apropos
but only returns a list.
1989-05-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (Fopen_network_stream): Don't set kill-without-query.
1989-05-19 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_new_selected_screen): This now takes a struct screen
pointer as parameter.
(XTread_socket): Call x_new_selected_screen *before* dumpborder.
1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (x_window_to_scrollbar): If the caller's not interested
in the names--passing 0 for last two parameters--just return the
screen pointer.
* xterm.c (x_enter_screen): Added this function for warping the
pointer into a screen.
1989-05-16 Chris Hanson (cph@kleph)
* syntax.c (scan_lists, scan_sexps_forward): Treat characters
whose "prefix" bit is on as whitespace when they are encountered
between expressions. When they occur within expressions they are
treated according to their syntax code.
1989-05-16 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_new_selected_screen): Don't call Fselect_screen.
Just do everything here.
* window.c (Fselect_window): If the screen associated with the
window is not selected, warp the mouse, cause an EnterNotify event
which then causes the proper screen to become selected. This does
*not* call Fselect_screen.
* screen.c (Fselect_screen): Now this is *only* a lisp subr. It
just calls Fselect_window on the selected window of the screen.
1989-05-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c (Fsubst_char_in_region): If NOUNDO, do increment tick,
but maybe also increment save-tick.
1989-05-15 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_set_window_size): Only one #ifdef HAVE_X11 due to new
macro in:
* xterm.h: New macro XChangeWindowSize for both X10 and X11.
* xfns.c (Fx_create_screen): Use XCreateWindow instead of
XCreateSimpleWindow to directly set some extra attributes.
1989-05-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* syntax.h (SYNTAX_PREFIX): New macro.
* syntax.c (Fmodify_syntax_table): Handle `p'; set new flag.
(describe_syntax): Describe new flag.
(Fbackward_prefix_chars): Move back over such chars.
* lread.c (read1): Dumb errors in last change.
1989-05-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lread.c (read1): Error if EOF after `?' or in string.
* sysdep.c (init_sys_modes) [IBMRTAIX]: Typo; had s for sg.
1989-05-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* s/s-usg5-3.h: Define HAVE_SYSVIPC?
* alloc.c (Fmake_byte_code): If purifying, purecopy all elements.
* ymakefile (LIBXMENU): Use -loldX.
Find libXMenu11.a in special place.
1989-05-12 Joseph Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c (Fx_create_screen): If user has specified
`x-iconic-startup' then start emacs in iconic form.
Look for icon position in `icon-left' and `icon-top', or use
window postion.
* xterm.c (x_term_init): If server doesn't respond, use fatal
instead of error. Also tell user about -d option.
1989-05-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c (init_sys_modes, reset_sys_modes):
Handle TIOCGLTC even if HAVE_TERMIO.
* print.c (Qprint_escape_newlines): New variable.
* minibuf.c (read_minibuf): Make it t locally in minibuffers.
* fileio.c (Fcopy_file): Check for error on close.
1989-05-10 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
* xfns.c (adjust_scrollbars): Don't subtract 2 from
h_scrollbar_height when calculating `length'.
1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* eval.c (call_debugger): Set entering_debugger.
(find_handler_cause): Don't enter debugger if that's set.
(Fbacktrace): Clear it; we are presumably in the debugger.
* m/m-sps7.h: New file.
1989-05-08 Joseph Arceneaux (jla@rice-chex.ai.mit.edu)
* xterm.c (XTread_socket_hook): For X11, on map and unmap events
check the window manager hints for iconification status.
* xterm.c (x_make_widow_icon): For X11, just request
iconification of the window manager.
1989-05-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m/m-clipper.h: New file.
1989-05-07 Joseph Arceneaux (jla@corn-chex.ai.mit.edu)
* xfns.c (adjust_scrollbars): Don't subtract 2 from
v_scrollbar_width when calculating `height'.
* xfns.c (x_set_foreground, x_set_border_pixel): Finished color
coordination. Scrollbar border, thump-arrows, and slider pixmap
linked with foreground color; slider border with window border.
1989-05-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lread.c (read1): Handle octal integers.
* macros.c: Doc fix.
* search.c (Fstore_match_data): Allow ints instead of markers.
* keyboard.c (get_char_menu_prompt): New function; does menu prompting
based on current keymaps.
1989-05-05 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
* xfns.c (Fx_set_face): Rewrote the doc-string and renamed the
parameters.
1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* unexec.c: New control parameters COFF_BSD_SYMBOLS, KEEP_OLD_PADDR,
KEEP_OLD_TEXT_SCNPTR, ADJUST_TEXT_SCNHDR_SIZE, ADJUST_TEXTBASE,
HEADER_INCL_IN_TEXT.
* unexec.c: Define IN_UNEXEC as flag for config.h.
* keymap.c: Fapropos, etc., deleted. (Now in Lisp code.)
* eval.c (Fcommandp): Byte code object is command if interactive slot
exists at all.
1989-05-05 Chris Hanson (cph@kleph)
* process.c [HPUX && !NOMULTIPLEJOBS]: Include <bsdtty.h>, which
defines TIOCGPGRP.
1989-05-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* data.c (Faref, Farray_length): Handle byte-code objects.
* fns.c (Flength, concat): Likewise.
* data.c (Faref, Faset, Farray_length): Rename arg VECTOR to ARRAY.
* m/m-hp9000s300.h: Undefine NOMULTIPLEJOBS.
* keyboard.c (Fcommand_execute): Treat bytecode object as function.
* callint.c (Fcall_interactively): Separate decoding of fcn
from handling of it.
* alloc.c (Fmake_byte_code): Renamed from Fmake_compiled_code.
Make it pure if Vpurify_flag is non-nil.
(Fpurecopy): Handle byte-code objects.
* keyboard.c (get_char): Use Fsit_for for echoing timeout, not alarm.
Do this before timeout for auto-save since the latter is longer.
(request_echo): Function deleted.
({set,clear}_waiting_for_input): No need for echo_now, echo_flag.
1989-05-04 Joseph Arceneaux (jla@gracilis.ai.mit.edu)
* xterm.c (x_lower_window, x_raise_window): Don't do anything if
the window isn't visible.
* xfns.c (x_set_foreground_color): Recolor the scrollbar windows
appropriately, compatible with xterm.
* xterm.c (x_reset_cursor): Do cursor recoloring.
1989-05-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fns.c (Frandom): With number as arg, return value < that number.
* sysdep.c [USG, BSD4_1] (random): Call `rand' twice, to get
30 bits of significance.
1989-05-03 Joe Arceneaux (jla@gracilis.ai.mit.edu)
* xterm.c (x_draw_box): Use the cursor_gc.
* xfns.c (x_set_cursor_color, x_create_screen): Do a better job
with cursor colors, and use 0 line width for the cursor_gc.
1989-05-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
Begin changing representation of compiled functions.
* lisp.h (enum Lisp_Type): New type code Lisp_Compiled, like a vector.
(COMPILED_*): Names for slots in those vectors.
* alloc.c (Fmake_compiled_code): New function.
* eval.c (Fcommandp, Feval, Ffuncall, funcall_lambda):
Handle fcns of type Lisp_Compiled.
(Fcommandp, Fapply): Avoid directly nested ifs.
* print.c (print): Handle Lisp_Compiled objects.
* callint.c (Fcall_interactively): Likewise.
* doc.c (Fdocumentation): Likewise.
* keyboard.c (Fopen_dribble_file): nil as arg means close it.
* abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c:
* casefiddle.c, cmds.c, data.c, dired.c, dispnew.c, doc.c, editfns.c:
* eval.c, fileio.c, filelock.c, floatfns.c, fns.c, keyboard.c:
* keymap.c, lread.c, minibuf.c, mocklisp.c, print.c, process.c:
* screen.c, search.c, syntax.c, undo.c, vmsfns.c:
Many doc fixes.
1989-04-30 Joseph Arceneaux (jla@hobbes)
* xterm.c (XTring_bell): Wasn't passing selected_screen to XTflash.
Fixed this.
* xterm.c (XTread_socket): Don't check if server died under
X11. Temporary.
1989-04-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fdelete_other_windows): Bug getting top edge.
1989-04-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keyboard.c (get_char): Auto save if enough time elapses.
(auto_save_timeout): New Lisp variable.
* xdisp.c (try_window, try_window_id): Set w->redo_mode_line
if should show percentage instead of `Bot'.
1989-04-29 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c (x_term_init): Don't set visible bell, as it pre-empts
.emacs control.
1989-04-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* doc.c (syms_of_doc): Make Vdoc_file_name a Lisp variable
named internal-doc-file-name.
1989-04-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-news.h: m-news800.h renamed.
Removed EXPLICIT_SIGN_EXTEND and COMPILER_REGISTER_BUG.
Removed SEGMENT_MASK and sigmask.
LOAD_AVE_TYPE is now `double'; LOAD_AVE_CVT changed too.
Define m68000 if not defined.
1989-04-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile: If COFF_ENCAPSULATE, define LD as gcc -nostdlib.
* sysdep.c: Unconditionally include sys/ioctl.h.
* m/m-mips.h [USG]: Define LIBS_TERMCAP.
If HAVE_X11, define HAVE_VFORK.
1989-04-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m/m-altos.h: Use termcap, not terminfo.
Define COFF_ENCAPSULATE if using gcc.
Use built-in alloca if using gcc.
Define PURESIZE.
* lread.c (absolute_filename_p): On ALTOS, @ means absolute.
* process.c: Missing #endif.
* fileio.c (Finsert_file_contents): Define `p' for last change.
* buffer.c, floatfns.c: Typos in DEFUN doc strings.
* keyboard.c: Typo in DEFVAR_LISP doc string.
* window.c (Fdelete_other_windows): Fix confusion about type of W.
1989-04-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile (LDFLAGS): Forgot to use LD_SWITCH_SITE.
* xterm.c (XTflash): Draw the bars here.
(x_invert_screen): Change to invert entire window.
(stufflines): Changed args to XClearArea.
(XTread_socket): Clean up handling of KeyPress events.
For LeaveWindow, ignore uninteresting ones and handle autolower.
For FocusIn, ignore if unknown window, and handle autoraise.
For MotionNotify, add real handling for X11.
For ConfigureNotify, count width of scroll bars.
Don't call change_screen_size redundantly; ignore linked expose events.
Update left and top pos if nec.
For button events, ignore if not in known window or scrollbar.
(x_new_selected_screen): Takes screen as arg.
(x_error_handler): Arg type different for X11.
(x_set_window_size) [HAVE_X11]: Call change_screen_size
before x_wm_set_size_hint.
(x_make_window_visible): Make scroll bars visible too, if any.
(x_lower_window): New fn.
(x_wm_set_size_hint): Take account of width of scroll bars.
Ior specified hint flags with those already set.
* xterm.h (HSCROLL_HEIGHT): HSCROLL_WIDTH is renamed.
(MAXWIDTH): Increased to 300.
(MAXHEIGHT): Increased to 100.
(DISPLAY_SCREEN_ARG): Remove parentheses.
(ButtonReleased, WhichMouseButton): Delete definitions.
* xmenu.c: Adapted to new X interface. X11ONLY replaced with xDISPLAY.
Many X11 conditionals removed.
* xfns.c (x_set_cursor_color): Special case if matches foreground.
(Fx_create_screen): Typo for HSCROLL_HEIGHT.
Use BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT.
Set PRETEND arg to change_screen_size.
Delete gray_bits; this value made global.
Don't call install_*_scrollbar here.
(x_set_horizontal_scrollbar): Define this for real.
(x_set_vertical_scrollbar): Corrent args to install_vertical_scrollbar.
(install_vertical_scrollbar): New local slider_pixmap, and set it.
Delete locals GC_values, temp_gc.
Change arrow_width, arrow_height (appears to be undefined) to 16.
Un-if-0 this code.
Use border_pixel, not foreground_pixel, for scrollbar.
(install_horizontal_scrollbar): Define this for real.
(adjust_scrollbars): Handle horizontal scrollbar.
Define XMoveResizeWindow as XConfigureWindow if X10 to simplify.
(x_resize_scrollbars): Remove #if 0 from quick-exit case.
Really handle horizontal scrollbar.
Simplify using new macro.
(Fx_get_mouse_event): Mostly ignore events other than buttons.
Use many new macros to handle X10 and X11.
(encode_mouse_button): New fn: encoding of which button, broken out.
* xfns.c (left_arror_cursor, etc.): New vars.
(x_screen_parm, init_x_parm_symbols, x_set_screen_param):
Define X_PARM_AUTOLOWER.
* xdisp.c (display_string, redisplay-window, DoDsp):
Use SCREEN_WIDTH, SCREEN_HEIGHT.
1989-04-21 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* indent.c (compute_motion): Use SCREEN_WIDTH.
* dispnew.c (update_line): Use SCREEN_WIDTH.
(update_screen): Use SCREEN_HEIGHT.
1989-04-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c: Rename Vauto_new_screen_hook, Vdisplay_buffer_hook, and
Vtemp_buffer_show_hook to ..._function.
* keyboard.c: Rename mouse_hook to mouse_event_function.
* buffer.c, buffer.h, cmds.c: blink-paren-hook and auto-fill-hook
renamed to -function.
* fileio.c (Finsert_file_contents): Allow quit in read.
(Fwrite_region): Allow quit in write.
1989-04-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* doprnt.c (doprnt): Comment out %b since sprintf can't do it.
* Change X11 to HAVE_X11 everywhere.
* m-sun3.h: Define C_SWITCH_MACHINE as -fsoft.
1989-04-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c: Don't define wstopsig, wtersig if already defined.
* sysdep.c [VMS] (sys_getenv): Copy the string before returning it.
* m-alliant.h: Define `vector'.
1989-04-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (wait_reading_process_input) [sun]: If SIGIO failed
to be sent, send it by hand.
1989-04-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fdelete_other_windows): Recenter window to avoid scrolling.
1989-04-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* indent.c: Include screen.h.
* indent.c (pos_tab_offset, Fvertical_motion): Compute internal width
correctly and uniformly.
* xdisp.c (try_window, try_window_id): Use exact internal width
to update tab_offset.
(try_window_id): pos_tab_offset value needs adjustment only if
starting a line in middle of a character.
1989-04-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c [USG]: If TIOCGWINSZ defined, include sioctl.h.
1989-04-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* eval.c (Fbacktrace): Set Vprint_level to 3 throughout.
* fns.c (Fload_average): nlist data structure is funny on convex.
* window.c (scroll_command): Scroll at least 1 line in specd direction.
* cm.c (calccost): NTABS was off by 1 sometimes; take account of
the starting position modulo 8.
* fileio.c (Fexpand_file_name): Don't simplify /../ at start of name.
* callint.c: Doc fixes.
* process.c (create_process):
On all USG systems, not just IRIS and AIX, don't pre-open pty's tty.
Move the setpgrp done for USG (no real change).
Tell child_setup to do a setpgrp.
* callproc.c (child_setup): New arg says whether to setpgrp.
Never setpgrp on USG.
(Fcall_process): Tell child_setup not to setpgrp.
* sysdep.c (init_sys_modes, reset_sys_modes): Don't try to hack
TIOCGLTC, TIOCGETC, etc. if HAVE_TERMIO.
Don't bother to undef these for XENIX.
1989-04-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile (LIBES): Put LIBX first; it may depend on LIBS_MACHINE.
* m-sequent.h: Define HAVE_ALLOCA.
1989-04-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* term.c (term_init): Can't use scroll region if no abs positioning.
1989-04-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (Fopen_network_stream): Close desc. if connect fails.
1989-03-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* minibuf.c (Fall_completions): gcprotect ALLMATCHES and TAIL,
not STRING.
* keyboard.c (read_avail_input): Handle EBADSLT like EAGAIN.
1989-03-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* term.c (term_init): Either ic or ip or im or IC => can insert chars.
* minibuf.c (read_minibuf_unwind): Ensure minibuf writable for erasure.
1989-02-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-convex.h: Undefine NO_ARG_ARRAY.
Changed defns of DATA_SEG_BITS and XINT.
Define alloca for GCC compilation.
1989-02-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m-ibmrt-aix.h: Define BROKEN_FIONREAD.
1989-02-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keymap.c (Fdefine_prefix_command): Set both value and fn defn,
with separate syms specified for each purpose.
1989-02-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* callproc.c (Fcall_process): Open /dev/null with O_WRONLY.
1989-02-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (window_scroll): Allow scrolling to very end (empty screen)
if that's exactly where we wanted to scroll to.
1989-02-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* data.c (Fkill_local_variable): New local to simplify big stmt.
1989-02-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xdisp.c (display_text_line): cvt chars to glyfs for overlay arrow.
* sysdep.c (init_sys_modes, child_setup_tty) [IBMRTAIX]:
Don't ignore BRK, and don't signal it.
* process.c (pty): An IBMRTAIX conditional.
(create_process): Another here.
1989-02-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keymap.c (Fdefine_prefix_command): Use Ffset, not Fset.
1989-02-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (Fset_visited_file_modtime): New fn.
* xfns.c (Fx_create_screen) [X10]: XCreateWindow wants pixmaps as args.
1989-02-03 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (Fsit_for): It accepts 3 args.
1989-02-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xterm.c (XTread_socket): For X10, make EVENT an XKeyPressedEvent.
(x_set_resize_hint): Call XSetResizeHint.
* process.c: Declare interrupt_input.
* sysdep.c (init_sys_modes): TIOCSTART, not TCSTART.
1989-01-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xterm.h (struct x_display): `GC' renamed `gc' in all field names.
Field `ColorMap' renamed to `color_map'.
(face_gc_values): face_GC_values renamed.
1989-01-28 Joe Arceneaux (rms@sugar-bombs.ai.mit.edu)
* xterm.h (face_GC): Var deleted.
(struct x_display): New field face_GC.
(VSCROLL_WIDTH, HSCROLL_WIDTH): Moved here.
(MINWIDTH, MINHEIGHT, MAXWIDTH, MAXHEIGHT): New vars. Eliminate them!
(BLACK_PIX_DEFAULT): Typo in definition.
(WHITE_PIX_DEFAULT): Typos in definitions; was the black default.
* xterm.c: Include ioctl.h only if BSD.
Include termio.h otherwise.
(XMapWindow) [X11]: Typo in definition.
(METABIT): New definition; maybe not needed.
(hostname, id_name, invocation_name, Vcommand_line_args): New vars
declared for main icon title.
(x_debug): Init to 1 if XDEBUG defined.
(dumpglyfs) [X11]: Changed args to XDrawImageString.
If debugging, do XFlushQueue.
Use screen's face_gc rather than old global one.
(XTflash) [not BSD]: Avoid `struct itimerval'; use `alarm'.
(events): New table of event type names.
(XTread_socket): EVENT is now an XEvent even on x10.
Translate modifier key 1 into meta-bit.
For EnterNotify event, don't dumpborder or x_new_selected_screen
if there is an x_focus_screen.
For LeaveNotify event, don't ignore due to nonzero subwindow.
For ConfigureNotify, change screen size.
Do `select' check for SIGHUP only if HAVE_SELECT.
(x_new_selected_screen): An arg, SCREEN.
(x_display_cursor): dumpglyfs args changed.
(x_draw_box): Add GC arg to XDrawRectangle; change other args.
(clear_cursor): Change args to XClearArea.
(dumpborder): Check x_input_screen, not selected_screen.
(x_text_icon): For X11, new arg to XGetDefault.
Cast values stored in icon_label.
(x_term_init): Hair to calculate name for icon.
Don't init_sigio unless SIGIO defined.
Call Fset_input_mode.
For X11, new arg to XGetDefault.
Set _Xdebug if debugging.
(x_new_font) Use XGetFont.
Get GC values from the screen structure.
(x_reset_cursor): Don't call XRecolorCursor.
(x_set_window_size): Call x_wm_set_size_hint, not x_set_size_hint.
(x_set_resize_hint): For X11, call x_wm_set_size_hint.
(x_wm_set_size_hint, x_wm_set_window_state, x_wm_set_icon_pixmap):
(x_wm_set_icon_position): New fns for X11.
* xfns.c: For X11, include Xutil.h
(VSCROLL_WIDTH): Moved to xterm.h.
(face_GC): Don't declare it.
(id_name): Declare this.
(x_decode_color): Check `white' and `black' first of all.
(x_set_foreground_color) [X11]: Reset foreground and background.
(x_set_background_color) [X11]: Missing arg to XSetWindowBackground.
(x_set_cursor_color) [X11]: Reset foreground and background.
(x_read_mouse_position) [X11]: Changed call to XQueryPointer.
(x_set_mouse_position) [X11]: Add args to XWarpPointer.
(Fx_create_screen): Set some temporary geometry parms at the beginning.
For X11, changed setup of iconidentity, and implement rubber-banding.
For X11, implement merging individual geometry parms.
For X11, changed args to XCreateSimpleWindow.
For X11, call x_wm_set_size_hint.
Specify name when creating icon.
Don't call XSetForeground, XSetBackground before making border tile.
New var `cursor_bits'. Init the screen's GC's.
* screen.c (Frubber_band_rectangle): For X11, just return nil.
1989-01-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* buffer.c (Fbuffer_modified_tick): New fn.
* window.c (Fnext_window): Accept 3 args from Lisp.
1989-01-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c (sys_suspend): Handle case of SIGTSTP but not BSD.
1989-01-20 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c (init_sys_modes): Do TIOCSTART if def, like TCXONC.
1989-01-19 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (wait_reading_process_input): New 2nd arg is extra usecs.
All callers changed.
* dispnew.c (Fsit_for, Fsleep_for): New 2nd arg says 1st arg
counts in milliseconds.
* buffer.c (Fkill_all_local_variables): Implement permanent locals.
1989-01-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keymap.c (get_keyelt): Allow indirection within (STRING . DEFN).
1989-01-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (wait_reading_process_input): If select returns there
is kbd input, but detect_input_pending can't find it, signal SIGIO.
This may avoid the X loop-on-logout bug.
* process.c (wait_reading_process_input): Flush fix_screen_hook.
* termhooks.h, term.c: Likewise.
* xdisp.c (Fredraw_display): Don't do set_terminal_modes.
* dispnew.c (Fredraw_screen): Likewise.
* eval.c (Fcond): If no args, return nil.
1989-01-15 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* eval.c (Fbacktrace_frame): Require one arg. Return nil if too high.
1989-01-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* minibuf.c (read_minibuf): Set Vminibuf_scroll_window before
switching windows.
* xterm.c (XTread_socket): If no HAVE_SELECT, wait for input
if new arg WAITP is non0. Do this by not bothering to test for
presence of input before reading some.
Check for dead connection only if new arg EXPECTED is nonzero.
All callers changed (keyboard and sysdep).
* keyboard.c: Simplify keyboard input.
(read_avail_input): Don't assume buffer is empty.
Don't call get_input_pending; do FIONREAD here.
Don't do FIONREAD if read_socket_hook, just tell it don't wait.
Arg EXPECTED is passed to read_socket_hook.
(input_available_signal): Use read_avail_input.
(gobble_input): Use read_avail_input; arg EXPECTED passed along.
(get_input_pending): Let gobble_input do the work.
VMS keyboard input should have interrupt_input nonzero.
* keyboard.c (Fset_input_mode, init_keyboard): [VMS] Always set
interrupt_input to 1.
(get_input_pending): Special case deleted.
1989-01-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (auto_save_1): Always make auto-save file owner-writable.
* eval.c (Fbacktrace_frame): New fn.
* buffer.h: Define `fieldlist' field in a buffer.
* buffer.c (Fregion_fields): Return list of fields overlapping
specified region.
(syms_of_buffer): New variable buffer-field-list.
(reset_buffer): Clear the fieldlist.
(init_buffer_once): Set up default and flag for buffer-field-list.
* insdel.c (prepare_to_modify_buffer): If check_protected_fields,
call Fregion_fields to detect error.
Delete buffer_modify_hook.
* callint.c (Fcall_interactively): Bind `command-debug-status'
for each interactive command.
* keyboard.c (command_loop_1): Count # commands read.
(num_input_keys): New Lisp variable.
* m/m-gould.h, m/m-ibmrt-aix.h, m/m-sequent.h, m/m-sparc.h,
* m/m-sun3.h, m/m-symmetry.h: Define A_TEXT_SEEK.
* unexec.c (copy_text_and_data): Don't check A_TEXT_OFFSET,
just A_TEXT_SEEK.
* unexconvex.c: Likewise.
* unexconvex.c: machine/*.h unconditionally.
* process.c (pty): Delete RTU, HPUX, IRIS alternatives to
PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
* s/s-hpux.h: Define PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF.
* s/s-rtu.h: Likewise.
* s/s-iris*.h: Define PTY_TTY_NAME_SPRINTF.
* sunfns.c (Fsun_change_cursor_icon): Avoid ambiguity in eval order.
1989-01-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* data.c (Fdefault_value): If var set up with default value as current,
take the current value slot, more up to date than the default slot.
1989-01-11 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (init_display): Don't handle SIGWINCH if using X.
* fileio.c (Fdo_auto_save): If file has shrunk, turn off auto-save.
This avoids duplicate messages and allows M-x auto-save to turn it on.
* lread.c (Fload): Look in Vafter_load_alist.
(syms_of_load): Define after-load-alist.
1989-01-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dired.c (Fdirectory_files): 4th arg NOSORT non-nil means don't sort.
* syntax.c (scan_lists): Change Sendcomment case so that
ignoring comments works even for newline-terminated comments.
* minibuf.c (read_minibuf): Default Vminibuf_scroll_window
to the window that was selected.
1989-01-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fns.c (do_yes_or_no_p): Typo, call2 => call1.
* eval.c (Fbacktrace): Each frame item should have a newline.
* emacs.c (Fkill_emacs): Don't run hook if noninteractive.
* eval.c: Define Vrun_hooks.
(syms_of_eval): Initialize Vrun_hooks.
* indent.c (Fmove_to_column): Use del_range; Fdelete_backward non ex.
* ymakefile (objs, floatfns.o): Re-add this file.
(LIBX): Install X11 case.
* ymakefile (LIB_GCC): Now a cpp macro, like all other LIB_...
Define null if not using GCC.
* lread.c (unreadchar): New function to unread a char
by stuffing it back into its stream. Now unread chars
work properly between multiple reads.
(UNREAD): Now calls that function.
(readchar): Don't us `unrch'; variable deleted.
(various): Don't initialize `unrch'.
(readevalloop): No need to save and restore `unrch'.
(read1): Don't unread a -1.
* keymap.c (get_keyelt): If keymap defn is (STRING . FOO),
remove just FOO. Will help HierarKey.
1989-01-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* unexmips.c [IRIS_4D]: Don't include fcntl.h.
(unexec): Look for LIT8, LIT4 sections iff they are defined.
* buffer.c (Fkill_all_local_variables): Force redisplay of mode lines.
1989-01-02 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* emacs.c (main): Do the setpgrp before handling -t.
* keyboard.c (Fsuspend_emacs): Use run-hooks to run suspend-hook
and suspend-resume-hook.
* buffer.c (Fkill_buffer): Execute kill-buffer-hooks
with buffer to be killed as current buffer.
* buffer.c (count_modified_buffers): ModExist renamed.
* emacs.c (Fkill-emacs): Execute kill-emacs-hook.
* fileio.c (auto_save_1): Set auto_save_mode_bits from visited file.
(Fwrite_region) [not VMS]: If auto-saving, write file with that mode.
* fileio.c (Fwrite_region): If START is a string, write that string.
1989-01-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lisp.h (XMARKBIT, XSETMARKBIT): If mark bit is sign bit,
use sign-test for XMARKBIT; value is then 1 or 0.
Make XSETMARKBIT test 2nd arg for nonzeroness only.
* m/m-mips.h: Last batch of changes are only for USG.
(XMARKBIT, XSETMARKBIT): Deleted; the new default ones are good.
* editfns.c (Fformat): Use princ for %s.
New format %S converts everything (even strings) with prin1.
* doprnt.c (doprnt): Treat %s like %S.
* print.c (Fprin1_to_string): Opt 3nd arg non-nil does princ.
1988-12-31 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* data.c (Fstring_to_int): Correct max # args.
1988-12-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile (LIBES, LIB_GCC): If using GCC, link with gnulib.
1988-12-29 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c: Many doc improvements.
1988-12-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lisp.h (CHECK_NATNUM): New macro.
* indent.c (Fmove_to_column): 2nd arg t means indent till spec'd column
or change tab to spaces if necessary.
* m/m-iris4d.h: (Conditionally) delete DEFAULT_ENTRY_ADDRESS
and change START_FILES and LIB_STANDARD.
* s/s-iris3-6.h: Define sigblock as no-op.
* m/m-mips.h: Cancel defn of VIRT_ADDR_VARIES, `static'.
Undef SIGIO. Define BROKEN_FIONREAD.
Define various HAVE_... flags a la BSD.
Add options, libraries for linking and compilation.
* unexmips.c (unexec): Handle additional optional sections now likely.
New scheme for recording what sections there are.
Make handling of the LIT8,LIT4 sections conditional (not on IRIS).
* fns.c (do_yes_or_no_p): New interface to Lisp function yes-or-no-p.
Allows the user to redefine that function.
All callers of Fyes_or_no_p changed.
* data.c (Fmakunbound): Don't allow nil or t as arg.
* m/m-orion105.h (LOAD_AVE_TYPE): Now `long'.
1988-12-27 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (unhold_window_change):
Don't signal SIGWINCH. Instead, do pending size-changes here,
while holding any new size-changes that arrive, so they become
pending. Loop around to get the new pending ones.
(change_screen_size): Clear any previous pending size-change.
* search.c (place): Was clipping to (1- (point-max)) by mistake.
1988-12-24 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fdelete_window): Give all this window's space
to one adjacent sibling.
1988-12-23 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keymap.c (describe_alist): Don't lose on non-cons-cell alist elts.
(Fwhere_is_internal): Don't fail to step down the alist.
(Faccessible_keymaps): Considerable confusion in alist case.
* lread.c (Feval_current_buffer, Feval_region):
Save and restore point as a marker, not a number.
Don't restore it at all if printflag is t.
* print.c (float_to_string): Mostly rewritten; output format
is now a printf %-spec.
(Qfloat_output_format): Doc changed to match.
1988-12-22 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* ymakefile (obj): Include floatfns.o.
* data.c (syms_of_data): Fix typo Snumberp_or_marker_p.
Allow keymaps to have other keymaps as tails.
Thus, one keymap can inherit from another.
* keymap.c (Fwhere_is_internal): Ignore non-cons elements of alist.
(Faccessible_keymaps): Support symbols as alist indices.
Ignore alist elements that aren't conses.
* m/m-sun386.h (LDAV_SYMBOL): Define as "avenrun" with no underscore.
* lread.c (read_escape): Support ANSI C `\x...' hex escapes.
* bytecode.c (Fbyte_code): Fix jump operators for change in `pc'.
1988-12-21 Joe Arceneaux (jla@gracilis.ai.mit.edu)
* ymakefile: Commented #endif LISP_FLOAT_TYPE. Also changed
the code pertaining to X11 to use the same files as X10.
* bytecode.c (Fbyte_code): Declared unsigned char *pc.
1988-12-19 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xterm.c: Finished a first cut of the X11 version.
1988-12-18 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* sysdep.c (select): `buf' is now unsigned char.
1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m/m-elxsi.h: Don't define WORD_MACHINE or CANNOT_DUMP.
Do define symbols for load average.
Define COFF and ADJUST_EXEC_HEADER.
1988-12-16 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
* sink.h, sinkmask.h: Same file now works for both X10 and X11.
* xterm.c, xfns.c (x_text_icon) Can now take new name as parameter.
1988-12-16 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m/m-is386.h: No need to undef HAVE_PTYS, HAVE_SOCKETS, SYSV_PTYS
since s-usg5-3.h no longer defines them.
1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* bytecode.el (Fbyte_code): Cache the pointer in the string
to avoid recalculating it at each fetch.
Also turn off the error check for stack overflow/underflow.
1988-12-14 Joe Arceneaux (jla@apple-gunkies.ai.mit.edu)
* xfns.c: Made the first cut for X11 version.
* xterm.c (x_reset_cursor): Did the X11 version.
1988-12-14 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keyboard.c (Fexecute_mouse_event): Set Vmouse_event. Doc fix.
Run Vmouse_hook at the end.
(syms_of_keyboard): Define var `mouse-hook'.
1988-12-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* term.c (insert_glyfs): Typo, was fetching G twice.
1988-12-10 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keymap.c (describe_buffer_bindings): Print mouse bindings too.
(describe_map): If have a chartab, use mouse-describe-key for prefixes.
* keymap.c (describe_{map,map_tree,alist}, describe_vector):
Extra arg mapping chars to their names. Calls changed.
* syntax.c (describe_syntax_1): Call changed.
* keymap.c (Vglobal_mouse_map): Make it exist unconditionally.
* keymap.c (apropos1): Clean up.
Do where-is-internal only if there is a function definition.
Use mouse-describe-key to turn mouse key sequences into strings.
(Fwhere_is): Check the mouse map too;
(Fwhere_is_internal): New arg is global map to use.
All callers changed in keypad.c and doc.c.
(where_is_string): New fn cvts result of Fwhere_is_internal to string.
1988-12-09 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* emacs.c (stack_bottom): New variable, set in main.
* alloc.c (Fgarbage_collect): Save a copy of the entire stack contents.
1988-12-07 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c (Funix_umask, Funix_sync): New functions.
* process.c (Fsignal_process): New function.
1988-12-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c (Fsubst_char_in_region): Fix typo in when to un-modify buf.
1988-12-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (create_process): Take the usg's setpgrp and the close-and
-open of the tty outside the TIOCNOTTY conditional, since TIOCNOTTY
is always missing outside BSD. Now the TIOCNOTTY conditional controls
only the TIOCNOTTY.
1988-12-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* lread.c (Feval_current_buffer, Feval_region):
If there is an error, don't restore original point.
* s-hpux.h (SHORT_CAST_BUG): Define this, for HPUX version 6.2.
* ymakefile (THIS_IS_YMAKEFILE): Define macro to tell m- files
to do special things.
* m/m-ns16000.h (LOAD_AVE_TYPE, etc.): Don't define them if USG.
* m/m-ns16000.h [USG]: Define various macros differently.
(munnari!sibyl.eleceng.ua.oz.au!ian@uunet.uu.net).
* sysdep.c (reset_sys_modes): Don't output a CR here.
* term.c (reset_terminal_modes): Do it here, but first
do a newline if it's a magic cookie terminal.
* sysdep.c (sys_suspend) [USG]: Use `nice' to set subshell pri. to 0.
* sysdep.c (TIOCSETN) [USG]: Use TCSETAW, not TCSETA.
* sysdep.c (setpriority) [USG]: No longer a no-op; use `nice'.
* keymap.c (Fwhere_is_internal): New 4th arg inhibits looking thru
indirect definitions--so you can search for one.
* alloc.c, fns.c, search.c: Doc fix.
1988-12-01 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* process.c (read_process_output): Insert with insert_before_markers.
* filelock.c (lock_file_1, lock_superlock):
If USG, use chmod instead of fchmod.
* environ.c (Fsetenv): Doc fix.
1988-11-25 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* eval.c (do_autoload): Verify FUNNAME is a symbol.
1988-11-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* fileio.c (Fread_file_name): New arg specifies initial minibuf cntnts.
* callint.c (Fcall_interactively): Calls changed.
1988-10-08 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* insdel.c (make_gap): Error if buffer size exceeds range of Lisp int.
1988-10-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fsplit_window): Prevent error in Fset_window_buffer.
* sysdep.c (gettimeofday): Store -1 thru tzp so caller knows invalid.
* xdisp.c (message): Pass 0 as new arg to doprnt.
* callint.c (Fcall_interactively): Likewise.
* editfns.c (format1):
* doprnt.c (doprnt): Allow 0 as FORMAT_END arg meaning null-terminated.
1988-10-05 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* keyboard.c: If UNIPLUS, include ioctl.h.
* sysdep.c (utime): Use new flag IRIS_UTIME, not IRIS.
* s-iris*.h: Define that flag.
1988-10-04 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* term.c (term_init): If have `im' capability, permit ins/del char
even without `ic'.
1988-10-03 Richard Stallman (rms@corn-chex.ai.mit.edu)
* m/m-hp9000s300.h: Conditionals for BSD vs HPUX.
* ymakefile: Look for C_SWITCH_SITE, LD_SWITCH_SITE.
1988-09-30 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* editfns.c (Fformat): Allow nulls in the format.
* doprnt.c (doprnt): Likewise. End of format string is new arg.
1988-09-28 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* m/m-7300.h: Undefine SHORTNAMES. Supposedly newer Unix now.
* print.c (print): Support new var print_length.
(syms_of_print): Define Lisp var print-length.
* eval.c (Fbacktrace): Print unevalled form with print_length = 3.
* Makefile (tags): Add TAGS as alternate target.
Process the files in ../lisp/term.
1988-09-27 Richard Stallman (rms@corn-chex.ai.mit.edu)
* doprnt.c (doprnt): Handle %-20s.
* editfns.c (Fformat): Likewise (make enough space for it).
* minibuf.c (do_completion): If get "Complete but not unique" twice
in a row, display all completions. New var last_exact_completion.
1988-09-26 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* dispnew.c (baud_rate): Now a Lisp variable, not a function.
* termcap.c (tputs) [emacs]: Use baud_rate as the speed.
1988-09-19 Richard Stallman (rms@gluteus.ai.mit.edu)
* window.c (Fset_window_configuration): Set deleted windows' buffer
to nil, via new function delete_all_subwindows.
* window.c (Fset_window_buffer): Reject deleted windows.
* window.c (init_window_once): Init the ->buffer fields
to satisfy error check in Fset_window_buffer.
* xmenu.c (Fx_popup_menu): 1st arg is now ((X Y) WINDOW).
* process.c (child_sig): If synch process terminates, clear
synch_process_pid and record synch_process_death.
* callproc.c (Fcall_process): Return synch_process_death.
Always set synch_process_pid and do it with SIGCHLD masked off.
* sysdep.c (wait_for_termination) [subprocesses and not VMS]:
Use alarms to check every second whether synch_process_pid is 0.
1988-09-17 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* xdisp.c (redisplay_window): If window-point is outside restriction
then correct it in the window.
* window.c (Fdelete_buffer): Don't change buffer's point to a value
outside its restriction.
* sysdep.c (init_sys_modes) [MULTI_SCREEN]: Set Vterminal_screen's
garbaged bit.
1988-09-16 Richard Stallman (rms@corn-chex.ai.mit.edu)
* keyboard.c (kbd_buffer_get_char): VMS now uses same code as Unix.
* vmsproc.c: New file for VMS only.
* callproc.c [VMS]: Omit Fcall_process and child_setup_tty.
* emacs.c (main) [VMS]: Call init_vmsproc and syms_of_vmsproc.
* lread.c (OBARRAY_SIZE): Change slightly to 509 (prime).
* keyboard.c, dispnew.c, term.c, xterm.c (meta_flag): MetaFlag renamed.
* keyboard.c (Fset_input_mode): 3rd arg sets meta_flag.
(syms_of_keyboard): Variable meta-flag deleted.
* sysdep.c (init_sys_modes): Don't override parity settings
if meta_flag is 0.
1988-09-15 Richard Stallman (rms@corn-chex.ai.mit.edu)
* search.c (Fsearch_forward, etc.): All buffer-search functions
return new the value of point if they succeed.
1988-09-13 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* cmds.c (Fnewline): Correct test of ARG1 to inhibit auto-fill.
1988-09-12 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* window.c (Fdelete_window): Put nil as buffer of the deleted window.
This makes select-window get an error earlier.
1988-09-06 Richard Stallman (rms@sugar-bombs.ai.mit.edu)
* search.c (search_buffer, string_match, looking_at):
Report matcher stack overflow as error, not just failure to match.
* data.c (Fmake_local_variable): Add local variable to simplify
too-complex expression.
* fileio.c (Fdo_auto_save): No "file has shrunk" msg if < 5000 chars.
See ChangeLog.2 for earlier changes.
Copyright (C) 1993, 2001, 2002, 2003, 2004, 2005, 2006, 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: 136a8e5c-4f83-403b-9132-874f1c47f8a9
|