File: ChangeLog

package info (click to toggle)
slime 1%3A20120525-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,696 kB
  • sloc: lisp: 40,236; ruby: 321; sh: 161; makefile: 129; awk: 10
file content (21311 lines) | stat: -rw-r--r-- 793,046 bytes parent folder | download
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
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
2012-05-25  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-oneliner): Use minibuffer width instead of the
	width of the current frame, minibuffer can be in a separate frame
	with a different width.
	Patch by Greg Pfeil (lp#1004252).

2012-05-21  Helmut Eller  <heller@common-lisp.net>

	Reduce dependecy on pre-defined faces.

	* slime.el (slime-apropos-symbol, slime-apropos-label): New faces.
	(slime-print-apropos): Use them.

	Reported by: Daimrod <daimrod@gmail.com>

2012-05-12  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (stream-force-output): Undo last few changes.

2012-05-11  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (stream-force-output): Use with-world-lock
	i.e. with-recursive-lock instead of with-mutex.
	* slime.el (sbcl-world-lock): New test.

2012-05-11  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (stream-force-output): Don't use
	with-deadline. Grab the world-lock instead.
	(condition-timed-wait): Use the :timeout argument for real.

2012-05-11  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (call-with-io-timeout): Not used. Deleted.
	* swank-sbcl.lisp (call-with-io-timeout): Deleted.

2012-05-07  Helmut Eller  <heller@common-lisp.net>

	Ignore linebreaks for the macroexpand test.
	SBCL should now also pass it.

	* slime.el (slime-test-macroexpansion=): New function.
	([test] macroexpand): Use it.

2012-05-06  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (condition-timed-wait): Undo previous change.
	The :timeout arg doesn't seem ready for production use.

2012-05-06  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (condition-timed-wait): Use the :timeout
	argument of sb-thread:condition-wait if supported.


2012-05-06  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (with-definition-source): Forgot to commit this
	one.

	* swank-allegro.lisp (string-to-utf8): Set the :null-terminate
	argument of excl:string-to-octets to nil.

2012-05-06  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (with-struct): Undo damage.
	* swank-sbcl.lisp (with-definition-source): New macro.

2012-05-06  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp, swank-rpc.lisp: iso-8859-1 is not same as
	latin-1-unix.

2012-05-06  Cyrus Harmon <ch-slime@bobobeach.com>
	    Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-pprint-eval-region): New command. No keybinding
	though.

2012-05-04  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp: Remove the SB-C::MERGE-TAIL-CALLS proclamation.
	It does nothing, and never did, actually.

2012-05-03  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-goto-source-location): Allow for
	:buffer-and-file locations, prefer buffer if the buffer exists.

	* swank-sbcl.lisp (definition-source-for-emacs): Send
	:buffer-and-file when both are available.
	(quit-lisp): Use sb-ext:exit when it's present.

2012-05-03  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (find-definitions-find-symbol): Put back accidentally
	removed with-buffer-syntax.

2012-05-02  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (*find-definitions-right-trim*)
	(*find-definitions-left-trim*): New variables. ",:." and "#:"
	default values.
	(find-definitions-for-emacs): Trim names with using the above
	variables when a symbol is not found.

2012-05-01  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-xrefs-for-notes): Format location in a proper
	way.
	Reported by Max Mikhanosha.

2012-04-27  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (lisp-source-location): How hard can it be to
	get this right? (3-legged IF, FFS!)

2012-04-24  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl.lisp (create-socket): correct variable name typo.

	* swank.lisp, swank-rpc.lisp (file options): use #\; to separate the
	file options.

2012-04-23  Christophe Rhodes  <csr21@cantab.net>

	* slime.el (slime-operator-before-point-function): new variable.
	(slime-operator-before-point): use it.
	(slime-lisp-operator-before-point): default implementation for
	slime-operator-before-point-function (unchanged from before).

2012-04-20  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (stream-force-output :around): Workaroud for
	deadlocks between auto-flush-thread buffer write lock and world
	lock.
	(slime-output-stream): Dummy forward definition for the benefit of
	the defmethod.

2012-04-20  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (swank-value): New function, makes it easy to
	refer to variables in SWANK -- which doesn't exist when the
	backend is loaded.
	(lisp-source-location): One of the strings being interned was
	downcased. Fix using SWANK-VALUE.
	(make-socket-io-stream): Use SWANK-VALUE instead of INTERN &
	SYMBOL-VALUE.

2012-04-11  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] utf-8-source): Use the encoded byte sequence of
	the Unicode string.

2012-04-10  Stas Boukarev  <stassats@gmail.com>

	* slime.el (def-slime-test utf-8-source): Define only when
	(and (featurep 'emacs) (>= emacs-major-version 23)).

2012-04-10  Stas Boukarev  <stassats@gmail.com>

	* slime.el (def-slime-test utf-8-source): Another try at fixing
	utf8 literals in code.

2012-04-09  Stas Boukarev  <stassats@gmail.com>

	* slime.el (def-slime-test utf-8-source): Remove literal Unicode
	characters in the form of \xFFFF, it causes problems for some
	people.

2012-04-07  Helmut Eller  <heller@common-lisp.net>

	Fix long lines.

	* swank.lisp:
	* slime.el:
	* ChangeLog:
	* swank-cmucl.lisp:
	* swank-lispworks.lisp:
	* contrib/ChangeLog
	* hyperspec.el
	* metering.lisp
	* swank-abcl.lisp
	* swank-allegro.lisp
	* swank-backend.lisp
	* swank-clisp.lisp
	* swank-corman.lisp
	* swank-ecl.lisp
	* swank-sbcl.lisp
	* swank-scl.lisp
	* swank-source-path-parser.lisp
	* xref.lisp

2012-04-06  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (interrupt-worker-thread): Interrupt the REPL thread if
	there are no threads found. Send Emacs an error message if no
	threads are found at all.

2012-03-30  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (lisp-source-location): When processing a
	STEP-FORM-CONDITION, don't show the initial form from expansion of
	STEP. (Currently SBCL doesn't give the form at all, but when it
	does seeing it is distinctly useless.)

2012-03-26  Helmut Eller  <heller@common-lisp.net>

	* slime.el (utf-8-source): XEmacs has no set-buffer-multibyte.
	(slime-create-test-results-buffer): Set file-coding-system.

	* swank-lispworks.lisp (swank-compile-string): Don't include the
	source-string in the dspec::*location*.  As LW has the habbit to
	print the entire *location* on redefinition the source-string
	would causes troubles for the test case.

	* swank-sbcl.lisp (swank-compile-string): Use utf8.

	* swank-cmucl.lisp (swank-compile-file): Use external-format arg.

	* swank-ccl.lisp (swank-compile-string, compile-temp-file): Use
	utf8.

	* slime.el (utf-8-source): New test case.

2012-03-14  Paulo Madeira <acelent@gmail.com>

	Use Unix-EOL convention even on Windows.

	* swank-allegro.lisp (string-to-utf8, utf8-to-string): Use
	excl:crlf-base-ef.
	* swank-lispworks.lisp (string-to-utf8,  utf8-to-string): Use
	'(:utf-8 :eol-style :lf)

2012-03-06  Helmut Eller  <heller@common-lisp.net>

	* swank-ccl.lisp: If 'xref is not provided warn about it but
	continue.

2012-03-06  Helmut Eller  <heller@common-lisp.net>

	Fix SBCL backend for Windows.

	* swank-sbcl.lisp (fd-stream-input-buffer-empty-p): Restore it.

2012-03-06  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (swank-require): Ensure that provide as called.

2012-02-12  Stas Boukarev  <stassats@gmail.com>

	* swank-ecl.lisp (accept-connection): Use the proper element-type
	for the stream.

2012-02-12  Stas Boukarev  <stassats@gmail.com>

	* swank-clisp.lisp (c-error): The number of parameters to
	sys::c-warn was changed, accommodate both versions.

2012-02-07  Martin Simmons <martin@lispworks.com>

	* swank-lispworks.lisp (dspec-file-position): Fall back to regexp
	search if dspec-stream-position gets an error.

2012-01-06  Helmut Eller  <heller@common-lisp.net>

	Add a "sentinel thread" to protect access to global lists.

	* swank.lisp (start-sentinel, sentinel, send-to-sentinel)
	(sentinel-serve, sentinel-stop-server, sentinel-maybe-exit): New.
	(make-connection, close-connection, setup-server, stop-server):
	Use the sentinel.
	(close-connection%): Factored out.
	* swank-backend.lisp (register-thread, find-registered): New.
	* swank-allegro.lisp: Implement it.
	* swank-ccl.lisp:
	* swank-lispworks.lisp:
	* swank-sbcl.lisp:

2012-01-02  Stas Boukarev  <stassats@gmail.com>

	* swank-loader.lisp (lisp-version-string): Append -no-threads to
	SBCL without threads.

2011-12-24  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-init-command): Don't call
	`slime-to-lisp-filename', the lisp is not yet connected and if
	there's another connection it will use the wrong translation.

2011-12-24  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (throw-to-toplevel): If *sldb-quit-restart* is not
	found, try to invoke the last restart, which usually is a
	top-level abort restart. This is useful when the debugger is
	invoked from a non-slime thread.

2011-12-23  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-cycle-connections): Add
	`slime-cycle-connections-hook', to be used by slime-repl.

2011-12-21  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (input-ready-p): Don't use
	sb-impl::fd-stream-fd-type if it's not present.

2011-12-12  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-compile-region): Run slime-flash-region
	directly, not from `slime-before-compile-functions', which is run
	also for C-c C-k.

2011-12-10  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (auto-flush-loop): Don't use call-with-io-timeout.
	Removing it had no effect on the number of failed tests.  If you
	want it back, first create a test case to demonstrate the problem.
	* swank-backend.lisp: Mention that locks should only be used in
	swank-gray.lisp.

2011-12-10  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp: Move io-redirection to contrib/swank-repl.lisp.

2011-12-10  Helmut Eller  <heller@common-lisp.net>

	Make *active-threads* a slot of the connection struct.

	* swank.lisp (*active-threads*): Deleted
	([struct] multithreaded-connection): New slot active-threads.
	(find-worker-thread, interrupt-worker-thread)
	(thread-for-evaluation): Update accordingly.
	(add-active-thread, remove-active-thread): New helpers.

2011-12-10  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp (delete-stale-contrib-fasl-files): New.
	(compile-contribs): Use it.

2011-12-09  Helmut Eller  <heller@common-lisp.net>

	Create an extra thread for the indentation cache.

	* swank.lisp (indentation-cache-loop): New.
	([struct] multithreaded-connection): New slot
	indentation-cache-thread.
	(control-thread, cleanup-connection-threads): Create/kill it.
	(send-to-indentation-cache): New function.
	(update-indentation-information, sync-indentation-to-emacs): Use
	it.
	(perform-indentation-update, update-indentation/delta-for-emacs):
	Add package as argument; that used to be *buffer-package.  Can
	again be simpler as the indentation-cache-thread doesn't share the
	cache with others.
	(handle-indentation-cache-request, symbol-packages): New helpers.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*slime-interrupts-enabled*): Describe the idea
	behind the interrupt handling code a bit.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	Make *event-queue* and *events-enqueued* slots of the connection
	struct.

	* swank.lisp (*event-queue*, *events-enqueued*): Deleted
	([struct] singlethreaded-connection): New slots event-queue and
	events-enqueued.
	(poll-for-event, send-event, wait-for-event/event-loop): Update
	accordingly.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([xemacs]): Use (find-coding-system 'utf-8-unix)
	instead of checking the XEmacs version to decide when 'un-define
	is required.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (send-to-emacs): Add a without-slime-interrupts to
	protect send/receive from arbitrary interrupts.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	Move flow control from dispatch-event to send-to-emacs.

	* swank.lisp (*send-counter*): New thread local variable.
	(with-connection): Bind it.
	(send-to-emacs): Call maybe-slow-down.
	(maybe-slow-down, ping-pong): Go through dispatch-event instead of
	writing to the socket directly.
	(dispatch-event): Re-add thread arg to :ping/:emacs-pong.
	Also add a :test-delay event.
	(perform-indentation-update): Use with-connection to bind
	*emacs-connection* and *send-counter*.
	(background-message): Remove reference to connection.slowdown.
	(flow-control-test): New support code for testing flow-control.
	([defstruct] connection): Delete send-counter and slowdown slots.

	* slime.el (slime-dispatch-event): Re-add thread arg to
	:ping/:emacs-pong and :test-delay event.
	([test] flow-control): New test.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-update-system-indentation): Moved to
	contrib/slime-indentation.el.

2011-12-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-batch-test): Forgot to rename slime-run-one-test
	to slime-run-test here.
	(slime-net-connect): Remove coding-system argument.
	(slime-xref-insert-recompilation-flags): Use insert-char instead
	of (dotimes (i ..) (insert " " ..)) to avoid the compiler warning.
	([test] break, slime-forward-sexp): Use _i in dotimes.

2011-12-07  Stas Boukarev  <stassats@gmail.com>

	* doc/.cvsignore: Add html.tgz

2011-12-07  Didier Verna  <didier@xemacs.org>

	* doc/.cvsignore: Add more files generated by Texinfo (.kys, .fns
	and .vrs).

2011-12-05  Didier Verna  <didier@xemacs.org>

	* slime.el ([xemacs]): Don't require 'un-define in XEmacs 21.5 and
	later. Mule-UCS is not needed anymore because of internal Unicode
	support (and conflicts with it).

2011-12-06  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-compile-region): Check connection before running
	hooks, invoking slime-flash-region doesn't make much sense when
	there's no connection.

2011-12-05  Helmut Eller  <heller@common-lisp.net>

	Move flow control into dispatch-event.

	* swank.lisp (maybe-slow-down, ping-pong): New functions.
	(dispatch-event): Use it. Also require connection argument.
	Update callers accordingly.
	([defstruct] connection): New slots: send-counter and slowdown.
	* slime.el (slime-dispatch-event): Drop thread from
	:ping/:emacs-ping messages.

	Use subclasses of connection.  Wasn't neccessary for flow control
	but seems like a good idea for the future.

	* swank.lisp (multithreaded-connection)
	(singlethreaded-connection): New
	(make-connection): Create multi/single threaded variant depending
	on style argument.
	([defstruct] serve-requests, cleanup): Delete slots.  Dispatch on
	connection type instead.
	(stop-serving-requests): New.
	(close-connection): Use it.  Can't use
	*use-dedicated-output-stream* here.

	* swank.lisp (background-message): Do nothing if
	connection.slowdown is set.

2011-12-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] arglist): swank::create-server now has an
	optional argument.  Use swank::compute-backtrace instead.

2011-12-05  Stas Boukarev  <stassats@gmail.com>

	* start-swank.lisp: Remove :coding-system argument.

2011-12-04  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (interrupt-worker-thread): Don't use find-repl-thread
	as fallback.

2011-12-04  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp: Minor cleanups.
	* swank-rpc.lisp:

2011-12-04  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (create-repl): Moved to contrib/swank-repl.lisp.
	(*use-dedicated-output-stream*, *dedicated-output-stream-port*
	(*dedicated-output-stream-buffering*, open-streams)
	(make-output-function, send-user-output)
	(make-output-function-for-target, make-output-stream-for-target)
	(open-dedicated-output-stream, find-repl-thread)
	(spawn-repl-thread, repl-loop, initialize-streams-for-connection)
	(read-user-input-from-emacs,  *listener-eval-function*)
	(listener-eval, *send-repl-results-function*, repl-eval)
	(clear-repl-variables, track-package, send-repl-results-to-emacs)
	(redirect-trace-output);
	* swank-loader.lisp (*contribs*): Add swank-repl.

2011-12-04  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp (*contribs*): Add swank-mrepl.

2011-12-04  Helmut Eller  <heller@common-lisp.net>

	* swank-rpc.lisp (read-chunk): Signal end-of-file we had no input.

2011-12-03  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (wait-for-input): Another go at this. Rip out POLL,
	build on top of just INPUT-READY-P.
	(input-ready-p): Outside Windows, use SYSREAD-MAY-BLOCK-P to check.

2011-12-03  Gbor Melis  <mega@retes.hu>

	* swank-allegro.lisp (set-default-initial-binding): In 9.0 alpha,
	*CL-DEFAULT-SPECIAL-BINDINGS* is [soon to be] deprecated.  It's
	otherwise the same EXCL:*REQUIRED-TOP-LEVEL-BINDINGS* (i.e. no
	change in behavior).

2011-12-03  Helmut Eller  <heller@common-lisp.net>

	* swank-clisp.lisp (wait-for-input): Add a version for windows.

2011-12-02  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (wait-for-input): Define only if
	#+os-provides-poll or #+win32.

2011-12-02  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (listener-channel): Moved to contrib/swank-mrepl.lisp
	(create-listener, initial-listener-bindings, spawn-listener-thread).

2011-12-01  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (wait-for-input): Call poll(2).
	* swank-backend.lisp (wait-for-streams, wait-for-one-stream):
	Deleted. Wouldn't work on binary streams.

2011-12-01  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp (*contribs*): Add swank-util.

2011-12-01  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (method-location): Special case accessors.

2011-11-29  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (do-symbols*, classify-symbol)
	(symbol-classification-string): Moved to contrib/swank-util.lisp.

2011-11-29  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (to-line): Increase default limit to 512.
	(frame-locals-for-emacs): Let *print-right-margin* override
	default line width.

2011-11-27  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (create-server): Add a :backlog argument.
	(setup-server): Pass it along.

	* swank-backend.lisp (create-socket): Backlog argument.
	* swank-abcl.lisp: Implement it.
	* swank-allegro.lisp:
	* swank-ccl.lisp:
	* swank-clisp.lisp:
	* swank-cmucl.lisp:
	* swank-corman.lisp:
	* swank-ecl.lisp:
	* swank-lispworks.lisp:
	* swank-sbcl.lisp:
	* swank-scl.lisp:

2011-11-27  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (make-socket-io-stream): Create character
	stream if external-format is non-nil.

2011-11-27  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (create-server): Remove coding-system argument.
	([defstruct] connection): Remove coding-system slot.
	(connection.external-format, *coding-system*): Deleted.
	(make-connection, start-server, create-server, setup-server)
	(accept-connections): Drop coding-system arg.

	(connection-info): Return supported coding systems.
	(create-repl, open-dedicated-output-stream)
	(open-streams, initialize-streams-for-connection): Add
	coding-system arg.

	* slime.el (slime-init-command): Ignore the coding-system arg.
	(slime-connection-coding-systems): New connection variable.
	(slime-set-connection-info): Set it.

2011-11-27  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (eval-in-frame-aux): Don't bind *package* during
	eval.

2011-11-21  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp: Trigger compilation of utf8 stuff before first
	real use.

2011-11-21  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*sldb-printer-bindings*): Removed.  Rather useless
	since the change from 2009-02-26.  It could at best have some
	influence on the way conditions are printed.  *sldb-string-length*
	and *sldb-bitvector-length* where both nil so
	*sldb-pprint-dispatch-table* was also not used by default.  In
	summary, spending 3 pages for something that's not used by default
	was pretty silly.  One variable less where we can get the defaults
	wrong.

2011-11-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-eval-in-frame): Try to figure the package out.
	Ask Lisp if the function for frame was defined in a particular
	package and use it to read the form.
	(sldb-read-form-for-frame): New helper.

	* swank-backend (frame-package): New.
	* swank-cmucl (frame-package): Implement it.

	* swank.lisp (frame-package-name, eval-in-frame-aux): New.
	(eval-string-in-frame, pprint-eval-string-in-frame): Use package
	argument.

2011-11-19  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (restart-frame): Make it possible to restart
	frames of anonymous functions -- at least some of the time.

2011-11-16  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (open-dedicated-output-stream): Open a stream with
	the right coding system.
	Change (:open-dedicated-output-stream port) message to
	(:open-dedicated-output-stream port coding-system), because Emacs
	can no longer determine the coding system based on the main
	network streams since they are binary now.

2011-11-11  Anton Kovalenko  <anton@sw4me.com>

	* slime.el (slime-ed): add bytep argument to destructure-case.
	When it's true, position is interpreted as byte offset.

2011-11-08  Helmut Eller  <heller@common-lisp.net>

	Restore old header format.

	* swank-rpc.lisp (parse-header, write-header)
	* slime.el (slime-net-decode-length, slime-net-encode-length)

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	* swank-ecl.lisp (accept-connection): Fix buffering arg.
	* swank-cmucl.lisp (accept-connection): Fix buffering arg.

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-run-test): Renamed from slime-run-one-test.
	(slime-toggle-test-debug-on-error): New.
	([test] break): Longer timeouts.

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	Add portable versions for string-to-utf8 and utf8-to-string.

	* swank-backend.lisp (default-string-to-utf8)
	(default-utf8-to-string): New.
	(string-to-utf8, utf8-to-string): Use default implementations.

	* swank-lispworks.lisp (make-flexi-stream): Restored.
	(utf8-stream): Deleted.  The utf8 stuff is now used for the
	default implementation of utf8-to-string and would cause name
	clashes.

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (swank-compile-string): For reader errors
	return nil not (values nil nil t).

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	New wire format.

	Switch from character streams to binary streams.  Counting
	characters was error prone because some Lisps use utf-16
	internally and so READ-SEQUENCE can't be used easily.

	The new format looks so:

	  | byte0 | 3 bytes length |
	  |    ... payload ...     |

	The playload is an s-exp encoded as UTF-8 string.  byte0 is
	currently always 0; other values are reserved for future use.

	* swank-rpc.lisp (write-message): Use new format.
	(write-header, parse-header, asciify, encoding-error): New.

	* swank.lisp (accept-connections): Create a binary stream.
	(input-available-p): Can't read-char-no-hang on binary streams.

	* slime.el (slime-net-connect): Use binary as coding system.
	(slime-net-send, slime-net-read, slime-net-decode-length)
	(slime-net-encode-length, slime-net-have-input-p): Use new format.
	(slime-unibyte-string, slime-handle-net-read-error): New.
	(featurep): Require 'un-define for XEmacs.

	* swank-sbcl.lisp (input-ready-p): Use sb-sys:wait-until-fd-usable.

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (close-connection): Fix thinko.

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (accept-connection): Improve docstring.  In
	particular say that we want a binary stream if the EXTERNAL-FORMAT
	argument is nil.

	* swank-abcl.lisp (accept-connection): Make it so.
	* swank-clisp.lisp (accept-connection): Make it so.
	* swank-cmucl.lisp (accept-connection): Make it so.
	* swank-lispworks.lisp (accept-connection): Make it so.
	* swank-sbcl.lisp (accept-connection): Make it so.
	* swank-scl.lisp (accept-connection): Make it so.

2011-11-06  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (utf8-to-string, string-to-utf8): New.

	* swank-sbcl.lisp (string-to-utf8, string-to-utf8): Implemented.
	* swank-lispworks.lisp (string-to-utf8, string-to-utf8): Implemented.
	* swank-cmucl.lisp (string-to-utf8, string-to-utf8): Implemented.
	* swank-clisp.lisp (string-to-utf8, string-to-utf8): Implemented.
	* swank-ccl.lisp (string-to-utf8, string-to-utf8): Implemented.
	* swank-allegro.lisp (string-to-utf8, string-to-utf8): Implemented.
	* swank-abcl.lisp (string-to-utf8, string-to-utf8): Implemented.
	(octets-to-jbytes, jbytes-to-octets): New helpers.

2011-11-03  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (close-connection): Be more careful with non-ascii.

2011-11-03  Helmut Eller  <heller@common-lisp.net>

	Remove dependecy on FLEXI-STREAMS for Lispworks.

	* swank-lispworks.lisp (make-flexi-stream): Deleted.
	(utf8-stream): New class to do the transcoding.
	(accept-connection): Use it.

2011-10-19  Andrew Myers <asm198@gmail.com>

	* swank-allegro.lisp (frob-allegro-field-def): Add missing type to
	ecase for inspector.

2011-10-13  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (all-completions): Remove mixed case syms e.g |Foo|.
	"fo" is not a prefix of "|Foo|" and it would be problematic later.

2011-10-05  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (clear-repl-variables): New functions, clears *, /,
	and + variables.

2011-09-28  Stas Boukarev  <stassats@gmail.com>

	* slime.el: Remove (require 'hideshow), it's not used anymore.
	Spotted by Leo Liu.

2011-09-27  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp (describe-symbol-for-emacs): Differentiate
	between function, generic function, special forms, and macros by
	copying SBCL implementation.

2011-09-13  Christophe Rhodes  <csr21@cantab.net>

	* slime.el (slime-simple-complete-symbol): only display "Complete
	but not unique" message if the partial completion figures in the
	completion list.

2011-08-31  Anton Kovalenko  <anton@sw4me.com>

	* swank-sbcl.lisp (preferred-communication-style): check for
	:sb-thread before :win32, so :spawn is preferred for threaded
	Windows builds.

2011-08-31  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (make-socket-io-stream): Backwards compatibility with
	SBCL < 1.0.42.43 -- and bugfix.

2011-08-26  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp (class-slots): Use exported symbol allowing
	classes with non-standard metaobjects to be inspected.

2011-08-18  Helmut Eller  <heller@common-lisp.net>

	Fix line numbers for compiler notes if is narrowing was in effect.

	* slime.el (slime-canonicalized-location): Widen before calling
	line-number-at-pos.

2011-08-17  Stas Boukarev  <stassats@gmail.com>

	* swank-allegro.lisp (with-redirected-y-or-n-p): Fix modern-mode
	issues.
	Patch by Andrew Myers.

2011-08-09  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (make-socket-io-stream): Use :SERVE-EVENTS T when
	using :FD-HANDLER as the communication style. SBCL will soon stop
	serving events by default on socket streams.

2011-08-08  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-unintern-symbol): New command.
	* swank.lisp (unintern-symbol): Lisp-side implementation.

2011-07-03  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (debug-var-info): New function: calls
	SB-DI::DEBUG-VAR-INFO when available.
	(frame-locals, frame-var-value): Treat more-context and more-count
	vars specially.

2011-06-21  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank.lisp (*indentation-cache-lock*): Deleted.
	(perform-indentation-update): Spawn a new thread to handle the
	indentation update when using threads. Move cache-clearing to
	UPDATE-INDENTATION/DELTA-FOR-EMACS. Replace the old cache by
	the one returned from U-I/D-F-E.
	(update-indentation/delta-for-emacs): When clearing the cache,
	allocate a new table. When threads are being used, copy the
	cache before mutation, to ensure that caches possibly seen by other
	threads are write-only by then.

2011-06-18  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank.lisp (*indentation-cache-lock*): New variable:
	hash-table updates aren't necessarily thread-safe.
	(perform-indentation-update, update-indentation/delta-for-emacs):
	Grab the lock when necessary -- in delta-for-emacs we hold on to
	it a bit longer than necessary, but the code is easier to read
	this way.

2011-06-16  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank.lisp (macro-indentation): Restore the old simple version.

	* swank-sbcl.lisp (compiling-from-buffer-p): PROBE-FILE to
	handle cases there the tmp-directory is a symlink.
	(compiling-from-file-p): Ditto.

2011-06-14  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-backend.lisp (call-with-io-timeout): New DEFINTERFACE.
	* swank-sbcl.lisp (call-with-io-timeout): DEFIMPLEMENTATION for it.
	* swank.lisp (auto-flush-loop): Call FINISH-OUTPUT using
	CALL-WITH-IO-TIMEOUT to prevent deadlocks.

	* swank.lisp (macro-indentation): Fix handling of lambda-list
	keywords other than &rest and &body.

	* slime.el (slime-update-system-indentation): Remove stale specs
	from common-lisp-system-indentation when new one arrives.

2011-06-10  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank.lisp (macro-indentation): Walk the lambda-list
	to construct a better indentation spec instead of just
	looking for &BODY.

2011-06-09  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (execv): Stupid SBCL hackers breaking backwards
	compatibility again: SB-POSIX:SYSCALL-ERROR has a required
	argument in 1.0.49, but accepts no arguments in older ones. Use
	plain ERROR instead.

	Support for per-package derived indentation, when
	slime-indentation is used.

	* swank.lisp (update-indentation/delta-for-emacs): Tell Emacs
	which packages the symbol is available in. Unless
	slime-indentation is used, this information is just dropped on the
	floor.

	* slime.el (slime-update-system-indentation): New function. Use
	this to inform indentation about derived specs when
	`common-lisp-system-indentation' is bound.
	(slime-handle-indentation-update): Adjust to support per-package
	derived indentation specs when slime-indentation is available.

2011-05-27  Helmut Eller  <heller@common-lisp.net>

	Fix "wrong number of args" problem with slime-inspector-quit.
	Reported by Anton Kovalenko.

	* slime.el (slime-popup-buffer-quit-function)
	(slime-quit-threads-buffer): Drop the kill-buffer-p argument.

2011-05-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (destructure-case): Fix "`_' not left unused" warnings.
	Insert an (ignore) form for empty bodies; this inhibts the
	compiler transformation that leads to the spurios warning.  This
	has no runtime cost in compiled code, since the compiler
	recognizes (ignore) and emits no code for it.
	(slime-flatten-tree): Deleted. No longer used.

2011-05-23  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (sdlb-print-condition): New (or old new)
	function. It was bound by P in sldb-mode, but for some reason it
	was lost.

2011-05-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-apropos-label-properties): Deleted.  Just
	auto-load apropos-mode.
	(slime-print-apropos): Use the variable apropos-label-face
	which seems to exist in all relevant Emacsen.

2011-05-22  Helmut Eller  <heller@common-lisp.net>

	Turn on lexical-binding for slime.el.
	This mostly involves prefixing unused variables
	with underscores to shut up the compiler, but
	also some less harmless changes.

	* slime.el (slime-dispatching-connection, slime-current-thread):
	Add defvars.
	(slime-connect): called-interactively-p wants 1 arg in Emacs 24
	but none in Emacs 22.  So we can't use it; instead add an extra
	optional arg and set that to non-nil in the interactive spec.
	(slime-read-from-minibuffer): Actually use the history arg.
	(slime-inspector-quit): Drop the unused kill-buffer arg from the
	lambda-list.
	(slime-run-tests): Can't specbind slime-repl-history-file without
	variable declation.  I don't want to declare it here so I just
	eliminated it and let somebody else fix slime-repl.el.

2011-05-21  Helmut Eller  <heller@common-lisp.net>

	Minor tweaks to avoid some compiler warnings.

	* slime.el (slime-modeline-string, slime-buffer-connection):
	Declare variables.
	(slime-flatten-tree): Helper function.
	(destructure-case): Use it, and make '_ ignorable if
	it occurs in some pattern.
	(slime-connect): Avoid obsolete functions:
	string-to-int -> string-to-number
	interactive-p -> called-interactively-p
	(slime-complete-maybe-restore-window-configuration)
	last-command-char -> last-command-event
	completion-base-size ->  completion-base-position
	(slime-xref-mode-map): Use call-interactively
	when calling the remapped next-line/previous-line commands.

2011-05-09  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (swank-compile-string): Use :SOURCE-NAMESTRING
	to provide the name of the actual source file, and
	:ALLOW-OTHER-KEYS for compatibility with pre-1.0.48.1 versions.
	This allows SBCL to get uninteresting redefinition muffling right.
	(*trap-load-time-warnings*): Default to T to make the redefinition
	notes more visible, especially now that redefinition muffling hides
	the boring ones.

2011-05-08  Nikodemus Siivola  <nikodemus@random-state.net>

	* slime.el (slime-intern-indentation-spec): New function. Converts
	strings in an indentation spec to symbols.
	(slime-handle-indentation-update): Intern the indentation spec
	using slime-intern-indentation-spec, so that lisp side can pass
	complex indentation specs.
	* contrib/swank-indentation.lisp (application-indentation-hint):
	Downcase symbol names -- any symbol in an indentation spec is
	pretty much guaranteed to have a lowecase name on the Emacs side.

2011-04-16  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-load-failed-fasl): New variable. Accepts `ask',
	`always', and `never' symbols. Loads or not loads fasls produced by
	compile-file which returned non-nil failure-p.

2011-04-14  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (list-threads): Call `use-threads-p' only when
	*emacs-connection* is non-nil. `use-threads-p' wouldn't work in
	this case, and there is no need to remove a worker thread from the
	list if it's not connected.
	This fixes an issue with calling swank:stop-server when slime
	isn't connected.

2011-03-13  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (format-restarts-for-emacs): Add
	without-printing-errors around restart printing.

2011-03-09  Helmut Eller  <heller@common-lisp.net>

	Remove slime-sexp-at-point-for-macroexpansion.

	* slime.el (slime-sexp-at-point-for-macroexpansion): Deleted.
	(slime-eval-macroexpand): Use slime-sexp-at-point instead.
	(slime-eval-macroexpand-inplace): Use
	slime-bounds-of-sexp-at-point directly.

2011-03-09  Helmut Eller  <heller@common-lisp.net>

	Move some of the logic from slime-sexp-at-point-for-macroexpansion
	into slime-sexp-at-point.

	* slime.el (slime-bounds-of-sexp-at-point): New.  Special case if
	we are at '( as slime-sexp-at-point-for-macroexpansion does.
	(slime-bounds-of-symbol-at-point): New.
	(slime-symbol-at-point, slime-sexp-at-point): Use the above.

2011-02-24  Stas Boukarev  <stassats@gmail.com>

	* swank-allegro.lisp (find-topframe): Fix excl::int-newest-frame
	invocation for the latest alpha version of Allegro.
	Patch by Gbor Melis.

2011-02-18  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-init-popup-buffer): Don't use
	multiple-value-setq on a list, XEmacs doesn't like it.

2011-02-18  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-insert-threads): Make sure newlines have the
	same thread-id property as the rest of the line. This fixes
	confusion when point is at the end of a line.

2011-02-13  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-inspector-operate-on-point): Don't save the
	point when inspecting a different object.
	(slime-inspector-operate-on-point): If there is no action property
	directly at the point, try looking at (1- (point)), many
	inspectable objects are presented the end of the line, so it's
	easier to navigate to them by C-e and still being able to activate
	it.

2011-02-08  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-choose-overlay-region): Don't use `list' instead
	of `values', GNU Emacs fakes multiple values with lists, but
	XEmacs uses real multiple values.
	Reported by Raymond Toy.

2011-02-04  Helmut Eller  <heller@common-lisp.net>

	Be careful with interning.

	* swank.lisp (find-definitions-for-emacs): Use parse-symbol.

2011-02-04  Helmut Eller  <heller@common-lisp.net>

	Don't double encode results for eval-in-emacs.

	* slime.el (slime-check-eval-in-emacs-result): New.
	(slime-eval-for-lisp): Use it.
	* swank.lisp (unreadable-object): Removed.

2011-02-02  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (eval-in-emacs): Return unreadable results from Emacs
	as an unreadable-object, not as a string.

2011-02-02  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-eval-for-lisp): Return value as a string,
	because it can be unreadable, e.g. #<buffer foo>
	* swank.lisp (eval-in-emacs): Prevent reader errors.

2011-02-02  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (eval-in-emacs): Export it.

2011-01-28  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-check-location-filename-sanity): Guard
	against target-filename being NIL.

2011-01-26  Helmut Eller  <heller@common-lisp.net>

	Allow tail-merging in call-with-bindings.

	* swank.lisp (call-with-bindings): Don't use progv if alist is
	empty alist is empty.

2011-01-20  Stas Boukarev  <stassats@gmail.com>

	* swank-ecl.lisp (+TAGS+): change
	(translate-logical-pathname #P"SYS:TAGS") to
	(merge-pathnames "TAGS" (translate-logical-pathname "SYS:"))
	because of case conversion the former results in a pathname with a
	name "tags", which doesn't exist.

2010-12-10  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-with-popup-buffer): Correct the docstring.

2010-12-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-toggle-break-on-signals): New command.
	* swank.lisp (toggle-break-on-signals): The corresponding Lisp code.

2010-12-02  Martin Simmons  <martin@lispworks.com>

	* swank-lispworks.lisp (frame-actual-args): Reimplement to include
	only the values like on other platforms and deal with, optional
	key and rest args.
	(print-frame): Format the frame as a call like in other backends.

2010-11-13  Helmut Eller  <heller@common-lisp.net>

	Improve source locations for compiler messages in Lispworks.

	* swank-lispworks.lisp (map-error-database)
	(signal-error-data-base, make-dspec-progenitor-location): Pass the
	edit-path along.
	(signal-undefined-functions): No edit-path available so just use
	nil.

2010-11-12  Helmut Eller  <heller@common-lisp.net>

	Improve frame-source-location for Lispworks.

	* swank-lispworks.lisp (frame-source-location): Exctract the
	edit-path from the frame and pass it to Emacs.
	(edit-path-to-cmucl-source-path): New function.
	(frame-location): Use it.

	* slime.el (slime-location-offset): Add a :edit-path property.
	(slime-search-edit-path): New function.
	(slime-search-call-site): Fix regexp to match
	zero arg functions.

2010-11-07  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (label-value-line): Remove display-nil-value.
	And the other stuff too.
	(label-value-line*): Idem.

2010-11-07  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp: ASDF free again.  And proud of it!
	(default-fasl-dir, load-swank): Remove asdf stuff.

2010-11-03  Stas Boukarev  <stassats@gmail.com>

	* swank-loader.lisp (*architecture-features*): Add :arm for CCL
	ARM port.

2010-11-02  Martin Simmons  <martin@lispworks.com>

	* swank-lispworks.lisp (list-callers-internal): Revert to previous
	low level implementation, fixed for LW6.
	(list-callees-internal): Reimplement using low level instead of
	the compiler's xref.

2010-10-23  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-goto-location-position): In case of
	(:function-name name) go to (point-min) before searching for
	function. Remove redundant regexp and regexp-quote function name
	before inserting it into a regexp.

2010-10-21  Helmut Eller  <heller@common-lisp.net>

	In ABCL, try harder to find the source of stack frames.

	* swank-abcl.lisp (source-location): Now a GF.
	(source-location [java-stack-frame]): New.
	(source-location [lisp-stack-frame]): New.
	(source-location [function]): New.
	(frame-source-location, find-definitions): Use them.
	(*source-path*, find-definitions): New.
	(system-property, pathname-parent, pathname-absolute-p)
	(split-string, path-separator, search-path-property)
	(jdk-source-path, class-path, zipfile-contains-p)
	(find-file-in-path): Noise for filename frobbing.

2010-10-21  Helmut Eller  <heller@common-lisp.net>

	Require ABCL 0.22 and remove obsolete conditionalisation.

	* swank-abcl.lisp (call-with-debugger-hook)
	(install-debugger-globally)
	(call-with-debugging-environment, backtrace, print-frame, spawn):
	Remove #+/#- stuff.
	(preferred-communication-style): Return :spawn unconditionally.
	(sys::break): Removed.

2010-10-20  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-connect): Convert the port number read from
	minibuffer to an integer, passing it as a string to
	`make-network-process' isn't portable.
	Patch by Marko Kocic.

2010-10-19  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (invoke-nth-restart): Make sure there is such restart
	before invoking it.

2010-10-19  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (deinit-log-output): Use the right symbol for
	*LOG-OUTPUT*, swank package isn't available at the time
	swank-backend is compiled.

2010-10-16  Stas Boukarev  <stassats@gmail.com>

	* swank-loader.lisp (default-fasl-dir): Guard against using :asdf
	package if it doesn't exist.
	Patch by Anton Vodonosov.

2010-10-16  Attila Lendvai  <attila.lendvai@gmail.com>

	* swank-fuzzy.lisp: speed up by 2-4 times (on sbcl).

	* fuzzy.el: Clean up fuzzy completion's keymap code, drop
	mimic-key-bindings.

	* slime.el: Added separate host and port history for
	slime-connect.
	(slime-lookup-lisp-implementation): better error reporting and
	allow using a functionp to generate the arguments.

	* swank.lisp: Smarten up the label-value-line macros:
	  - support a :label emacs font property
	  - added key args: padding-length, display-nil-value,
	    hide-when-nil, splice-as-ispec, value-text
	  - label-value-line* will evaluate and splice the result
	    of the form after a @ character

	* swank-loader.lisp: Optional integration with ASDF. When ASDF is
	available, store slime fasl's where ASDF would store them. Also
	make sure swank.asd is visible to ASDF.

2010-10-09  Raymond Toy  <toy.raymond@gmail.com>

	* swank-cmucl.lisp (codepoint-length): Implement codepoint-length
	to return the number of codepoints in cmucl's utf-16 strings.

	* swank-backend.lisp (:swank-backend): Export codepoint-length.
	(codepoint-length): definterface codepoint-length.  Default is to
	use LENGTH.

	* swank-rpc.lisp (write-message): Call
	swank-backend:codepoint-length to get the correct length for
	emacs.

2010-10-08  Christophe Rhodes  <csr21@cantab.net>

	Pass more detailed source location information to
	swank:compile-string-for-emacs.  Motivated by R's source location
	needs (where srcrefs are line/column based).

	* slime.el (slime-compile-string): Generate :line location format
	from start-offset, passing it through to
	swank:compile-file-for-emacs.
	(find-definition.2): Use new-style position.

	* swank.lisp (compile-string-for-emacs): Use only the offset from
	the position argument.

	* swank-backend.lisp (swank-compile-string): Fix docstring typo.

2010-10-07  Nikodemus Siivola  <nikodemus@random-state.net>

	Hanging on to a *log-output* from a previous image is bad on SBCL
	at least: it is initialized to an FD-STREAM, which cannot be
	reused from one image to another.

	Deal with this by using sb-ext:*save-hooks* to clear the stream.

	* swank-sbcl.lisp (deinit-log-output): New function.

2010-10-02  Helmut Eller  <heller@common-lisp.net>

	Rename slime-macro/compiler-macro-expand-1 => slime-expand-1

	* slime.el (slime-expand-1): Renamed from
	slime-macro/compiler-macro-expand-1.
	(slime-expand-1-inplace): Renamed from
	slime-macro/compiler-macro-expand-1-inplace.

	* swank.lisp (swank-expand-1): Renamed from
	swank-macro/compiler-macro-expand-1.
	(swank-expand): Renamed from swank-macro/compiler-macro-expand.
	(expand-1): Renamed from macro/compiler-macro-expand-1.
	(expand): Renamed from macro/compiler-macro-expand.

2010-10-01  Helmut Eller  <heller@common-lisp.net>

	Don't use indent-sexp for macroexpanded code.
	indent-sexp is potentially slow and usually redundant.

	* slime.el (slime-initialize-macroexpansion-buffer): Don't use
	indent-sexp.
	(slime-eval-macroexpand-inplace): Avoid indent-sexp but
	use slime-insert-indented.

2010-10-01  Helmut Eller  <heller@common-lisp.net>

	Save result in kill ring for M-- C-x C-e.
	For C-u C-x C-e set mark before inserting.

	* slime.el (slime-eval-save): New function.
	(slime-eval-print): Set mark before inserting.
	(slime-interactive-eval): Use it.

2010-09-22  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (eval-for-emacs): Send (:abort condition) where
	condition is a condition which was aborted instead of just (:abort).
	* slime.el: Handle the above change.

2010-09-22  Stas Boukarev  <stassats@gmail.com>

	* swank-clisp.lisp (*external-format-to-coding-system*): Remove
	stray :latin-1 argument for ext:make-encoding.
	Reported by Mirko Vukovic.

2010-09-20  Stas Boukarev  <stassats@gmail.com>

	* swank-cmucl.lisp (character-completion-set): Implement. Requires
	recent versions of CMUCL.
	Patch by Raymond Toy.

2010-09-18  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend.lisp (valid-function-name-p): New interface.
	(compiler-macroexpand-1): Use it to guard against type errors
	from COMPILER-MACRO-FUNCTION.

2010-09-18  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (before-init): push :SWANK to *FEATURES*. (lp#627313)

2010-09-18  Tobias C. Rittweiler <tcr@freebits.de>

	Make C-c C-m also expand compiler macros. (lp#638720)

	* slime.el (slime-macro/compiler-macro-expand-1): New.
	(slime-macro/compiler-macro-expand-1-inplace): New.
	(slime-editing-keys): Map `C-c C-m' to first above.
	(slime-compiler-macroexpand-1): Take prefix-arg like others.
	(slime-compiler-macroexpand-1-inplace): Ditto.
	(slime-compiler-macroexpand): Thus deleted.
	(slime-compiler-macroexpand-inplace): Ditto.

	* swank.lisp (swank-macro/compiler-macro-expand-1): New defslimefun.
	(swank-macro/compiler-macro-expand): New defslimefun.
	(macro/compiler-macro-expand-1): New.
	(macro/compiler-macro-expand): New.
	(expand-repeatedly): New helper.

2010-09-03  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-forward-cruft): Use " \t\n" to match whitespaces
	instead of [:space:], XEmacs compatibility.

2010-09-03  Helmut Eller  <heller@common-lisp.net>

	For C-c C-k, ask before loading possibly broken fasl files.

	* slime.el (slime-compilation-result): Add 2 slots: loadp and
	faslfile.
	(slime-compilation-finished): Use them to load the faslfile.
	* swank.lisp (:compilation-result): Add 2 slots. Use keyword
	constructor.
	(compile-file-for-emacs): Return loadp and faslfile to Emacs.
	(collect-notes): Pass loadp and falsfile along.

2010-09-02  Stas Boukarev  <stassats@gmail.com>

	* swank-cmucl.lisp: #-cmu19 -> #+cmu18, cmu18 is allegedly the
	oldest supported CMUCL.

2010-09-01  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (background-save-image): add #-win32, because it
	uses symbols not present on win32.
	Reported by Holly Styles.

2010-08-31  Stas Boukarev  <stassats@gmail.com>

	* swank-cmucl.lisp (foreign-frame-p, gdb-exec, frame-ip): Sparc
	support.
	Patch by Raymond Toy.

2010-08-31  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-sbcl.lisp (make-dspec): Elide the function name when
	generating a VOP description, since the VOP name is more useful
	and is the first part of the source-description list.

2010-08-28  Stas Boukarev  <stassats@gmail.com>

	* swank-cmucl.lisp (*gdb-program-name*): Determine gdb location
	from PATH.
	(gdb-exec): Use *gdb-program-name* instead of "gdb".
	(gdb-command): Mac OS X compatibility.
	Patch by Raymond Toy.

2010-08-25  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (exec-image): Use (car sb-ext:*posix-argv*) if
	SBCL doesn't have sb-ext:*runtime-pathname*.
	Reported by Vinay.

2010-08-22  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-xemacs-recompute-modelines): Add
	`slime-xemacs-recompute-modelines' to `pre-idle-hook', this solves
	the problem of synchronization of modelines.
	Thanks to Aidan Kehoe.

2010-08-21  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-recompute-modelines): Recompute modelines only
	for visible buffers. Kludge: modeline can be out of sync if the buffer
	becomes visible and no slime/lisp interaction took place yet.
	Patch by Raymond Toy.
	(slime-search-buffer-package): Revert, with the above
	change caching shouldn't be necessary.

2010-08-21  Helmut Eller  <heller@common-lisp.net>

	Add commands to enable/disable contribs.

	* slime.el (slime-enable-contrib, slime-disable-contrib): New.
	(slime-contrib): New struct to collect meta-data about contribs.
	(define-slime-contrib): Store meta-data in 'slime-contribs plist.
	(slime-all-contribs, slime-find-contrib, slime-read-contrib-name):
	New helpers.

2010-08-21  Anton Kovalenko <anton@sw4me.com>

	Snapshot restore support for SBCL.

	* swank-backend.lisp (background-save-image): New.
	* swank-sbcl.lisp (command-line-args, dup, sys-execv, exec-image)
	(make-fd-stream, background-save-image): New.

2010-08-20  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-maybe-complete-as-filename): Limit backward
	search for #\", it slows down on large buffers.
	Reported by Raymond Toy.
	(slime-search-buffer-package): Cache the package, searching every time
	on large buffers may be slow.

2010-08-15  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (setup-server): Check the coding system before doing
	anything, otherwise it may be eaten by ignore-errors later.

2010-08-13  Helmut Eller  <heller@common-lisp.net>

	Find definition for (def-vm-support-routine NAME ...)

	* swank-cmucl.lisp (vm-support-routine-definitions): New.
	(find-definitions): Use it.

2010-08-12  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (save-image): Fix save-lisp-and-die invocation.
	Based on a patch by Anton Kovalenko.

2010-08-11  Helmut Eller  <heller@common-lisp.net>

	Bind *print-readably* to nil when printing the title.

	* swank.lisp (prepare-title): Factored out into new function.
	(*inspector-printer-bindings*)
	(*inspector-verbose-printer-bindings*): New.
	(with-string-stream): New.
	(emacs-inspect/istate): Renamed from emacs-inspect/printer-bindings.

2010-08-06  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp (spawn): Revert the previous change, using
	:use-standard-initial-bindings nil might be not thread-safe.

2010-08-05  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp (spawn): Specify
	:use-standard-initial-bindings nil, so that *readtable*
	etc. modifications persist.

2010-08-04  Stas Boukarev  <stassats@gmail.com>

	* swank-allegro.lisp (fspec-definition-locations): Default
	&optional position to 0, otherwise it may cause errors later.
	Reported by: Paulo Madeira.

2010-08-04  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-dispatch-event): :eval-no-wait, lisp sends a
	form in a string, not a function name and arguments. Add
	slime-check-eval-in-emacs-enabled.
	* swank.lisp (defpackage): export eval-for-emacs.

2010-07-30  Helmut Eller  <heller@common-lisp.net>

	Don't get confused by END-OF-FILE on unrelated streams.
	Fixes bug "slime connection broken on trivial condition..."
	Reported by Pascal J. Bourguignon.

	* swank.lisp (end-of-repl-input): New condition.
	(simple-repl, read-non-blocking): Use it.
	* slime.el ([test] end-of-file): Test it.

2010-07-30  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (print-part-to-string): Bind *print-readably* to nil.
	Useful when debugging broken printer methods.

2010-07-22  Vitaly Mayatskikh  <v.mayatskih@gmail.com>

	* swank-lispworks.lisp (list-callers-internal): Fix for LW6.
	(list-callees-internal): New function, use it.

2010-07-21  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (quit-lisp): Use sb-thread:terminate-thread
	instead of sb-ext:quit :recklessly-p t. This way
	sb-ext:*exit-hooks* will be run.
	Reported by Lorenz Msenlechner.

2010-07-06  Helmut Eller  <heller@common-lisp.net>

	Find definition for (%primitive NAME ...)

	* swank-cmucl.lisp (template-definitions, primitive-definitions):
	New functions.
	(find-definitions): Use them.

2010-06-22  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp (*architecture-features*): ECL uses :x86_64.

2010-06-18  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-current-tlf-number,slime-current-form-path):
	Moved to contrib/slime-parse.el.

2010-06-18  Helmut Eller  <heller@common-lisp.net>

	Don't use goto-line.

	* slime.el (slime-goto-line): New function as replacement without
	goto-line's cruft that we don't want.

2010-06-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el, swank.lisp: #'(lambda -> (lambda

2010-06-04 Stelian Ionescu <sionescu@cddr.org>

	* swank.lisp: Move definition of LCONS before first use.

2010-06-04  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (socket-fd): Add support for allegro.

2010-06-04  Helmut Eller  <heller@common-lisp.net>

	Some *sldb-quit-restart* related fixes.

	* swank.lisp (*sldb-quit-restart*): Set to nil by default.
	(throw-to-toplevel, debug-in-emacs): Get rid of boundp tests.
	(format-restarts-for-emacs): Add a mark for *sldb-quit-restart*.
	(handle-requests): Always bind *emacs-connection*.
	(with-connection): Get rid of call-with-connection so that
	compilers can remove the call frame more easily.
	(repl-input-stream-read): Factored out from
	make-repl-input-stream.  Bind a *sldb-quit-restart* here too; no
	need to restart the repl and a extra prompt for errors in Emacs
	requests.

2010-05-28  Helmut Eller  <heller@common-lisp.net>

	Fix last change.

	* slime.el (define-slime-contrib): Fix names.
	Remove provide; makes no sense to call provide before file is
	completely loaded.

2010-05-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (define-slime-contrib): Use destructuring-bind.

2010-05-28  Helmut Eller  <heller@common-lisp.net>

	Move some var-defs before first use.

	* slime.el (slime-show-xref-buffer, slime-read-connection)
	(slime-thread-index-to-id):

2010-05-28  Helmut Eller  <heller@common-lisp.net>

	Move wacky parsing code to contrib.

	* slime.el (slime-extract-context, slime-parse-context)
	(slime-in-expression-p, slime-pattern-path)
	(slime-beginning-of-list, slime-end-of-list)
	(slime-parse-toplevel-form, slime-arglist-specializers)
	(slime-definition-at-point, slime-current-parser-state): Moved to
	contrib/slime-parse.el
	(slime-inspect-definition, slime-disassemble-definition): Moved to
	contrib/slime-fancy-inspector.el

2010-05-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] interactive-eval): Fix test.

2010-05-27  Helmut Eller  <heller@common-lisp.net>

	* swank-ccl.lisp (socket-fd): Implement backend function.

2010-05-27  Helmut Eller  <heller@common-lisp.net>

	Clean up some of the confusion regarding *sldb-quit-restart*.

	* swank.lisp (top-level-restart-p, *toplevel-restart-available*)
	(coerce-restart): Deleted.
	(with-top-level-restart, simple-repl): Simplify.

2010-05-26  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (swank-error): Unrename from swank-protocol-error.

2010-05-26  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (parse-gdb-line-info): Try working dir first.

2010-05-26  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-defun-if-undefined): Renamed from
	slime-DEFUN-if-undefined. No need to yell.

2010-05-26  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-compile-file): Only send non-nil keyword args.
	(slime-hack-quotes): New function.

2010-05-18  Stas Boukarev  <stassats@gmail.com>

	* slime.el (sldb-insert-condition): Don't create a mouse tooltip
	for long error message, tooltip shows the same text and doesn't
	add any value.
	(slime-definition-at-point): factor out of `slime-inspect-definition'.
	(slime-disassemble-definition): New, similar to
	`slime-inspect-definition'.

	* swank.lisp (disassemble-form): rename from disassemble-symbol,
	do the same as before but evaluate the argument.


2010-05-16  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-close-popup-window): Don't kill
	slime-popup-restore-data local variable in another buffer.

2010-05-13  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (define-slime-contrib): New macro.

2010-05-13  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (*after-init-hook*, simple-break)
	(coerce-to-condition, use-threads-p, current-thread-id): Moved
	around in swank.lisp.
	(with-temp-package): Deleted; not used anywhere.
	(ensure-list): Use in SWANK-REQUIRE.

2010-05-11  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-inspect-definition): New function,
	inspects definition at point.
	(slime-parse-context): Add :defstruct and :defpackage.

2010-05-10  Mark Evenson  <evenson@panix.com>

	* swank-loader.lisp (*architecture-features*): Add Java platforms
	as features for ABCL.

2010-05-06  Helmut Eller  <heller@common-lisp.net>

	Remove some non-standard file variables.

	* swank-cmucl.lisp, swank-scl.lisp: Remove pbook vars.
	* swank-clisp.lisp: Remove indentation settings. Slime does it
	automatically.

2010-05-05  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-dispatch-event): Fix typo in the previous commit.

2010-05-05  Stas Boukarev  <stassats@gmail.com>

	* Make buffer names more consistent.
	Patch by Leo Liu.

2010-05-05  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (gdb-command): Use gdb's MI.

2010-05-05  Mark Evenson <evenson@panix.com>

	Fix for Cygwin Emacs filename problem.

	* slime.el (slime-init-command): Use slime-to-lisp-filename.

2010-05-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-exit): When stepping, close buffer after a delay.
	(sldb-close-step-buffer): New function.

2010-05-01  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-restart-sentinel): Don't pop to the inferior
	buffer, since this command is usually run either from
	*inferior-lisp* buffer or from REPL, it makes sense to reuse
	current window instead of messing up window configuration.
	(slime-move-point): New function, moves point in a buffer and
	its window.

2010-04-29  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-compile-file): Run check-parens after checking
	that the buffer is associated with a file.

2010-04-27  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-info): New function, opens the manual.

2010-04-24  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (format-values-for-echo-area): Also print the length of an
	integer in bits.

2010-04-23  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-update-threads-buffer): Use slime-eval-async.

2010-04-23  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-inspector-buffer): Use slime-with-popup-buffer,
	that solves the problem with keybindings shadowed by slime-mode.
	Reported by Nathan Bird.

	* README: Better wording.

2010-04-22  Stas Boukarev  <stassats@gmail.com>

	* swank-backend.lisp (with-symbol): Test for package before doing
	find-symbol.
	* swank-sbcl.lisp(Multiprocessing): use with-symbol.
	(emacs-inspect t): Remove newlines from text returned by
	sb-impl::inspected-parts, otherwise there will be ".." inserted by
	the printer due to (*print-lines* 1).

2010-04-21  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-open-inspector): Use forward-line instead of
	goto-line, since it doesn't result in  "Mark set" message.
	(slime-inspector-buffer): Enable slime-mode after enabling
	slime-inspector-mode, otherwise the former will be disabled by the
	latter.

2010-04-20  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (condition-timed-wait): New helper. Use
	WITH-DEADLINE rather than WITH-TIMEOUT because the latter conses a
	new timer, and this function is called _a lot_.
	(receive-if): Use it.

2010-04-20  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-update-threads-buffer): Save point position
	on updates.

2010-04-20  Stas Boukarev  <stassats@gmail.com>

	* README: advertise additional contribs, especially slime-fancy.

2010-04-19  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (symbol-classification-string): New function to
	replace (symbol-classification->string (classify-symbol
	symbol)). It's faster and conses much less, while it is called
	many times by fuzzy completion and fancy inspector.
	(symbol-classification->string): Removed.
	(list-threads): Exclude the current thread only if its name is
	"worker".

2010-04-18  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-threads-update-interval): Add :group and :type
	parameters to this customization.
	Thanks to Mark Harig.

2010-04-17  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-threads-update-interval): New customization
	variable, if set to a number the threads buffer will
	updated with this interval.
	(slime-with-popup-buffer): Rename modes option to mode,
	for a major mode. Enabling minor modes from within the body
	doesn't cause troubles. End that way it is compatible with XEmacs
	since it doesn't need to use minor-mode-list to distinguish
	between minor and major modes.

	* swank.lisp (list-threads): Delete the current thread from the
	listing.

2010-04-15  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (sldb-mode): Include some more commands in its help.
	(sldb-goto-last-frame): Do not center to the middle but to the
	bottom of the window.

2010-04-14  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (compile-file-for-emacs): Actually commit the change
	described in 2010-04-12.

2010-04-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] interrupt-encode-message): New test.

2010-04-14  Helmut Eller  <heller@common-lisp.net>

	Handle errors during interrupt processing with SLDB.
	Bugfix for http://article.gmane.org/gmane.lisp.slime.devel/9641

	* swank.lisp (invoke-or-queue-interrupt): When the queue is full,
	process the interrupt immediately and also handle
	SERIOUS-CONDITIONs during interrupt processing in SLDB.  SLDB
	should work more likely than the interrupted code is expected to
	handle the condition.
	(with-interrupts-enabled%): Don't check for interrupts when
	toggling interrupts off.
	(wait-for-event): Add docstring.

2010-04-14  Helmut Eller  <heller@common-lisp.net>

	Move error handling and logging from swank-rpc.lisp to swank.lisp

	* swank.lisp (log-event, destructure-case, decode-message)
	(encode-message, decode-message, swank-protocol-error): Moved back
	to swank.lisp from swank-rpc.lisp.  It never belonged there
	anyway.

	* swank-rpc.lisp (read-message, write-message): New functions.
	(swank-reader-error): New condition.

2010-04-12  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-doc-bindings): Restore key for slime-apropos.

2010-04-12  Helmut Eller  <heller@common-lisp.net>

	Fix compile-file for various backends.

	* slime.el (slime-compile-file): Only pass non-nil keyword args to
	Lisp.
	(slime-simplify-plist): New helper.
	(slime-compile-and-load-file): Pass policy parameter directly
	without using global variables.

	* swank.lisp (compile-file-for-emacs): Change singature sightly.

2010-04-06  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-create-compilation-log): Enable
	compilation-mode, which was enabled previously by
	slime-insert-compilation-log.

2010-04-05  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-doc-bindings): Move slime-apropos to C-c C-d A,
	C-c C-d a will be bound to slime-autodoc-manually.

	* doc/slime.texi: Document the above change.

2010-04-05  Stas Boukarev  <stassats@gmail.com>

	* slime.el: Some further adaptations to the new
	slime-with-popup-buffer.

2010-04-04  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-insert-threads): Use header-line-format only when
	it's present (XEmacs doesn't support it).

2010-04-04  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-with-popup-buffer): Make &optional parameters
	&key parameters, add modes parameter.
	slime-with-popup-buffer sets up some buffer local variables,
	but enabling major modes kills all buffer locals, so modes should
	be enabled before setting them.
	Adopt changes to slime-with-popup-buffer where needed.
	This fixes several bugs with popup buffers on non-default connections.

2010-04-03  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-update-threads-buffer): New formatting, with labels
	and additional information provided by the backend.
	* swank-allegro.lisp (thread-attributes): Move process-priority from
	thread-status.

2010-03-29  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Add gud as compile-time dependency.

2010-03-29  Helmut Eller  <heller@common-lisp.net>

	Compile swank-sbcl-exts only for SBCL.

	* swank-loader.lisp (*contribs*): Add #+sbcl.

2010-03-29  Helmut Eller  <heller@common-lisp.net>

	Minor cleanups

	* swank.lisp (connection): Make socket-io read-only again.
	(*connections*): Move declaration before first use.
	(finish-connection-setup): Merged into make-connection.
	(accept-connections): Renamed from serve-connection and
	reorganized so that the socket-io slot can be read-only.
	(accept-authenticated-connection): Renamed to authenticate-client.
	Update callers accordingly.

2010-03-29  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (connection-info): Use princ-to-string rather than
	prin1-to-string as the latter may barf if *print-readably* is nil.

2010-03-27  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-check-location-buffer-name-sanity): Less duplication,
	reuse slime-check-location-filename-sanity.
	(slime-check-location-filename-sanity): Do any work only when
	slime-warn-when-possibly-tricked-by-M-. is non-nil.

2010-03-21  Stas Boukarev  <stassats@gmail.com>

	* start-swank.lisp: Document options to swank-loader:init.

	* doc/slime.texi (Miscellaneous): mention
	`sldb-break-with-system-debugger'.

2010-03-21  Stas Boukarev  <stassats@gmail.com>

	* start-swank.lisp: New file for starting swank by simply loading
	sbcl --load start-swank.lisp

2010-03-19  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-lisp-implementation-program): New connection
	variable.
	(slime-set-connection-info): Adapted to set it.
	(slime-attach-gdb): Use it to invoke gdb so gdb is able to find
	debugging symbols on non-Linux platforms.

	* swank.lisp (connection-info): Include lisp-implementation-program.

	* swank-backend.lisp (lisp-implementation-program): New interface.
	Default implementation based on command-line-args.

	* swank-ecl.lisp (command-line-args): Implement.

2010-03-18  Tobias C. Rittweiler <tcr@freebits.de>

	Remove attach-gdb restart. Instead add SLDB shortcut `A'.

	* slime.el (slime-dispatch-event): Remove :gdb-attach.
	(slime-attach-gdb): Changed API. Takes connection not pid now and
	lightweight &optional arg. If not lightweight, get the default gdb
	config from the inferior Lisp.
	(sldb-break-with-system-debugger): New command, bound to `A' in
	sldb. Called this way to mimick
	`sldb-break-with-default-debugger', and because it may make sense
	to go beyond gdb in future, e.g. to invoke the Java Debugger for
	ABCL.

	* swank.lisp (call-with-gdb-restart, with-gdb-restart): Removed.
	(with-top-level-restart): Remove use of with-gdb-restart.
	(make-connection, start-server, create-server, setup-server):
	Remove inferior-lisp flag again. Not needed anymore.

2010-03-18  Tobias C. Rittweiler <tcr@freebits.de>

	Add M-x slime-attach-gdb as an interactive function.

	The ATTACH-GDB restart is nice because it's convenient and the
	backends can specify customized gdb configuration.

	Sometimes, if the Lisp is too screwed up, going over a restart
	involving the SWANK middle layer may not be possible. For that, a
	manual M-x slime-attach-gdb may come in handy.

	* slime.el (slime-read-connection): New helper.
	(slime-attach-gdb): Use it. Make it an interactive function.

2010-03-18  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (call-with-gdb-restart): Forgot to remove trailing T.

2010-03-18  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (open-dedicated-output-stream): Forgot to rename
	accept-authenticated-connection to accept-authenticated-client
	here.

2010-03-18  Tobias C. Rittweiler <tcr@freebits.de>

	Add an ATTACH-GDB restart to SLDB.

	* swank.lisp (call-with-gdb-restart): New. Sends the new
	:gdb-attach event to Emacs.
	(with-gdb-restart): Sugar.
	(with-top-level-restart): Also expand to with-gdb-restart.
	(dispatch-event): Add :gdb-attach event.

	* swank-backend.lisp (gdb-initial-commands): New interface
	function so backends can customize how gdb needs to be configured
	for their implementation.

	* swank-ecl.lisp (gdb-initial-commands): Implement.

	* slime.el (slime-dispatch-event): Add clause for :gdb-attach.
	(slime-attach-gdb): New.

2010-03-18  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (connection): Add socket slot, make socket-io slot
	not be required to be filled in during object creation. Add
	inferior-lisp slot so we can know whether a connection belongs to
	a superior Emacs process. Need for that will come in following
	commit.
	(make-connection): Our constructor.
	(create-connection): Removed; not needed anymore.
	(finish-connection-setup): Function to fill socket-io slot.
	(start-server): Results in inferior-lisp slot being T.
	(create-server): Results in inferior-lisp slot being NIL.
	(setup-server): Adapted accordingly. Construct connection early so
	we do not have to pass down all the meta information explicitly.
	(serve-connection): Adapted accordingly.
	(accept-authenticated-client): Renamed from
	accept-authenticated-connection.
	(dispatch-event): Get rid of unused :%apply and :end-of-stream
	events.

2010-03-16  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ecl.lisp (source-location): Also return EXT::FOO as
	candidate to search through the TAGS file because SI and EXT both
	name the same package, and in ECL's code base, sometimes the
	former, sometimes the latter is used.

2010-03-10  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (signal-interrupt): Removed.
	(interrupt-worker-thread): Slurp in definition of
	signal-interrupt. No need for invoke-or-queue-interrupt twice in
	case we do not use threads. Thus micro-prettification of
	backtraces.

2010-03-10  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ecl.lisp (source-location): Move call to
	TRANSLATE-LOGICAL-PATHNAME from here into MAKE-FILE-LOCATION
	because locations-via-annotations may now also involve logical
	pathnames.

2010-03-10  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ecl.lisp (*original-sigint-handler*)
	(install-sigint-handler): Deleted; we directly implement
	call-with-user-break-handler instead.
	(call-with-user-break-handler): New. Correctly interrupt main
	thread instead of newly spawned handle-signal thread on SIGINT.
	(make-interrupt-handler): New helper.

2010-03-09  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp (emacs-inspect function): Print closed over variables
	in case of closure.

2010-03-09  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-parse-context): Add defclass.

2010-03-09  Helmut Eller  <heller@common-lisp.net>

	Some more fixes for Allegro

	* swank-allegro.lisp (function-source-location): Use
	xref::object-to-function-name which seems to work better for some
	cases.
	(fspec-definition-locations): For :top-level-forms return a list
	of ((fspec loc)) not just (fspec loc).  Also deal with the file
	vs. buffer issue.
	(ldb-code-to-src-loc): Don't use *temp-file-map* before it is
	declared.
	(pc-source-location): Be a bit more fuzzy when searching the
	code-location for a pc.

2010-03-08  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-extract-context): Add defvar and defparameter.

2010-03-08  Helmut Eller  <heller@common-lisp.net>

	Fix some of the brokeness in the last change.

	* swank-allegro.lisp (frame-source-location): Deal with frames for
	undefined functions better.
	(ldb-code-to-src-loc): Handle temp-files properly.

2010-03-08  Helmut Eller  <heller@common-lisp.net>

	Try to use source-level debugging features in Allegro 8.2

	* swank-allegro.lisp (disassemble-frame): Use undocumented
	debugger::dyn-fd-analyze to figure out the PC and display it.
	(pc-source-location, ldb-code-to-src-loc, longest-common-prefix)
	(source-paths-of): New functions.
	(frame-source-location): Use pc-source-location.  Still far from
	optimal since Allegro rarely records source regions and anonymous
	functions don't seem to carry source level debug-info at all.
	(*temp-file-map*, buffer-or-file-location, find-fspec-location):
	Use a table to map temp-file names back to Emacs buffers instead
	of putting an eval-when-compile form in the source.  The
	eval-when-compile form messed up source positions.
	(*temp-file-header-end-position*, find-definition-in-buffer):
	Deleted.
	(compile-from-temp-file): Bind excl:*load-source-debug-info* and
	compiler:save-source-level-debug-info-switch so that Allegro
	doesn't try to load debug-info from deleted files.  Also put
	the filename in *temp-file-map*.

2010-03-08  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (dispatch-interrupt-event): Take a connection because
	it boils down to SIGNAL-INTERRUPT which uses USE-THREADS-P which
	needs a connection.
	(install-fd-handler): Adapted accordingly.
	(simple-serve-requests): Adapted accordingly. Additionally, remove
	superfluous WITH-SWANK-PROTOCOL-HANDLER as that's established by
	WITH-CONNECTION already.
	(simple-repl): Show "abort inferior lisp" restart only if not a
	more appropriate "abort some REX" restart is available. Also make
	sure to return in case of END-OF-FILE, otherwise there's an
	infinite loop where we end up in the debugger again and again
	until the user eventually selects close-connection restart himself.
	(make-repl-input-stream): Use WITH-TOP-LEVEL-RESTART so
	`sldb-quit' can be used in SLDB.

2010-03-08  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (close-connection): Include initially passed
	coding-system in debugging output.

2010-03-08  Tobias C. Rittweiler <tcr@freebits.de>

	Make swank:connection-info include information about initially
	passed coding-system, and the resulting external-format of the
	socket. Debugging aid.

	* swank.lisp (connection.external-format): New function.
	(start-server, create-server): Pass down coding-system, not
	external-format.
	(setup-server): Pass down both, coding-system and external-format.
	(serve-connection): Ditto.
	(create-connection): Set coding-system slot of CONNECTION.
	(connection-info): Include coding-system and external-format.

2010-03-07  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (count-cr): Deleted.  No longer used.

2010-03-07  Helmut Eller  <heller@common-lisp.net>

	Handle src-locs of compiler warnings in Allegro 8.2.
	Didn't somebody already fix that?

	* swank-allegro.lisp (location-for-warning)
	(handle-undefined-functions-warning): In 8.2 src-locs include not
	only start but also and end positions.

2010-03-07  Stas Boukarev  <stassats@gmail.com>

	* swank-ecl.lisp (source-location): Don't do
	(setq file (tmpfile-to-buffer file)) in a COND condition,
	otherwise next cond clause will get null file.
	Apply translate-logical-pathname to pathnames.

2010-03-05  Helmut Eller  <heller@common-lisp.net>

	Remove some unused stuff.

	* swank-ccl.lisp (openmcl-set-debug-switches)
	(*interesting-internal-frames*)
	(interesting-frame-p): Unused. Deleted.

2010-03-05  Helmut Eller  <heller@common-lisp.net>

	* swank-ccl.lisp: Indentation fixes.

2010-03-05  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ecl.lisp: Make backend depend on ECL version 10.3.1 which
	just got released. We do not support older versions. Previous
	version pretty much didn't work in combination with Slime anyway.

2010-03-05  Tobias C. Rittweiler <tcr@freebits.de>

	Ecl: Make M-. work on function interactively compiled via C-c C-c.

	* swank-ecl.lisp (*tmpfile-map*, note-buffer-tmpfile)
	(tmpfile-to-buffer): New helpers.
	(swank-compile-string): Use them. Also use new COMPILE-FILE
	keywords :SOURCE-TRUENAME and :SOURCE-OFFSET available in ECL
	HEAD.
	(find-definitions): Slurp in definition of
	FIND-DEFINITIONS-BY-NAME.
	(find-definitions-by-name): Hence not needed anymore.
	(source-location): Use TMPFILE-TO-BUFFER to get buffer source
	location of interactively compiled functions.

2010-03-04  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp (emacs-inspect): Define default method to use
	the result of SYS:INSPECTED-PARTS if non-nil.

2010-03-03  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (Inspector): document slime-inspector-eval.
	Patch by Mark Harig.

2010-03-03  Helmut Eller  <heller@common-lisp.net>

	Don't special case special operators with M-. for CMUCL.

	* swank-cmucl.lisp (function-definitions): Special operators will
	have IR1-translators anyway, so no need to mark them "special".
	(gf-definitions): Renamed from generic-function-definitions.

2010-03-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-inspector-history): New command.

2010-03-03  Helmut Eller  <heller@common-lisp.net>

	Don't try to bind keywords in inspector-eval.

	* swank.lisp (inspector-eval): For now, don't bind symbols which
	are constantp.  Maybe something better can be found later.

2010-03-03  Helmut Eller  <heller@common-lisp.net>

	Use @ instead of # to mark object in the inspect history.

	* swank.lisp (print-part-to-string): Use @.

2010-03-03  Helmut Eller  <heller@common-lisp.net>

	Make eval-in-frame display multiple values; not only the first.

	* swank.lisp (values-to-string): New macro.
	(eval-string-in-frame): Use it.

2010-03-02  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (definition-source-for-emacs): Don't error when
	source location doesn't contain form position, point emacs to the
	beginning of a source file and if it's a function provide a
	snippet "(defun <name> ".

2010-03-02  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-compile-and-load-file): Accept C-u arguments for
	compilation policy the same way as slime-compile-defun.

	* swank.lisp (compile-file-for-emacs): Take an additional policy
	argument.
	* swank-backend.lisp (swank-compile-file): Ditto.

	* swank-sbcl.lisp (compiler-policy, (setf compiler-policy)):
	rename from get/set-compiler-policy.
	(with-compiler-policy): New macro.
	(swank-compile-file): Use with-compiler-policy.
	(swank-compile-string): Ditto.

	* doc/slime.texi (Compilation): Update.

2010-03-01  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (documentation-symbol): Show arglists for functions too.

2010-03-01  Tobias C. Rittweiler <tcr@freebits.de>

	Fix that annoying bug that caused being constantly asked to switch
	connection in case one had multiple connections running and quit
	from one.

	* slime.el (slime-modeline-string): Bail out early because
	`slime-current-package' involves `slime-connection' in case the
	slime-repl contrib is used, and querying the user in a
	periodically called function is rather annoying..

2010-02-26  Stas Boukarev  <stassats@gmail.com>

	* swank-loader.lisp (ecl-version-string): Check length of
	the result of ext:lisp-implementation-vcs-id before doing subseq.
	On CVS it returns "unknown".

2010-02-25  Stas Boukarev  <stassats@gmail.com>

	* swank-loader.lisp (ecl-version-string): In
	#+(or) (progn #+#.(cl:print cl:nil) 1) PRINT does run on SBCL, which
	breaks #+#.(cl:if (cl:find-symbol "SYMBOL" :ext) ...) here,
	guard it with
	(find-package :ext) until further investigations.

2010-02-25  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-loader.lisp (lisp-version-string): Add git-commit ids for
	ECL because individual commits do not guarantee fasl
	compatibility.

2010-02-23  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend.lisp (when-let): New macro. For backends and
	swank.lisp.

	* swank-ecl.lisp: Use it. Also use new location support of ECL git
	HEAD.

2010-02-23  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-postprocess-xref): Show a TAGS entry's hints as
	part of an Xref's dspec for the case of multiple matches.

2010-02-23  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ecl.lisp (preferred-communication-style): Go back to
	NIL. Some parts (like the compiler and CLOS) of ECL do not seem to
	be thread-safe yet. Also get rid of non-working implementation of
	:FD-HANDLER.
	(poll-streams, wait-for-input): Implement on top of select() for
	communication-style=NIL.
	(*descriptor-handlers*, add-fd-handler, remove-fd-handlers): Get
	rid of.
	(grovel-docstring-for-arglist): Get rid of it, too.
	(arglist): ECL now provides an extra accessor to a function's
	arglist. Use that instead.
	(emacs-inspect): Get rid of the default method. Don't see its
	point.

2010-02-22  Tobias C. Rittweiler <tcr@freebits.de>

	Make swank-ecl.lisp work with latest ECL Git HEAD.

	* swank-ecl.lisp (assert-TAGS-file): Simplified.
	(assert-source-directory): New helper.
	(c-function-p): New helper.
	(c-function): Type based on above.
	(source-location): Move bits from FIND-DEFINITIONS-FOR-TYPE to
	this function. Use CONVERTING-ERRORS-TO-ERROR-LOCATION.
	(find-definitions-for-type): Simplified by using it.

2010-02-22  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend.lisp (converting-errors-to-error-location): Moved
	here from swank-sbcl.lisp so other backends can make use of it, too.

	* swank-sbcl.lisp: The above macro was called slightly
	differently, so update uses accordingly.

2010-02-22  Tobias C. Rittweiler <tcr@freebits.de>

	Make M-. be able to jump right into the C source for ECL.

	Because it's based on TAGS files, M-. and M-* will DTRT once in a
	.c file.

	* swank-ecl.lisp (assert-TAGS-file): New helper.
	(classify-definition-name): Ditto.
	(find-definitions-for-type): Ditto. Understands Lisp and C
	functions.
	(find-definitions): Use them.
	(source-location): New helper. Extracted from FIND-SOURCE-LOCATION.
	(find-source-location): Use it.
	(swank-compile-string): Only try to delete temporary files if they
	exist.

2010-02-22  Tobias C. Rittweiler <tcr@freebits.de>

	Make it possible for SWANK backends to specify locations based on
	a TAGS file.

	* slime.el (slime-postprocess-xref, slime-postprocess-xrefs): New
	functions. They convert TAGS based locations from SWANK into
	file+position based locations because the rest of Slime expects
	and works with those.
	(slime-find-definitions): Call slime-postprocess-xrefs.
	(slime-xref): Ditto.
	(slime-etags-to-locations): The function which does the actual
	conversion. Extracted from `slime-etags-definitions'.
	(slime-etags-definitions): Use it.

	* swank-backend (defimplementation): Add implicit BLOCK.
	(:etags-file, :tag): Mentioned for possible values in :LOCATION.

2010-02-20  Tobias C. Rittweiler <tcr@freebits.de>

	More work on ECL's swank-backend.

	* swank-ecl.lisp (accept-connection): Handle :buffering, and
	:external-format.
	(external-format): New helper.
	(find-external-format): Make sure to only return :default in case
	ECL was built with --disable-unicode; it'll barf on anything else.
	(socket-fd): Add two-way-stream case due to recent changes in ECL.
	(make-file-location, make-buffer-location): New helpers.
	(condition-location): Use them.
	(swank-compile-file): Handle :external-format.
	(compile-from-stream): Deleted. Slurped into swank-compile-string.
	(swank-compile-string): Call SI:MKSTEMP correctly. Make sure to
	also remove fasl file, not just source file.
	(grovel-docstring-for-arglist): Do not look at "Syntax:" entry in
	docstring because that was a kludge. Upstream ECL should be
	modified instead.
	(in-swank-package-p, is-swank-source-p, is-ignorable-fun-p):
	Commented out. They make debugging ECL's swank-backend harder.

2010-02-20  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-loader.lisp (*architecture-features*): Add :PENTIUM3 and
	:PENTIUM4; they're used by ECL.
	(handle-swank-load-error): Renamed from HANDLE-LOADTIME-ERROR. Use
	*FASL-DIRECTORY* rather than (DEFAULT-FASL-DIR). Parametrize
	context to differentiate b/w compilation/loading.
	(compile-files): Adapted accordingly. Also make sure that an error
	is signaled in case COMPILE-FILE returns NIL as primary result.

2010-02-20  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp: Remove outdated comment at the beginning
	since it may be misleading.

	* slime.el: In minor-mode-alist for slime-popup-buffer-mode,
	run slime-modeline-string only if slime-mode isn't active, because
	slime-mode runs slime-modeline-string from minor-mode-alist too
	resulting in duplicate modeline strings.
	Reported by Leo Liu.

2010-02-18  Mark Harig <idirectscm@aim.com>

	The compiler warns about various stuff. Fix some of it.

	* slime.el (slime-add-local-hook): Remove support for Emacs 20.
	(sldb-recenter-region): Use forward-line; not next-line.

2010-02-17  Helmut Eller  <heller@common-lisp.net>

	Add a command to eval stuff in the inspector.

	* slime.el (slime-inspector-eval): New command.
	(slime-inspector-mode-map): Bind it to 'e'.
	* swank.lisp (inspector-eval): New function.
	* swank-backend.lisp (eval-context): New function.
	* swank-cmucl.lisp (eval-context): Implement it.

2010-02-17  Helmut Eller  <heller@common-lisp.net>

	Point-entered hooks in the xref buffer don't work so well.
	Use forward/backward commands instead.

	* slime.el (slime-xref-next-line, slime-xref-prev-line): New
	commands.
	(slime-xref-show-location): New aux function.
	(slime-xref-mode-map): Remap up/down to next/prev location
	commands.  Make SPC and RET do the same.

2010-02-17  Helmut Eller  <heller@common-lisp.net>

	Select the xref buffer.
	I never could get used to the next/prev cycling.

	* slime.el (slime-with-xref-buffer): Select the buffer.
	(slime-insert-xrefs): Add point-entered hook to automatically
	display the current location.
	(slime-xref-entered): New function.
	(slime-show-buffer-position): Don't use reposition-window which
	seems very slow and doesn't even do a particularly good job.  The
	new heuristic is much cruder but faster.
	(slime-xref-mode-map): Remove apparently redundant bindings for
	RET.

2010-02-17  Helmut Eller  <heller@common-lisp.net>

	Get rid or snapshots.

	* slime.el (slime-narrowing-configuration, slime-emacs-snapshot)
	(slime-current-narrowing-configuration)
	(slime-set-narrowing-configuration, slime-current-emacs-snapshot)
	(slime-set-emacs-snapshot)
	(slime-current-emacs-snapshot-fingerprint, slime-frame-windows):
	Deleted.  Update call-sites accordingly.

2010-02-17  Helmut Eller  <heller@common-lisp.net>

	Test suite hangs for CCL and CMUCL.

	* slime.el ([test] compile-defun): Remove those compile-time read
	errors for which some implementations invoke the debugger.
	(sexp-at-point.1): Remove failing tests

2010-02-16  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-loader.lisp: Compile files on ECL, too.

2010-02-16  Tobias C. Rittweiler <tcr@freebits.de>

	Pimp my swank.

	* swank-ecl.lisp: We depend on ECL 10.2.1 which is not released
	yet -- you need git/cvs HEAD. Added :spawn, and :fd-handler as
	communication-style (Thanks to Ram Krishnan), improve compilation
	hooks so highligting of warnings works, + various cleanup.

2010-02-15  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-load-contribs): Do not call SWANK-REQUIRE
	asynchronously, if host Lisp uses :SPAWN that may result in the
	attempt to load in code concurrently -- the host Lisp may not
	support that.

2010-02-14  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-attempt-connection): Fix typo. Thanks to Mark
	Harig for spotting it.

2010-02-13  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-attempt-connection): Do not keep on trying to
	connect if inferior process died.

2010-02-07  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ecl.lisp: Update threading code. ECL doesn't still work
	with :spawn, though. Work in progress.

2010-02-07  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (xref-doit): Declare eql-specializing parameter
	ignorable, as some implementations complain about them not being
	used.

2010-02-01  Mark Harig <idirectscm@aim.com>

	* slime.el: Added missing pieces to make `slime-cycle-connections'
	available from keystrokes.
	(slime-prefix-bindings): Added "\C-xn" entry.
	(slime-cycle-connections): Corrected grammar in doc string.
	(def-slime-selector-method): Added menu item `n' to SLIME selector
	menu.

	* doc/slime.texi: Added a description for the new key sequence for
	`slime-cycle-connections' and for the new menu item in the SLIME
	selector menu.
	Node slime-selector: Added menu item `n' and cross-references to
	"Multiple Connections" node.
	Node Multiple connections: Added C-c C-x n description.  Added
	cross-references to `slime-selector' node.

2010-01-31  Tobias C. Rittweiler <tcr@freebits.de>

	* hyperspec.el: When using C-c C-d ~ TAB, previously there were
	entries for "C" and "C: Character", which unpleasingly crowded the
	completion buffer, so I made it show one entry ("C - Character")
	only. RIP, erik.

2010-01-30  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-cycle-connections): Change docstring, it
	doesn't make connection buffer-local.
	* doc/slime.texi (Multiple connections): document
	slime-cycle-connections.

	* swank.lisp (pathname-as-directory): Treat "/foo/bar" and "/foo/bar/"
	the same.
	(compile-file-output): Use the above function.

2010-01-28  Mark Evenson  <evenson@dada.local>

	* swank-abcl.lisp (emacs-inspect): Make inspection of Java objects
	toString() results dependent on explicit user request to avoid
	potentially computationally expensive operations.

2010-01-27  Stas Boukarev  <stassats@gmail.com>

	* swank-rpc.lisp: NIL -> nil (for unusual readtable settings).
	Spotted by Harald Hanche-Olsen.

2010-01-26  Mark Evenson  <evenson@dada.local>

	* swank-abcl.lisp: Import
	MOP::COMPUTE-APPLICABLE-METHODS-USING-CLASSES if it exists in the
	ABCL implementation.

2010-01-25  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-allegro.lisp (redefinition-p, redefinition): New.
	(handle-compiler-warning): Add :severity for redefinitions,
	style-warnings, errors.

2010-01-21  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp (with-frame): Put this macro before it's used.

2010-01-20  Terje Norderhaug <terje@in-progress.com>

	* swank.lisp (with-swank-protocol-error-handler): Refactor using
	safe-backtrace.
	* swank-rpc.lisp (make-swank-protocol-error): Delete call to
	swank:safe-backtrace to eliminate dependency on swank.lisp module.
	* swank-rpc.lisp (swank-protocol-error): Remove
	swank-protocol-error.backtrace as the capture of a safe-backtrace
	is covered by with-swank-protocol-error-handler.

2010-01-20  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-thread-kill): If the region is active, then
	kill all threads in the region.

2010-01-19  Stas Boukarev  <stassats@gmail.com>

	* swank-rpc.lisp (:swank-rpc): (:use :cl), SBCL
	doesn't use it by default.

2010-01-19  Terje Norderhaug  <terje@in-progress.com>

	* Refactorized parts of swank.lisp into a new swank-rpc module.

2010-01-14  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (Setting up the lisp image):
	(swank-loader:init) is also needed for loading swank.
	Reported by Evgeny Bahvalov.

2010-01-13  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (*swank-state-stack*): Delete. Not needed anymore.
	(defslimefun state-stack): Delete.
	(decode-message): Adapted.
	(debug-in-emacs): Adapted.

2010-01-11  Mark Evenson  <evenson@dada.local>

	* swank-abcl.lisp (emacs-inspect): Implementation for Java
	objects.

	Fix compiler warning about *ABCL-SIGNALED-CONDITIONS*.

2010-01-06  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend (declaration-arglist): Normalize declaration
	specifiers to contain `variables' rather than `vars'.

2010-01-05  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (compiler-note-location): Add missing return-from.

2010-01-05  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (compile-defun [test]): Add two cases.

2010-01-05  Cecil Westerhof  <Cecil@decebal.nl>

	* slime.texi (inferior-slime-mode): Fix thinko.

2010-01-05  Terje Norderhaug  <terje@in-progress.com>

	Provide default implementation for all-threads.

	* swank-backend.lisp (all-threads): Just return ().

2010-01-05  Helmut Eller  <heller@common-lisp.net>

	Fix M-. bug related to CMUCL's multi-file compilation units.

	* swank-cmucl.lisp (code-location-stream-position): Require the
	"root-number" as argument and subtract it from the TLF number.
	(location-in-file): Pass the root number along.
	(code-location-string-offset): Use 0 as root number.

2010-01-05  Helmut Eller  <heller@common-lisp.net>

	Slightly better error message when CMUCL fails to find defstructs.

	* swank-cmucl.lisp (struct-constructor, setf-definitions): Don't
	use COERCE which gives confusing error message.

2010-01-05  Helmut Eller  <heller@common-lisp.net>

	Add "quit" and "other window prefix" buffer selectors.

	* slime.el (slime-selector-other-window): New variable.
	(slime-selector): Bind it as need.
	(def-slime-selector-method): Use the other window if so indicated.
	([selector] 4): New key binding.
	([selector] q): New key binding. just abort.

2010-01-05  Helmut Eller  <heller@common-lisp.net>

	Stop the beeping on restart.

	* slime.el (slime-quit-lisp-internal): Don't kill already dead
	processes.

2010-01-03  Stas Boukarev  <stassats@gmail.com>

	* swank-backend.lisp (frame-call): New function.
	Returns a string representing a call to the entry point of a frame.
	* swank-ccl.lisp (frame-call): Implementation of the above.
	* swank-sbcl.lisp (frame-call): Ditto.

2010-01-03  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (with-swank-protocol-error-handler): Remove debugging
	bits.

2010-01-03  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-next-read-or-lose): Call `debug' with the error
	condition, so we can see what actually caused the losage.

2010-01-03  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (compile-defun [test]): Also test proper notification
	after reader-error. Additionally: bind font-lock-verbose to nil to
	prevent annoying font-lock messages during the test.

	* swank-sbcl.lisp (signal-compiler-condition): Make sure
	READER-ERROR comes before ERROR in typecase.
	(swank-compile-file): Remove handling FATAL-COMPILER-HANDLER
	because a) this handling prevents sbcl from printing the
	diagnostics to the repl, and b) sbcl itself should handle this and
	translate it into proper return value for compile-file.

2009-12-23  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (complete-symbol [test]): Fix test case.

2009-12-22  Helmut Eller  <heller@common-lisp.net>

	Some new backend functions used for loading image files.

	* swank-backend.lisp (socket-fd, make-fd-stream, dup, exec-image)
	(command-line-args): New functions.
	* swank-cmucl.lisp: Impemented.
	* swank-cmucl.lisp (reset-sigio-handlers): New function.
	(save-image): Fix quoting bug.

	* swank.lisp (clear-event-history): New functoin.
	(interactive-eval, eval-region): Don't use FRESH-LINE.

2009-12-21  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-at-list-p): Deleted.
	(slime-at-expression-p): Moved to slime-package-fu.
	(slime-forward-blanks): Deleted. Use `(skip-chars-forward
	"[:space:]")' instead.
	(slime-forward-any-comment): Deleted.
	(slime-reader-conditionals-regexp): Make a constant so it's
	inlined.
	(slime-unknown-feature-expression): Make it an error.

2009-12-19  Stas Boukarev  <stassats@gmail.com>

	* swank-backend.lisp (defpackage): export with-symbol and
	replace its fully qualified usage everywhere.

2009-12-17  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-edit-uses-xrefs): New variable. For contribs to
	extend.
	(slime-edit-uses): Use it.

	* swank.lisp (xref-doit): Now a generic functions. For contribs to
	extend.

2009-12-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (with-top-level-restart): Bind local special.
	(top-level-restart-p): Check for it; this tells us if we're in
	the dynamic extent of with-top-level-restart.
	(handle-requests): Use it.

2009-12-17  Stas Boukarev  <stassats@gmail.com>

	* swank-match.lisp: Fix formatting and style warnings.

2009-12-17  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (handle-requests): Comment out
	(assert (boundp '*sldb-quit-restart*)) because it's not bound
	on NIL communication style. It's not a real fix, but at least it
	lets null communication-style work.

2009-12-16  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (categorize-definition-source): New.
	(definition-source-for-emacs): Use it. Slightly
	refactored. Renamed from `make-definition-source-location'.
	(find-definitions, find-source-location)
	(source-location-for-xref-data, function-dspec): Updated
	accordingly.
	(source-file-position): Scratch last argument, not needed anymore.

2009-12-16  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (compile-file-output): Use
	(make-pathname :directory dir :defaults (compile-file-pathname file))
	instead of (compile-file-pathname file :output-file dir),
	because the latter works differently on different implementations.
	(fasl-pathname): Use the above function.

2009-12-16  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (*sldb-quit-restart*): Export. For users to customize
	what `q' does in SLDB.
	(handle-requests): Test differently for recursive invocations
	as *sldb-quit-restart* may now be globally bound due to user
	customization.
	(coerce-restart): Coerces a restart-designator to a restart.
	(throw-to-toplevel): Use it.

	* slime.texi (swank:*sldb-quit-restart*): Document it.

2009-12-15  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (collect-notes): Establish new abort restart ("Abort
	Compilation"); if an error is signaled in EVAL-WHEN, or during
	macroexpansion -- assuming the backend DTRT --, invoking this
	restart will result in the normal compilation failure behaviour,
	including correct reporting of the offending toplevel form.

	* swank-sbcl.lisp (handle-notification-condition): Use
	`real-condition' here.
	(handle-file-compiler-termination): As a result, not needed anymore.
	(call-with-compilation-hooks): Also signal information about
	normal errors.

2009-12-14  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (ASDF): Document new commands.

2009-12-12  Matthias Koeppe  <mkoeppe@math.ucdavis.edu>

	* doc/slime.texi (Presentations): Add an example that illustrates
	quoting necessary with presentations that are lists.

2009-12-11  Stas Boukarev  <stassats@gmail.com>

	* swank-allegro.lisp: Use new function `make-error-location'.
	(find-fspec-location): Handle errors.
	Patch by Tobias C. Rittweiler.

2009-12-11  Tobias C. Rittweiler <tcr@freebits.de>

	Add `M-x slime-toggle-debug-on-swank-error'.

	In "Debug on SWANK error" mode, errors which are normally caught
	to not annoy the user, will now drop into the debugger.

	Additionally, the backend won't do any backtrace magic so you'll
	see the full backtrace with all its glory details. (SBCL only so
	far.)

	* slime.el (slime-toggle-debug-on-swank-error): New.

	* swank.lisp (toggle-debug-on-swank-error): New slimefun.
	(debug-on-swank-error): New function. SETFable.
	(invoke-default-debugger): Use CALL-WITH-DEBUGGER-HOOK so we're
	trapped into the native debugger on SBCL (previously we weren't
	due to SB-EXT:*INVOKE-DEBUGGER-HOOK*.)

	* swank.lisp: Rename SWANK-ERROR to SWANK-PROTOCOL-ERROR.

2009-12-11  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (call-with-debugger-hook): Oops, removed the
	binding for *DEBUGGER-HOOK*. Fix that.
	(make-invoke-debugger-hook): Do nothing if hook is NIL.

2009-12-10  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend.lisp (*debug-swank-backend*): New variable. If
	true, backends should not catch internal errors (e.g. during
	definition finding), and should not perform backtrace magic.
	(make-error-location): New helper.
	(find-definitions [interface]): Default to error location.

	* swank-sbcl.lisp (converting-errors-to-location): New helper
	macro. Regards new *DEBUG-SWANK-BACKEND*.
	(find-definitions [implementation]): Use it.
	(find-source-location [implementation]): Ditto.
	(functiond-spec): Ditto.
	(frame-source-location [implementation]): Ditto.
	(*debug-definition-finding*): Removed.
	(make-source-location-specification): Removed.
	(safe-function-source-location): Removed.
	(safe-source-location-for-emacs): Removed. Not needed anymore.

	(call-with-debugging-environment): Do not perform stack hinting
	depending on *DEBUG-SWANK-BACKEND*.

2009-12-10  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (set-break-hook): New.
	(call-with-break-hook): New, too. Both extracted from elsewhere.
	(install-debugger-globally, call-with-debugger-hook): Use them.
	(make-invoke-debugger-hook): Adapted not to call *debugger-hook*
	on its own; it should rather decline because *debugger-hook* is
	tried after *invoke-debugger-hook* anyway. Previously, a
	custom *debugger-hook* (which declines itself) would have been
	executed twice.

2009-12-07  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-parse-toplevel-form): Use
	`slime-region-for-defun-at-point' instead of `beginning-of-defun'.

2009-12-03  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-documentation-lookup-function): New hook,
	defaults to `slime-hyperspec-lookup'.
	(slime-documentation-lookup): Invoke hook.
	(slime-prefix-bindings): Bind `C-c C-d h' to it.

2009-12-02  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (frame-locals): `frame-debug-vars' can return NIL,
	so check before using it as a vector.
	Patch by Nathan Bird.

2009-11-30  Helmut Eller  <heller@common-lisp.net>

	Add a slime-editing-map as suggested by Attila Lendvai.  The main
	purpose is to create a keymap that's shared by the REPL and other
	modes so that adding custom bindings gets a bit easier.

	* slime.el (slime-editing-map, slime-mode-indirect-map): New variables.
	(slime-init-keymaps): Clear out any existing bindings before
	building the new keymaps.
	(slime-init-keymap): New helper.
	(slime-bind-keys): Renamed&extended from
	slime-define-both-key-bindings.

	* slime.el (slime-editing-mode): New minor mode for use
	in the REPL.

2009-11-26  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp (arglist):  Fixes for functions with non-nil
	arglist and for generic functions with empty argument lists.

	Diagnosed and cured by Matthias Hlzl.

2009-11-23  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-set-connection-info): Set slime-current-thread to t
	before doing anything. Solves a bug reported by Slawek Zak.

2009-11-21  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (who-specializes): Implement.
	Requires SBCL 1.0.32.

2009-11-19  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-minibuffer-map): Nee `slime-read-expression-map'
	(slime-minibuffer-history): Nee `slime-read-expression-history'
	(slime-minibuffer-setup-hook): Extracted.
	(slime-read-from-minibuffer): Adapted accordingly.

2009-11-13  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (classify-symbol): Check fbound before calling
	fdefinition, ECL doesn't like (fdefinition nil).

	* swank-ecl.lisp
	(swank-mop:compute-applicable-methods-using-classes): Add a dummy
	function. ECL doesn't have it, but some contribs are using it.
	Patch by Andy Hefner.

2009-11-13  Stas Boukarev  <stassats@gmail.com>

	* swank-ecl.lisp (function-name): Use clos:generic-function-name
	for generic functions.
	(arglist): Check fro symbol before calling special-operator-p and
	macro-function.
	Patch by Andy Hefner.

2009-11-06  Stas Boukarev  <stassats@gmail.com>

	* swank-ecl.lisp (grovel-docstring-for-arglist): ECL's arglists
	for macros include macro name at the first place, unlike arglists
	for functions. cdr arglists only for macros and special operators.
	Reported by Andy Hefner.
	(find-source-location): Missing comma before error message formatting.
	Patch by Andy Hefner.

2009-11-05  Tobias C. Rittweiler <tcr@freebits.de>

	Make C-c C-c operate on region if mark is active (and Transient
	Mark mode is enabled.)

	* slime.el (slime-compile-defun): Operate on region if
	transient-mark-mode is active.

2009-11-03  Helmut Eller  <heller@common-lisp.net>

	Ask gdb for source lines of foreign functions.

	* swank-cmucl.lisp (frame-source-location): Handle foreign
	frames with gdb.
	(frame-ip): Handle bogus frames (on x86)
	(disassemble-frame): Use gdb for foreign frames.
	(foreign-frame-p, foreign-frame-source-location): New functions.
	(gdb-command, gdb-exec, parse-gdb-line-info, read-word)
	(whitespacep, with-temporary-file, call/temporary-file): New
	helpers.

2009-11-03  Stas Boukarev  <stassats@gmail.com>

	* slime.el (sldb-setup): Do (set-syntax-table lisp-mode-syntax-table)
	otherwise functions used by autodoc do not work properly.

2009-11-03  Stas Boukarev  <stassats@gmail.com>

	* slime.el (sldb-backward-frame): If the point is at the end of
	the buffer, there is no property, handle this case.

	* swank.lisp (collect-notes): LOAD returns generalized boolean,
	not just boolean, but make-compilation-result accepts only booleans
	for its second argument.

	Both bugs reported by Derrell Piper.

2009-11-02  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-end-of-symbol): Make sure not to move on #'foo.
	([test] sexp-at-point.1): New test case.

2009-11-02  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (without-interrupts): Removed. No longer used.
	* swank-backend.lisp (call-without-interrupts): Removed.
	Update backends accoringly.

2009-11-02  Helmut Eller  <heller@common-lisp.net>

	CCL's lap-functions don't have source-notes but the name often
	has.  E.g. ccl::%fixnum-truncate.  Use names as last resort.

	* swank-ccl.lisp (function-name-source-note): New function.
	(pc-source-location): Use it.

2009-11-02  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (tokenize-symbol-thoroughly): Return NIL
	instead of throwing an error.
	(parse-symbol): Handle null result of tokenize-symbol-thoroughly.

	This fixes a bug reported by Derrell Piper.

2009-10-31  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-bug): Deleted.

2009-10-31  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-inside-string-p, slime-inside-comment-p)
	(slime-inside-string-or-comment-p): New.

	* swank-match.lisp: New file. Contains very simple pattern matcher
	from the CMU AI archive.

	* swank-loader.lisp: Compile swank-match.lisp.

	* swank.lisp: Make SWANK package use new SWANK-MATCH package.

2009-10-31  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (find-symbol-with-status): New.
	(parse-symbol): Use it to correctly parse symbols where only one
	colon is given. Consequences: Autodoc won't display an arglist on
	`(foo:bar |' if BAR is not exported from FOO.

2009-10-31  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (list-threads): Remove thread-description.  Wasn't
	used anymore.
	* swank-backend.lisp (thread-description, set-thread-description):
	Deleted.
	* swank-abcl.lisp: Update accordingly.
	* slime.el (slime-update-threads-buffer, slime-thread-insert):
	Update accordingly.

2009-10-31  Helmut Eller  <heller@common-lisp.net>

	* swank-ccl.lisp (kill-thread): Don't signal conditions.
	* swank-backend.lisp (kill-thread): Update docstring.

2009-10-30  Stas Boukarev  <stassats@gmail.com>

	* swank-loader.lisp (setup): Use EXT:PROBE-DIRECTORY on Clisp,
	because PROBE-FILE doesn't want to work on directories.
	Patch by Dirk Sondermann.

2009-10-30  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp: Removed. 1.4 is out so no longer needed.
	* swank-ccl.lisp: Update accordingly.

	* test-all.sh: Removed. Not used in ages.

2009-10-28  Helmut Eller  <heller@common-lisp.net>

	Simpler modeline code.

	* slime.el (slime-modeline-string): Renamed from
	slime-compute-modeline-string.
	(slime-modeline-state-string): Renamed from
	slime-compute-connection-state
	(slime-modeline-package, slime-modeline-connection-name)
	(slime-modeline-connection-state)
	(slime-extended-modeline,slime-compute-modeline-package)
	(slime-update-modeline-string, slime-shall-we-update-modeline-p)
	(slime-update-all-modelines, slime-modeline-update-timer)
	(slime-restart-or-init-modeline-update-timer)
	(slime-connection-state-as-string): Deleted
	(slime-stale-connection-p): Deleted.

2009-10-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-disconnect): Don't reference connection.  Left
	over from last change.
	([test] arglist): Update expected results for slightly changed
	printer settings.
	([test] indentation): Install common-lisp-indent-function.
	([undefun] display-warning): Fix it.

	* test.sh: Don't copy contribs. Slime should work without them.
	* swank-loader.lisp (setup): Compile contribs only if directory
	exists.

2009-10-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-format-display-message, slime-display-message)
	(slime-create-message-window): Deleted.  The trick with the
	pre-command-hook doesn't work in XEmacs 21.5.  So use the standard
	message function.  One day XEmacs will learn how to resize the
	minibuffer, but until then we have to live with one-line messages.

2009-10-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Fix some docstrings and comments.

2009-10-26  Tobias C. Rittweiler <tcr@freebits.de>

	* test.sh: Shebang on bash, not just on sh.

2009-10-25  Tobias C. Rittweiler <tcr@freebits.de>

	Revert the reversed numbering of restarts in sldb.

	New command `sldb-cycle' ([tab]) in sldb will cycle between
	restart list and backtrace.

	Make sldb-invoke-restart-by-name case-insensitive.

	* slime.el (sldb-mode-map): Bind Tab to `sldb-cycle'.
	(sldb-restart-list-start-marker): New variable.
	(sldb-setup): Store marker in it.
	(sldb-cycle): New command to cycle between restart list and
	backtrace.
	(sldb-invoke-restart-by-name): Make completion case-insensitive.
	(sldb-insert-restarts): Revert to old behaviour.

2009-10-24  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-ccl.lisp (who-specializes): Do not signal an error if
	argument does not name a class.

2009-10-24  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (xref): Deal with non-yet-interned names gracefully.

2009-10-24  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-search-property): Add parameter to get value at
	point propery changed.
	(slime-find-next-note): Use it.
	(slime-find-previous-note): Ditto.

2009-10-24  Tobias C. Rittweiler <tcr@freebits.de>

	New command C-M-, to go to previous xref location.

	[Old command C-M-. to go to next xref location.]

	Xref buffers are not automatically selected anymore; it's more
	ergonomic to cycle through them via C-M-. and C-M-, from
	within the source buffer.

	* slime.el (slime-search-property): Simplify slightly.
	(slime-find-next-note): Use it.
	(slime-find-previous-note): Use it, too.
	(slime-find-note): Deleted.
	(slime-editing-keys): Add C-M-,.
	(slime-previous-location-function): New variable.
	(slime-previous-location): New command.
	(slime-with-xref-buffer): Do not select Xref buffer.
	(slime-show-xref-buffer): Adapted accordingly.
	(slime-goto-next-xref): Highlight current item on C-M-. and C-M-,.
	(slime-goto-previous-xref): New.
	(slime-highlight-sexp): Renamed from `sldb-highlight-sexp'.
	(slime-highlight-line): New.

2009-10-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-insert-restarts): Insert the proper numbers for
	the --more-- button.
	(sldb-restart-number-at-point): Rename back to
	sldb-restart-at-point.  Don't use
	confisingly-verbose-names-for-no-good-reason.
	(sldb-restart-number-for-swank): Deleted.

2009-10-23  Tobias C. Rittweiler <tcr@freebits.de>

	Restarts in SLDB are now numbered reversely. The rationale is that
	always-existing restarts are likely to be associated with the same
	number now.

	* slime.el (sldb-insert-restarts): Number restart reversely.
	(sldb-restart-number-for-swank): New; recompute the unreversed
	number for the swank side.
	(sldb-restart-number-at-point): Previously `sldb-restart-at-point'.
	(sldb-invoke-restart): Adapted accordingly.

2009-10-23  Tobias C. Rittweiler <tcr@freebits.de>

	When ever Slime seems to get stuck (e.g. after some character
	encoding confusion), `M-x slime-reset' should hopefully bring it
	into a functional state again.

	* slime.el (slime-reset): Erase connection buffer.

2009-10-21  Tobias C. Rittweiler <tcr@freebits.de>

	Make M-x slime-changelog-date work.

	* slime.el (slime-changelog-date): Make the function be callable
	interactively.

2009-10-21  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (ASDF): Document new commands.

2009-10-20  Martin Simmons  <martin@lispworks.com>

	* swank-lispworks.lisp (call-without-interrupts): Discourage use.
	(interesting-frame-p): Never show open frame bogons.

2009-10-19  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (thread-description): Remove it and supporting code,
	because it didn't really work.

	* swank.lisp (with-thread-description): Remove unused macro.

	* slime.el (slime-list-threads): Update information before
	setting the mode, otherwise it messes up current connection.

	* doc/slime.texi: fix typo.

2009-10-19  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (without-printing-errors): New macro.
	(to-string): Use it.
	(to-line): Use it, too. This fixes printing error occuring during
	inspecting to prevent the inspector from displaying something
	useful.

	Reported by xristos@suspicious.org.

2009-10-15  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-current-package): Move REPL stuff to contrib.

2009-10-15  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-current-package): Return REPL's package,
	if other are unavailable and if slime-repl is loaded.

2009-10-12  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el: Update copyright.

2009-10-10  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-length=): Fix (slime-length= '() 0).
	(slime-eval-feature-expression): Fix. Couldn't handle (NOT)
	and (NOT FOO BAR).

2009-10-09  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (stop-server): (list-threads) returns threads offset by 1,
	don't kill the wrong thread.

2009-10-06  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp (map-backtrace): Handle null end-frame-number
	argument.

2009-09-28  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (set-package): Provide a more meaningful error
	message when package doesn't exist.

	* swank-lispworks.lisp (replace-strings-with-symbols): Didn't work on
	non-proper lists. Reported by Madhu.

2009-09-27  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-sbcl.lisp (call-with-debugger-hook): Correctly deal with
	case of HOOK being NIL.
	(make-definition-source-location): Somewhat simplified.
	(string-path-snippet): Removed, not needed anymore.

2009-09-24  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (swank-compile-string): Ignore unused variable
	warningsp.

2009-09-23  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (receive-if): Bind *break-on-signals* to
	nil before using with-timeout.

2009-09-22  Helmut Eller  <heller@common-lisp.net>

	* swank-ccl.lisp (find-definitions): For fbound symbols also
	consider source-notes in the function object.  Useful if
	the function slot was set with (setf (symbol-function ..))
	and not by defun.

2009-09-21  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (slime-sprof): document slime-sprof contrib.

2009-09-20  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-abcl.lisp (thread-description): Fix typo.
	(set-thread-description): Ditto.

2009-09-20  Tobias C. Rittweiler <tcr@freebits.de>

	Generalize M-? (or M-_ respectively.)

	It will now list:

	  - call sites for functions,

	  - macroexpand sites for macros,

	  - binding, setting, referencing sites for variables,

	  - specializing methods for classes.

	* slime.el (slime-xref): Deal with :not-implemented.
	(slime-xrefs): New. Makes RPC request to XREFS.
	(slime-edit-callers): Renamed to `slime-edit-uses'.
	(slime-edit-uses): Use slime-xrefs.

	* swank-backend.lisp (who-*): Add default implementation which
	returns :not-implemented.

	* swank.lisp (xref-doit): Extracted from XREF.
	(xref): Pass over :not-implemented to Emacs side.
	(xrefs): New slime fun. To return results of multiple XREF
	requests at once.

2009-09-20  Mark Evenson  <evenson@panix.com>

	Use *INVOKE-DEBUGGER-HOOK* introduced in ABCL by analogy to SBCL
	 (Tobias Rittweiler).

	* swank-abcl.lisp (sys::break): Conditionally redefine SYS::BREAK
	only if SYS::INVOKE-DEUBBGER-HOOK is not present.

2009-09-18  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-parent-bindings): Define M-? as
	`slime-edit-callers', too. My previous choice of M-_ was warped
	due to my German layout.

2009-09-18  Tobias C. Rittweiler <tcr@freebits.de>

	New binding: M-_ (`slime-edit-callers').

	Similiar to `slime-who-calls' but only creates an Xref buffer if
	needed for disambiguation, and also pushes to the definition
	stack.

	Spiritually like M-. but works "in the other direction".

	* slime.el (sllime-edit-callers): New function. Cross between
	`slime-who-calls' and `slime-edit-definition'.
	(slime-parent-bindings): Define M-_ as `slime-edit-callers'.
	(slime-pop-xref-buffer): New helper. Extracted from
	`slime-show-xrefs'.
	(slime-show-xrefs): Use it.
	(slime-xref): Let callers specify a continuation.

2009-09-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-abcl.lisp (sys::break): Fix typo.
	(slot-definition-documentation, slot-definition-type)
	(class-prototype, generic-function-declarations)
	(specializers-direct-methods, slot-boundp-using-class)
	(slot-value-using-class): Add IGNORE declarations. Compiling
	swank-abcl.lisp is now free of warnings.
	(swank-compile-file): Load the compiled file even though warnings
	were signalled during compilation.

2009-09-17  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp (source-location): Emacs buffers start at 1,
	whereas CL files start at 0 (Tobias Rittweiler).

2009-09-16  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (documentation-symbol): Return more readable information.

2009-09-14  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp (source-location): Fix typo.

2009-09-12  Mark Evenson  <evenson@panix.com>

	Provided by Alan Ruttenberg.

	* swank-abcl.lisp (source-location): Make edit definition work.

	* swank-abcl.lisp (arglist): Now works with generic functions.


2009-09-08  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp (lisp-version-string): Include "-ics" for
	version with extended charsets.  Suggested by Scott L. Burson.

2009-09-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-net-close): set-process-query-on-exit-flag
	doesn't exist in XEmacs.
	(slime-make-net-buffer): For now, disable querying here.
	Could also close the socket before killing the buffer.
	(slime-buffer-processes): Deleted.

2009-09-02  Stas Boukarev  <stassats@gmail.com>

	* swank-lispworks.lisp (replace-strings-with-symbols): New function for
	recursively interning and replacing strings in a list.
	(arglist): Replace all strings in arglists with symbols.

	* slime.el (slime-net-close): Do not query for process killing
	confirmation before killing a connection buffer.
	(slime-buffer-processes): New function for listing processes
	associated with a buffer.

2009-08-31  Helmut Eller  <heller@common-lisp.net>

	Don't advice ccl::break-loop.
	Should not be necessary as we can now use ccl:*break-hook*.

	* swank-ccl.lisp ([advice] ccl::break-loop): Deleted.

2009-08-31  Helmut Eller  <heller@common-lisp.net>

	Keep note overlays in a global variable.
	That's simpler and cheaper than scanning all buffers.

	* slime.el (slime-note-overlays): New variable.
	(slime-make-note-overlay, slime-remove-old-overlays): Use it.

2009-08-27  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-remove-old-overlays): delete notes at the very
	beginning of the buffer too. Thanks to Nick Levine.

2009-08-22  Helmut Eller  <heller@common-lisp.net>

	Speed up symbol completion.

	* swank.lisp (all-completions): Don't call unparse-symbol
	while matching.  That gets very slow in CCL's CCL package.
	Just use symbol-name and compare with char-equal.
	(prefix-match-p): Use char-equal.

2009-08-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-transcript-start-hook)
	(slime-transcript-stop-hook): New hooks.
	(slime-eval-with-transcript): Use them.
	(slime-eval-with-transcript-cont): Deleted.

2009-08-19  Mark Evenson  <evenson@panix.com>

	* swank-abcl.lisp: Accommodate the new Java/Lisp stack frame
	abstraction in the upcoming abcl-0.16. (based on code from Tobias
	Rittweiler).

2009-08-18  Mark Evenson  <evenson@panix.com>

	Add multithreading code for abcl-0.16. (Tobias Rittweiler)

	* swank-abcl.lisp: A multithread implementation taking advantage
	of the new synchronization primitives in abcl-0.16.

	Restore working with abcl-0.15.

	* swank-abcl.lisp: Remove the warm initialization code for
	SWANK:COMPILER-CONDITION, as it is no longer needed for the
	current release of ABCL.

2009-08-16  StanisBaw Halik <sthalik@test123.ltd.pl>

	* swank.lisp (init-global-stream-redirection): Continue even if
	streams are already redirected.  Useful for restarting Swank with
	M-x slime when a REPL is already present.  Will most likeley
	mess up the input stream in multi threaded setups, tho.

2009-08-15  Helmut Eller  <heller@common-lisp.net>

	XEmacs fixes.

	* slime.el (slime-editing-keys): Use (kbd "C-M-.") because XEmacs
	translates [?\C-\M-.] to C-M-n.
	(next-single-char-property-change)
	(previous-single-char-property-change): Use
	next-single-property-change because next-char-property-change gets
	embarrisingly slow in XEmacs in font-locked buffers.
	It never felt that slow in Emacs 20 though.

2009-08-15  Helmut Eller  <heller@common-lisp.net>

	* swank-ccl.lisp (definition-name): Special case methods.

	* slime.el (slime-choose-overlay-region): Don't return zero length
	regions for :eof.
	(slime-show-buffer-position): The second argument to
	display-buffer means something completely different in
	XEmacs. Don't use it.
	(slime-severity-face): Handle :redefinition.
	(slime-temporarily-highlight-note): Use a timer instead of the
	post-command-hook.

2009-08-13  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-auto-select-connection, slime-auto-connect):
	Turn them into customizable variables.

2009-08-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-sbcl.lisp (swank-compile-string): Make sure that it
	returns NIL on compilation failure.

2009-08-10  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-insert-note-group): Factored out from
	slime-insert-compilation-log.
	(slime-goto-location-position): Can't use goto-line.

2009-08-10  Helmut Eller  <heller@common-lisp.net>
	Separate context info from compiler message text.

	* swank-backend.lisp (compiler-condition): Add a new slot
	:source-context.  Remove :short-message.
	* swank-cmucl.lisp, swank-sbcl.lisp, swank-scl.lisp,
	swank-openmcl.lisp, swank-ccl.lisp: Update callers.
	* swank.lisp (make-compiler-note): Use source-context slot.
	* slime.el (slime-note.source-context): New.
	(slime-insert-compilation-log): Use it.
	(slime-note.short-message): Deleted.

2009-08-10  Helmut Eller  <heller@common-lisp.net>

	Don't add linebreaks for one-line messages.

	(slime-insert-block): New function.
	(slime-insert-compilation-log): Use it.
	(slime-indent-rigidly): Use insert-before-markers, otherwise point
	ends up at before a bunch of inserted spaces.

2009-08-10  Helmut Eller  <heller@common-lisp.net>

	Various compilation related changes.

	* slime.el (slime-show-note-counts): Don't show 0 values.
	(slime-severity<): New function.
	(slime-maybe-show-compilation-log): Always create the log buffer
	but display it only if the compilation failed.
	(slime-insert-compilation-log): Disable the stupidly inefficient
	font-lock-after-change-function.
	(slime-canonicalized-location-to-string): Use relative filenames.
	(slime-goto-location-buffer): Disable warnings about symlinks.

2009-08-09  Tobias C. Rittweiler  <tcr@freebits.de>

	Make C-x ` work again.

	M-n and C-x ` are now very similiar; but the former operates
	relative to point in the source buffer, while the latter works
	relative to the compilation log.

	* slime.el (slime-insert-compilation-log): No do set
	`compilation-skip-to-next-location'.

2009-08-09  Tobias C. Rittweiler  <tcr@freebits.de>

	M-n/M-p in .lisp buffers do not show the note in the minibuffer
	anymore if a compilation log is displayed to the user.

	In the compilation log, sort and group the notes by line/column
	number.

	* slime.el (slime-insert-compilation-log): Sort the notes by their
	line/column numbers; group notes of same location and display them
	as one entry.
	(slime-compilation-loc): Removed.
	(slime-canonicalized-location),
	(slime-canonicalized-location-to-string): Extracted from
	`slime-compilation-loc'.
	(slime-group-and-sort-notes): Does the sorting/grouping.
	(slime-show-note): Do not show note in minibuffer if compilation
	log is displayed to the user.

2009-08-09  Stas Boukarev  <stassats@gmail.com>

	* swank.asd (asdf:perform): don't call `swank-loader:init' with
	:setup nil, because it doesn't get contribs compiled, and some other
	configuration steps are omitted.

	* slime.el (slime-profile-by-substring): new function for profiling
	functions by matching a substring.

	* swank.lisp (profile-by-substring): ditto.

2009-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	M-n / M-p in a .lisp buffer now also jump to the respective note
	in the compilation-log buffer if one is currently displayed to the
	user.

	* slime.el (slime-remove-old-overlays): Simplified.
	(slime-insert-compilation-log): Add a note-overlay for each note
	so we can find the right one when user uses M-n/M-p in .lisp
	buffer.
	(slime-goto-note-in-compilation-log): New.
	(slime-make-note-overlay): Extracted from
	`slime-create-note-overlay'.
	(slime-next-note, slime-previous-note): Simplified.
	(slime-show-note): Goto note in compilation-log if available.
	(slime-note-overlay-p): Call overlay property `slime-note', not
	just `slime'.
	(slime-find-note): Likewise; also returns the overlay if found.
	(slime-show-buffer-position): Optionally recenter position to the
	top of the window.

2009-08-04  Stas Boukarev  <stassats@gmail.com>

	* swank-sbcl.lisp (signal-compiler-condition): read
	sb-kernel:redefinition-warning only if it exists.
	Some older SBCLs don't have it (particularly included in the
	stable Debian).

2009-08-02  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-backend.lisp (severity [type]): Allow :redefinition.

	* swank-sbcl.lisp (signal-compiler-condition): Tag redefinitions.

	* slime.el (slime-maybe-show-compilation-log): Do not show
	compilation log if each note describes just a redefinition.
	(slime-insert-compilation-log): Insert notes indented by 2
	spaces. Insert some more newlines so the buffer appears more
	structured.
	(slime-show-note-counts): Add :redefinition to ecase.
	(slime-redefinition-note-p): New.
	(slime-severity-label): Was unused. Adapted to be usable.

2009-07-30  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (Setting up pathname translations): add that it is
	in the `slime-tramp' contrib.

2009-07-30  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-clisp.lisp: Clisp 2.48 experimentally supports threads. So
	add infrastructure to use threads in Clisp's swank backend. We do
	not make it the default, because it's not prime time yet. There
	are still problems with GC, weak-pointers, and thread objects.

2009-07-28  Stas Boukarev  <stassats@gmail.com>

	* doc/slime.texi (slime-selector): mention t and c keys.

2009-07-27  Stas Boukarev  <stassats@gmail.com>

	* swank-ccl.lisp (source-note-to-source-location): keys of
	*temp-file-map* are pathnames, not namestrings; convert
	namestrings to pathnames before looking up.

2009-07-27  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp: Support for older ECL installs
	from patch by Mark Evenson

2009-07-26  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-maybe-show-compilation-log): New function.
	(slime-compilation-finished-hook): Use it.  Now that the
	compilation buffer gets not selected it's more acceptable to
	display it more often.
	(slime-insert-compilation-log): Set compilation-skip-threshold to
	0 and compilation-skip-to-next-location to nil.  Seems to work
	better for us.
	(slime-with-popup-buffer): Synch window-point, otherwise it be at
	the end of the buffer for reused buffers.
	(slime-display-popup-buffer): Return the window.

2009-07-26  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (tempnam): Muffle efficiency notes.

2009-07-26  Gail Zacharias <gz@clozure.com>

	* swank-ccl.lisp: New file.  An updated version of
	swank-openmcl.lisp in preparation for a slew of changes to CCL and
	to honor the new name.

	* swank-loader.lisp (*sysdep-files*): Use it.

2009-07-21  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-sexp-at-point-for-macroexpansion): use markers
	for bounds, because in some situations text layout could be modified
	before bounds would be used, for example, using keyboard macros.

2009-07-15  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-inspector-fetch-all): new command, bound to >
	in the inspector buffer.

	* doc/slime.texi (Frame Navigation): add description
	of `sldb-end-of-backtrace' and `sldb-beginning-of-backtrace'.
	(Inspector): add `slime-inspector-fetch-all'.


2009-07-12  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-editing-keys): Don't override M-*. The default
	binding should do what Matthias wants.

2009-07-11  Matthias Koeppe  <mkoeppe@math.ucdavis.edu>

	* swank-backend.lisp (definterface): Fix typo in error message.

2009-07-11  Stas Boukarev  <stassats@gmail.com>

	* doc/Makefile (clean): Remove bash extensions. Patch by
	Teemu Likonen.

2009-07-06  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-ecl.lisp (find-external-format): Copied from
	swank-sbcl.lisp. A lot of backends seem to share the same
	implementation, perhaps some refactoring is needed.

2009-07-06  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (make-repl-input-stream): Make sure to redirect
	output from slime requests to the REPL buffer for
	communication-style=NIL.

2009-07-02  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-beginning-of-symbol): Limit searching to 2000
	characters.

2009-07-02  Terje Norderhaug <terje@in-progress.com>

	* swank-lispworks.lisp (thread-attributes): Implemented.

2009-07-02  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (ed-in-emacs): Handle symbols/function-names better.
	* slime.el (slime-ed): Updated accordingly.

2009-07-02  Terje Norderhaug <terje@in-progress.com>

	* swank.lisp (operator-arglist): Don't use pprint-fill
	for people with wide screens.

2009-07-02  Stas Boukarev  <stassats@gmail.com>

	* slime.el (slime-net-coding-system): make it customizable.
	(slime-inspector-operate-on-click): Make --more-- button in
	the inspector clickable.

2009-06-30  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp: Package profiling support

2009-06-30  Stas Boukarev  <stassats@gmail.com>

	* swank-openmcl.lisp (arglist): Return :not-available if the arglist
	cannot be obtained. Patch by Terje Norderhaug.

2009-06-29  Stas Boukarev  <stassats@gmail.com>

	* swank.lisp (open-streams): do not create unnecessary output stream
	when using dedicated output stream. Thanks to Terje Norderhaug.

2009-06-28  Terje Norderhaug <terje@in-progress.com>

	Generalize list-threads for implementation-dependent attributes.

	* swank-backend.lisp (thread-attributes): New function.
	* swank-openmcl (thread-attributes): Implement it.
	* swank.lisp (list-threads): Return a table with the attribute
	names as the first row and the new attributes in the last columns.
	* slime.el (slime-update-threads-buffer): For now, ignore the
	extra attributes.

2009-06-28  Stelian Ionescu <stelian.ionescu-zeus@poste.it>

	* slime.el (slime-compiler-macroexpand-inplace)
	(slime-compiler-macroexpand-1-inplace): New commands.
	(slime-macroexpansion-minor-mode-map): Bind them.

2009-06-28  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (add-fd-handler): Avoid recursive invocation
	of the handler, e.g. when read-sequence blocks.

2009-06-28  Stas Boukarev  <stassats@gmail.com>

	* swank-openmcl.lisp (compiler-warning-short-message): In new
	versions of CCL `compiler-warning-nrefs' slot
	of the `compiler-warning' class is now a list, not an integer.

2009-06-25  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp: Profiling support by Marko Koci?

2009-06-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-beginning-of-symbol): Skip over #., #-, and #+.
	([test] symbol-at-point.15 .. 17): Test it.

2009-06-24  Nikodemus Siivola <nikodemus@random-state.net>

	Add :WAIT keyword argument to support blocking in
	SWANK:INSPECT-IN-EMACS.

	* swank.lisp (inspect-in-emacs): added keyword argument :wait.

	* slime.el (slime-dispatch-event): if swank requests response to
	:inspect, add a hook to the inspector to signal swank once done.
	(slime-open-inspector): add optional hook argument to be added as
	local kill-buffer-hook.

2009-06-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-initialize-lisp-buffer-for-test-suite): Moved to
	contrib/slime-fontifying-fu.el

2009-06-21  Helmut Eller  <heller@common-lisp.net>

	Don't try so hard to get symbol-at-point right.
	The old implementation was complicated and didn't even pass it's
	own test suite.  The new version is less ambitious but simpler.

	* slime.el (slime-symbol-at-point, slime-beginning-of-symbol)
	(slime-end-of-symbol): Simplify.
	(slime-exit-vertical-bars, slime-symbol-constituent-at): Deleted.
	([test] symbol-at-point.1 .. symbol-at-point.14): Renamed form
	fancy-symbol-names and split up into smaller peices.
	(slime-test-symbols): New.
	(slime-check-symbol-at-point): Renamed from
	slime-check-fancy-symbol-name.

2009-06-21  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (frame-source-location): Renamed from
	frame-source-location-for-emacs.

2009-06-20  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-check-fancy-symbol-name): Don't update the loop
	index inside the loop body.

2009-06-20  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (emacs-connected): Deleted. Setting
	ccl::*interactive-abort-process* doesn't seem right.

2009-06-15  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp: Explicitly require CCL version 1.3.

2009-06-15  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (emacs-inspect [t]): Honor the type returned
	by inspector::line-n.
	(emacs-inspect [compiled-lexical-closure]): Deleted. Let CCL's
	inpector handle this case. Which does it better and it's less work
	for us.

2009-06-14  Helmut Eller  <heller@common-lisp.net>

	Some workarounds for SBCL on Windows.

	* swank-sbcl.lisp (input-available-p): New function.
	(wait-for-input): Use it.
	([win32] handle-listen, has-buffered-input-p): New.
	(temp-file-name, tempnam): Plain tmpnam(3) is next to useless on
	Windows use tempnam(3) instead.

2009-06-12  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp: Support new environment changes in recent ECL/CVS
	patch largely from ECL maintainer.

2009-06-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el ([test] font-lock-magic): Moved to fontifying-fu contrib.

2009-06-05  Helmut Eller  <heller@common-lisp.net>

	Don't clutter compiler messages with source positions.  Especially
	stuff like "In an anonymous lambda form inside an anonymous lambda
	form inside an anonymous lambda form inside FOO: Undeclared free
	variable X" is not helpful.

	* swank-openmcl.lisp (compiler-warning-short-message): New GF.
	(handle-compiler-warning): Use it.

	(disassemble-frame): Print current PC.

2009-06-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-dispatch-event [:emacs-rex]): Don't clutter
	the main code-path with confusing error handling.

2009-06-04  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (*known-processes*, mailbox): Use a weak
	hashtable to plug the memory leak.

2009-05-28  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (def-slime-test): Forgot to remove debugging code.

2009-05-28  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-dispatch-event :emacs-rex): Make sure that we
	pop the continuation on erroneous send.

	Patch by Mark Cox <markcox80@gmail.com>.

2009-05-28  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (tokenize-symbol-thoroughly): Make it work correctly
	on escaped symbols.

2009-05-28  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-disconnect): Now only disconnects one
	connection, current one by default, or given by argument.
	(slime-disconnect-all): New. What `slime-disconnect' was before.
	(def-slime-test): Changed: expected failures are now given
	by (:fails-for ...) clauses. Extended: new clause (:style ...) to
	have a test run only on a certain communication style. Updated
	existing test cases accordingly.
	([struct] slime-test): New slot `skipped'.
	(slime-skipped-tests): New var.
	(slime-execute-tests): Adapted accordingly.
	([test] disconnect): Renamed to `disconnect-and-reconnect'
	([test] disconnect-one-connection): New.

	Adapted from patch by Stas Boukarev.

2009-05-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el ([test] fancy-symbol-names): Add cases involving #|
	... |# style comments. Currently failing.

	Reported by Madhu.

2009-05-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-goto-location-position): Only go to
	match-beginning if search succeeded.

	Patch by Madhu.

2009-05-23  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (break-in-sldb): Honor *break-on-signals*.
	That means that we can't use SIGNAL here and we have to invoke
	SLDB directly.
	(condition-for-break): New helper.
	Reported by Bill St. Clair.

2009-05-19  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-symbol-at-point): Sometimes we can be too good,
	e.g. in "|# (defun foo () (getf" the above would return nil
	because the vertical bar is not terminated. The user probably
	wants "getf" nontheless.

	Reported by Madhu.

2009-05-19  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (sldb-restartable-frame-line-face): Set a default value.
	(sldb-frame-restartable-p): New.
	(sldb-compute-frame-face): Use it.
	(sldb-show-frame-details): Use it, too.

2009-05-19  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank-source-path-parser.lisp (read-and-record-source-map):
	ignore errors during the call to READ, so that we don't the
	current version of the form we are looking at contains eg.
	uninternable symbols.

2009-05-19  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (source-note-to-source-location): Always
	test *temp-file-map* first, because the temp-file might actually
	exist during compilation but no longer when Emacs tries to open
	it.
	(slime-goto-location-buffer): Don't create buffers for
	non-existent files.

2009-05-18  Nikodemus Siivola  <nikodemus@random-state.net>

	* slime.el (slime-description-autofocus): New variable.
	(slime-show-description): Use it to decide if description
	buffers should receive focus automatically.
	* doc/slime.texi: Document it.

2009-05-17  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-dispatch-event): New event
	`:read-from-minibuffer'.
	(slime-read-from-minibuffer-for-swank): New.

	* swank.lisp (dispatch-event): Pass through :read-from-minibuffer
	event.
	(read-from-minibuffer-in-emacs): Now uses new event rather than
	eval-in-emacs.

2009-05-17  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (compile-temp-file): Remove backward
	compatibility code.
	(eval-in-frame, frame-source-location-for-emacs)
	(return-from-frame, restart-frame)
	(disassemble-frame, xref-locations): Simplify.
	(list-callers): Use ccl::caller-functions which gives us more precise
	src-locs than ccl::callers.
	(canonicalize-location, remove-filename-quoting)
	(maybe-method-location): Deleted.  No longer used.
	(who-specializes): Simplify.

2009-05-17  Helmut Eller  <heller@common-lisp.net>

	More precise compiler-message location.

	* swank-openmcl.lisp (handle-compiler-warning): Use the
	source-note slot of the condition as source location, which is
	more precise than the stream-position slot.
	(compiler-warning-severity): New function. The distinction between
	warning and style-warning is rather arbitrary but let's try it.
	(swank-compile-file): Pass the external-format arg down to
	compile file.
	(*buffer-name*, *buffer-offset*, condition-source-position):
	Deleted. No longer used.

2009-05-16  Helmut Eller  <heller@common-lisp.net>

	Minor refactoring.

	* swank-openmcl.lisp (call/frame, with-frame): New macro.
	(frame-visible-variables): New helper.
	(frame-var-value, frame-locals, disassemble-frame): Use it.
	(frame-catch-tags): Removed.  Way to much code for such a rarely
	used function.

2009-05-16  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (swank-compile-string): Store the source
	code, by setting CCL:*SAVE-SOURCE-LOCATIONS* to T, for better
	disassembler output.
	(function-source-location): Remove the old pre-1.3 version.

	* swank.lisp (sldb-bitvector-pprint): Oops, all bits are true.

2009-05-16  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-current-parser-state): Do not save
	match-data. This function is called so often that it makes a
	difference.

2009-05-16  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*sldb-pprint-dispatch-table*): Be careful when
	calling WRITE recursively: set :circle to nil which avoids
	interference with cycle-detection.
	(escape-string): New helper function.
	(*backtrace-pprint-dispatch-table*): Use it.

2009-05-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-allegro.lisp (swank-compile-string): Forgot to remove old
	definition in changeset 2009-05-12.

	Patch by Stelian Ionescu.

2009-05-15  Tobias C. Rittweiler  <tcr@freebits.de>

	Move font-lock-magic into contrib/slime-fontifying-fu.el.

	* slime.el (slime-highlight-suppressed-forms),
	(slime-reader-conditional-face),
	(slime-search-suppressed-forms-internal),
	(slime-search-suppressed-forms),
	(slime-search-directly-preceding-reader-conditional),
	(slime-extend-region-for-font-lock),
	(slime-compute-region-for-font-lock),
	(slime-activate-font-lock-magic): Moved.

2009-05-15  Tobias C. Rittweiler  <tcr@freebits.de>

	Rewrote some parts of the font-lock-magic in face of its fragility
	over the last days. Hopefully it'll be better now.

	* slime.el (slime-region-for-tlf-at-point): Removed. Not needed
	anymore.
	(slime-region-for-extended-tlf-at-point): Removed.
	(slime-search-backward-reader-conditional): Removed.
	(slime-search-directly-preceding-reader-conditional):
	New. Similiar to the above.
	(slime-extend-region-for-font-lock): Display bug message when
	error is caught.
	(slime-compute-region-for-font-lock): Rewritten.
	([test] font-lock-magic): Another test case.

2009-05-14  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-region-for-tlf-at-point): Use
	`(end-of-defun) (backward-sexp)' rather than
	`(end-of-defun) (beginning-of-defun' to go to the start of the
	current defun. The latter would fail on "() (a\nb\nc)".

2009-05-14  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-compute-region-for-font-lock): Fix typo.

2009-05-13  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-search-suppressed-forms): On errors, we have to
	continue the search, otherwise there's a chance that we miss
	reader conditionals in the current font-lock region.
	(slime-search-backward-reader-conditional): New. Extracted from
	`slime-region-for-extended-tlf-at-point'.
	(slime-region-for-extended-tlf-at-point): Use it.
	(slime-font-lock-region): Removed.
	(slime-font-lock-region-changed-p): Removed.
	(slime-extend-region-for-font-lock): Simplified.
	(slime-compute-region-for-font-lock): Make sure that we never
	return a flag indicating change when there was in fact no
	change. This should make the explicit guard against infinite loop
	superfluous.
	(slime-extend-region-warn-infinite-loop): Removed.
	([test] font-lock-magic): More cases.

2009-05-12  Tobias C. Rittweiler  <tcr@freebits.de>

	Make font-lock-magic test case pass.

	* slime.el (slime-bug): New function.
	(slime-search-suppressed-forms): Use it.
	(slime-extend-region-warn-infinite-loop): Ditto.
	(slime-search-suppressed-forms-internal): Check whether we're
	inside a comment, or a string.
	([test] font-lock-magic): Add another case.

2009-05-12  Tobias C. Rittweiler  <tcr@freebits.de>

	Highlight reader-errors in the source buffers on Allegro.

	* swank-allegro.lisp (*temp-file-header-end-position*): New
	variable.
	(call-with-compilation-hooks): Handle reader errors.
	(handle-compiler-warning): Adapt it accordingly.
	(location-for-reader-error): New.
	(compile-from-temp-file): Now takes a header argument explicitly
	so we can hold of the actual offset of the string we want to
	compile. This is needed to translate back file-positions reported
	in reader-errors.
	(swank-compile-string, swank-compile-file): Adapted accordingly.

2009-05-12  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-allegro.lisp (find-topframe): Hide SWANK related cruft
	from showing up in backtraces in SLDB.

2009-05-12  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-display-warning): Add `warning' as warning type.
	(slime-show-note-counts): If compilation failed, fontify the
	message in red to be more visibly apparant.

2009-05-11  Tobias C. Rittweiler  <tcr@freebits.de>

	(slime-eval-feature-expression): Guard for more erroneous
	input (due to refontification while user's typing.)

2009-05-10  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] font-lock-magic): Add some hard cases.

2009-05-10  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-compute-region-for-font-lock): Fix typo.

2009-05-10  Tobias C. Rittweiler  <tcr@freebits.de>

	Font-lock magic barfed on #+(test).

	* slime.el (slime-eval-feature-conditional): Renamed to
	`slime-eval-feature-expression'.
	(slime-unknown-feature-expression): New error symbol.
	(slime-eval-feature-expression): Signal it.
	(slime-search-suppressed-forms): Catch it.
	(slime-compute-region-for-font-lock): Guard against unbalanced
	parentheses.
	(slime-initialize-lisp-buffer-for-test-suite): New helper.
	([test] font-lock-magic): New test case.

	Reported by Kalyanov Dmitry.

2009-05-09  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-source-file-cache.lisp (read-snippet-from-string): New.

	* swank-sbcl.lisp (source-hint-snippet): Use it.
	(emacs-buffer-source-location): Use it, too.
	(string-path-snippet): Ditto. Additionally: Make sure the returned
	string is truncated by *SOURCE-SNIPPET-SIZE*.

2009-05-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-search-suppressed-forms-internal): Not properly
	factored out by earlier changeset.

2009-05-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (read-from-minibuffer-in-emacs): New.
	([struct] istate): Add METADATA-PLIST slot.
	(ensure-istate-metadata): New. To attach arbitrary metadata to an
	inspector page.
	(inspect-object): Adapted so methods on EMACS-INSPECT can look at
	*ISTATE*.

2009-05-08  Tobias C. Rittweiler  <tcr@freebits.de>

	#+#.foo confused the recent fontification changes. Fix that.

	* slime.el (slime-search-suppressed-forms-internal): New. Split
	from `slime-search-suppressed-forms'.
	(slime-search-suppressed-forms): Catch `invalid-read-syntax'
	errors.

2009-05-01  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-line-number-at-pos): Replaced with
	`line-number-at-pos', and add that to the portability layer.
	(display-warning): Add to the portability layer.
	(slime-display-warning): New.

	* slime.el: Implement a guard against infinite loops during
	fontification. We detect and prevent those. If we detect one, we
	emit a big warning to the user.

	(slime-font-lock-region): New variable.
	(slime-font-lock-region-changed-p): New helper.
	(slime-extend-region-warn-infinite-loop): New helper.
	(slime-compute-region-for-font-lock): Extracted from
	`slime-extend-region-for-font-lock'.
	(slime-extend-region-for-font-lock): Use it; add the guard.

2009-04-30  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-abcl.lisp: Really commit Vodonosov's patch from
	2009-03-09.

2009-04-30  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-backend.lisp ([default] declaration-arglist): Add
	arglist of DECLARATION declaration.

	* swank-openmcl.lisp ([eql 'optimize] declaration-arglist):
	Implement it for CCL.
	(describe-symbol-for-emacs): Add :TYPE.
	(describe-definition): Add :TYPE.

	Adapted from patch by Stas Boukarev.

2009-04-29  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-extend-region-for-font-lock): (nth 0
	<parser-state>) may return negative numbers.

2009-04-29  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Fix infinite loop during fontification introduced
	by yesterday's changeset.

	(slime-region-for-tlf-at-point): New. Like
	`slime-region-for-defun-at-point' but tries harder to get the
	toplevel form right.
	(slime-region-for-extended-tlf-at-point): Previously
	`slime-region-for-extended-defun-at-point'.
	(slime-extend-region-for-font-lock): Use it.
	(slime-mark-defun-for-font-lock): Ditto.

2009-04-28  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Fix fontification of suppressed (by reader
	conditionals) forms. That is make it reliably and totally work.

	(slime-region-for-extended-defun-at-point): New. Like
	`slime-region-for-defun-at-point' but takes preceding reader
	conditionals into account.
	(slime-extend-region-for-font-lock): New. Make sure that
	fontification operates on regions spanning a whole toplevel form
	only. So we never operate within the context of a reader
	conditional and we never miss any of those.
	(slime-search-suppressed-forms): Remove ignore-errors; not needed
	anymore now as we extend the region for fontification.
	(slime-mark-defun-for-font-lock): New.
	(slime-activate-font-lock-magic): Push
	`slime-extend-region-for-font-lock' onto
	`font-lock-extend-region-functions'.

2009-04-25  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-show-description): Put the connection name into
	the buffer name for description buffers. So we can have multiple
	description buffers open, one per connection.

	Useful for comparing the output of DISASSEMBLE across
	implementations.

2009-04-21  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-handle-indentation-update): Revert change from
	2009-03-09; that was a thinko.
	([test] indentation): Some basic test case for correct indentation.

2009-04-03  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-sbcl.lisp (swank-compile-file): Return T for the FAILURE-P
	return value in case of a FATAL-COMPILER-ERROR.

	Reported by Philipp M. Schäfer

2009-04-03  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-inspector-mode-map): Remove binding for
	M-RET. (It'll be added by the slime-repl contrib.)
	(slime-inspector-copy-down): Removed.

2009-03-27  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (encode-message): Handle errors during write, e.g.
	closed sockets.

2009-03-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-setup-contribs): Moved over from
	slime-autoloads.el

2009-03-27  Helmut Eller  <heller@common-lisp.net>
	* swank-openmcl.lisp (toggle-trace): Replace ccl::%trace with
	ccl:trace-function.
	(kill-thread): Use an implementation that doesn't raise a
	serious-conditions.

2009-03-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] macroexpand): Fix more case issues.

2009-03-25  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] macroexpand): Ignore case.

2009-03-09  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-define-channel-type): Indulge in pretty colors.
	(slime-define-channel-method): You, too!

	(slime-handle-indentation-update): Always put an indentation
	update on 'slime-indent; for slime-indentation-fu.

2009-03-09  Anton Vodonosov <avodonosov@yandex.ru>

	Use correct encoding and eol conventions for socket streams.

	* swank-abcl.lisp (accept-connection): Honor external-format
	argument.
	(*external-format-to-coding-system*, find-external-format): New.

2009-03-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-with-xref-buffer): Use buffer-names like
	"*slime xref...*" so that slime-kill-all-buffers can pick
	it up easily.

2009-03-09  Helmut Eller  <heller@common-lisp.net>

	* hyperspec.el (common-lisp-hyperspec-lookup-reader-macro): Use
	case-insensitive completion.
	(hyperspec-lookup-reader-macro): New alias.
	Suggested by Stas Boukarev.

2009-03-09  Helmut Eller  <heller@common-lisp.net>

	Make fasl-pathname fully customizable not only the direcrory part.

	* swank.lisp (*fasl-pathname-function*): New variable.
	(*fasl-directory*): Deleted.

2009-03-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-choose-overlay-for-read-error): Extracted and
	extended from `slime-choose-overlay-region'. Differentiate between
	symbol-related reader-errors (package not found &c) and
	character-related reader-errors.
	(slime-choose-overlay-region): Use it.

2009-03-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (make-slime-buffer-location, make-slime-file-location):
	Do not default to (:hints), but to nil, as expected in the
	slime-side source-location machinery.

2009-03-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-choose-overlay-region): Special case :read-error
	notes regardless of position kind.

	* swank-sbcl.lisp (signal-compiler-condition): Return :READ-ERROR
	as severity for reader-errors.
	(compiler-note-location): Fix off-by-one when compiling from
	buffer.

2009-03-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-sbcl.lisp (compiling-from-buffer-p),
	(compiling-from-file-p)
	(compiling-from-generated-code-p): New helpers; extracted from
	LOCATE-COMPILER-NOTE.
	(locate-compiler-note): Use them.
	(compiler-note-location): Use them, too, to handle reader-errors
	when compiling from file. This completes 2009-02-27.

	Reported by Christian Lynbech.

2009-03-07  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el ([portability] getf): Redefine `getf' on Emacs21 to
	work on malformed plists like it does on later Emacsen. This made
	the `find-local-definitions' test case fail on Emacs21.

2009-03-04  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-check-fancy-symbol-name): Use
	`slime-test-expect' instead of `slime-check'.
	([test] fancy-symbol-names): Extend test case; check for
	"Foo" in #<Foo| {...}>.
	(slime-symbol-constituent-at-pos): Check for #<.

2009-03-04  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-wait-condition): Remove `save-excursion'; it
	made the `repl-test' test case fail because this test tries to set
	point to the new prompt in vain.

2009-03-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-pretty-package-name): Simplify.

2009-03-03  Helmut Eller  <heller@common-lisp.net>

	Use a separate key, C-c C-d #, to lookup reader-macros.

	* hyperspec.el (common-lisp-hyperspec-lookup-reader-macro): New
	command.
	(common-lisp-hyperspec-reader-macros): New variable.
	(common-lisp-hyperspec-reader-macro-at-point): Moved over from
	slime.el
	* slime.el (slime-doc-bindings): Bind C-c C-d #.
	(slime-hyperspec-lookup): Don't consider reader-macros.

2009-03-02  Tobias C. Rittweiler  <tcr@freebits.de>

	* hyperspec.el (common-lisp-hyperspec-symbols): Add entries for
	reader macros even when `common-lisp-hyperspec-symbol-table' is
	bound to some value.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el ([test] macroexpand): New test case.
	(slime-buffer-visible-p): New helper.
	(slime-execute-as-command): New helper.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* hyperspec.el (common-lisp-hyperspec-symbols): Add links to
	reader macros.

	* slime.el (slime-reader-macro-at-point): New function.
	(slime-hyperspec-lookup): Call it.

	Adapted from Stas Boukarev.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Rename `slime-symbol-name-at-point' to
	`slime-symbol-at-point'.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el ([portability] lisp-mode-syntax-table): On Emacs21,
	make @ a prefix character like it's from Emacs22
	onward. `slime-symbol-name-at-point' was written with that
	assumption.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-current-parser-state): Wrap `syntax-ppss' in a
	`save-match-data'. This issue has been reported to the Emacs
	maintainers.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-defun-if-undefined),
	(slime-defmacro-if-undefined): Renamed to
	`slime-DEFUN-if-undefined' and `slime-DEFMACRO-if-undefined' to
	better differentiate between the two.

	(slime-indulge-pretty-colors): New function. You can now put a
	symbol on the plist of `slime-indulge-pretty-colors' to make the
	symbol be fontified like `defun'. This is done for
	`slime-def-connection-var', and the two symbols above.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-defmacro-if-undefined): New. Analogous to
	`slime-defun-if-undefined'.
	([portablity]] with-selected-window) Use it.
	([portability] with-temo-buffer): Likewise.

	Patch by Theam Yong Chew.

2009-02-27  Tobias C. Rittweiler  <tcr@freebits.de>

	C-c C-c on (defun foo () ,bar) did not result in a compiler note
	overlay on SBCL.

	* swank-sbcl.lisp (compiler-note-location): Make it take a
	condition; if the condition is a READER-ERROR, the passed
	compiler-error-context is very likely NIL---we have not proceeded
	beyond reading, so we aren't within the compiler yet. In that
	case, we use the stream position of the stream behind the
	READER-ERROR instead.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* doc/slime.texi: Fix typos, and add keybindings not listed there.

	Patch by Stas Boukarev.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (sldb-backward-frame): Only move backward when we're
	below the backtrace marker.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (debug-in-emacs): Moved (WITH-BINDINGS
	*SLDB-PRINTER-BINDINGS* ...), from here...
	(sldb-loop): ... to here. Otherwise results from a user doing an
	eval-in-frame were truncated.

	Reported by Jeff Workman.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (hash-table-to-alist): New function.
	([method] emacs-inspect (hash-table)): Sort keys if they're all
	numbers, symbols, or strings.

	Adapted from Willem Broekema.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-backend.lisp (warn-unimplemented-interfaces):
	Bind *PRINT-PRETTY* to T. Otherwise no sugar formatting on CCL.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-pretty-package-name): Signalled an error on
	simple symbols; fix that!

	Reported by Geoff Wozniak.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-current-form-path): Use
	`slime-current-parser-state'.

2009-02-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el ([test] fancy-symbol-names): New, hopefully
	comprehensive, test for funky symbol names.
	(slime-check-fancy-symbol-name): Helper.
	(slime-exit-vertical-bars): New function to move out from |foo|.
	(slime-symbol-constituent-at): New predicate to test whether the
	character at point is a valid symbol constituent.
	(slime-beginning-of-symbol, slime-end-of-symbol): Rewritten using
	above two functions and `forward-sexp' that correctly parses
	escapes etc.
	(slime-sexp-at-point): Consider thing at point a symbol first.

2009-02-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-forward-cruft): Forward whitespace, reader
	conditonals, comments. Splitted from `slime-forward-sexp'.
	(slime-pretty-package-name): Use it.

2009-02-24  Tobias C. Rittweiler  <tcr@freebits.de>

	Re-checkin my change from 2009-02-14. It seems I didn't actually
	commit it.

2009-02-22  Tobias C. Rittweiler  <tcr@freebits.de>

        `M-x slime-format-string-expand' displays the expansion of a
        format string.

        * slime.el (slime-string-at-point) New.
        (slime-string-at-point-or-error): New.
        (slime-format-string-expand): New; use them.

        * swank-backend.lisp (format-string-expand): New interface.
        * swank.lisp (swank-format-string-expand): New; use it.

2009-02-17  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (dispatch-event [:emacs-rex]): Reply a :invalid-rpc
	message if the specified thread doesn't exist.
	* slime.el (slime-dispatch-event): Handle :invalid-rpc.
	(slime-init-connection-state): Bind slime-current-thread
	to avoid problems with dead threads.

2009-02-14  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-reader-conditionals-regexp): New variable. Taken
	from `slime-forward-reader-conditional'.
	(slime-pretty-package-name): Fix modeline display for buffer
	containing forms like (in-package "#+foo :A #-foo :B"). Also do
	not call `read' on the name; the function does not need to return
	a symbol, and `read' may choke on non-elisp syntax.

2009-02-14  Helmut Eller  <heller@common-lisp.net>

	Don't signal conditions in interrupt handler to
	avoid problems with naive code like
	 (handler-case foo (condition bar))

	* swank-backend.lisp (*interrupt-queued-handler*): Use a dynamic
	variable instead.
	(slime-interrupt-queued): Deleted.
	* swank-cmucl.lisp, swank.lisp: Ditto.

2009-02-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-restart-or-init-modeline-update-timer): Don't
	run the timer repeatedly.
	(slime-change-directory): Also change the directory in the
	connection-buffer.

2009-02-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-current-tlf, slime-current-form-path): New
	functions; can be handy when inspecting source-locations while
	debugging M-.

2009-02-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Barf if emacs-major-version <= 20. We support 21 and up.
	(slime-emacs-20-p): Removed.

	* slime.el (slime-forward-reader-comment): Removed.
	(slime-forward-any-comment): New; superset of above.
	(slime-forward-reader-conditional): Make it understand SBCL's
	#!+,#!- so it works in source files of SBCL itself, too.
	(slime-current-parser-state): New.

2009-02-07  Tobias C. Rittweiler  <tcr@freebits.de>

	In Xref, list IR1-conversion functions with :DEF-IR1-TRANSLATOR as
	prefix rather than DEFUN. (Test case: M-. on FUNCTION.)

	* swank-sbcl.lisp (definition-specifier): New function.
	(make-dspec): New function. Splitted from
	MAKE-SOURCE-LOCATION-SPECIFICATION.

2009-02-07  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-initialize-macroexpansion-buffer): Clear the
	buffer-undo-list, so the user can't get expansions from earlier
	macroexpansions into the buffer, screwing up badly.

2009-01-30  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-clisp.lisp (fspec-location): Fix creation of source-location.

	Patch by Carsten Blaauw.

2009-01-30  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp (grovel-docstring-for-arglist): Fix for arglist
	that reads, but isn't a list

2009-01-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-backend.lisp (with-symbol): New function, to be used with #+.

	* swank-sbcl.lisp: Use WITH-SYMBOL and get rid of SBCL-WITH-SYMBOL.

	* swank-openmcl.lisp (macroexpand-all): Implement it.

	Patch by Stas Boukarev.

2009-01-23  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-editing-keys): New variable; splitted from
	`slime-keys'. Contains key bindings that are useful for buffers
	where users can edit s-exprs, such as source buffers and the REPL.
	(slime-keys): Use it.

2009-01-17  Tobias C. Rittweiler  <tcr@freebits.de>

	Fix C-u C-c C-c in SLDB.

	* slime.el (sldb-recompile-frame-source): sind
	`slime-compilation-policy' at the right place.

2009-01-15  Martin Simmons  <martin@lispworks.com>

	* swank-lispworks.lisp: wrapper functions for swank-mop
	slot-boundp-using-class, slot-value-using-class and
	slot-makunbound-using-class to account for MOP differences.

2009-01-16  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-keys): Put C-c C-i and M-* back.

2009-01-16  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (pprint-eval): Also return the output produced during
	evaluation.

2009-01-16  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (break-in-sldb): Display the argument.

2009-01-16  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (warn-unimplemented-interfaces): Print the
	names with pprint-fill.

2009-01-10  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (install-debugger-globally): Set *break-in-sldb*.

2009-01-10  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (do-symbols*): Wrap body in TAGBODY.

2009-01-10  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-compile-file-options): New variable.
	(slime-compile-file): Use it.

2009-01-10  David Reitter <david.reitter@gmail.com>

	* slime.el (slime-space): Declare `slime-space' to
	`delete-selection-mode' and friends (CUA) so that their behavior
	is the same as with normal insertion of a space.

2009-01-10  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (swank-compile-file): Take output-file as
	additional argument.  Update backends accordingly.

	* swank.lisp (*fasl-directory*): New variable.
	(fasl-pathname): New function.
	(compile-file-for-emacs): Use it.

2009-01-10  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (set-default-initial-binding): New function.

	* swank.lisp (setup-stream-indirection):  Use it

2009-01-09  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (swank-compile-string): Don't use the
	no-longer-existing directory argument.

2009-01-08  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Move the tree widget for compiler notes to contrib/.

2009-01-08  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (swank-compile-string): Pass the
	buffer-file-name to Lisp, not only the directory.
	Update callers accordingly.
	* slime.el ([test] arglist): Update arglist.

2009-01-08  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-popup-restore-data): Renamed from
	slime-popup-buffer-restore-info.
	(slime-popup-buffer-saved-fingerprint)
	(slime-popup-buffer-saved-emacs-snapshot)
	(slime-popup-buffer-snapshot-unchanged-p)
	(slime-popup-buffer-restore-snapshot)
	(slime-xref-quit, slime-xref-retract): Deleted.

2009-01-08  Helmut Eller  <heller@common-lisp.net>

	Remove some customization variables of questionale use.

	* slime.el (slime-when-complete-filename-expand)
	(slime-space-information-p, slime-display-compilation-output)
	(sldb-show-location-recenter-arg, slime-recenter-window)
	(slime-display-buffer-region): Deleted.

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	Just use find-tag-marker-ring as stack for M-.

	* slime.el (slime-push-definition-stack)
	(slime-pop-find-definition-stack): Do whatever Emacs's standard
	find-tag commands do.

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	Fix the slime-next-location command.

	* slime.el (slime-xref-last-buffer): New variable.
	(slime-show-xrefs): Initialize it.
	(slime-goto-next-xref): Use it.
	(slime-search-property): New function.
	(slime-xref-buffer): Delted

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*sldb-pprint-dispatch-table*): Honor *print-escape*

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (frame-locals, frame-debug-vars): Remove
	non-valid variables.
	(debug-var-value): Compute the location from the frame arg.

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	* swank-source-path-parser.lisp (make-source-recorder)
	(source-path-source-position): Adjust the file-position before
	entering it in the table.

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-with-xref-buffer): Don't set
	slime-popup-buffer-quit-function. Use the default.  Don't shrink
	the window because it may have existed before creating the buffer
	and we need to restore it.
	(slime-goto-xref): Just use slime-popup-buffer-quit.
	(slime-edit-definition-cont): Push definition stack here so that
	we don't need to do anything special in slime-goto-xref.
	(slime-display-popup-buffer): Also save the buffer that the popup
	window was displaying before (if the window is not new).
	(slime-close-popup-window): Restore the old buffer (if any) of the
	popup window.

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-show-buffer-position): Use reposition-window.

2009-01-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-keys): Remove the binding for C-c C-i. M-TAB
	can also be pressed with M-C-i which is probably not taken
	by the window manager.  ESC TAB would also work.  Maybe we
	should reuse C-c C-i for slime-inspect.
	Move C-c C-y to slime-repl.e.
	Remove C-c C-f: it's already on C-c C-d f.
	Remove C-c M-0: slime-restore-window-configuration doesn't exist.
	Remove M-g: slime-quit doesn't work since ages.

2009-01-05  Helmut Eller  <heller@common-lisp.net>

	Create a compilation-log buffer so that next-error works but
	don't display the buffer.

	* slime.el (slime-create-compilation-log): New function.
	(slime-compilation-finished-hook): Use it.

2009-01-05  Helmut Eller  <heller@common-lisp.net>

	Use keymap inheritance to share bindings in various modes.

	* slime.el (slime-parent-map): New keymap.
	(slime-mode-map, slime-popup-buffer-mode-map, sldb-mode-map)
	(slime-inspector-mode-map): Use it.
	(slime-parent-bindings, slime-prefix-bindings): New variables.
	(slime-prefix-key, slime-define-key): Deleted.

	Update contribs accordinly.

2009-01-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-with-popup-buffer): New argment: select.
	If nil (default) buffer will only be displayed but not selected.

2009-01-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-show-compilation-log): Insert two lines at
	the beginning.  Emacs 21 seems to skip over those two.

2009-01-05  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-sbcl.lisp (function-arglist):
	SB-INTROSPECT:FUNCTION-ARGLIST is deprecated in bleeding edge sbcl.

2009-01-05  Tobias C. Rittweiler  <tcr@freebits.de>

	Do not truncate error messages in SLDB.

	* swank.lisp (*sldb-bitvector-length*): Like *PRINT-LENGTH* for
	bit-vectors.
	(*sldb-string-length*): Likewise for strings.
	(*sldb-pprint-dispatch-table*): Truncate bit-vectors / strings
	according to the above variables.
	(*sldb-printer-bindings*): Use the new variables. Bind
	*PRINT-LINES* to NIL so error messages are not truncated.

2009-01-04  Helmut Eller  <heller@common-lisp.net>

	Make it possible to limit the number of displayed restarts.

	* slime.el (sldb-initial-restart-limit)
	(sldb-insert-more-restarts): New.
	(sldb-setup, sldb-insert-restarts): Use it.

2009-01-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-local-variable-p): New function. XEmacs requires
	two arguments.

2009-01-04  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (note-error-location): If possible, include the
	filename.
	* slime.el (slime-goto-location-position): Add :eof as position
	kind.

2009-01-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-goto-location-buffer): Don't goto point-min.
	(slime-check-location-buffer-name-sanity)
	(slime-check-location-filename-sanity): Separated from
	slime-goto-location-buffer.
	(slime-line-number-at-pos): New compatibility function.

2009-01-03  Helmut Eller  <heller@common-lisp.net>

	By default, show compiler notes in a buffer with compilation-mode.

	* slime.el (slime-show-compilation-log)
	(slime-maybe-show-compilation-log): New functions,
	(slime-compilation-finished-hook): Change the default value
	to 'slime-maybe-show-compilation-log.

2009-01-03  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (simple-serve-requests, make-repl-input-stream):
	Move the call to WITH-CONNECTION to the input stream to pick up
	stream redirections.

2009-01-03  Helmut Eller  <heller@common-lisp.net>

	* swank-clisp.lisp (wait-for-input): Disable it for win32.

2009-01-02  Helmut Eller  <heller@common-lisp.net>

	Experimental implementation of "channels".
	The idea is to support arbitrary protocols without
	changes to the low level event dispatcher.

	* slime.el (slime-make-channel, slime-close-channel)
	(slime-channel-send, slime-send-to-remote-channel): New functions.
	(slime-define-channel-type, slime-define-channel-method): New
	macros.
	(slime-dispatch-event): Support channel events.
	* swank.lisp (channel, listener-channel): New classes.
	(channel-send, send-to-remote-channel): New functions.
	(create-listener): New function.  Test case for channel code.
	(process-requests): Process channel events.

2009-01-02  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] arglist): Guard against nil.  ECL
	returns nil most of the time.

2009-01-01  Tobias C. Rittweiler  <tcr@freebits.de>

	Arglists of user-defined types are now displayed by slime-autodoc
	on SBCL.

	  (deftype foo (x y) `(cons ,x ,y))
	  (declare (type (foo |

	* swank-sbcl.lisp ([method] type-specifier-arglist): Make use of
	recently introduced SB-INTROSPECT:DEFTYPE-LAMBDA-LIST.

2009-01-01  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-loader.lisp (*contribs*): Add `swank-sbcl-exts'.

2009-01-01  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-eval-async, slime-dispatch-event): Canoncalize
	return value. Previously they returned an arbitrary value which
	was displayed to the minibuffer due to a bug in slime-autodoc. The
	arbitrariness of the return value made debugging this a chore.

2009-01-01  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (frame-source-location-for-emacs)
	(pc-source-location): Fall back to the source-note of the function
	if there is no source-note for a pc offset.

2009-01-01  Helmut Eller  <heller@common-lisp.net>

	For buffers without filename, map the name of the tempfile back to
	the buffer name.

	* swank-openmcl.lisp (*temp-file-map*): New variable.
	(note-temp-file): New function.
	(compile-temp-file, source-note-to-source-location): Use it.

2009-01-01  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (sleep-for): New function
	* slime.el ([test] break): Use SWANK::SLEEP-FOR to help CCL pass
	this test.
	([test] arglist): Update arglist of
	swank::compile-string-for-emacs.
	([rest] find-definition.2): Allow some whitespace before the actual
	position.  Otherwise, CCL would fail on this test.

2008-12-31  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (maybe-redirect-global-io): Don't consider
	connections without streams.
	(*new-connection-hook*): Don't add MAYBE-REDIRECT-GLOBAL-IO.
	(create-repl): Call MAYBE-REDIRECT-GLOBAL-IO here.

2008-12-31  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp ([method] source-locations (symbol)): Drop
	the unused _; the compiler dosn't like it.

2008-12-31  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-cd, slime-pwd): New commands.
	(slime-change-directory): New function.
	(slime-change-directory-hooks): New hook.

2008-12-31  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] find-definition.2): Also fails for Lispworks.
	([test] interrupt-at-toplevel, [test] interrupt-in-debugger): Those
	don't work well if there's no REPL thread.

	* swank-backend.lisp (wait-for-input, wait-for-one-stream): Don't
	use PEEK-CHAR because we can't interrupt that cleanly.
	* swank.lisp (simple-serve-requests): Run the REPL inside
	WITH-CONNECTION.
	* swank-lispworks.lisp (emacs-connected): Don't install the signal
	handler here ...
	(install-sigint-handler): ... use this instead

2008-12-30  Tobias C. Rittweiler  <tcr@freebits.de>

	As of now, `C-u C-c C-c' compiled a function with maximum debug
	settings (SBCL only.)

	Now, `M-- C-c C-c' will compile a function with maximum _speed_
	settings (still SBCL only) --- useful to elicit compiler notes.

	* slime.el (slime-compilation-debug-level): Renamed to
	`slime-compilation-policy'.
	(slime-normalize-optimization-level): Renamed to
	`slime-compute-policy'.

	* swank.lisp (compile-string-for-emacs): Takes a policy now.
	(compile-multiple-strings-for-emacs): Ditto.

	* swank-backend.lisp (swank-compile-string): Change :DEBUG key arg
	to :POLICY.

	* swank-scl.lisp, swank-openmcl.lisp, swank-lispworks.lisp
	* swank-ecl.lisp, swank-corman.lisp, swank-cmucl.lisp,
	* swank-clisp.lisp, swank-allegro.lisp, swank-sbcl.lisp:

	Changed accordingly.

2008-12-29  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (find-definitions, source-locations): Use
	ccl:find-definition-sources.
	(swank-compile-string, compile-temp-file): Use new parameters to
	compile-file to adjust source locations.

2008-12-28  Helmut Eller  <heller@common-lisp.net>

	Recent CCLs support much better source location recording.
	Let's use the new features in SLIME.

	* swank-openmcl.lisp (function-source-location): Use
	ccl:function-source-note.
	(pc-source-location): New function, based on
	ccl:find-source-note-at-pc.
	(frame-source-location-for-emacs): Use it.

2008-12-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Move slime-lisp-package and
	slime-lisp-package-prompt-string to slime-repl.el

	* swank.lisp (create-repl): Return initial package and prompt.

2008-12-25  Helmut Eller  <heller@common-lisp.net>

	Don't restore window configs in sldb.
	That doesn't work in the native repl, because output
	may have moved point.

	* slime.el (sldb-setup, sldb-exit): Use temp buffer code.
	(slime-display-popup-buffer): Don't overwrite existing
	variables.
	(slime-close-popup-window): Factored out from
	slime-popup-buffer-quit.
	(slime-save-local-variables): New macro.
	(sldb-maybe-kill-buffer, sldb-saved-window-configuration): Deleted.

2008-12-23  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (connection.env): New slot. To hold dynamic variable
	bindings for this connection.
	(with-io-redirection): Use it.
	(create-repl): New function.  Currently only redirects IO for the
	connection.  Could potentially be used to create multiple
	listeners, each with a set of streams and corresponding buffers.
	(*redirect-io*, maybe-call-with-io-redirection)
	(call-with-redirected-io): Deleted.

2008-12-23  Helmut Eller  <heller@common-lisp.net>

	Move most of the REPL mode to contrib.
	Disable some commands that depend on the
	existence of a REPL buffer.

2008-12-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-set-connection-info): Don't create a repl
	buffer.
	(slime-start-lisp): Bind process-connection-type to nil to avoid
	problems witht CLISPs readline code.

	* swank.lisp (read-non-blocking, make-repl-input-stream)
	(simple-repl): New functions.
	(simple-serve-requests): Use it.

	* swank-backend.lisp (wait-for-one-stream, wait-for-streams): New
	functions.
	(wait-for-input): Use it to support wainting on multiple streams.

	* swank-cmucl.lisp (to-fd-stream): New function.
	(wait-for-input): Use it.

2008-12-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-run-mode-hooks): Wrapper for Emacs21.
	(slime-repl-mode): Use it.
	Reported by Peter Denno.

2008-12-23  Sven Van Caekenberghe <sven@beta9.be>

	* swank.lisp (connection): Add a slot to store the
	auto-flush-thread.
	(cleanup-connection-threads): Also kill the auto-flush-thread.

	(stop-server): list-threads returns the thread name in second
	position and not in first position.

2008-12-23  Willem Broekema <metawilm@gmail.com>

	* slime.el (sldb-insert-restarts): Make the space before each
	restart also propertized, consistent with how each line in the
	backtrace is fully sensitive.

2008-12-09  Helmut Eller  <heller@common-lisp.net>

	Reset the stream column to 0 after eval requests.

	* swank.lisp (interactive-eval, eval-region): Use FRESH-LINE
	to reset the stream column.
	* slime.el (test repl-test): Adjust test accordingly.

2008-12-09  Helmut Eller  <heller@common-lisp.net>

	Be a bit more careful when computing the toplevel restart.

	* swank.lisp (throw-to-toplevel): Test *sldb-quit-restart* for
	nilness.
	* sldb-quit (sldb-quit): Show the returned value in brackets.

2008-12-09  Helmut Eller  <heller@common-lisp.net>

	Make the modeline a bit shorter.

	* slime.el (slime-compute-modeline-string): Remove PKG: and CON:
	to save space.
	(slime-compute-modeline-connection-state): Don't include zeros.

2008-12-09  David Reitter <david.reitter@gmail.com>

	* slime.el (slime-repl-mode): Use `run-mode-hooks' rather than
	just `run-hooks'.  That way, after-change-major-mode-hook is
	called automatically.

2008-12-07  Nikodemus Siivola <nikodemus@random-state.net>

	* slime.el (slime-qualify-cl-symbol-name): Clean up the package
	name using `slime-pretty-package-name', so that packages named with
	strings are not left with the extra doublequotes.

2008-12-05  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-macroexpansion-minor-mode-map): Bind keybindings
	of `undo' to `slime-macroexpansion-undo'.
	(slime-show-macroexpansion): Renamed to
	`slime-initialize-macroexpansion-buffer'
	(slime-initialize-macroexpansion-buffer): Make sure that the user
	can't undo past the initial insertion.
	(slime-macroexpand-undo): New function. Tries to undo-only.

2008-12-05  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-trace-query): SPEC argument can be a symbol.

2008-12-02  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-compute-modeline-connection-state): Fix
	computation of debugged requests.

2008-11-30  Gábor Melis  <mega@retes.hu>

	* slime.el (slime-compute-modeline-connection-state): Print the
	number of debugged requests if non-zero.
	(slime-connection-state-as-string): Removed unused branches.
	(slime-compute-connection-state): Removed :debugged branch making
	most likely return :connected instead.

2008-12-02  Tobias C. Rittweiler  <tcr@freebits.de>

	Modeline wouldn't display {debugged..} after `slime-interrupt'.

	* slime.el (slime-debugged-connection-p): Can't rely on
	`sldb-debugged-continuations' to be non-null in every SLDB buffer.

2008-11-23  Helmut Eller  <heller@common-lisp.net>

	`q' in temp buffers should only delete the window if it was newly
	created for the buffer.

	* slime.el (slime-display-popup-buffer): New function.  Recognize
	if the window didn't exist before.  Save the created window and
	the selected window in buffer local variables.
	(slime-make-popup-buffer): Renamed from slime-popup-buffer.
	(slime-popup-buffer-quit): Delete the created window (if needed)
	and restore the old selected window.  Don't touch other windows.

	(slime-edit-value-callback): Calling lisp-mode deletes all local
	variables.  We need to that inside with-popup-buffer.

2008-11-22  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-update-all-modelines): Only walk through
	widnow-list not buffer-list.
	(slime-restart-or-init-modeline-update-timer): Inrease the timer
	interval to 0.5 seconds.

2008-11-22  Gábor Melis  <mega@retes.hu>

	Reincarnate "eval..." (almost)

	* slime.el (slime-compute-modeline-connection-state): Return the
	number of outstanding requests if connected.
	(slime-update-all-modelines): Renamed from slime-update-modelines,
	loops through all slime buffers.
	(slime-restart-or-init-modeline-update-timer): New function.
	(slime-dispatch-event): Arrange for modelines to be updated on
	:EMACS-REX and :RETURN.

2008-11-22  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (invoke-default-debugger): New condition type.
	(swank-debugger-hook): Handle invoke-default-debugger conditions.
	(sldb-break-with-default-debugger): Signal invoke-default-debugger
	to transfer control to the default debugger.
	New argument DONT-UNWIND to invoke the native debugger without
	unwinding the stack.
	* slime.el (sldb-break-with-default-debugger): By default,
	unwind the stack before invoke the native debugger.
	With prefix argument, run the native debugger in the
	dynamic environment of SLDB.

2008-11-02  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] package-updating): Allegro returns "||" as
	prompt for the keyword package.  I guess that's acceptable.

2008-11-02  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-popup-buffer-quit): Always delete windows and
	bury the buffer.

2008-11-02  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (slime-interrupt-queued): New condition.
	* swank.lisp (invoke-or-queue-interrupt): Raise it here.
	* swank-cmucl.lisp (wait-for-input): Make fd readable in condition
	handler so that we can call serve-events without timeout.

2008-11-02  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([test] find-definition.2, [test] compile-defun):
	Expect to fail for CCL.

2008-10-31  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-history-pattern): Simplify as suggested by
	Knut Olav Bøhmer and Michael Weber.

2008-10-31  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-eval-with-transcript)
	(slime-eval-with-transcript-cont): Restore the current buffer,
	before calling cont.

2008-10-31  Helmut Eller  <heller@common-lisp.net>

	* swank-lispworks.lisp (describe-function): Don't use
	string-upcase on lambda-list-argruments, because not all elements
	must be symbols.

2008-10-31  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (debug-in-emacs): Bind *sldb-quit-restart* here. If
	necessary, use the current abort retstart.

2008-10-30  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (wait-for-input): Return streams which are at
	EOF.

2008-10-30  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-popup-buffer-quit): Call bury-buffer with
	explicit argument for compatibility with XEmacs.

2008-10-30  Ivan Shvedunov <ivan4th@gmail.com>

	* slime.el (slime-repl-history-pattern): Use the part of input
	between its start and (point) as history search pattern.
	Previously we used the entire input.

2008-10-26  Helmut Eller  <heller@common-lisp.net>

	* test.sh: Return the number of failed tests as exit code.

	* slime.el: Fix change from 2008-10-20.
	Use (eval-when (compile)...) instead of (eval-when-compile ...),
	because the latter is more like (eval-when (compile eval) ...).

2008-10-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-redirect-inferior-output): New command.

2008-10-21  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (frame-restartable-p): Handle errors signaled
	by debugger:frame-retryable-p.  This looks like an Allegro
	bug, though.  Reported by Luke Hope.

2008-10-20  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Require some packages, e.g. apropos, at compile time
	to suppress some "undefined function" warnings.

2008-10-19  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (frame-locals-and-catch-tags): New function.
	Fetch locals and catch tags with a single RPC.

	* slime.el (sldb-frame-details): Use it.

	* swank-backend.lisp (frame-catch-tags): Provide a default
	implementation.  Delete the dummy defs in various backends.

2008-10-19  Mark Evenson <evenson@panix.com>

	* swank-abcl.lisp (handle-compiler-warning): Report source
	location position when we can.
	Use NAMESTRING for *compile-filename*.

2008-10-19  Helmut Eller  <heller@common-lisp.net>

	* swank-clisp.lisp (filename-to-pathname, parse-cygwin-filename):
	Accept Windows and Unix filenames when :CYGWIN is in *features*.

2008-10-17  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (swank-compile-file): Fix typo.

2008-10-17  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (compute-sane-restarts): Deleted. Use plain
	compute restarts instead.

2008-10-17  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (call-with-retry-restart): Implement this a little
	less confusing.

2008-10-17  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (frame-restartable-p): New function.
	(swank-frame): Deleted. Update implemenetations accordingly.
	(print-frame): Renamed back from print-swank-frame.

	* swank.lisp (backtrace): Don't clutter the backtrace with
	'(:restartable :unknown).  For practical purposes :unknown is the
	same as nil.

	* slime.el (sldb-compute-frame-face): Only accept nil or t for
	the :restartable prop.

2008-10-16  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (swank-compile-file): Return the same
	values as COMPILE-FILE.  Update backends accordingly.

	* swank-lispworks.lisp (with-swank-compilation-unit): Return the
	values of BODY.
	(compile-from-temp-file)
	* swank-allegro.lisp (compile-from-temp-file)
	* swank-clisp.lisp (swank-compile-string)
	* swank-abcl.lisp (swank-compile-string): Return T on success.
	* swank.lisp (collect-notes): Check return type of
	FUNCTION.

2008-10-16  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (frame-catch-tags): Disabled as it prevents
	FRAME-LOCALS from working in lx8632.

2008-10-10  Nikodemus Siivola <nikodemus@random-state.net>

	* slime.el (slime-inspector-toggle-verbose): New function.
	(slime-inspector-mode-map): Bind v to slime-inspector-toggle-verbose.
	(slime-cheat-sheet-table): Add slime-inspector-toggle-verbose.
	* swank.lisp (*inspector-verbose*): New variable.
	([defstruct] istate): New slot called verbose.
	(istate>elisp): If the current istate is verbose, use untruncated
	result of TO-STRING as the title.
	(inspect-nth-part): Use the verbosity of the current istate.
	* doc/slime.texi: Document slime-inspector-toggle-verbose.

2008-10-07  Nikodemus Siivola <nikodemus@random-state.net>

	* swank.lisp (*backtrace-printer-bindings*): export.

2008-10-05  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (list-callers): Do a full GC before calling
	map-allocated-objects. That's needed because map-allocated-objects
	seems to cons even if it's inlined.
	(emacs-inspect [code-component]): Try to detect
	byte-code-components.

	(inspect-alien-record, mv-function-end-breakpoint-values): Avoid
	compiler warnigns.

2008-10-04  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-sbcl.lisp: Add support for WHO-SPECIALIZES. This requires
	a patch for SBCL's SB-INTROSPECT contrib which I sent upstream a
	few minutes ago.

2008-10-04  Helmut Eller  <heller@common-lisp.net>

	Some cleanups for compilation commands.

	* slime.el ([defstruct] slime-compilation-result): Rename result
	slot as successp.
	(slime-make-compilation-finished-continuation): Deleted.
	slime-eval-async preserves the current buffer and preserving the
	window-configuration was always a questionable feature.
	(slime-compilation-finished): Simplified.
	(slime-show-note-counts): Also show the success/failure flag.
	(slime-recompile-locations): Take a continuation as argument
	rather than messing around with compilation-finished-hooks.
	(slime-aggregate-compilation-results): New function.
	(slime-xref-recompilation-cont): Renamed from
	slime-make-xref-recompilation-cont.
	(slime-compiler-results): Deleted.
	(slime-goto-first-note-after-compilation): Replaced with hook
	function slime-goto-first-note.
	(slime-compilation-just-finished): Deleted.
	(slime-to-lisp-filename-function): Use convert-standard-filename.
	* swank.lisp ([defstruct] compilation-result): Renamed from
	swank-compilation-result.
	(measure-time-interval): Return seconds as float.
	(collect-notes): Renamed from swank-compiler.  Return a single
	compilation-result.
	(compile-multiple-strings-for-emacs): Return a list of
	compilation-results instead of a single result with merged notes.

	* swank-backend.lisp (filename-to-pathname): Renamed from
	parse-emacs-filename.  Updated callers.
	(pathname-to-filename): New function.  Use it where appropriate.

	* swank-scl.lisp (pathname-to-filename): Implement it in the
	backend to get rid of the #+scl in swank.lisp.

	* swank-cmucl.lisp (swank-compile-file, swank-compile-string):
	Return t on success.

2008-10-04  Alain Picard <Alain.Picard@accenture.com>

	UTF-8 support for Lispworks.

	* swank-lispworks.lisp (accept-connection): Use flexi-streams
	for utf-8.
	(make-flexi-stream): New function.
	(*temp-file-format*): New variable
	(compile-from-temp-file): Use it.

2008-09-28  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-list-compiler-notes): Revert change from
	2008-08-15 which introduced automatic shrinkage of the
	compiler-notes buffer. This turned out to be more annoying than
	worthwhile. On the cases where it's desired, the user can just use
	`C-x -' himself to shrink the notes buffer.

2008-09-28  Helmut Eller  <heller@common-lisp.net>

	Stop handling events in worker threads after sldb-quit.

	* swank.lisp (with-top-level-restart): New macro.
	(handle-requests, spawn-worker-thread): Use it.
	(process-requests): Drop the just-one argument.
	(handle-or-process-requests): Deleted. Call handle-requests
	directly.

2008-09-27  Tobias C. Rittweiler  <tcr@freebits.de>

	Improve ECL's arglist support somewhat.

	* swank-ecl.lisp (grovel-docstring-for-arglist): New function.
	(arglist): Use it. Now also try to find an arglist for special
	operators, and macros.

2008-09-26  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-cycle-connections): Do not make the new
	connection buffer-local if we're currently in a REPL buffer.

2008-09-24  Knut Olav Bøhmer <knut-olav.bohmer@telenor.com>

	* slime.el (slime-cycle-connections): New command.

2008-09-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-prefix-map): New keymap.
	(slime-define-key): Use it.  Also drop unused :inferior arg.
	(slime-inspector-mode-map): Bind C-c to slime-prefix-map.
	(slime-define-both-key-bindings): New function.  Factor of
	slime-init-keymaps.
	(slime-init-keymaps): Use it.
	(slime-control-modified-char): Deleted.

2008-09-23  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl.lisp: update for Scieneer CL 1.3.8.

	* swank.lisp (ed-in-emacs): customize for the SCL.

	* swank.lisp (signal-interrupt): fix typo.

2008-09-22  Nikodemus Siivola  <nikodemus@random-state.net>

	* swank.lisp (guess-package): Return NIL if string designator is
	NIL: makes files without IN-PACKAGE forms more *BREAK-ON-SIGNALS*
	friendly.

2008-09-22  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (wait-for-input): Implement this in backend,
	since read-char-no-hang doesn't work in fd-handlers.
	(install-sigint-handler): Go through invoke-interruption and
	with-interrupts to support nested interrupts.

	* slime.el (slime-lisp-implementations): Mention :env keyword
	in docstring.

2008-09-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-input-end-mark): Deleted. It was always at
	the end of buffer. Use point-max instead.
	(slime-repl-eol): Removed.  The usual end-of-line does the same.

2008-09-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-eol-conversion-fixup): Return 0 (not nil) for
	anyting other than CRLF conventions.

2008-09-21  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp: Try to remove the first few internal frames
	from backtraces.
	(guess-stack-top): New function.
	(call-with-debugging-environment): Use it

	(frame-arguments): Return a list instead of a string.  Don't quote
	symbols.
	(source-locations): Recognize (:internal FOO) functions.

2008-09-21  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*backtrace-pprint-dispatch-table*):
	Honor *print-escape*.

2008-09-20  Ariel Badichi <abadichi@bezeqint.net>

	* slime.el (slime-with-output-end-mark):
	slime-repl-show-maximum-output no longer accepts any arguments.

2008-09-20  Helmut Eller  <heller@common-lisp.net>

	* test.sh: Parse the -S option as advertized.

	* slime.el (slime-randomize-test-order): Add the * to the
	docstring.
	([def-slime-test] break2): Also CCL is expected to fail here.

2008-09-20  Helmut Eller  <heller@common-lisp.net>

	Fix some of the bugs that I introduced with the last commits.

	* swank-openmcl.lisp (call-with-debugging-environment): Fix typo.
	(call-with-debugger-hook): Bind *break-in-sldb*.
	(backtrace-context): Return nil, not tcr!
	(map-backtrace): Remove the stack< test. Only test for nil.
	(lisp-implementation-type-name): Return "ccl".

	(emacs-inspect (t)): Fix typo.

	(kill-thread): Use join-process. Otherwise we get strange
	"process-reset" errors when disconnecting.
	(thread-alive-p): Implemented with ccl::process-exhausted-p.

	(source-locations): Use labels for helper functions.
	(function-source-location): Now implemented on top of
	source-locations.

2008-09-20  Helmut Eller  <heller@common-lisp.net>

	Fix frame-source-location-for-emacs for CCL.

	* swank-openmcl.lisp (source-locations): New function.
	(create-source-location): New function.
	(frame-source-location-for-emacs): Use it.

2008-09-20  Helmut Eller  <heller@common-lisp.net>
	Fix inspecting of arrays.

	* swank-openmcl.lisp (emacs-inspect :around (t)): call-next-method
	may return a lazy list.  Detect that case and only append to
	ordinary lists.
	(emacs-inspect (t)): Don't mark labels as inspectable. Just print
	them.

2008-09-20  Helmut Eller  <heller@common-lisp.net>

	Fix BREAK and backtraces after interrupts.

	* swank-openmcl.lisp (*sldb-stack-top-hint*): New variable.
	(call-with-debugging-environment, break-in-sldb)
	(interrupt-thread): Use it.
	(*process-to-stack-top*, record-stack-top)
	(grab-stack-top): Deleted. Use *sldb-stack-top-hint* instead.
	(backtrace-context): Deleted. Use %current-tcr directly.

2008-09-20  Helmut Eller  <heller@common-lisp.net>

	* swank-openmcl.lisp (call-with-debugging-environment): Don't set
	*debugger-hook* to nil.

2008-09-19  Helmut Eller  <heller@common-lisp.net>

	* slime.el ([def-slime-test] break): Split it up in two versions
	to make the debugger-hook issue more explicit.

	* swank-allegro.lisp (frob-allegro-field-def): There seems to be a
	new type :func handle it like :lisp.

2008-09-19  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-save-marker): New marcro. Use it in combination
	with insert-before-markers.
	(slime-check-buffer-contents): Use {} resp. [] to describe the
	position of output resp. input markers.

	(slime-repl-emit-result): Update window-point.

	(slime-randomize-test-order): New variable.
	(slime-shuffle-list): New function.
	(slime-run-tests): Use it.
	(slime-batch-test): Accept test-name and randomize arguments.

	* test.sh (usage): Accept -n and -S options.

2008-09-18  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-ecl.lisp: Forgot to update ECL's backend when introducing
	swank-frames in commit on 2008-09-12.

2008-09-18  Helmut Eller  <heller@common-lisp.net>

	Some cleanups for the REPL code.

	* slime.el (slime-show-last-output)
	(slime-show-last-output-function)
	(slime-show-last-output-region)
	(slime-maybe-display-output-buffer)
	(slime-repl-last-input-start-mark): Delete unused code.

	(slime-repl-emit-result, slime-repl-insert-prompt)
	(slime-repl-show-abort, slime-repl-insert-result)
	(slime-insert-transcript-delimiter)
	(slime-eval-with-transcript-cont): Consistently use save-excursion
	and insert-before-markers.  We always want to preserve the cursor
	position in the input region (for type-ahead).
	(slime-eval-with-transcript):  Change order of arguments to
	make the common case easier to use.

	(slime-batch-test): Use a timer.
	(slime-check-buffer-contents): New function to test contents and
	current position.  Use it in various places.

	(sldb-recenter-region, def-slime-test interactive-eval)
	(def-slime-test interactive-eval-output): Act slightly differently
	when the test suite is executed in batch mode (without terminal).

	* swank.lisp (handle-requests): Flush output.
	(interactive-eval, interactive-eval): Don't use fresh-line, as
	that makes it harder to test the REPL code.

	* test.sh (usage): Add a -T switch to run slime in the current
	directory without copying (and compiling) everything to a
	temporary directory.

2008-09-18  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-eval-with-transcript): Accept some more arguments
	so that we can also use it for compile-file.
	(slime-eval-with-transcript-cont): New. Insert prompt.
	(slime-compile-file): Use slime-eval-with-transcript.
	(slime-repl-show-maximum-output): Update window point.
	(slime-repl-insert-prompt): Don't use insert-before-markers.
	(slime-repl-emit): No longer use slime-with-output-end-mark.

2008-09-17  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-sbcl.lisp (make-definition-source-location): Fix typo
	introduced with crlf-related commit on 2008-09-16.

2008-09-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-popup-on-output): New variable.
	(slime-repl-emit): Honor slime-repl-popup-on-output.
	(slime-eval-with-transcript): Use slime-repl-popup-on-output.
	Also remove the function argument, as it was only used once
	and that was slime-message.

2008-09-17  Helmut Eller  <heller@common-lisp.net>

	(*pre-reply-hook*): Add 'force-user-output.

2008-09-17  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (send-user-output): Lifted from make-output-function.
	Make this a top-level function for easier redefinition.

2008-09-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-test-find-top-level-restart): New function.
	[def-slime-test] (interrupt-at-toplevel, interrupt-in-debugger):
	Use it.

2008-09-16  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-connection): Optionally select a new default
	connection.
	(slime-auto-select-connection): New variable.
	(slime-auto-select-connection): New function.

2008-09-16  Helmut Eller  <heller@common-lisp.net>

	Adjust positions in files with CRLF style end-on-line markers.

	* slime.el (slime-eol-conversion-fixup): New function.
	(slime-goto-location-position): Use it.  Also add a new position
	type :offset, so that we don't adjust offsets in strings that were
	sent over the wire (which uses LF eol-convention).

	* swank-abcl.lisp
	* swank-allegro.lisp
	* swank-clisp.lisp
	* swank-cmucl.lisp
	* swank-corman.lisp
	* swank-ecl.lisp
	* swank-lispworks.lisp
	* swank-openmcl.lisp
	* swank-sbcl.lisp
	* swank-scl.lisp: Create :offset style positions where needed.

	* swank-lispworks.lisp (skip-comments): New function.
	(dspec-stream-position): Use it.

2008-09-16  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-end-of-list): `backward-down-list' was used
	there which is defined by paredit.el.
	Use `(down-list -1)' instead.

2008-09-15  Helmut Eller  <heller@common-lisp.net>

	* swank-lispworks.lisp (describe-symbol-for-emacs): Revert last
	change.

2008-09-15  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (sldb-loop): Send a :sldb-return event to ourselfes
	to inform the debug session at the lower level.
	(wait-for-event): Drop the report-interrupt argument.  No longer
	needed.
	(event-match-p): Add an OR pattern operator.  Used to wait for
	different events simultaneously.

	(read-packet): Use peek-char to detect EOF. read-sequence wouldn't
	work.

	* slime.el (slime-test-interrupt-in-debugger): Call sldb-quit and
	sldb-continue in the right buffer.

	* swank-backend.lisp (wait-for-input):
	* swank-cmucl.lisp (wait-for-input):
	* swank-clisp.lisp (wait-for-input): Use the idiom
	"(when (check-slime-interrupts) (return :interrupt))".

2008-09-15  Helmut Eller  <heller@common-lisp.net>

	Interrupt related hacking.

	* swank-backend.lisp (*pending-slime-interrupts*): Should be
	thread-local.  Leave global value unbound.

	* swank.lisp (with-interrupts-enabled%): New helper macro.
	(with-slime-interrupts, without-slime-interrupts): Use it.
	(call-with-connection): Bind *pending-slime-interrupts* here.
	(wait-for-event): Add a report-interrupt argument.  Currently used
	by the debugger to detect when a nested debugger session, which
	was triggered by an interrupt in wait-for-event, returns.  Doesn't
	work well, though.

	* slime.el (slime-test-interrupt-in-debugger): New test.

2008-09-14  Helmut Eller  <heller@common-lisp.net>

	Introduce a WAIT-FOR-INPUT backend function.
	CMUCL's blocking input functions READ-CHAR etc.
	are hard to use with interrupts.  In the backend
	we have a more realistic chance to get interrupts working.

	* swank-backend.lisp (wait-for-input): New function.

	* swank-cmucl.lisp, swank-clisp.lisp (wait-for-input): Implement
	it.

	* swank.lisp (wait-for-event/event-loop): Use WAIT-FOR-INPUT and
	rescan the event-queue if WAIT-FOR-INPUT was interrupted.
	(reader-event): Deleted. Merged into wait-for-event/event-loop
	resp.  dispatch-loop.
	(decode-message): Drop the timeout argument.
	(*events-enqueued*): A counter to quickly detect new events after
	a wait.
	(call-with-connection): If the argument is already the current
	connection, don't rebind anything.
	(without-slime-interrupts, with-slime-interrupts): Don't rebind
	*pending-slime-interrupts*. Just to be save.

	* slime.el (sldb-maybe-kill-buffer): New function, to handle
	the case when the debugger was interrupted in WAIT-FOR-INPUT and
	we want to return to the previous debug level.

2008-09-12  Helmut Eller  <heller@common-lisp.net>

	For Lispworks, parse the $LWHOME/lwdoc file.

	* swank-lispworks.lisp (lwdoc, lookup-lwdoc, parse-lwdoc-record):
	New functions.
	(describe-symbol-for-emacs): Use it.

2008-09-12  Tobias C. Rittweiler  <tcr@freebits.de>

	In an SLDB buffer, `C-c C-c' will now recompile the source behind
	a frame. In particular, `C-u C-c C-c' will recompile the frame
	with high debug settings.

	* slime.el (sldb-recompile-frame-source): New function.
	(sldb-mode-map): Bind `C-c C-c' to it.

	* slime.el (sldb-overlays, sldb-delete-overlays, slime-xref-cleanup):
	Removed. Sldb-overlays weren't created anymore since 2008-08-17.

2008-09-12  Tobias C. Rittweiler  <tcr@freebits.de>

	New faces: `sldb-restartable-frame-line-face',
	           `sldb-non-restartable-frame-line-face'.

	The former is the face for frames that are surely restartable, the
	latter for frames that are surely not restartable. If
	restartability of a frame cannot be reliably determined, the face
	`sldb-frame-line-face' is used.

	At the moment, determination of frame restartability is supported
	by the SBCL backend only.

	* slime.el (sldb-frame.string): New.
	(sldb-frame.number): New.
	(sldb-frame.plist): New.
	(sldb-prune-initial-frames): Use them.
	(sldb-insert-frames): Ditto.
	(sldb-compute-frame-face): New.
	(sldb-insert-frame): Use `sldb-compute-frame-face' to insert
	frames with one of the faces described above.

	* swank.lisp (defslimefun backtrace): Changed return value; each
	frame is now accompanied with a PLIST which at the moment can
	contain :RESTARTABLE NIL/T/:UNKNOWN depending on whether the frame
	is restartable, or not.

	* swank-backend.lisp (defstruct swank-frame): New structure.
	(compute-backtrace): Is now supposed to return a list of SWANK-FRAMEs.
	(print-frame): Renamed to PRINT-SWANK-FRAME.

	* swank-sbcl.lisp, swank-cmucl.lisp, swank-lispworks.lisp,
	* swank-allegro.lisp, swank-scl.lisp, swank-openmcl.lisp,
	* swank-abcl.lisp, swank-clisp.lisp: Adapted to swank-backend changes.

2008-09-11  Helmut Eller  <heller@common-lisp.net>

	* doc/slime-refcard.tex: Fix typos.

2008-09-11  Gary King <gwking@metabang.com>

	* swank-allegro.lisp (fspec-definition-locations): add declare
	ignores to prevent warnings

	(emacs-inspect): remove first definition on function since it
	was being overwritten by the next one. Wrap the method on t with
	a excl:without-redefinition-warnings to prevent warning.

2008-09-11  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (slime-output-stream): Remove last-flush-time
	slot.
	(sos/flush): Renamed from sos/misc-force-output.  Don't try to be
	clever: no timestamps and no line buffering.
	(sos/write-char, sos/write-string): Renamed from sos/out
	resp. sos/sout.  Call output-fn outside without-interrupts.
	(sos/reset-buffer): New function.

2008-09-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-compilation-unit): Renamed to
	`slime-compilation-result'.
	(slime-last-compilation-unit): Renamed to
	`slime-last-compilation-result'.
	(slime-compiler-notes, slime-compiler-results): Adapted accordingly.
	(slime-compilation-finished): Ditto.

2008-09-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-popup-buffer-restore-snapshot): Make sure that
	the buffer-local variable containing the popup buffer's snapshot
	is set to nil in the right buffer.

2008-09-11  Tobias C. Rittweiler  <tcr@freebits.de>

	Reimplement recompilation support. The previous implementation
	involving specials was subtly broken with the :fd-handler
	communcation-style, because of serve-event's polite interplay with
	specials. (Cf. my slime-devel post "Per event bindings" on 2008-08-17.)

	* swank.lisp (with-swank-compilation-unit): Removed.
	(record-note-for-condition): Removed.
	(defstruct swank-compilation-unit): Renamed to
	`swank-compilation-result'.
	(swank-compilation-unit-for-emacs): Renamed to
	`swank-compilation-result-for-emacs'.
	(swank-compiler): Takes additional argument, the
	swank-compilation-result where caught notes should be accumulated
	into.
	(defslimefun compile-file-for-emacs): Adapted accordingly.
	(defslimefun compile-string-for-emacs): Ditto.
	(defslimefun compile-multiple-strings-for-emacs): New RPC call.

	* slime.el (slime-make-compile-expression-for-swank): Removed.
	(slime-compile-string): Don't use above function anymore. Adapted.
	(slime-recompile-locations): Rewritten to use new RPC call above.

2008-09-10  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-backend.lisp (*gray-stream-symbols*): Comment out
	STREAM-FILE-POSITION.

2008-09-10  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (eval-for-emacs): Remove WITH-RETRY-RESTART again for
	simplicity reasons.

	(interactive-eval): Add WITH-RETRY-RESTART.
	(eval-and-grab-output): Ditto.
	(interactive-eval-region): Ditto.
	(re-evaluate-defvar): Ditto.
	(pprint-eval): Ditto.
	(repl-eval): Ditto.
	(eval-string-in-frame): Ditto.
	(pprint-eval-string-in-frame): Ditto.
	(init-inspector): Ditto.
	(inspect-in-frame): Ditto.

2008-09-09  Tobias C. Rittweiler  <tcr@freebits.de>

	A RETRY restart is provided for all Slime evaluation requests.

	The rationale is that restarting from a frame is mostly only
	possible for functions compiled with high debug settings; most
	functions aren't, however.

	[Alternatively, we could make EVAL-FOR-EMACS be compiled with a
	high debug level, so it'll become restartable. That would be
	non-obvious to the user, though, and would only work on those
	implementations that implement SWANK-BACKEND:RESTART-FRAME.]

	* swank.lisp (call-with-retry-restart): New function.
	(with-retry-restart): New macro.
	(eval-for-emacs): Use WITH-RETRY-RESTART.

2008-09-09  Tobias C. Rittweiler  <tcr@freebits.de>

	A package "Foo.Bar.1.0" was truncated to "0>" as REPL
	prompt. It'll now be displayed as "Bar.1.0>".

	* swank.lisp (auto-abbreviated-package-name): Adapted accordingly.

2008-08-31  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (*gray-stream-symbols*): Remove
	stream-file-position because it's called stream-position in CCL.
	(make-fn-streams): Deleted.
	Update callers accordingly.

2008-08-30  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (receive-if): Add #+/-linux to avoid yet more
	WITH-TIMEOUT related problems.

	* swank-gray.lisp (slime-input-stream): Remove the output stream
	slot.  Most of the time we can just call force-output.

	* slime.el [test](inspector): New test.

	* swank.lisp (prepare-part): Also wrap action elements
	in a list.  Reported by Ariel Badichi and Madhu.

2008-08-30  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-pop-to-buffer): Drop the norecord argument,
	since we can't support it easily in Emacs 21.
	Reported by Christophe Rhodes.

2008-08-30  Michael Weber  <michaelw+slime@foldr.org>

	* swank-gray.lisp (make-input-stream): fixed typos

2008-08-30  Michael Weber  <michaelw+slime@foldr.org>

	* swank-backend.lisp (*gray-stream-symbols*): added symbols
	stream-peek-char, stream-read-line, stream-file-position

2008-08-30  Mark Evenson <evenson@panix.com>

	* swank-abcl.lisp (make-output-stream, make-input-stream): provide
	the (trivial) definitions for MAKE-OUTPUT-STREAM and
	MAKE-INPUT-STREAM for ABCL.

2008-08-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-setup): Insert "No backtrace" if the backtrace is
	empty.

2008-08-27  Anton Vodonosov <avodonosov@yandex.ru>

	* swank-ecl.lisp: Add :load-toplevel and :execute to EVAL-WHENs to
	fix loading.

2008-08-27  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (remove-sigio-handlers): Fix thinko.

	* swank.lisp (decode-message): Don't ignore EOF.
	(swank-debugger-hook): Remove the default-debugger restart.

2008-08-25  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-compute-modeline-package): Used `when-let'
	before its definition.
	(slime-compute-modeline-string): Display "PKG:" before "CON:".

2008-08-22  Helmut Eller  <heller@common-lisp.net>

	Some focus handling in multiframe setups.

	* slime.el (slime-pop-to-buffer): New function.
	(slime-switch-to-output-buffer): Use it.

2008-08-22  Helmut Eller  <heller@common-lisp.net>

	Use lazy lists in the inspector.

	* swank.lisp (lcons): New data type.
	(lcons*, lcons-car, lcons-cdr, llist-range): New functions.
	(emacs-inspect array): Use lazy lists.
	(istate>elisp): The istate.content is now be a lazy list.
	(iline): New utility.
	(prepare-range, prepare-part): Replaces inspector-content.

2008-08-22  Helmut Eller  <heller@common-lisp.net>

	Implement streams with a length limit.
	Use them to truncate printer output in backtraces.

	* swank-backend.lisp (make-output-stream, make-input-stream):
	Split make-fn-streams up into two functions.

	* swank.lisp (call/truncated-output-to-string): New function.
	(backtrace, istate>elisp, to-line): Use it.
	(frame-locals-for-emacs): Use to-line.

2008-08-22  Helmut Eller  <heller@common-lisp.net>

	In backtraces, escape newlines in strings as \n.

	* swank.lisp (*backtrace-pprint-dispatch-table*): New.
	(*backtrace-printer-bindings*): Use it.

2008-08-22  Stas Boukarev <stassats@gmail.com>

	* metering.lisp: Add deftypes for time-type and cons-type, which
	are not defined in newer versions of CCL.

2008-08-22  Stelian Ionescu <sionescu@common-lisp.net>

	* swank-ecl.lisp: Add a few EVAL-WHENs to fix compilation.

2008-08-22  Helmut Eller  <heller@common-lisp.net>

	Collect most of the inspector state in a structure.
	Truncate the printer output more aggressively.

	* swank.lisp (inspector-state): New structure.
	(*istate*): New variable holds the current state.
	(inspect-object, inspector-content, inspector-nth-part)
	(inspector-range, inspector-call-nth-action, describe-inspectee):
	Use it.
	(inspector-pop, inspector-next): Implemented forward/backward a
	bit differently.
	(emacs-inspect/printer-bindings, istate>elisp): New functions.
	(to-line, truncate-string): New functions.

2008-08-22  Tobias C. Rittweiler  <tcr@freebits.de>

	Compiling a file `let*.lisp' on SBCL via C-c C-k resulted in an
	error, because it parsed the asterisk to a wild pathname. Fix
	that.

	* swank-backend.lisp (definterface parse-emacs-filename): New.
	PARSE-NAMESTRING by default.

	* swank-sbcl.lisp (defimplementation parse-emacs-filename): Use
	SB-EXT:PARSE-NATIVE-NAMESTRING.

	* swank.lisp (compile-file-for-emacs): Use PARSE-EMACS-FILENAME.
	(compile-file-if-needed): Ditto.
	(load-file): Ditto.
	(swank-require): Ditto.

2008-08-18  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (install-fd-handler): Bind *emacs-connection* with
	with-connection, for case when the signal hander is called out of
	the blue.
	(swank-debugger-hook): Don't assume that the hook argument is
	#'swank-debugger-hook itself.

	* test.sh (usage): Use cat rather not echo for here-documents.

2008-08-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-inspector-show-source): New command.
	(slime-inspector-mode-map): Bind it to ".".
	(sldb-highlight-sexp): Use slime-flash-region rather than a
	permanent overlay.
	(slime-popup-buffer-quit): Must call bury-buffer without argument.

	* swank.lisp (find-source-location-for-emacs): New function.

	* slime.el (slime-add-local-hook): Renamed from add-local-hook.
	(slime-switch-to-output-buffer): Drop the connection argument.  It
	was never used.
	(slime-switch-to-output-buffer-search-all-frames): Deleted. Use
	display-buffer-reuse-frames instead.
	(slime-switch-to-output-buffer): Use pop-to-buffer to select the
	window and frame.

2008-08-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-switch-to-output-buffer): Fix regression
	discovered by Ariel Badichi. Programmatic invocation of this
	function expect this function to also set-buffer to the REPL
	buffer. Even though that's ugly, we do it for now, and declare it
	to be a FIXME.
	(slime-dispatch-event): Don't use `message' for the pipelined
	request message, but `slime-display-oneliner' which will truncate
	the form to be displayed.

2008-08-17  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (waitpid): Don't use unix::pid-t, it's only
	defined for Linux.

	* swank-sbcl.lisp (sb-thread::get-foreground): Don't override.
	Let SBCL people fix this.

2008-08-17  B.Scott Michel <scooter.phd@gmail.com>

	* swank-loader.lisp (dump-image): Move this function to the end of
	the file to stop SBCL from reporting two times the same false
	alarm.

2008-08-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-popup-buffer-quit): Fix regression; we have to
	invoke `bury-buffer' without an argument to make it switch buffers
	for us (for the case when the snapshot wasn't restored.)

2008-08-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-list-compiler-notes): Only shrink if notes tree
	isn't displayed as being collapsed.

2008-08-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-popup-buffer-quit): If not kill, then at least
	bury the buffer.
	(slime-list-compiler-notes): Shrink the compiler-notes window.

2008-08-14  Tobias C. Rittweiler  <tcr@freebits.de>

	If another frame is already displaying a REPL, `C-c C-z' will now
	select this window instead of splitting the current frame, and
	displaying the REPL in the newly created window.

	* slime.el (slime-switch-to-output-buffer-search-all-frames): New
	variable to customize this behaviour, as it may not be optimal for
	people using multiple screens at once.
	(slime-switch-to-output-buffer): Adapted accordingly.

2008-08-14  Tobias C. Rittweiler  <tcr@freebits.de>

	Xref buffers: `M-,' in an Xref buffer will now revert to an Emacs
	state as of before the Xref command.

	* slime.el (slime-xref-mode-map): Add `slime-xref-retract' as `M-,'
	(slime-xref-retract): New. Restores the emacs snapshot unconditionally.
	(slime-xref-quit): Use it.

2008-08-14  Tobias C. Rittweiler  <tcr@freebits.de>

	Xref buffers: `q', and `SPC' will push onto the find-definition
	stack such that M-, will work afterwards.

	* slime.el (defstruct slime-emacs-snapshot): Also save the point
	explicitly.  It is implicitly stored already in the
	window-configuration, but inaccessible therein.
	(slime-current-emacs-snapshot, slime-set-emacs-snapshot): Adapted.
	(slime-push-definition-stack-from-snapshot): New. Reason for above
	changes.

	(slime-with-popup-buffer): Make sure that the current
	emacs-snapshot is taken, not only when the :emacs-snapshot
	argument is NIL at expansion time, but also on runtime.

	(slime-with-xref-buffer): The name of the Xref buffer was created
	at expansion time, but must be computed at runtime. Fix that.
	(slime-xref-quit): Use `slime-push-definition-stack-from-snapshot'
	(sime-xref-goto): Adapted to also push onto the stack.

	* slime.el (slime-compute-modeline-package): Cleaned up.
	(slime-update-modeline-string): Ditto.

2008-08-12  Helmut Eller  <heller@common-lisp.net>

	Add a dump-image function to the loader.

	* swank-loader.lisp (dump-image): New.

	* swank-backend.lisp (save-image): New interface.

	* swank-cmucl.lisp, swank-clisp.lisp, swank-sbcl.lisp
	(save-image): Implemented.

2008-08-12  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-send-input): Disable modification hooks
	when marking old input.
	(slime-check-version): Use y-or-n-p.

2008-08-12  Helmut Eller  <heller@common-lisp.net>

	Finally handle reader-errors without disconnecting.

	* swank.lisp (decode-message): Convert reader-error conditions
	into :reader-error events.
	(dispatch-event): Send :reader-error events to Emacs.

	* slime.el (slime-dispatch-event): Display reader-errors.

2008-08-12  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (with-buffer-syntax): Take package as argument.
	(defslimefun): Derive the package for exporting from the symbol.

2008-08-12  Helmut Eller  <heller@common-lisp.net>

	Let SIGINT create a synthetic event.

	* swank.lisp (install-fd-handler,simple-serve-requests): Dispatch
	a :emacs-interrupt event in the SIGINT handler.

	* slime.el (slime-interrupt): Send nothing over the wire when
	SIGINT is used.

2008-08-11  Helmut Eller  <heller@common-lisp.net>

	* test.sh: Use batch mode by default.

2008-08-11  Helmut Eller  <heller@common-lisp.net>

	Improve interrupt safety for single-threaded lisps.

	* slime.el (slime-interrupt): Send a :emacs-interrupt message
	together with SIGINT.  SIGINT now means "check for new events"
	instead of "invoke the debugger".

	* swank-backend.lisp (install-sigint-handler)
	(call-with-user-break-handler): New functions.

	* swank.lisp (simple-serve-requests,install-fd-handler): Use it.
	(read-packet): New function. Check for interrupts.
	(decode-message): Use it.
	(wait-for-event/event-loop): Check for interrupts.

2008-08-11  Helmut Eller  <heller@common-lisp.net>

	* swank-abcl.lisp (preferred-communication-style): Return nil
	until we implement receive-if.

	* swank-openmcl.lisp (receive-if): Support timeout argument.
	* swank-allegro.lisp (receive-if): Ditto.

2008-08-11  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*global-debugger*): Change default back to t.

2008-08-10  Helmut Eller  <heller@common-lisp.net>

	* swank-ecl.lisp (thread-id): Assign an non-nil id to unknown
	threads.

	* slime.el (slime-execute-tests): Call slime-test-should-fail-p
	before executing the test (which may close the connection).
	(def-slime-test): Use slime-sync-to-top-level with a timeout.
	(slime-temp-directory): New function.
	(slime-run-tests): Save repl-history in /tmp.
	(slime-repl-mode): Ignore persistent history if
	slime-repl-history-file is nil.
	(slime-quit-lisp-internal): New function.
	(slime-quit-lisp, slime-restart-inferior-lisp): Use it
	(slime-batch-test): Exit, if the Lisp isn't up and running after
	30 secs.

2008-08-10  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (wait-for-event): Add timeout argument.  This is used
	for :fd-handler and :sigio style where we only process events as
	long as we don't block.
	(wait-for-event/event-loop, read-event)
	(decode-message, receive-if): Ditto.
	(process-requests): Renamed from read-from-emacs.
	(handle-requests): Renamed from handle-request. Take timeout
	argument.  Update callers.
	(process-available-input): Deleted.
	(with-swank-error-handler): Renamed from
	with-reader-error-handler.
	(with-connection): Use it.

2008-08-10  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (invoke-slime-debugger): New function.
	Analagous to cl:invoke-debugger.
	(swank-debugger-hook): Use it.

2008-08-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-quit-lisp): Optionally send kill signal.
	(slime-quit-connection-at-point): Disconnect after some timeout.

2008-08-09  Helmut Eller  <heller@common-lisp.net>

	Fixes for heap dumping.

	* swank.lisp (*log-output*): Don't initialize at load-time,
	otherwise the stream would end up in a heap image.

2008-08-09  Helmut Eller  <heller@common-lisp.net>

	* swank-lispworks.lisp (defimplementation): Record location.

2008-08-09  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*maximum-pipelined-output-chunks*): New variable

2008-08-09  Helmut Eller  <heller@common-lisp.net>

	Display the "Use default debugger" restart more prominently
	for testing.

	* swank.lisp (swank-debugger-hook): Bind a user visible restart
	to invoke the native debugger.
	(*global-debugger*): Make this nil by default.
	(sldb-loop): Minor cleanups.
	(sldb-break-with-default-debugger): Invoke the native debugger
	on top of the slime debugger.

	* slime.el (slime-simple-completions): Bind slime-current-thread
	to t so that completion is peformed in a fresh thread.
	(sldb-setup): Always pop to the debugger buffer.
	(sldb-activate): Optionally select the window.

	* swank-sbcl.lisp (sb-thread::get-foreground): Override this
	as the default implementation is unusable for Slime.

	* swank-lispworks.lisp (environment-display-notifier): Just
	return t.

2008-08-09  Helmut Eller  <heller@common-lisp.net>

	* swank-lispworks.lisp (disassemble-frame): Implemented.

2008-08-09  Tobias C. Rittweiler  <tcr@freebits.de>

	M-x slime doesn't destroy the window layout anymore when you
	switch windows/frames while the connection is being set up.

	* slime.el (slime-hide-inferior-lisp-buffer): Search for the
	inferior-lisp buffer's window in all frames.
	(slime-repl-update-banner): Do not pop to the REPL buffer.

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Fixing `q' in Xref buffers.

	(slime-popup-buffer-snapshot-unchanged-p): New.
	(slime-popup-buffer-restore-snapshot): New.
	(slime-xref-quit): Can't use slime-popup-buffer directly. Instead
	implement its own quit behaviour using the above functions.

2008-08-08  Helmut Eller  <heller@common-lisp.net>

	Use wait-for-event instead of catch/throw where needed.

	* swank.lisp (read-user-input-from-emacs, y-or-n-p-in-emacs)
	(eval-in-emacs): Use wait-for-event.
	(make-tag): Replaces intern-catch-tag.
	(take-input): Deleted.
	(dispatch-event): Remove some redundancy.

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Make xref buffers use `slime-with-popup-buffer',
	nee `slime-with-temp-buffer'.

	(slime-with-xref-buffer): Rewritten using a popup buffer.
	(slime-init-xref-buffer): Removed.
	(slime-display-xref-buffer): Removed.

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Rename slime's temp-buffer to popup-buffer.

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-compiler-notes-mode, slime-connection-ist-mode):
	Add slime-temp-buffer-mode-map to docstring.

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-connections-buffer-name): New variable.
	(slime-list-connections): Use it.
	(def-slime-selector ?c): Ditto

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Make the threads browser use `slime-with-temp-buffer'.

	(slime-temp-buffer-quit-function): New buffer-local
	variable. Defaults to `slime-temp-buffer-quit'.
	(slime-temp-buffer-mode): `q' invokes above variable now.

	(slime-threads-buffer-name): New variable.
	(slime-list-threads): Use slime-with-temp-buffer.
	(slime-update-threads-buffer): New. Lifted from
	slime-list-threads.
	(slime-thread-quit): Renamed to slime-quit-threads-buffer.

2008-08-08  Helmut Eller  <heller@common-lisp.net>

	Unify event dispatching for single and multi-threaded cases.

	* swank.lisp (send-to-control-thread,read-from-control-thread)
	(send-to-socket-io,read-from-socket-io): Deleted.
	(send-event, read-event, send-to-emacs)
	(signal-interrupt, use-threads-p): New functions.
	And more random changes.

2008-08-08  Helmut Eller  <heller@common-lisp.net>

	Spawn the auto-flush thread in the front end.
	This removes some copy&paste code in various backends.

	* swank.lisp (auto-flush-loop): New function.
	(open-streams): Use it.
	* swank-backend.lisp (make-stream-interactive): Deleted.

2008-08-08  Helmut Eller  <heller@common-lisp.net>

	* slime.el (test disconnect): Call slime-inferior-process
	with explicit connection argument to avoid clashes with
	buffer-local connections.

2008-08-08  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-create-macroexpansion-buffer): Make fontifying
	case insensitive as the result from macroexpansion is most likely
	printed all upper-case.

2008-08-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-with-temp-buffer): By default, no longer inherit
	the current connection.

2008-08-07  Tobias C. Rittweiler  <tcr@freebits.de>

	Previously, M-p at the REPL deleted the input if no match could be
	found in the history. Now the input is untouched.

	* slime.el (slime-repl-history-replace): Ditch delete-at-end-p
	argument.
	(slime-repl-next-input, slime-repl-previous-input): Adapted.
	(slime-repl-forward-input, slime-repl-backward-input): Ditto.

2008-08-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-with-temp-buffer): Renamed from
	slime-with-output-to-temp-buffer.  Initialize the buffer local
	buffer variables before and after running BODY, so that we don't
	need the mode argument.

2008-08-07  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (def-slime-test narrowing): Adapted to recent changes
	of `slime-with-output-to-temp-buffer'.

2008-08-07  Tobias C. Rittweiler  <tcr@freebits.de>

	Mode-Line will now display a buffer's connection, and a buffer's
	package. Furthermore, stale connections will also be indicated.

	* slime.el: (slime-update-modeline-package): Renamed to
	`slime-extended-modeline'.
	(slime-modeline-string),
	(slime-modeline-connection-name),
	(slime-modeline-connection-state): New variables.
	(slime-update-modeline-package): Renamed to
	`slime-compute-modeline-package'.
	(slime-compute-modeline-connection): New.
	(sime-compute-modeline-connection-state): New.
	(slime-compute-modeline-string): New.
	(slime-update-modeline-string): New.
	(slime-shall-we-update-modeline-p): New.
	(slime-update-modeline): New. Run periodically by idle timer.

	(slime-mode, slime-temp-buffer-mode): Install extended mode-line.

	(slime-stale-connection-p, slime-debugged-connection-p): New.
	(slime-compute-connection-state): New.
	(slime-connection-state-as-string): New.
	(slime-state-name): Removed.
	(slime-set-state): Removed.

	(slime-length>): Fix typecase.

2008-08-07  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp, swank-cmucl.lisp,
	swank-scl.lisp (receive-if): Periodically check for interrupts.

2008-08-06  Nikodemus Siivola <nikodemus@random-state.net>

	* swank-sbcl.lisp (handle-notification-condition): resignal
	warnings as-is before replacing with COMPILER-CONDITION so that
	handlers higher up the stack can muffle them should they choose
	to. This silences redefinition warnings for definitions inside
	EVAL-WHEN :COMPILE-TOPLEVEL in newish SBCLs when compiling the
	file for a second time.
	(call-with-compilation-hooks): STYLE-WARNINGs are WARNINGs, and
	don't need a separate handler.

2008-08-06  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (short-backtrace): New function.
	(thread-description): Use it.

	* slime.el (slime-show-apropos): Use lisp-syntax-table to make
	M-. more useful.

2008-08-06  Helmut Eller  <heller@common-lisp.net>

	Queue interrupts in various places.

	* swank-backend.lisp (*pending-slime-interrupts*): New variable.
	(check-slime-interrupts): New function.

	* swank-lispworks.lisp (receive-if): Use it.

	* swank-sbcl.lisp, swank-openmcl.lisp: Ditto.

	* swank.lisp (*slime-interrupts-enabled*): New variable.
	(with-slime-interrupts, without-slime-interrupts): New macros.
	(invoke-or-queue-interrupt): New function.
	(interrupt-worker-thread, eval-for-emacs, swank-debugger-hook)
	(debug-nth-thread, wait-for-event, read-from-emacs): Use them.

2008-08-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-with-output-to-temp-buffer): Make sure that we
	don't make the wrong buffer read-only.

	* swank-lispworks.lisp (make-stream-interactive): Run our own
	thread to periodically flush streams instead of relying on
	soft-force-output.

	* swank.lisp (encode-message): Inhibit interrupts
	while writing the length and the body.

	* swank-backend.lisp (make-recursive-lock)
	(call-with-recursive-lock-held): Deleted.  Make the default locks
	"recursive" instead.
	(thread-id): Add a default implementation which works
	with the default implementation of current-thread.

	* swank-gray.lisp (stream-write-string): New method.

	* swank-backend.lisp (*gray-stream-symbols*): Include
	write-string.

2008-08-04  Helmut Eller  <heller@common-lisp.net>

	* swank-gray.lisp (slime-output-stream): Undo last change.
	Make force-output and finish-output do the same.

2008-08-04  Masayuki Onjo <masayuki.onjo@gmail.com>

	Updates for CLISP-2.46.

	* swank-clisp.lisp (fspec-pathname, fspec-location): The structure
	of (documentation symbol 'sys::file) used to be (path . lines)
	but is now ((type path . lines) ...).

2008-08-04  Helmut Eller  <heller@common-lisp.net>

	* swank-gray.lisp (slime-output-stream): Add a slot
	"interactive-p" which should be true for streams which are flushed
	periodically by the Lisp system.  Update the relevant backends
	accordingly.

	* swank-scl.lisp (receive-if): Implemented.

	* swank-cmucl.lisp (receive,receive-if): Test for new messages in
	a loop.

	* swank.lisp (eval-for-emacs): Don't flush streams here as that
	may now block.

	* swank-lispworks.lisp (receive-if): Handle interrupts.

	* slime.el (slime-repl-clear-buffer): Delete stuff after the
	prompt too.
	(slime-with-output-to-temp-buffer): Add read-only argument.
	(slime-temp-buffer): Renamed from slime-get-temp-buffer-create.
	Drop noselect argument.

2008-08-03  Helmut Eller  <heller@common-lisp.net>

	Add some flow-control.

	* swank.lisp (make-output-function): Synchronize with Emacs on
	every 100th chunk of output.
	(wait-for-event,wait-for-event/event-loop,event-match-p): New
	functions.  Used to selectively wait for some events and to queue
	the other events.
	(dispatch-event, read-from-socket-io): Tag non-queueable events
	with :call.
	(read-from-control-thread, read-from-emacs): Process
	:call events only; enqueue the others.

	(*log-output*): Don't use synonym-streams here.  Dereference the
	symbol until we get at the real stream.
	(log-event): Escape non-ascii characters more carefully.

	* swank-backend.lisp (receive-if): New function.
	Update backends accordingly. (not yet for ABCL and SCL)

	* slime.el (slime-dispatch-event): Handle ping event.

2008-08-03  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el: Make code related to temp buffers more consistent.

	(slime-with-output-to-temp-buffer): Docstring update. New keyarg
	:connection to specify whether the current connection should be
	stored buffer-locally. New key arg :emacs-snapshot to explicitly
	pass the snapshot to be stored. The created buffer is not
	automatically set to slime-mode anymore.
	(slime-temp-buffer-mode): Add `C-c C-z', and `M-.' bindings to all
	temp buffers.

	(slime-list-compiler-notes): Use `slime-with-output-to-...',
	rename the buffer from "*compiler notes*" to "*SLIME
	Compiler-Notes*".
	(slime-compiler-notes-mode-map): Remove explicit binding of "q",
	as it's inherited from the temp buffer.
	(slime-edit-value-callback): Use `slime-with-output-to-...'.
	(slime-show-apropos): Adapted to above changes.
	(slime-macroexpansion-minor-mode): Removed "q" binding, as it's
	inherited.
	(slime-eval-macroexpand): Adapted. Rename buffer from "*SLIME
	macroexpansion*" to "*SLIME Macroexpansion*".
	(slime-list-connections): Use `slime-with-output-to-...', rename
	buffer from "*SLIME connections*" to "*SLIME Connections*".

2008-07-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (make-slime-buffer-location): New.
	(make-slime-file-location): New.

2008-07-29  Richard M Kreuter <kreuter@progn.net>

	Environment variables for Lisp process.

	* slime.el (slime-start, slime-maybe-start-lisp)
	(slime-reinitialize-inferior-lisp-p, slime-start-lisp)
	(slime-restart-sentinel): Pass new parameter "env" through.

2008-07-29  Richard M Kreuter <kreuter@progn.net>

	* swank-sbcl.lisp (add-sigio-handler, add-fd-handler): Be quiet
	as a workaround for non-properly initialized *debug-io*.

2008-07-29  Richard M Kreuter <kreuter@progn.net>

	Fix slime-quit-lisp in non-default REPL buffer.

	* slime.el (slime-quit-lisp): Killing the REPL buffer also removes
	the buffer local binding of slime-buffer-connection.  Remember the
	connection before killing the buffer.

2008-07-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (swank-compiler): Fix bug when invoking an abort
	restart on a failed compilation attempt.

	* swank-sbcl.lisp (swank-compile-string): If a compilation attempt
	fails, COMPILE-FILE returns NIL which we tried to LOAD. Fix that.

	* swank-backend.lisp (swank-compile-string, swank-compile-file):
	Document return value.

2008-07-23  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-loader.lisp (*contribs*): Added `swank-package-fu'.

2008-07-23  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-at-list-p): New. Returns t if point is at a list.
	(slime-at-expression-p): New. Similiar to `slime-in-expression-p'.
	(slime-end-of-list): New. Pendant to `slime-beginning-of-list'.

2008-07-19  Tobias C. Rittweiler  <tcr@freebits.de>

	REPL shortcuts now leave an appropriate Common Lisp form in the
	REPL history.

	* slime.el (slime-within-repl-shortcut-handler-p): New global. T
	if truly inside a repl shortcut handler invoked by ,foo on the
	REPL.
	(slime-handle-repl-shortcut): Bind above global appropriatly.
	(slime-repl-shortcut-eval): New; should be used in repl shortcut
	handlers instead of `slime-eval'.
	(slime-repl-shortcut-eval-async): New; should be used in repl
	shortcut handlers instead of `slime-eval-async'.
	(defslime-repl-shortcut): Update docstring.
	(slime-repl-set-package): Use slime-repl-shortcut-eval.
	(slime-set-default-directory): Ditto.
	(slime-sync-package-and-default-directory): Ditto.

2008-07-18  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-recompile-locations): Locations were potentially
	recompiled within a wrong package. Fix that.

2008-07-18  Tobias C. Rittweiler  <tcr@freebits.de>

	An explicit numeric value as prefix-arg given to `C-c C-c' will
	now represent the debug level the defun is compiled with;
	`C-u C-c C-c' defaults to maximum debug like before. (Now also
	works for recompilation commands in xref buffers.)

	* slime.el (slime-compilation-debug-level): Renamed from
	`slime-compile-with-maximum-debug'.
	(slime-normalize-optimization-level): New.
	(slime-compile-defun): Adapted accordingly.
	(slime-compile-region): Ditto.
	(slime-recompile-location): Added setting of debug-level.
	(slime-recompile-locations): Ditto.
	(slime-recompile-xref): Now takes debug-level prefix-arg.
	(slime-recompile-all-xrefs): Ditto.

	* swank-sbcl.lisp (defimplementation swank-compile-string):
	Adapted accordingly.

2008-07-16  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-xref-dspec-at-point): Make more robust.
	(slime-xref-insert-recompilation-flags): Ditto.
	(slime-column-max): New.

2008-07-16  Tobias C. Rittweiler  <tcr@freebits.de>

	Recompilation support added to xref buffers. You can now use
	`C-c C-c' in an xref buffer to recompile the defun represented by
	the xref at point. Similiarly, you can use `C-c C-k' to recompile
	all xrefs displayed.

	For example, if you've changed a macro, and want to recompile all
	the functions in the image which use that macro, you first call
	`slime-who-macroexpands' (C-c C-w RET), and then issues `C-c C-k'
	in the xref buffer that just popped up.

	[There's no guarantee that this will actually recompile all
	functions that depend on the changed macro, as this obviously
	depends on the quality of the backend's WHO-MACROEXPANDS
	implementation.]

	* swank.lisp: Introduced the notion of a SWANK-COMPILATION-UNIT,
	so we're able to compile different stuff comming from Slime one
	after the other, and have compiler notes &c. collected in a
	contiguous manner.

	(defstruct :swank-compilation-unit): New. Contains compilation
	notes, compilation results, etc.
	(*swank-compilation-unit*): New. Current Swank Compilation Unit.
	(with-swank-compilation-unit): New. Like WITH-COMPILATION-UNIT.
	(swank-compilation-unit-for-emacs): New.
	(swank-compiler): Adapted; collect compilation stuff into the
	current swank-compilation-unit.
	(compile-string-for-emacs): Use WITH-SWANK-COMPILATION-UNIT.
	(compile-file-for-emacs): Ditto.

	(*compiler-notes*, clear-compiler-notes): Removed.
	(compiler-notes-for-emacs): Removed.

	* slime.el (slime-compilation-unit, slime-last-compilation-unit),
	(slime-compiler-notes, slime-compiler-results): New/Adapted.

	(slime-make-compile-expression-for-swank): Factored out from
	`slime-compile-string'.
	(slime-recompile-location): New.
	(slime-recompile-locations): New.
	(slime-pop-to-location): &optional `where' arg can now also be
	'excursion to only reset the current-buffer, but not switch.

	(slime-xref-mode-map): Add `C-c C-c' and `C-c C-k'.
	(slime-xref-dspec-at-point): New.
	(slime-all-xrefs): New.
	(slime-recompile-xref): New.
	(slime-recompile-all-xrefs): New.
	(slime-make-xref-recompilation-cont): New.
	(slime-xref-inert-recompilation-flags): New.

	(slime-trim-whitespace): New utility.

2008-07-05  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp: Revert Melis' change from 2008-07-04; Global IO
	redirection seems currently to be broken, and while it's not due
	to that commit (it seems that it's been broken since longer), I
	want to be on a safe bet.

2008-07-05  Tobias C. Rittweiler  <tcr@freebits.de>

	`M-x slime-lisp-threads' will now contain a summary of what's
	currently executed in a thread that was created by Swank.

	* swank-backend.lisp (thread-description, set-thread-description):
	New interface functions to associate strings with threads.
	* swank-sbcl.lisp (thread-description, set-thread-description):
	Implemented.

	* swank.lisp (call-with-thread-description),
	(with-thread-description): New.
	(read-from-emacs): Now temporarily sets the thread-description of
	the current thread to a summary of what's going to be executed by
	the current request.
	(defslimefun list-threads): Changed return value to also contain
	a thread's description.

	* slime.el (slime-list-threads, slime-thread-insert): Adapted to
	new return value of LIST-THREADS.

2008-07-04  Gábor Melis  <mega@retes.hu>

	* swank.lisp (call-with-redirected-io): Rebind only standard
	streams if *GLOBALLY-REDIRECT-IO*. Fixes lost output after
	disconnect, reconnect.

2008-07-04  Willem Broekema  <metawilm@gmail.com>

	* slime-allegro.lisp (fspec-definition-locations): Workaround for
	the issue that Allegro does not record the source file location
	for methods defined inside a defgeneric form. The idea is that if
	the source location of a method is not found, then the defgeneric
	form is almost certainly the right place.

2008-07-04  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-call-defun): Properly signal error message when
	used in a context that is not a function definition.

2008-07-04  Richard M Kreuter  <kreuter@progn.net>

	* swank-sbcl.lisp (code-location-source-location),
	(code-location-debug-source-name): Patched for incompatible
	structure change in SBCL 1.0.18.10.

2008-07-04  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-call-defun): Broken on DEFMETHOD forms. Fix
	that. Also, don't insert package qualifier anymore if the inserted
	qualifier is the same as the current REPL package.

2008-07-02  Martin Simmons  <martin@lispworks.com>
	* swank-lispworks.lisp (install-debugger-globally): hook into the
	environment globally to catch BREAK.

2008-06-07  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (def-slime-test find-definition.2, arglist):
	SWANK:COMPILE-STRING-FOR-EMACS since recently takes 5 instead of 4
	parameters. Fix that.

2008-06-07  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-extract-context, slime-parse-context): Recognize
	more toplevel forms, e.g. DEFINE-COMPILER-MACRO &c. Such that
	`slime-parse-toplevel-form' will also recognize these.
	(slime-trace-query): Adapted to above changes. Errors if spec is
	untraceable.
	(slime-call-defun): Adapted to also support the new toplevel forms.

	(slime-cl-symbol-name),
	(slime-cl-symbol-package),
	(slime-qualify-cl-symbol-name): Resurrected from the `slime-parse'
	contrib, as they've been used by `slime-call-defun'.

2008-06-02  Raymond Toy  <toy.raymond@gmail.com>

	Unicode support for CMUCL.

	* swank-cmucl.lisp (accept-connection, make-socket-io-stream):
	Handle external-format argument.
	(find-external-format): Implemented.
	(*external-format-to-coding-system*): New variable.

2008-05-19  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp: Don't require asdf.

2008-05-19  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (swank-compile-string): Add reader-conditionals
	for sb-ext::restrict-compiler-policy.

2008-05-19  Geo Carncross  <geocar@gmail.com>

	* contrib/swank-asdf.lisp: Require asdf.

2008-05-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-prin1-to-string): Bind print-length and
	print-level.

2008-05-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-inspector-limit): New variable.
	(slime-inspector-insert-content): Use it.
	(slime-inspector-fetch-chunk, slime-inspector-fetch)
	(slime-inspector-next-range, slime-inspector-join-chunks): New.

2008-05-08  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp (call-with-debugging-environment)
	(frame-decode-env): Bugfix: qualify fixnump

2008-05-01  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp (call-with-debugging-environment)
	(is-ignorable-fun-p, is-swank-source-p, in-swank-package-p):
	Trim swank sources from the ECL backtrace.

2008-04-30  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp (call-with-debugging-environment)
	(in-swank-package-p): Remove frames from the backtrace that are
	in a swank package as those are misleading. Fixup locals
	display.

2008-04-29  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp: Backtrace and frame/eval improvements

2008-04-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-backend.lisp: Clarified docstrings of interface functions
	in the Debugging section.

2008-04-23  Geo Carncross  <geocar@gmail.com>

	* swank-source-file-cache.lisp (skip-comments-and-whitespace):
	Include #\Page as whitespace

	* swank-ecl.lisp (find-source-location): Initial support for
	find-source-location with functions
	(flush-streams): Workaround differences in different ECL versions
	(find-definitions): basic/simple implementation of find-definitions

	* swank-loader.lisp (*sysdep-files*): Include swank-source-path-parser
	and swank-source-file-cache for ECL


2008-04-17  Travis Cross <travis@travislists.com>

	* swank.asd: Don't make a compile-op a no-op so that a
	swank-loader.fasl file gets generated and (require 'swank) can be
	called multiple times.

2008-04-17  Zach Beane <xach@xach.com>

	C-c C-c with prefix args now uses the maximal debug level.
	Only implemented for SBCL.

	* slime.el (slime-compile-with-maximum-debug): New variable.
	(slime-compile-defun, slime-compile-region): Use it.

	* swank.lisp (compile-string-for-emacs): Accept new debug
	argument. Update backend accordingly.

2008-04-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-set-default-directory): Send absolute filenames.

2008-04-06  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-edit-definition): The `slime-edit-definition-hooks'
	are now invoked with the same args as `slime-edit-definition'.

2008-03-27  Martin Simmons <martin@lispworks.com>

	* swank-lispworks.lisp (map-error-database): Make mapping work for
	LispWorks 5.1 too.

2008-03-26  Tobias C. Rittweiler  <tcr@freebits.de>

	On SBCL,

	  (block outta
	    (let ((*debugger-hook* #'(lambda (c hook)
				       (declare (ignore hook))
				       (return-from outta 42))))
	      (error "FOO")))

	would just silently skip over the *DEBUGGER-HOOK*, and pop right
	into SLDB to handle the error. Fix that.

	* swank-sbcl (make-invoke-debugger-hook): New function; returns a
	hook for SB-EXT:*INVOKE-DEBUGGER-HOOK* that checks for the
	presence of *DEBUGGER-HOOK*, and calls that if available.
	(install-debugger-globally): Use it.
	(call-with-debugger-hook): Ditto.

	(getpid): Declaim return type explicitly, to make SBCL shut up about
	being unable to optimize %SAP-ALIEN in ENABLE-SIGIO-ON-FD.

	* slime.el (def-slime-test break): Test additionally that BREAK
	turns into SLDB even when *DEBUGGER-HOOK* is locally bound.
	(def-slime-test locally-bound-debugger-hook): New test case; tests
	that a locally-bound *DEBUGGER-HOOK* is adhered, and not skipped.

2008-03-26  Helmut Eller  <heller@common-lisp.net>

	By default, don't ask if SLIME should be started.

	* slime.el (slime-auto-connect): New variable.
	(slime-auto-connect): New function.
	(slime-connection): Use it.

2008-03-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-check-version): New function.  Make the
	prompt fit in a single line.

	* swank-loader.lisp (load-swank): Call swank::before-init.

	* swank.lisp (before-init): New function.
	(init): Renamed from setup.

2008-03-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* HACKING: Updated due to broken links.
	Reported by Mirko Vukovic.

2008-03-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-set-connection-info): Display SLIME and SWANK
	versions explicitly in Protocol Mismatch message.  Adapted from
	idea and patch by Jeronimo Pellegrini.

2008-03-24  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-source-path-parser.lisp

	The source parser READs in files, and if such a file contains some
	nasty #. hackery that results in an error being signalled, M-. would
	fail on anything that's defined in those files. Fix that by using
	a special #. reader function that invokes the original #. reader
	with an IGNORE-ERRORS wrapped around.

	(make-sharpdot-reader): New function.
	(make-source-recording-readtable): Use it and install it on #.

	* slime.el (find-definition.2): New test case to guard against it.

2008-03-18  Geo Carncross <geocar@gmail.com>

	* swank-ecl.lisp: ECL moved gray streams into GRAY package.

2008-03-18  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-xref-group): Handle :zip files.

2008-03-17  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-source-path-parser.lisp:

	Multibyte characters in files could screw up compiler-notes
	highlighting on SBCL. Fix that.

	(skip-toplevel-forms): Abstracted out from READ-SOURCE-FORM.
	(source-path-file-position): Don't operate on the file stream
	directly, since CL:FILE-POSITION may not return character but
	binary offsets on such streams; instead slurp file content into a
	buffer string, and operate on that.

2008-03-16  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (load-file-set-package): Removed; the function was
	only used in `slime-load-file-set-package' which invokes
	`slime-repl-set-package' which set the package for a second time.

	* slime.lisp (slime-load-file-set-package): Don't call
	SWANK:LOAD-FILE-SET-PACKAGE, but merely call SWANK:LOAD-FILE,
	then invoke `slime-repl-set-package' which will set the package.

	(slime-pretty-find-buffer-package): Removed. (Nowhere used.)
	(slime-set-package): Ditto.

2008-03-14  Helmut Eller  <heller@common-lisp.net>

	Remove some rarely used code.

	* slime.el (with-lexical-bindings): Removed.  Updated callers
	accordingly.
	(slime-make-default-connection, slime-choose-connection)
	(slime-find-connection-by-name, slime-symbol-at-point): Remove.
	Unused code.
	(slime-obsolete-commands, slime-bind-obsolete-commands)
	(slime-bind-obsolete-command, slime-upgrade-notice)
	(slime-timebomb, slime-timebomb-progress, slime-timebomb-message):
	Remove.  Obsolete.

2008-03-14  Helmut Eller  <heller@common-lisp.net>

	Move filename translation code to contrib.

	* slime.el (slime-find-filename-translators)
	(slime-filename-translations): Move to contrib/slime-tramp.el.
	(slime-to-lisp-filename-function)
	(slime-from-lisp-filename-function): New variables.

2008-03-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-return-behaviour): Deleted.  Rebind
	the key if you don't like what the command does.

2008-03-14  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (classify-symbol, symbol-classification->string): Add
	classification of symbols denoting type specifier, and denoting
	constants.

2008-03-13  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-eval-macroexpand): Indent expansion.

2008-03-13  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-edit-definition-cont): If no definition could
	be found, print also the package name in the error message where
	the definition was tried to be found in.

2008-03-13  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-region-for-defun-function): Deleted.
	(slime-region-for-defun-at-point): Use beginning-of-defun
	and not beginning-of-sexp.
	(slime-flash-region): New function.
	(slime-compile-region): Use it.

2008-03-13  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-xref-group): Renamed from slime-location-to-string.
	Handle source-form locations.

2008-03-12  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-find-definitions-function): Renamed from
	slime-edit-definition-fallback-function.
	(slime-find-definitions): Use it.
	(slime-find-tag-if-tags-table-visited): Deleted.

2008-03-12  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-inspector-operate-on-point): Signal an error if
	there is no object to operate on.

2008-03-08  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-toggle-details): Inhibit point-motion-hooks.
	This is a workaround for problems with the --more-- field.

2008-03-07  Helmut Eller  <heller@common-lisp.net>

	Be GC friendlier when parsing net packets.

	* slime.el (slime-net-read): Instead of consing a fresh string,
	use narrow-to-region and read the packet out of the buffer.

2008-03-04  Helmut Eller  <heller@common-lisp.net>

	* test.sh: Updated for Emacs 23.

2008-03-04  Andreas Fuchs <asf@boinkor.net>

	* swank.asd (asdf:output-files, asdf:perform): Make compile-op on
	swank-loader-file a noop.

2008-03-02  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-edit-definition-hooks): This variable can be
	used to hook into the M-. machinery.
	(slime-edit-definition): Run above hooks until one succeeds. By
	default, try to find a definition for the symbol at point.

2008-02-28  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (find-definition-for-thing): New DEFSLIMEFUN.

	* swank-backend (find-source-location): New DEFINTERFACE.

	* swank-sbcl (find-source-location): Implement it.

	* slime.el (slime-edit-definition-cont): Use `slime-length='.

2008-02-28  Tobias C. Rittweiler  <tcr@freebits.de>

	Fix regressions in the `find-definition' test case on SBCL:

	M-. on e.g. SWANK::READ-FROM-EMACS would bring the user to

	  (|defun read-from-emacs ...)

	and not

	  |(defun read-from-emacs ...)

	* swank-sbcl.lisp (source-file-position): Don't 1+ the returned
	position; i.e. return a position usable as a CL /file position/
	which start from 0, and not a position usable in Emacs where
	buffer points start from 1. This is important because the return
	value is passed to SWANK-BACKEND::READ-SNIPPET which invokes
	CL:FILE-POSITION on it.
	(make-definition-source-location): Adapted to 1+ the position
	passed to Emacs, to reflect above change.

2008-02-25  Helmut Eller  <heller@common-lisp.net>

	Make it easier to prepare core-files.

	* swank-loader.lisp (init): Two new keyword args: :SETUP and
	:LOAD-CONTRIBS.  :SETUP=nil can be used to suppress init hooks and
	loading user init files.

	* swank.asd: Call swank-loader:init with :SETUP=nil.

	* swank.lisp (init-global-stream-redirection): Guard against
	redirecting already redirected streams.

2008-02-24  Helmut Eller  <heller@common-lisp.net>

	Work harder to avoid wrong guesses for slime-repl-set-package.

	* slime.el (slime-repl-set-package): Use slime-pretty-package-name
	to strip double quotes from slime-current-package before comparing
	it with slime-lisp-package.  Still doesn't deal with nicknames and
	other reader tricks.

2008-02-23  Ariel Badichi <abadichi@bezeqint.net>

	Allow ED-IN-EMACS to edit new files.

	* swank.lisp (ed-in-emacs): Accept non-existing files.
	(canonicalize-filename): Merged into ed-in-emacs.

2008-02-23  Nikodemus Siivola  <nikodemus@random-state.net>

	If there is no connection, offer the option to start SLIME.

	* slime.el (slime-connection): Ask and maybe start SLIME.
	(slime-selector-method: ?r): No need to ask here any more.

2008-02-23  Helmut Eller  <heller@common-lisp.net>

	In the inspector, show one-element lists as list not as pair.

	* swank.lisp (emacs-inspect cons)

2008-02-23  Zach Beane  <xach@xach.com>

	Add customization variable for the `slime-connect' port.

	* slime.el (slime-port): New variable.

2008-02-22  Mark Evenson <mark.evenson@gmx.at>

	* swank-abcl.lisp (getpid): Return '0' in case of error.
	Apparently needed bacause $PPID isn't not a standard feature.
	"[T]his is not a disentanglement from, but a progressive knotting
	into."

2008-02-22  Mark Harig <idirectscm@aim.com>

	Fix typos: "contribs" -> "contrib".

	* slime-autoloads.el (slime-setup-contribs):
	* slime.el (slime-setup):

2008-02-22  Mark Harig <idirectscm@aim.com>

	Fixes for CLISP 2.44.

	* swank-clisp.lisp (sldb-backtrace, %parse-stack-values):
	sys::frame-up-1 no longer exists; use sys::frame-up instead.

2008-02-22  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-pop-to-location): Slight cleanups.
	(slime-goto-xref, slime-goto-next-xref): Use it.

2008-02-22  Helmut Eller  <heller@common-lisp.net>

	Remove save-restriction-if-possible.

	* slime.el (save-restriction-if-possible): Deleted.  It was only
	used in one place.
	(slime-goto-source-location): Obey widen-automatically.
	(slime-location-offset): New function.

2008-02-21  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-location-to-string): New function.
	(slime-analyze-xrefs): Use it; display definitions defined
	interactively via C-c C-c as comming from #<buffer foo.lisp>
	instead of foo.lisp.

2008-02-20  Helmut Eller  <heller@common-lisp.net>

	Better factorization for M-. and xref commands.

	* slime.el (slime-xref): Renamed from slime-definition.
	(slime-location, slime-location-p): New ADT def.
	(slime-xref-has-location-p, slime-analyze-xrefs): New functions.
	This work used to be done on the Lisp side.
	(slime-pop-to-location): New function.
	(slime-edit-definition, slime-edit-definition-cont): Simplified.
	(slime-find-definitions): New function.
	(slime-goto-definition, slime-goto-definition-other-window)
	(slime-pop-to-other-window, slime-show-definitions): Deleted.
	(slime-insert-xrefs): Simplified.
	(slime-insert-xref-location): Deleted. No need to show the filename
	twice.

	* swank.lisp (find-definitions-for-emacs, xref): Use common
	representation for "definitions" and "xrefs".
	(xref>elisp): New helper.
	(group-xrefs, alistify, parition, location-position<, xref-position)
	(xref-buffer, location-valid-p): Deleted. This work is now done on
	the Emacs side.

2008-02-20  Helmut Eller  <heller@common-lisp.net>

	Emit a warning if the SWANK package already exists.

	* swank-loader.lisp (init): Issue a warning when SWANK will not be
	reloaded.

2008-02-18  Helmut Eller  <heller@common-lisp.net>

	Minor cleanups for inspector code.

	* swank.lisp (inspector-content, inspect-list-aux): Slight
	cleanups.

2008-02-17  Marco Baringer  <mb@bese.it>

	* swank.asd: Update for recent changes to swank-loader.lisp, we
	need to call swank-loader::init after loading.

2008-02-16  Helmut Eller  <heller@common-lisp.net>

	In the REPL, mark the trailing newline also as input.

	* slime.el (slime-repl-send-input): Mark the newline with
	the 'slime-repl-old-input property.
	(slime-repl-grab-old-input): Strip the newline.

2008-02-16  Helmut Eller  <heller@common-lisp.net>

	Split loading and initialization (again).

	* swank-loader.lisp (init): New.  Delete old packages only if
	explicitly requested.  Also, if the swank package already exists
	don't load swank again.
	(setup): New function.

	* swank.lisp (setup): New function.  Moved over here from
	swank-loader.lisp.

	* slime.el (slime-init-command): Call swank-loader:init.

2008-02-10  Helmut Eller  <heller@common-lisp.net>

	Remove remaining traces of make-default-inspector.

	* swank-scl.lisp (make-default-inspector, scl-inspector): Deleted.
	* swank-lispworks.lisp (make-default-inspector)
	(lispworks-inspector): Deleted.

2008-02-09  Helmut Eller  <heller@common-lisp.net>

	Drop the first return value of emacs-inspect.

	* swank.lisp (emacs-inspect): Drop the first return value. It
	wasn't used anymore.  Update all methods and callers.

2008-02-09  Helmut Eller  <heller@common-lisp.net>

	Remove obsolete *slime-inspect-contents-limit*.

	* swank.lisp (*slime-inspect-contents-limit*): Deleted and all its
	uses.  The new implementation isn't specific to hash-tables or
	arrays.

2008-02-09  Helmut Eller  <heller@common-lisp.net>

	Limit the length of the inspector content.
	That's similar to the limitation of the length of backtraces in
	the debugger.

	* swank.lisp (*inspectee-content*): New variable.
	(content-range): New function.
	(inspect-object): Use it with a length of 1000.
	(inspector-range): New function. Called from Emacs.

	* slime.el (slime-inspector-insert-content)
	(slime-inspector-insert-range, slime-inspector-insert-range-button)
	(slime-inspector-fetch-range): New functions.
	(slime-inspector-operate-on-point): Handle range-buttons.

2008-02-09  Helmut Eller  <heller@common-lisp.net>

	Make slime-property-bounds more useful.

	* slime.el (slime-property-bounds): Remove special casing for
	whitespace at the end.
	(slime-repl-send-input): Don't mark the newline with the
	slime-repl-old-input property.
	(sldb-frame-region): Use slime-property-bounds.

2008-02-09  Helmut Eller  <heller@common-lisp.net>

	Inspector cleanups.

	* swank.lisp (emacs-inspect): Renamed from inspect-for-emacs.
	Changed all method-defs accordingly.
	(common-seperated-spec, inspector-princ): Moved to
	swank-fancy-inspector.lisp.
	(inspector-content): Renamed from inspector-content-for-emacs.
	(value-part): Renamed from value-part-for-emacs.
	(action-part): Renamed from action-part-for-emacs.
	(inspect-list): Renamed from inspect-for-emacs-list.
	(inspect-list-aux): New.
	(inspect-cons): Renamed from inspect-for-emacs-simple-cons.
	(*inspect-length*): Deleted.
	(inspect-list): Ignore max-length stuff.
	(inspector-content): Don't allow nil elements.
	(emacs-inspect array): Make the label of element type more
	consistent with the others.

2008-02-09  Helmut Eller  <heller@common-lisp.net>

	Cleanup slime-repl-set-package.

	* slime.el (slime-repl-set-package): Make it fit within 80 columns.

2008-02-05  Marco Baringer  <mb@bese.it>

	* slime.el (slime-search-buffer-package): Ask the lisp to read the
	in-package form so that we properly deal with #+foo and |WHATEVER|
	package names.
	(slime-repl-set-package): Only prompt with a default package if
	the repl's package is different from the current package.

2008-02-04  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (ccl::advise ccl::break): advise the
	lower-level ccl::cbreak-loop instead of cl:break.
	(frame-locals): If the value is a value-cell (a closed over value)
	show the closed over value and not the value cell.
	(disassemble-frame): add in x86-64 code.

	* slime-autoloads.el (slime-setup-contribs): Add contribs
	directory to load-path.

	* slime.el (slime-setup): Add contribs directory to load-path.

	* swank-abcl.lisp, swank-allegro.lisp, swank-backend.lisp,
	swank-clisp.lisp, swank-cmucl.lisp, swank-corman.lisp,
	swank-ecl.lisp, swank-lispworks.lisp, swank-openmcl.lisp,
	swank-sbcl.lisp, swank-scl.lisp, swank.lisp,
	contrib/swank-fancy-inspector.lisp: Remove second argument from
	swank:inspect-for-emacs. This functionality, choosing an inspector
	at runtime, was never actually used and is, now, needless
	complexity.

2008-02-04  Helmut Eller  <heller@common-lisp.net>

	Simpler code to bind 0-9 in the debugger.

	* slime.el (sldb-mode-map): When binding the keys 0-9, use eval
	instead of two macros.

2008-02-04  Helmut Eller  <heller@common-lisp.net>

	Move some functions to swank-arglist.lisp.

	* swank.lisp (length=, ensure-list, recursively-empty-p)
	(maybecall, exactly-one-p, read-softly-from-string)
	(unintern-in-home-package, valid-function-name-p): Moved to
	contrib/swank-arglist.lisp.

2008-02-03  Marco Baringer  <mb@bese.it>

	* swank.lisp (*sldb-condition-printer*): New variable.
	(safe-condition-message): Use the current binding
	of *sldb-condition-printer* to print the condition to a string.

	* slime.el (sldb-invoke-restart-by-name): New function. Invokes a
	restart by name, uses completion to read restart's name.
	(slime-define-keys sldb-mode-map): Bind
	sldb-invoke-restart-by-name to I in sldb buffers.

	* swank-loader.lisp: When loading swank delete all swank packages
	first. This protects the lisp from broken reloads of swank. Leave
	the swank-loader package so that users can set *fasl-directory*
	and *source-directory* as per the documentation.
	(lisp-version-string): On openmcl use the full
	cl:lisp-implementation-version, ccl::*openmcl-major-version* and
	ccl::*openmcl-minor-version* aren't sufficently precise to notice
	changes in openmcl's cvs.

2008-01-27  Helmut Eller  <heller@common-lisp.net>

	Make it easier to start a non-default Lisp from ELisp code.

	* slime.el (slime): If the argument is a symbol start the
	corresponding entry in slime-lisp-implementations.
	Typical use is something like:
	  (defun cmucl () (interactive) (slime 'cmucl))

2008-01-22  Luís Oliveira  <loliveira@common-lisp.net>

	* swank-source-path-parser.lisp (make-source-recording-readtable):
	don't suppress the #. reader macro.
	(read-and-record-source-map): don't bind *read-eval* to nil.
	(suppress-sharp-dot): unused, delete it.

	* slime.el (test compile-defun): test with #+#.'(:and).

2008-01-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-mode): Don't throw to toplevel in the
	kill-buffer-hook, since the buffer can be killed for other reasons
	too.
	(test break): Test BREAK and CONTINUE in a loop.
	(slime-wait-condition): Display the current time.

2008-01-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	New hooks that allow the slime-presentations contrib to hook
	into the debugger and inspector.

	* slime.el (sldb-insert-frame-variable-value-function): New
	variable.
	(sldb-insert-frame-variable-value): New function, default value
	for sldb-insert-frame-variable-value-function.
	(sldb-insert-locals): Use it here.

	* slime.el (slime-inspector-insert-ispec-function): New variable.
	(slime-open-inspector): Use it here.

2008-01-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* doc/slime.texi (Presentations): Improve documentation of
	presentations.

2008-01-19  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp (inspect-for-emacs): Make ECL inspection better;
	should be able to handle all builtin types and CLOS objects now.

2008-01-17 Nikodemus Siivola <nikodemus@random-state.net>

	* swank-sbcl.lisp (sbcl-source-file-p): When a buffer is not
	associated with any file, M-. for names defined there ends up
	calling SBCL-SOURCE-FILE-P with NIL -- guard against that.

2008-01-14  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (sldb-mode): Add `sldb-quit' to `kill-buffer-hook' to
	close the debugging machinery on swank side when the SLDB buffer
	is killed. (Notice that killing the SLDB buffer manually will not
	restore window configuration in contrast to typing `q'.)

2008-01-10  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-delete-and-extract-region): New
	function. Portable version of `delete-and-extract-region' which
	returned NIL instead of "", as experienced by Matthias Koeppe.

2008-01-09  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-mode-map): Bind C-c C-t to
	slime-toggle-trace-fdefinition (as in Lisp buffers) instead of
	slime-repl-clear-buffer.  This binding is useful for untracing
	functions directly from the trace output.  Move
	slime-repl-clear-buffer to the keybinding C-c M-o.

2008-01-04  Juho Snellman  <jsnell@iki.fi>

	* swank-sbcl.lisp (source-file-source-location): Use the
	debootstrap readtable when appropriate (fixes occasional reader
	errors when using "v" on debugger frames that point to functions
	defined in SBCL). Likewise for the debootstrapping packages.
	(code-location-debug-source-name): Ensure that we always return a
	physical namestring, Emacs won't like a pathname or a logical
	namestring.

2008-01-02  Luís Oliveira  <loliveira@common-lisp.net>

	Use sane default values for slime-repl-set-package.

	Previously, when typing `,!p' at the REPL, the current package
	would have been inserted as a default (although the whole intent
	was to /change/ the current package in the first place), now
	nothing is inserted anymore.

	* slime.el (slime-pretty-current-package): rename it to
	slime-pretty-find-buffer-package and make it use
	slime-find-buffer-package instead of slime-current-package.
	(slime-repl-set-package, slime-set-package): use new function.

2008-01-02  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-print-apropos): Simplified: Don't insert action
	properties anymore for the symbol; they were ignored anyway,
	because `apropos-follow' (bound to RET in the resulting
	*SLIME Apropos* buffer) looks for buttons only.

2008-01-02  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-apropos): Update docstring: Apropos doesn't
	match on regular expressions anymore since 2007-11-24.

2007-12-22  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl.lisp (set-stream-timeout, make-socket-io-stream): update
	for Scieneer CL 1.3.7.

2007-12-21  Geo Carncross  <geocar@gmail.com>

	* swank-ecl.lisp: try to parse the Args: line in most ecl functions to
	make modeline/autodoc more interesting

2007-12-20  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (read-softly-from-string): Now actually returns all
	three values as explained in its docstring.

2007-12-14  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-insert-xref-location): New function. Tries to
	either insert the file name a function is defined in, or inserts
	information about the buffer a function was interactively
	`C-c C-c'd from. Idea from Knut Olav Bøhmer.
	(slime-insert-xrefs): Use it.

2007-12-14  Geo Carncross  <geocar@gmail.com>

	* Add ECL threads implementation to swank

2007-12-04  Helmut Eller  <heller@common-lisp.net>

	Simplify the inspector.

	* swank.lisp (inspect-object): Ignore the title value returned
	from backends.

	* slime.el (slime-open-inspector): Updated accordingly.

2007-12-04  Helmut Eller  <heller@common-lisp.net>

	Fix slime-list-thread selector.

	* slime.el (slime-list-threads): Wait for the result before
	continuing.

2007-12-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-insert-result): Use slime-repl-emit-result
	since handling of markers has changed.
	(slime-repl-emit-result): New argument: bol.

2007-12-02  Alan Caulkins <fatman@maxint.net>

	Make it possible to close listening sockets.

	* swank.lisp (stop-server, restart-server): New functions.
	(*listener-sockets*): New variable.
	(setup-server): Store open sockets in *listener-sockets*.

2007-12-02  Helmut Eller  <heller@common-lisp.net>

	Add hook to customize the region used by C-c C-c.
	Useful to recognize block declarations in CMUCL sources.

	* slime.el (slime-region-for-defun-function): New variable.
	(slime-region-for-defun-at-point): Use it.

2007-11-30  Helmut Eller  <heller@common-lisp.net>

	Handle byte-functions without debug-info.

	* swank-cmucl.lisp (byte-function-location): Return an error
	if the component has no debug-info.

2007-11-30  Helmut Eller  <heller@common-lisp.net>

	Disable the pretty-printer for backtraces.
	Would be nice if we could print newlines in strings as \n.

	* swank.lisp (*backtrace-printer-bindings*):  New varaible.
	(backtrace, frame-locals-for-emacs): Use it.

2007-11-29  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (valid-function-name-p): Fixed wrt. setf functions.

2007-11-29  Helmut Eller  <heller@common-lisp.net>

	Prettify package names for slime-repl-set-package.

	* slime.el (slime-repl-set-package): slime-current-package may
	have leading colons.  Use slime-pretty-package-name to remove
	them.  Reported by Constantine Vetoshev.
	(slime-pretty-current-package): New function.
	(slime-set-package): Use it.

2007-11-24  Helmut Eller  <heller@common-lisp.net>

	Drop remaining dependencies on nregex.

	* swank-lispworks.lisp (unmangle-unfun): Use sys::setf-symbol-p
	instead of regexp matching.

	* swank-loader.lisp (*sysdep-files*): Don't include nregex.

2007-11-24  Helmut Eller  <heller@common-lisp.net>

	Mirror *modules* in Emacs.

	* slime.el (slime-lisp-modules): New connction variable.
	(slime-set-connection-info): Load requested modules.
	(slime-required-modules): New variable.
	(slime-require, slime-load-contribs): New functions.

	* swank.lisp (connection-info): Include *modules*.
	(swank-require): Accept a list of modules as argument.

2007-11-24  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (parse-package): The old version didn't pass the
	test-suite.  Now use the reader directly instead of emulating it
	half-heartedly.

	* slime.el (slime-search-buffer-package): Don't remove double
	quotes or "#:", swank:parse-package takes care of that.

2007-11-24  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (apropos-symbols):  Use simple search instead of
	regexps.
	(make-apropos-matcher): Used to be make-regexp-matcher.

	(*sldb-printer-bindings*): Set *print-right-margin* to
	most-positive-fixnum. This prints each frame in the backtrace in a
	single long line.  But is suboptimal for other purposes, like
	eval-in-frame.

	(setup-server): Initialize multiprocessing here, so that is also
	done for create-server.

2007-11-23  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (swank-require): Fix typo (:key was used instead of
	:test.)  Reported by Stelian Ionescu.

2007-11-22  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (swank-require): Don't search the file if the
	module-name is present in *modules*. That should avoid problems if
	swank is included in a core file and moved to a different
	location.  Reported by John Wiegley.

2007-11-19  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-repl-mode-map, slime-repl-read-mode),
	(slime-compiler-notes-mode-map, slime-xref-mode-map),
	(sldb-mode-map, slime-connection-list-mode-map),
	(slime-inspector-mode-map): Added bindings for [return] in
	addition to (kbd "RET"). The reason is that pressing enter in X is
	translated to (kbd "RET") only if no binding for [return] is
	active; if [return] is bound to something, pressing enter is
	translated to this key binding henceforth, as was explained to me
	by Pierre Gaston, thanks! This can cause quite confusing behaviour
	as Andreas Davour faced in his post
	<cs9k5ofqbt7.fsf@Psilocybe.Update.UU.SE> to comp.lang.lisp.

2007-11-06  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-events-buffer, slime-inspector-buffer): Disable
	undo.

2007-11-01  Tobias C. Rittweiler  <tcr@freebits.de>

	The inspector page layout has changed slightly. Before the header
	looked like

	  A proper list.
            [type: CONS]
	  -------------------

	It now looks like

	  #<CONS {B3DBD39}>:
	     A proper list.
	  --------------------

	Rationale is to have a "presentation link" to the currently
	inspected object itself, to copy it down to the REPL via `M-RET'.
	This is mostly useful when trying to get a value from the Slime
	Debugger to the REPL, which you can do by inspecting the value
	first by `i', and then using `M-RET' on the object representation
	in the new header layout.

	Such a "presentation link" existed already but was removed in
	2007-08-23. The old behaviour was to have the title ("A proper
	list" in the above example) to contain the link. I decided to make
	the link more explicit.

	* swank.lisp (inspect-object): Now additionally returns a
	string-representation of the object itself, and an inspector id
	for it. Removed returning its type as this is implicit in the new
	string representation.

	* slime.el (slime-open-inspector): Adapted for new header layout.

2007-10-22  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank.lisp (read-softly-from-string, unintern-in-home-package):
	Moved from `contrib/swank-arglist.lisp'.
	(parse-package): Use them. (Removes FIXME about interning
	symbols.)  Also changed the logic somewhat to avoid passing :|| to
	FIND-PACKAGE as ECL chokes on that.

2007-10-22  Steve Smith  <tarkasteve@gmail.com>

	* swank-loader.lisp (compile-files-if-needed-serially): Added
	missing `load' argument to function definition on Corman Lisp /
	ECL.

2007-10-22  Mark Evenson  <mark.evenson@gmx.at>

	* swank-abcl.lisp (getpid): Implemented.

2007-10-22  R. Matthew Emerson  <rme@thoughtstuff.com>

	* swank-openmcl.lisp (closure-closed-over-values): Use
	CCL::NTH-IMMEDIATE instead of CCL::%SVREF.  This makes it work on
	x86-64 OpenMCL. (The %SVREF worked on PPC, but this will work on
	both.)

2007-09-27  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-filesystem-toplevel-directory): New function.
	Windows doesn't have a filesystem that is as hierarchical as the
	Unix' one. Reported by Carsten Blaauw and Stefan Kluehspies.
	(slime-file-name-merge-source-root): Use it.
	(slime-highlight-differences-in-dirname): Use it.

2007-09-26  Utz-Uwe Haus  <haus+slime@mail.math.uni-magdeburg.de>

	* swank-allegro.lisp (fspec-definition-locations): Allow the
	POSITION datum of :top-level-form fspecs to be missing.  This
	apparently helpful for Allegro CL 8.1.

2007-09-21  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-length=, slime-length>): Restore support for
	vectors, as `slime-length=' was already used with strings in
	`slime-parse.el'. This broke extended arglist display.

2007-09-20  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-setup): Call the respective init functions of
	contribs.

	* slime-autoloads.el (slime-setup-contribs): Ditto.

2007-09-19  Helmut Eller  <heller@common-lisp.net>

	Simplify slime-compile-file.

	* slime.el (slime-compile-file): Don't save window config.
	(slime-curry, slime-rcurry): New functions.

	* slime.el (slime-complete-symbol*-fancy): Move defcustom to
	contrib/slime-c-p-c.el

	* swank-version.el: Delete file. No longer used.

	* bridge.el: Moved to contrib.

	* tree-widget.el: File deleted. Only needed by contribs and is
	distributed with Emacs 21.

	* slime.el: Reorder some devfars and menus code so that the
	compiler doesn't complain about free variables.

	Fix apropos in Emacs 22.

	* slime.el (slime-print-apropos): Add button props for Emacs 22.
	(slime-call-describer): ARG is a marker in Emacs 22.

	(def-slime-selector-method ?c): Wait until slime-list-threads
	returns.

	Remove define-slime-dialect.

	* slime.el (define-slime-dialect): Deleted. Use
	slime-lisp-implementations instead.

	Introduce a slime-start-and-init function.

	* slime.el (slime-start-and-init, slime-lisp-options): New
	functions.
	(slime-start-and-load): Use it.

	Simplify slime-length=.

	* slime.el (slime-length=, slime-length>): No need for vectors.

	Remove explicit support for Scheme mode.

	* slime.el (slime-scheme-mode-hook, slime-shared-lisp-mode-hook)
	Deleted.
	(slime-indentation-update-hooks): New hook.
	(slime-handle-indentation-update): Use it.

	Fix close-connection.

	* swank.lisp (close-connection): Use *log-output* instead of
	*debug-io* (which could be redirected to the to-be-closed
	connection).

2007-09-15  Helmut Eller  <heller@common-lisp.net>

	Let slime-setup load contribs.

	* slime.el (slime-setup): Take a list of contribs to load as
	argument.

	* slime-autoloads.el (slime-setup): Ditto, but delay the actual
	loading until slime is loaded.
	(slime-setup-contribs): New function.

2007-09-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-maybe-warn-for-different-source-root): Catch
	returned NIL from `slime-file-name-merge-source-root' if the two
	filenames don't share a common source root.
	Reported by Frank Goenninger.

2007-09-15  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-split-string): New semi-portability function.
	The behaviour of `split-string' changed between Emacs21 and
	Emacs22. Thanks to Christophe Rhodes for reporting this.
	(slime-file-name-merge-source-root): Use `slime-split-string'.
	(slime-highlight-differences-in-dirname): Likewise.

2007-09-14  Helmut Eller  <heller@common-lisp.net>

	Some cleanups for the REPL.

	* slime.el (slime-repl-write-string): Split it up into smaller
	functions.
	(slime-repl-emit, slime-repl-emit-result)
	(slime-emit-string): New functions.

	(slime-repl-save-history): Use prin1 instead of pp.

	(repl-type-ahead): New test case.

2007-09-12  Christophe Rhodes  <csr21@cantab.net>

	Make ASDF:LOAD-OP (and SBCL REQUIRE) happy with swank.asd

	* swank.asd: Define and use a CL-SCRIPT-FILE class for loading as
	source, even with ASDF:LOAD-OP.

2007-09-11  Tobias C. Rittweiler  <tcr@freebits.de>

	* swank-loader.lisp: Aways compile-file `contrib/swank-asdf.lisp'
	on SBCL. This fixes "Undefined function" style-warnings when using
	`slime-asdf' in combination with SBCL. Reported by Cyrus Harmon.

	* swank-sbcl.lisp: Explicitly require ASDF. (While this is not
	strictly necessary, as it's implicitly loaded on requiring the
	other modules, I think it's better to be explicit about it.)

2007-09-10  Helmut Eller  <heller@common-lisp.net>

	Fix some bugs introduced while moving doc refs to contrib.

	* swank-sbcl.lisp (condition-references): It's still needed.

	* slime.el (sldb-dispatch-extras): Add missing quote.
	(slime-sbcl-manual-root): Move definition to
	contrib/slime-references.el.
	(slime-cl-symbol-name, slime-cl-symbol-package): Move to
	contrib/slime-parse.el.

2007-09-10  Helmut Eller  <heller@common-lisp.net>

	Move SBCL doc references to contrib.

	* slime.el (sldb-insert-condition): Merge REFERENCES and EXTRAS.
	(sldb-extras-hooks, sldb-dispatch-extras): New hook.

	* swank-backend.lisp (condition-references): Removed. Merged with
	condition-extras.

	* swank-sbcl.lisp (condition-references): Removed.
	(condition-extras): Include references.
	(externalize-reference): New function.  Don't return plain
	symbols.

	* swank-allegro.lisp (condition-references): Removed.

2007-09-10  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-cl-symbol-name, slime-cl-symbol-package):
	Ressurected, as they're still used in this file.
	Reported by Edward Cant.

2007-09-10  Tobias C. Rittweiler  <tcr@freebits.de>

	When working on multiple source trees simultaneously, the way
	`slime-edit-definition' (M-.) works can sometimes be confusing:

	`M-.' visits locations that are present in the current Lisp image,
	which works perfectly well as long as the image reflects the
	source tree that one is currently looking at.

	In the other case, however, one can easily end up visiting a file
	in a different source root directory (the one corresponding to the
	Lisp image), and is thus easily tricked to modify the wrong source
	files---which can lead to quite some stressfull cursing.

	If the variable `slime-warn-when-possibly-tricked-by-M-.' is
	T (the default), a warning message is issued to raise the user's
	attention whenever `M-.' is about opening a file in a different
	source root that also exists in the source root directory of the
	user's _current buffer_.

	There's no guarantee that all possible cases are covered, but if
	you encounter such a warning, it's a strong indication that you
	should check twice before modifying.

	* slime.el (slime-file-name-merge-source-root): New function.
	(slime-highlight-differences-in-dirname): New function.
	(slime-maybe-warn-for-different-source-root): New function.
	(slime-warn-when-possibly-tricked-by-M-.): New variable (T by default.)
	(slime-goto-location-buffer): Where appropriate, call
	`slime-maybe-warn-for-different-source-root'

2007-09-08  Stelian Ionescu  <sionescu@common-lisp.net>

	* slime.el (save-restriction-if-possible): Place macro definition
	above use of the macro, to regain ability to byte-compile-file.

2007-09-08  Tobias C. Rittweiler  <tcr@freebits.de>

	Fix message displaying on XEmacs. Reported by Steven E. Harris,
	and Ken Causey.

	* slime.el (slime-display-message): Resurrect secondary
	`buffer-name' argument which got lost in 2007-08-24.
	(slime-format-display-message): Resurrect passing "*SLIME Note*"
	as default buffer-name to `slime-display-message'.

2007-09-08  Matt Pillsbury  <mtbp@rci.rutgers.edu>

	* swank-backend.lisp (definterface): Updated docstring.

2007-09-06  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-write-string): Use case, not ecase, for
	dispatching targets.Should fix XEmacs compatibility.
	Reported by Steven E. Harris.

2007-09-05  Didier Verna  <didier@xemacs.org>

	* slime.el (slime-filename-translations): Fix custom type.

2007-09-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-toggle-trace-fdefinition):  Fix typo.  The
	 argument for interactive should be "P" not "p".

2007-09-04  Mark Evenson  <mark.evenson@gmx.at>

	* swank-abcl.lisp: Call accessors of compiler-condition at load
	time to work around some ABCL problems.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	Move asdf support to contrib.

	* swank-backend.lisp (operate-on-system): Moved to
	swank-asdf.lisp. It wasn't specialized in any backend.

	* swank.lisp (operate-on-system-for-emacs)
	(list-all-systems-known-to-asdf, list-asdf-systems): Moved to
	swank-asdf.lisp.

	* slime.el: Move asdf commands to contrib slime-adsf.el.

	* swank-loader.lisp: Load swank-asdf if ASDF is in
	*FEATURES*. Also add the contrib source directory to
	swank::*load-path*.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Move tramp support to contrib.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	Move startup animation to contrib.

	* slime.el (slime-repl-banner-function): New hook.
	(slime-repl-update-banner): Use it and reset markers after calling
	it.
	(slime-set-default-directory): Don't call slime-repl-update-banner
	here.
	(slime-repl-insert-prompt): Set slime-repl-input-end-mark to
	point-max.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Move inferior-slime-mode to contrib.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Fix the test suite (except for SBCL).

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	Simplify slime-process-available-input.

	* slime.el (slime-process-available-input): We are called in a
	process filter, i.e. at arbitrary times and in an aribtrary
	buffer.  So it doesn't make sense to save-and-restore the current
	buffer here
	(slime-eval-async): Instead, save and restore the buffer here.
	(slime-net-read-or-lose): New.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	Remove request-abort condition.

	* swank-backend.lisp (request-abort): Removed
	(abort-request): Removed.  Replace all (3) uses with ERROR.
	* swank.lisp (eval-for-emacs): No special case for request-abort.
	* slime.el (slime-eval-async): Remove optional arg of :abort.

2007-09-04  Helmut Eller  <heller@common-lisp.net>

	Rename slime-insert-possibly-as-rectangle to slime-insert-indented.

	* slime.el (slime-insert-indented): Renamed. Update callers.

2007-08-31  Helmut Eller  <heller@common-lisp.net>

	Move compound prefix completion and autodoc to contrib.

	* swank.lisp (simple-completions): Rewritten for simplicity.
	(operator-arglist): Rewritten for simplicity.

	* slime.el (slime-complete-symbol-function): Make simple
	completion the default.
	(slime-echo-arglist-function, slime-echo-arglist): New hook.

	Remove corresponding key bindigs.

	* slime.el (slime-obsolete-commands): New table. Use it to bind
	a command with an upgrade notice.

2007-08-31  Andreas Fuchs <asf@boinkor.net>

	* slime.el (slime-reindent-defun): Fixed when used in lisp file
	buffers. (Similiar patch also provided by Gábor Melis; problem
	also reported by Jeff Cunningham.)

2007-08-31  Jon Allen Boone <ipmonger@delamancha.org>

	* swank-cmucl.lisp: CMUCL now has an x86-Darwin port as well as
	  the PPC-Darwin version. Changed to conditionalize on the
	  presence of darwin instead of ppc so that slime works with both
	  Darwin versions of CMUCL.

2007-08-31  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-sexp-at-point): Explicitely set current syntax
	table to operate in `lisp-mode-syntax-table' because
	`thing-at-point' is used which depends on the syntax table. (E.g.
	 keywords like `:foo' aren't recognized as sexp otherwise.)

	* slime.el (slime-parse-extended-operator/declare): Wrap regexp
	stuff in `save-match-data'
	(slime-internal-scratch-buffer): Removed again. Was only
	introduced as a performance hack; but it turned out that the bad
	performance was because of unneccessary recursive calls of
	`slime-make-form-spec-from-string'. (Which was fixed on 2007-08-27
	already.)
	(slime-make-form-spec-from-string): Use `with-temp-buffer' instead
	of `slime-internal-scratch-buffer'. Removed activation of
	`lisp-mode' in the temporary buffer, because this made
	`lisp-mode-hooks' run. This activated autodoc in the temp buffer,
	although the temp buffer is used to compute an autodoc
	itself (which resulted in some very mutual recursion which caused
	the current arglist to be displayed again and again---as could
	have been witnessed in `*Messages*'.) `Lisp-mode' was activated to
	get the right syntax-table for `slime-sexp-at-point', but this one
	sets the correct syntax-table itself now.

2007-08-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Fix user input type-ahead again (this change from 2007-08-25 got
	lost).  Testcase: Type (dotimes (i 5) (format t "Number ~A~%"
	i) (sleep 1)) and then type ahead while the command is executing
	and output arrives.

	* slime.el (slime-repl-insert-prompt): Don't go to point-max but
	to slime-repl-input-start-mark if there is one.
	(slime-repl-write-string): Insert a :repl-result before the
	prompt, not at point-max.  Update markers properly.

2007-08-28  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (safe-definition-finding): Remove whitespace
	around error messages.
	(trim-whitespace): New function.

2007-08-28  Helmut Eller  <heller@common-lisp.net>

	Fix some output related bugs.

	* swank.lisp (send-repl-results-to-emacs): Emit a fresh line.

	* slime.el (slime-insert-transcript-delimiter): Use
	insert-before-markers since slime-output-end is no longer left
	inserting.  Reported by Austin Haas <austin@pettomato.com>.

2007-08-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-display-or-scroll-completions,
	slime-scroll-completions): New functions.  Factored out of
	slime-expand-abbreviations-and-complete.

2007-08-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-write-string): Handle arbitrary targets
	using slime-output-target-marker.
	(slime-last-output-target-id, slime-output-target-to-marker)
	(slime-output-target-marker)
	(slime-redirect-trace-output): Move back here from
	slime-presentations.el.

2007-08-28  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (classify-symbol, symbol-classification->string):
	Resurrected in swank.lisp. (I was bitten by cvs-pcl which
	committed (2007-08-27) my locally changed `contribs/swank-fuzzy.lisp'
	where I already removed these functions from.)

2007-08-28  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-make-form-spec-from-string): Elisp Hacking 101:
	Don't use `beginning-of-buffer' and `end-of-buffer' in Elisp code.

	* swank.lisp (read-form-spec): Unintern just newly interned
	symbols when an reader error occurs.

2007-08-28  Helmut Eller  <heller@common-lisp.net>

	Move presentations to contrib.  Part II.

	* swank.lisp (*listener-eval-function*): New variables.
	(listener-eval): Use it
	(repl-eval): Used to be listener-eval.
	(*send-repl-results-function*): New variable.
	(eval-region): Simplify.
	(track-package, cat): New functions.
	(slime-repl-clear-buffer-hook): New hook.
	(slime-repl-clear-buffer): Use it.

2007-08-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Remove the ID argument from :write-string protocol messages.
	Everything, except for rigid-indentation tricks, can be achieved
	by using :write-string in conjunction with :presentation-start and
	:presentation-end.

	* swank.lisp (present-in-emacs): Unused, removed.

	* swank.lisp (make-output-function-for-target): Remove id argument
	from :write-string.
	(send-repl-results-to-emacs): Don't call
	save-presented-object. Remove id argument from :write-string.

	* slime.el (slime-dispatch-event): Change it here.
	(slime-write-string, slime-repl-write-string): And here.

2007-08-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank-loader.lisp (*contribs*): Add swank-presentations.

2007-08-27  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-make-extended-operator-parser/look-ahead): Move
	to end of symbol at point.
	(slime-make-form-spec-from-string): Fixes unexpected behaviour of
	`save-excursion'.

2007-08-27  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-sexp-at-point): Fixes a few edge cases were
	Emacs' `(thing-at-point 'sexp)' behaves suboptimally. For example,
	`foo(bar baz)' where point is at the ?\(.
	(slime-internal-scratch-buffer): New. This variable holds an
	internal scratch buffer that can be reused instead of having to
	create a new temporary buffer again and again.
	(slime-make-extended-operator-parser/look-ahead): Uses
	`slime-make-form-spec-from-string' to parse nested expressions
	properly.
	(slime-nesting-until-point): Added docstring.
	(slime-make-form-spec-from-string): Added new optional parameter
	for stripping the operator off the passed string representation of
	a form. Necessary to work in the context of
	`slime-make-extended-operator-parser/look-ahead'. Added safety check
	against a possible endless recursion.

	* swank.lisp (parse-form-spec): Looses restriction for nesting.

2007-08-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-eval-feature-conditional): Fix typo.
	(slime-keywordify): Simplify.

2007-08-27  Helmut Eller  <heller@common-lisp.net>

	Move presentations to contrib.  Part I.

	* slime.el (slime-event-hooks, slime-dispatch-event): New hook.
	(slime-write-string-function, slime-write-string): New hook.
	(slime-repl-return-hooks, slime-repl-return): New hook.
	(slime-repl-current-input-hooks, slime-repl-current-input): New hook.
	(slime-open-stream-hooks, slime-open-stream-to-lisp): New hook.
	(sldb-insert-locals, slime-inspector-insert-ispec)
	(slime-last-expression): Don't use presentations.

2007-08-26  Tobias C. Rittweiler <tcr@freebits.de>

	Reduces needless interning of symbols that was introduced by my
	recent work on autodoc to a minimum. Also fixes this issue for
	`slime-complete-form' which always interned symbols even before my
	changes.

	* slime.el (slime-sexp-at-point): If N is given, but there aren't
	N sexps available at point, make it return a list of just as many
	as there are.
	(slime-make-form-spec-from-string): New. Creates a ``raw form
	spec'' from a string that's suited for determining newly interned
	symbols later in Swank.
	(slime-parse-extended-operator/declare): Uses it.

	* swank.lisp (parse-symbol): Returns internal knowledge, to
	provide a means for callers to perform a sanity check.
	(call-with-ignored-reader-errors): New. Abstracted out from
	`read-incomplete-form-from-string.'

	* swank.lisp (read-form-spec): New. Only READs elements of a form
	spec if necessary. And if it does have to READ, it keeps track
	of newly interned symbols which are returned as secondary
	return value.
	(parse-form-spec): Use it. Propagate newly interned symbols.
	(parse-first-valid-form-spec): Likewise.
	(arglist-for-echo-area, complete-form, completions-for-keyword):
	Adapted to unintern the newly interned symbols.


2007-08-26  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (current-slime-narrowing-configuration):
	Renamed to `slime-current-narrowing-configuration'.
	(set-slime-narrowing-configuration):
	Renamed to `slime-set-narrowing-configuration'.
	(current-slime-emacs-snapshot):
	Renamed to `slime-current-emacs-snapshot'.
	(current-slime-emacs-snapshot-fingerprint):
	Renamed to `slime-current-emacs-snapshot-fingerprint'.
	(set-slime-emacs-snapshot):
	Renamed to `slime-set-emacs-snapshot'.

2007-08-26  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (save-restriction-if-possible): Fixed another typo,
	duh! Thanks again to Matthias Koeppe.

2007-08-26  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-cl-symbol-name): Handle vertical bars (|)
	(%slime-nesting-until-point): Renamed to `slime-nesting-until-point'.

2007-08-25  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Fix a bug where REPL results would sometimes be indented by a
	random amount.

	* slime.el (slime-insert-presentation): Make the
	rectangle-ification of multi-line presentations, introduced
	2006-12-19, optional.
	(slime-write-string): Use it here only for regular output, but not
	for REPL results.
	(sldb-insert-locals): Use it here.
	(slime-inspector-insert-ispec): Use it here.

2007-08-25  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Fix handling of user-input type-ahead in the REPL.
	Reported by Madhu <enometh@meer.net> on 2007-04-24.

	* slime.el (slime-write-string): Make sure text properties are
	rear-nonsticky, so typed-ahead user input does not pick up the
	text properties.  Fix up some markers.
	(slime-reset-repl-markers): Make the marker slime-output-end of
	insertion type nil (no automatic advances on insertions).
	(slime-with-output-end-mark): Update the location of
	slime-output-end here manually.
	(slime-repl-update-banner): Use insert-before-markers.

2007-08-25  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	New command slime-redirect-trace-output creates a separate Emacs
	buffer, where all subsequent trace output is sent.

	* slime.el (slime-last-output-target-id): New variable.
	(slime-output-target-to-marker): New variable.
	(slime-output-target-marker): New function.
	(slime-write-string): Handle general "target" arguments using
	slime-output-target-marker.
	(slime-redirect-trace-output): New command.
	(slime-easy-menu): Add a menu item for it.

	* slime.el (slime-mark-presentation-start)
	(slime-mark-presentation-end): Make "target" argument optional.
	Use slime-output-target-to-marker.

	* swank.lisp (make-output-stream-for-target): New function,
	factored out from open-streams.
	(open-streams): Use it here.

	* swank.lisp (connection): New slot "trace-output".
	(call-with-redirected-io): Use it here.
	(redirect-trace-output): New slimefun; set the slot to a new
	target stream.

2007-08-25  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (save-restriction-if-possible): Fixed typo in
	macroexpansion. Thanks to Matthias Koeppe for reporting.

2007-08-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-insert-arglist): Removed, superseded by
	slime-complete-form since 2005-02-20.

	* swank.lisp (arglist-for-insertion): Now unused, removed.

2007-08-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Some fixes to the presentation-streams contrib.

	* slime.el (slime-dispatch-event): Handle new optionals args of
	messages :presentation-start and :presentation-end.

	* slime.el (slime-mark-presentation-start)
	(slime-mark-presentation-end): New arg "target"; record
	presentation boundaries separately for REPL results and regular
	process output.  This fixes the presentation markup of REPL
	results when the presentation-streams contrib is loaded.

2007-08-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Make the fancy presentation-streams feature a contrib.
	Previously, it was only available if "present.lisp" was loaded
	manually.  Now it can be loaded automatically using:

	   (add-hook 'slime-load-hook
	             (lambda () (require 'slime-presentation-streams)))

	Note that the normal presentations that are created by REPL
	results, the inspector, and the debugger are NOT dependent on this
	code.

	* present.lisp: Moved to contrib/swank-presentation-streams.lisp.
	* swank-loader.lisp (*contribs*): Add swank-presentation-streams.

2007-08-24  Helmut Eller  <heller@common-lisp.net>

	Move typeout frame to contrib.

	* slime.el (slime-message-function, slime-background-message-function)
	(slime-autodoc-message-function): New variables.
	(slime-message, slime-background-message)
	(slime-autodoc-message): Call the function in the respective
	variable, so that the typeout window can be plugged in.

2007-08-24  Helmut Eller  <heller@common-lisp.net>

	Move xref and class browser to contrib.

	* slime.el (slime-browse-classes, slime-browse-xrefs): Gone. The
	Common Lisp part is still there.

2007-08-24  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-forward-blanks): Wrapped w/ `ignore-errors.'
	(slime-sexp-at-point): Return results as a list of strings, rather
	than just one big string if called with arg > 1.
	(slime-parse-extended-operator-name): Wrapping some movement code
	in `ignore-errors'. Adapted to new return value of
	`slime-enclosing-form-specs'. Minor cosmetic changes.
	(slime-make-extended-operator-parser/look-ahead): Adapted to
	changes of the ``raw form spec'' format; returns a form of
	strings, instead of a string of a form.
	(slime-parse-extended-operator/declare): Simplified. Adapted to
	changes of the ``raw form spec'' format; passes decl-identifiers,
	or typespec-operators respectively, along the decl/type-spec.
	(%slime-in-mid-of-typespec-p): Removed. Replaced by an regexp
	based approach.
	(%slime-nesting-until-point): New helper for
	`slime-parse-extended-operator/declare'.

	* swank.lisp (parse-form-spec): Adapted to new ``raw form spec''
	format. Updated format description in docstring accordingly.  The
	new format allows less interning of wrong symbols names comming
	from Slime. Thanks to Matthias Koeppe for spotting this.

2007-08-24  Helmut Eller  <heller@common-lisp.net>

	Move slime-highlight-edits-mode to contrib.

2007-08-24  Helmut Eller  <heller@common-lisp.net>

	Move slime-scratch to contrib.

	* slime.el (slime-scratch): Gone.

2007-08-24  Helmut Eller  <heller@common-lisp.net>

	Various cleanups related to slime-insert-propertized.

	* slime.el (slime-with-rigid-indentation): Fix evaluation order.
	(slime-indent-rigidly): New.
	(slime-insert-possibly-as-rectange): Don't set mark.
	(slime-insert-propertized): Use plain insert instead of
	slime-insert-possibly-as-rectange.

2007-08-24  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (sbcl-inspector): Fix typo.

2007-08-23  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Repair inspection of presentations.

	* swank.lisp (inspect-presentation): New slimefun.
	* slime.el (slime-inspect-presentation-at-mouse): Use it here.

2007-08-23  Helmut Eller  <heller@common-lisp.net>

	Move Marco Baringer's inspector to contrib.

	* swank.lisp (*default-inspector*): New variable. Set this
	variable dispatch to different inspectors.
	(inspect-object): Use it.

	* swank-loader.lisp (*contribs*): Add 'swank-fancy-inspector.

	* swank-backend.lisp (backend-inspector): New class.  Introduce a
	named class to give as another way to dispatch to backend methods.

	* swank-cmucl.lisp: Use backend-inspector class.
	* swank-sbcl.lisp: Use backend-inspector class.
	* swank-clisp.lisp: Use backend-inspector class.
	* swank-lispworks.lisp: Use backend-inspector class.
	* swank-allegro.lisp: Use backend-inspector class.
	* swank-openmcl.lisp: Use backend-inspector class.
	* swank-abcl.lisp: Use backend-inspector class.
	* swank-corman.lisp: Use backend-inspector class.
	* swank-scl.lisp: Use backend-inspector class.

2007-08-23  Tobias C. Rittweiler <tcr@freebits.de>

	Added arglist display for declaration specifiers and type
	specifiers.

	Examples:

	`(declare (type' will display

	   (declare (type type-specifier &rest vars))

	`(declare (type (float' will display

	   [Typespec] (float &optional lower-limit upper-limit)

	`(declare (optimize' will display

	   (declare (optimize &any (safety 1) (space 1) (speed 1) ...))

	&ANY is a new lambda keyword that is introduced for arglist
	description purpose, and is very similiar to &KEY, but isn't based
	upon plists; they're more based upon *FEATURES* lists. (See the
	comment near the ARGLIST defstruct in `swank.lisp'.)

	* slime.el:
	(slime-to-feature-keyword): Renamed to `slime-keywordify'.
	(slime-eval-feature-conditional): Adapted to use `slime-keywordify'.
	(slime-ensure-list): New utility.
	(slime-sexp-at-point): Now takes an argument that specify how many
	sexps at point should be returned.
	(slime-enclosing-operator-names): Renamed to
	`slime-enclosing-form-specs'.
	(slime-enclosing-form-specs): Returns a list of ``raw form specs''
	instead of what was called ``extended operator names'' before, see
	`swank::parse-form-spec' for more information. This is a
	simplified superset. Additionally as tertiary return value return
	a list of points to let the caller see where each form spec is
	located. Adapted callers accordingly. Extended docstring.
	(slime-parse-extended-operator-name): Adapted to changes in
	`slime-enclosing-form-specs'. Now gets more context, and is such
	more powerful. This was needed to allow parsing DECLARE forms.
	(slime-make-extended-operator-parser/look-ahead): Because the
	protocol for arglist display was simplified, it was possible to
	replace the plethora of parsing function just by this one.
	(slime-extended-operator-name-parser-alist): Use it. Also add
	parser for DECLARE forms.
	(slime-parse-extended-operator/declare): Responsible for parsing
	DECLARE forms.
	(%slime-in-mid-of-typespec-p): Helper function for
	`slime-parse-extended-operator/declare'.
	(slime-incomplete-form-at-point): New. Return the ``raw form
	spec'' near point.
	(slime-complete-form): Use `slime-incomplete-form-at-point'.

	* swank.lisp: New Helper functions.
	(length=, ensure-list, recursively-empty-p): New.
	(maybecall, exactly-one-p): New.

	* swank.lisp (arglist-for-echo-area): Adapted to take ``raw form
	specs'' from Slime.
	(parse-form-spec): New. Takes a ``raw form spec'' and returns a
	``form spec'' for further processing in Swank. Docstring documents
	these two terms.
	(split-form-spec): New. Return relevant information from a form
	spec.
	(parse-first-valid-form-spec): Replaces `find-valid-operator-name'.
	(find-valid-operator-name): Removed.
	(operator-designator-to-form): Removed. Obsoleted by `parse-form-spec'.

	(defstruct arglist): Add `any-p' and `any-args' slots to contain
	arguments belonging to the &ANY lambda keyword.
	(print-arglist): Adapted to also print &ANY args.
	(print-decoded-arglist-as-template): Likewise.
	(decode-arglist): Adapted to also decode &ANY args.
	(remove-actual-args): Adapted to also remove &ANY args.
	(remove-&key-args): Split out from `remove-actual-args'.
	(remove-&any-args): New. Removes already provided &ANY args.
	(arglist-from-form-spec): New. Added detailed docstring.
	(arglist-dispatch): Dispatching generic function for
	`arglist-from-form-spec' that does all the work. Renamed from
	prior `form-completion'.
	(arglist-dispatch) Added methods for dealing with declaration and
	type-specifiers.
	(complete-form): Adapted to take ``raw form specs'' from Slime.
	(completions-for-keyword): Likewise.
	(format-arglist-for-echo-area): Removed. Not needed anymore.

	* swank-backend.lisp (declaration-arglist): New generic
	function. Returns the arglist for a given declaration
	identifier. (Backends are supposed to specialize it if they can
	provide additional information.)
	(type-specifier-arglist): New generic function. Returns the
	arglist for a given type-specifier operator. (Backends are
	supposed to specialize it if they can provide additional
	information.)
	(*type-specifier-arglists*): New variable. Contains the arglists
	for the type specifiers in Common Lisp.

	* swank-sbcl.lisp: Now depends upon sb-cltl2.
	(declaration-arglist 'optimize): Specialize the `optimize'
	declaration identifier to pass it to
	sb-cltl2:declaration-information.


2007-08-23  Helmut Eller  <heller@common-lisp.net>

	Some inspector cleanups.

	* slime.el (slime-inspect): Remove dwim stuff and drop keyword
	args.
	(slime-read-object): Killed.
	(slime-open-inspector): Drop keyword args.  Update callers
	accodordingly, expect presentation related code. Presentations no
	longer work in the inspector.

	* swank.lisp (*inspector-dwim-lookup-hooks*)
	(default-dwim-inspector-lookup-hook): Deleted.
	(init-inspector): Sanitize arglist.
	(inspect-object): Don't return an :id for *inspectee-parts*.

	* swank-backend (type-for-emacs): Removed. No backend implemented
	it.

2007-08-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-fuzzy-upgrade-notice): New function.  Bound to
	the key where slime-fuzzy-complete-symbol used to be.

2007-08-22  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-close-all-parens-in-sexp): Fix interplay with
	`slime-close-parens-limit'. This should also affect
	`slime-complete-form' (C-c C-s) in a positive way.

2007-08-19  Helmut Eller  <heller@common-lisp.net>

	* contrib: New directory.  Move fuzzy completion code to that
	directory.

	* swank.lisp (swank-require): New function to load contrib code.
	(*find-module*, module-filename, *load-path*, merged-directory)
	(find-module, module-canditates): New. Pathname acrobatics for
	swank-require.

	* swank-loader.lisp: Compile (but don't load) contribs.
	(*contribs*, contrib-source-files): New.

2007-08-16  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-process-available-input): Correct yesterday's
	change: the buffer a request was originally performed in doesn't
	necessarily exist at this time anymore, so we check for buffer
	liveness now.

	 The problem arised when quitting in SLDB which would cause Swank
	 to send a `:debug-return' message before the acknowledgement
	 message for `sldb-quit' is sent. So the acknowledgement is
	 received in a context where the sldb-buffer is closed already.

2007-08-15  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-process-available-input): Make sure that the
	event received from SWANK is processed in the context of the
	original buffer the request of the response was performed in.
	Previously, the clauses of `slime-rex' were processed in the
	internal *cl-connection* buffer. And as a result the continuations
	passed to `slime-eval' and `slime-eval-async' ditto.

2007-08-15  Tobias C. Rittweiler <tcr@freebits.de>

	Make `M-.' work on definitions outside the current restriction.
	`M-,' will also properly restore the narrowing as of before the
	jump. Similiarly for quiting from the compilation notes buffer and
	the Xref buffers.

	* slime.el (slime-narrowing-configuration, slime-emacs-snapshot),
        (current-slime-narrowing-configuration),
        (set-slime-narrowing-configuration),
	(current-slime-emacs-snapshot),
	(set-slime-emacs-snapshot),
	(current-slime-emacs-snapshot-fingerprint): New. Emacs' window
	configurations do not restore narrowing, so introduce a
	snapshot facility that contains the necessary information.

	* slime.el: Various renaming and adaptions in the Slime temp
	buffer, xref, goto-definition and compilation notes section to use
	the newly introduced snapshots instead of mere window
	configurations.

	* slime.el: (slime-highlight-notes, slime-remove-old-overlays):
	Still operate on whole buffer, but restore previous restriction if
	there was any.
        (slime-goto-location-position): Now widens the buffer to properly
	jump to definitions outside of the current restriction.

	* slime.el (slime-push-definition-stack),
	(slime-pop-find-definition-stack): Now also stores information
	about narrowing on the definition stack, in order to properly
	restore narrowing on `M-,'.

	* slime.el (def-slime-test narrowing): Test case for properly
	dealing with narrowing.

	* slime.el (slime-buffer-narrowed-p): New function, tests whether
	the current buffer is narrowed or not.
	(save-restriction-if-possibly): Like `save-restriction', but not
	as strict---see doc string.

	* slime.el (slime-length=): New function; semantically the same
	as (= (length seq) n), but more efficiently implemented for lists.
	Changed the above pattern into a call to SLIME-LENGTH= where
	appropriate.

2007-08-05  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (backtrace): Handle printer errors while printing a
	frame.  This makes debugging print-object methods with SLIME
	easier.  Reported by Utz-Uwe Haus.

2007-08-02  Tobias C. Rittweiler  <tcr@freebits.de>

	* slime.el (slime-kill-all-buffers): Now also kills all buffers
	beginning with a `*SLIME' prefix (like, for instance, `*SLIME
	Apropos*', or `*SLIME macroexpansion*'.)

2007-06-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (def-slime-selector-method): Revert Marco's change from
	2007-05-23.  BODY can return a buffer name, like "*slime-events*".
	Handle that and never ignore invalid return values.  Force BODY to
	abort if there's no suitable buffer.  Why would you want to switch
	buffers if the desired buffer doesn't exist?

2007-06-27  Tobias C. Rittweiler <tcr@freebits.de>

	Fixing `C-c M-q' at the REPL. Thanks to André Thieme for pointing
	out that it has been broken since several months.

	* slime.el (slime-reindent-defun): Use functions
	`slime-beginning-of-defun' and `slime-end-of-defun' that were
	introduced in the last changeset.

2007-06-16  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el: Pressing `C-M-a' (beginning-of-defun) in midst of the
	last REPL prompt directs the cursor to the beginning of the
	prompt. Pressing it again, would do nothing; now it moves the
	cursor to the start of the previous prompt (as it's consistent
	with the behaviour when the cursor was placed midst one of the old
	prompts.)

	Likewise for `C-M-e' (end-of-defun)

	Additionally fixing `C-c C-s' (slime-complete-form) at the REPL.

	(slime-keys): New bindings for `C-M-a' and `C-M-e' to
	SLIME-BEGINNING-OF-DEFUN and SLIME-END-OF-DEFUN respectively.
	(slime-keys): Making `C-c C-q' (slime-close-parens-at-point)
	obsolete, as it didn't work correctly on the REPL.
	(slime-repl-mode-map): Removed bindings for `C-M-a' and `C-M-e',
	as they're now inherited from SLIME-KEYS.
	(slime-repl-beginning-of-defun, slime-repl-end-of-defun): Jump to
	the previous (next) prompt if called twice in a row.

	(slime-close-parens-at-point): Commented out.
	(slime-close-all-sexp): Renamed to SLIME-CLOSE-ALL-PARENS-IN-SEXP.
	(slime-close-all-parens-in-sexp): Modified to take
	SLIME-CLOSE-PARENS-LIMIT into account.
	(slime-complete-form): Use SLIME-CLOSE-ALL-PARENS-IN-SEXP.


2007-05-24  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Fixed regression in completion: "swank[TAB]" would
	previously be completed to "swank-backend:"; "get-internal[TAB]"
	would be completed to "get-internal-r-time" (instead of simply
	"get-internal-r"); and "custom:*comp[TAB]" would be completed to
	"custom:*compiled-" on CLISP, even though there's a
	"custom:*complile-".

	Thanks to Ken Causey for helping me find the first two.

	(completions): Revert changes from 2007-05-11.
	(longest-compound-prefix): Fixed to properly generate a compound
	_prefix_.

2007-05-23  Marco Baringer  <mb@bese.it>

	* slime.el (def-slime-selector-method): Allow the selector body to
	not return a buffer. This means that, instead of being to forced
	to signal an error when a choosen buffer can't be found (like
	choosing d when there are no debugger buffers) can simply display
	a message.

	Fix handling of auto-flushing on sbcl:

	* swank-sbcl.lisp (*auto-flush-interval*): New variable
	controlling how often streams are flushed.
	(*auto-flush-lock*): New lock guarding access to the shared
	variable *auto-flush-streams*.
	(make-stream-interactive): Wrapped access to *auto-flush-streams*
	in a call-with-recursive-lock-held.
	(flush-streams): Wrapped in call-with-recursive-lock-held.

2007-05-17  Martin Simmons <martin@lispworks.com>

	* swank-lispworks.lisp (lispworks-inspect): Fix hanging caused by
	mapcan, i.e. nconc, on a constant list returned by
	label-value-line.

2007-05-17  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-complete-form): Only insert a closing
	parenthesis if the form is not already closed. Reported by and
	adapted from Mac Chan.

2007-05-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Fixed bug in completion as previously "swank:[tab]"
	would correctly list all the symbols in SWANK, but would
	simultaneously append a spooky dash to the original
	string ("swank:-").

	(completions): Strip off the package identifier part, and only
	compute the longest compound prefix for the actual symbol
	identifiers.
	(untokenize-symbol): New function. Inverse of TOKENIZE-SYMBOL.
	(format-completion-result): Use UNTOKENIZE-SYMBOL.

2007-05-17  Dustin Long <dlong@stevens.edu>

	* swank-ecl.lisp (compile-from-stream): Fixed typo that prevented
	`slime-compile-defun' from actually compiling a function.

2007-05-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-loader.lisp (*sysdep-files*): Load the auxiliary files
	swank-source-*.lisp before swank-sbcl.lisp to avoid
	undefined-function style warnings.

2007-05-16  Takehiko Abe <keke@gol.com>

	* swank.lisp (inspect-for-emacs file-stream, stream-error): Fixed
	typo in keyword arg; it's `:refreshp', not `:refresh'.

2007-05-14  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el: Fixed proper handling of the abortion of a
	request. (For instance, when calling (SWANK::ABORT-REQUEST "FOO")
	from the REPL.)

	(sldb-quit): Updated the DESTRUCTURE-CASE clause for (:abort) to
	take an argument.
	(sldb-continue): Likewise.
	(sldb-invoke-restart): Likewise.
	(sldb-break-with-default-debugger): Likewise.
	(sldb-return-from-frame): Likewise.
	(sldb-restart-frame): Likewise.
	(slime-repl-eval-string) Likewise.
	(slime-repl-show-abort): Now also inserts the reason for the abort
	into the REPL buffer.

	* swank.lisp (eval-for-emacs): Remove code that would suggest that
	it's possible to use the rex `(:abort ...)' with more than one
	argument.

2007-05-14  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Liberated from unnecessary style-warnings!

	(eval-for-emacs): Don't use SLOT-VALUE on condition objects!
	(inspect-bigger-piece-actions): Changed from DEFMETHOD to DEFUN.
	(inspect-whole-thing-action): Likewise.
	(inspect-show-more-action): Likewise.
	(make-symbols-listing): Adds an explicit DEFGENERIC.
	(menu-choices-for-presentation): Likewise.

	(make-symbols-listing (eql :classification)): Use `(loop for k
	being EACH hash-key ...)' rather than `(loop for k being THE
	hash-key)', to omit the justified style-warning from CLISP.

2007-05-14  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (package-names): Make sure to return a fresh list.
	(fuzzy-find-matching-packages): Use PACKAGE-NAMES.
	(list-all-package-names): Use PACKAGE-NAMES.

2007-05-13  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-pretty-lambdas): Removed. If you really want
	this, please use one of the external ressources that provide this;
	for instance, `pretty-lambda.el', `pretty-greek.el', or even
	`pretty-symbols.el'. For more information, please see

	   http://www.emacswiki.org/cgi-bin/wiki/PrettyLambda

2007-05-11  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (fuzzy-find-matching-symbols): Modified to take
	package nicknames into account. Previously, fuzzy completing on
	nicknames did (except for some incidental cases) not work. Thanks
	to Luís Oliveira and Attila Lendvai for pointing that out.

2007-05-11  Tobias C. Rittweiler <tcr@freebits.de>

	Removed support for completing to the longest compound pre- and
	suffix with the default completion method (C-c TAB, or just TAB on
	the REPL), because it has been causing trouble all the time, but
	didn't offer any real advantage besides niftiness. E.g.:

	    previous behaviour:

	      asdf:*com TAB => asdf:*compile-file--behaviour*

	    now simply:

	      asdf:*com TAB => asdf:*compile-file-

	For discussing on this subject, please see the mail with
	message-id <87y7l53lch.fsf@freebits.de> that was posted to
	slime-devel 2007-04-06, or alternatively:

	http://common-lisp.net/pipermail/slime-devel/2007-April/006087.html

	* swank.lisp (make-compound-prefix-matcher): New function.
	Abstracted from COMPOUND-PREFIX-MATCH.
	(compound-prefix-match): Use MAKE-COMPOUND-PREFIX-MATCHER.
	(compound-prefix-match/ci/underscores): Removed.

	(longest-completion): Renamed to LONGEST-COMPOUND-PREFIX. Changed
	to only return a compound prefix, instead of a concatenation of a
	compound prefix and a compound suffix. Added an &optional
	parameter to specify what delimeter the passed string is
	compounded with.
	(tokenize-completion): Takes additional parameter to specify the
	delimeter for tokenization.
	(longest-completion/underscores): Removed; not needed anymore.
	(tokenize-completion/underscores): Likewise.
	(untokenize-completion/underscores): Likewise.

	(completions): Slight docstring modification, also added an
	examplary use case; use LONGEST-COMPOUND-PREFIX instead of
	LONGEST-COMPLETION.
	(completions-for-character): Use LONGEST-COMPOUND-PREFIX, and
	MAKE-COMPOUND-PREFIX-MATCHER.
	(completions-for-keyword): Use LONGEST-COMPOUND-PREFIX.

2007-05-11  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (apropos-symbols): Really use MAKE-REGEXP-MATCHER.

2007-05-10  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Previously when using SLIME-APROPOS-PACKAGE, only
	those symbols were considered whose home package matched the
	given package; this would, however, prevent all those symbols from
	being listed that are imported from another package, and then
	exported again in the package they got imported into. (As an
	example, SWANK:RESTART-FRAME is actually from SWANK-BACKEND.)

	(apropos-matcher): Renamed to MAKE-REGEXP-MATCHER.
	(make-regexp-matcher): Changed to only match for a given regexp.
	(apropos-symbols): Use MAKE-REGEXP-MATCHER.

2007-05-10  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el: Fix macroexpanding on things like ",(loop ...)".

	(slime-sexp-at-point-for-macroexpansion): New function; like
	SLIME-SEXP-AT-POINT-OR-ERROR, but fixes up some misbehaviour with
	respect to macroexpansion.
	(slime-eval-macroexpand, slime-eval-macroexpand-inplace): Use the
	new function.

2007-05-10  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el: Within the Slime Inspector, `S-Tab' will now also work
	 on X.  Furthermore `Tab' and `S-Tab' will now correctly wrap
	 around the beginning and end of the buffer; priorly it'd hang on
	 the beginning with a message "Beginning of buffer", and would
	 require an additional `S-Tab'.

	(slime-inspector-mode-map): Attached `[backtab]' to
	SLIME-INSPECTOR-PREVIOUS-INSPECTABLE-OBJECT, as Emacs translates
	`S-Tab' to `Backtab' on X.
	(slime-find-inspectable-object): New function; finds next or
	previous inspectable object.
	(slime-inspector-next-inspectable-object): Mostly rewritten. Use
	SLIME-FIND-INSPECTABLE-OBJECT to make the code clearer.

2007-04-19  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend.lisp (label-value-line): Add :newline as &key
	argument; if true (the default) inserts a newline.

	* swank.lisp (inspect-for-emacs-list): Don't add a newline after
	the last value of the list.

2007-04-18  Marco Baringer  <mb@bese.it>

	* swank.lisp (log-event): Setup the printer so that, no matter
	what the global values of the *print-XYZ* variables, this function
	works as expected.
	(*debug-on-swank-error*): New variable.
	(defpackage :swank): Export *debug-on-swank-error*.
	(with-reader-error-handler): When *debug-on-swank-error* is
	non-nil drop into a debugger.
	(dispatch-loop): Idem.

2007-04-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Instead of just having all the symbols of a package
	listed alphabetically in the inspector page recently introduced
	for that purpose, add a button to that page to group them by their
	classification.

	(%package-symbols-container): New slot GROUPING-KIND.
	(%make-package-symbols-container): New function; wraps around
	%%MAKE-PACKAGE-SYMBOLS-CONTAINER, which will actually create the
	structure. We need this, to make GROUPING-KIND an entirely
	internal affair.

	(make-symbols-listing): New generic function to dispatch on
	GROUPING-KIND.
	(make-symbols-listing :symbol): Just the stuff that was priorly
	wired into INSPECT-FOR-EMACS (%PACKAGE-SYMBOLS-CONTAINER).
	(make-symbols-listing :classification): New; returns the passed
	symbols grouped by their classification.
	(inspect-for-emacs %package-symbols-container): Most code split
	off into MAKE-SYMBOLS-LISTING.

2007-04-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (swank-compiler): Fix the return value to always be a
	list of two elements even if the abort restart is invoked which
	originally just returned NIL. (Which wouldn't play with the recent
	change to use DESTRUCTURING-BIND in SLIME-COMPILATION-FINISHED.)

2007-04-17  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (inspect-for-emacs %package-symbols-container):
	Revert Marco's change from 2007-04-08; he had the good idea of
	adding a facility to jump to the relevant source line of a symbol,
	but `M-.' is already bound to SLIME-FIND-DEFINITION in the
	inspector, which is a nicer way of doing this alltogether.

2007-04-16  Takehiko Abe <keke@gol.com>

	* swank-openmcl.lisp (accept-connection, find-external-format):
	utf-8 support.

2007-04-16  Marco Baringer <mb@bese.it>

	* slime.el (slime-with-xref-buffer): Added missing ,

2007-04-16  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el: Pressing `q' in *compiler notes* after a `C-c C-k' or
	`C-c M-k' would not probably restore the original window
	configuration. Fix that.

	(slime-get-temp-buffer-create): New &key arg WINDOW-CONFIGURATION.
	(slime-with-xref-buffer): Likewise.

	(slime-compilation-finished): New &optional arg WINDOW-CONFIG.
	(slime-maybe-show-xrefs-for-notes): Likewise.
	(slime-show-xrefs) Likewise.
	(slime-maybe-list-compiler-notes): Likewise.
	(slime-list-compiler-notes): Likewise.

	(slime-compilation-finished-continuation): Renamed to
	SLIME-MAKE-COMPILATION-FINISHED-CONTINUATION.

	(slime-make-compilation-finished-continuation): Now takes two
	args, the current buffer and optionally the current window config
	to be restored.

	(slime-compile-file): Save current window configuration before
	popping up the REPL for compilation output, pass it down.
	(slime-easy-menu): Add entry for SLIME-UNTRACE-ALL.

2007-04-16  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (fuzzy-find-matching-packages): Fix a small typo that
	prevented interpreting NIL as the argument TIME-LIMIT-IN-MEC to
	mean an infinite time limit. This bug propagated up to explicit
	calls to FUZZY-COMPLETIONS, like
	   (swank:fuzzy-completions "mvb" "COMMON-LISP") => (NIL, T)

	(format-fuzzy-completions): Renamed to FORMAT-FUZZY-COMPLETION-SET

	(format-fuzzy-completion-set): Accomodated to recent changes of
	the return value of FUZZY-COMPLETIONS; changed the docstring to
	make it explicit that this function is supposed to take the return
	value of FUZZY-COMPLETION-SET.

	* slime.el (slime-compilation-finished): Don't use
	MULTIPLE-VALUE-BIND for list destructuring, only because multiple
	values happen to be implemented via lists in elisp!
	(slime-fuzzy-completions-mode): Added an detailed explanation to
	the docstring of how Fuzzy Completion works and how it'ss supposed
	to be worked with.
	(slime-fuzzy-explanation): Shortened to reference to
	SLIME-FUZZY-COMPLETIONS-MODE for help on fuzzy completion.
	(slime-fuzzy-choices-buffer): Set BUFFER-QUIT-FUNCTION to
	SLIME-FUZZY-ABORT to make it correctly exit fuzzy completion when
	pressing `Esc Esc Esc' (`M-Esc Esc').

2007-04-12  Nikodemus Siivola <nikodemus@random-state.net>

	* swank-sbcl.lisp (emacs-buffer-source-location): Add &allow-other-keys
	to the descructuring of the source location plist in order to accept
	:emacs-directory.

2007-04-09  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspector-content-for-emacs): Look for refresh
	keyword argument in :action links.
	(inspect-whole-thing-action, inspect-show-more-action): Update for
	new :action argument handling.
	(inspect-for-emacs stream, inspect-for-emacs stream-error): Pass
	:refresh nil on :action links.
	(action-part-for-emacs): Set both lambda and refresh in the
	*inspectee-actions* array.
	(inspector-call-nth-action): *inspectee-actions* now holds both
	the function and the boolean specifying whether to refresh or not.

	* swank-backend.lisp (inspect-for-emacs): Docstring update.

	* slime.el (slime-inspector-operate-on-point): Allow the action
	calls to return nil.

2007-04-08  Marco Baringer  <mb@bese.it>

	* .cvsignore: Added *.lx64fsl (openmcl on linux fasls).

2007-04-08  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspect-for-emacs): Added 'jump to source' action
	for symbols in the new package-symbol browser.

2007-04-08  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Implemented a new special inspector page for
	displaying internal (external, &c) symbols that display
	classification flags additionally to each symbol, similiar to the
	content of a *Fuzzy Completion* buffer.  Furthermore, added the
	possibility to display all symbols that are /present/ in a
	package. Combined with cleanup of the code parts in question.

	(symbol-status): New function. Returns the status of a symbol in a
	given package (:internal, :external &c.)

	(symbol-external-p): Adapted to use new function SYMBOL-STATUS.

	(symbol-classification->string): New function. Converts a list of
	classification flags into a concise string representation.

	(%package-symbols-container): New struct. We need a unique type to
	dispatch in INSPECT-FOR-EMACS for the new inspector page, use this
	as a wrapper structure.

	(inspect-for-emacs package): Reorganized to not cause too much eye
	cancer; now with a saner maximum column width. Changed to make use
	of new SYMBOL-STATUS, for code reuse. Also changed to make use of
	new %PACKAGE-SYMBOLS-CONTAINER to let a new page pop up in Emacs
	if the user wants to access the list of symbols of the package.
	Added such a possibility to access all `present' symbols.

	(inspect-for-emacs %package-symbols-container): New method.
	Displays all symbols wrapped up in the container structure
	combined with their classification flags as determined by
	CLASSIFY-SYMBOL.

2007-04-08  Luís Oliveira <loliveira@common-lisp.net>

	* swank-backend.lisp (compute-sane-restarts): New interface.
	* swank-clisp.lisp: Fix tabs and trailing whitespace.
	(compute-sane-restarts): Implement new interface.

2007-04-08 Takehiko Abe <keke@gol.com>

	* swank-openmcl.lisp (xref-locations):

2007-04-08  Marco Baringer <mb@bese.it>

	* swank.lisp (fuzzy-completion-set): Use two check-type forms
	instead of a place like (values limit time-limit-in-msec). While
	sbcl seems to accept this form openmcl doesn't and it's not clear
	from the spec that this is allowed.

2007-04-07 Harald Hanche-Olsen <hanche@math.ntnu.no>

	* slime.el (sldb-mode-map): Added key definition for follow-link.

2007-04-06  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Making fuzzy completion regard the time limit
	correctly. Also make it properly use microseconds as time
	granularity and inform the Emacs side if the time limit has
	exhausted. Additionally, over all minor and cosmetic changes:

	(fuzzy-completions, fuzzy-completion-set): Returns now
	additionally a flag indicating whether the time limit has
	exhausted under the hood. Accomodated docstring accordingly.

	(fuzzy-create-completion-set): Changed to correctly catch and
	propagate the remaining time limit to the actual match functions,
	and return once time limit has exhausted. Some aesthetical code
	reorganization.

	(get-real-time-in-msecs): New function.

	(fuzzy-find-matching-symbols, fuzzy-find-matching-packages):
	Correctly regard the time limit. Use new function
	GET-REAL-TIME-IN-MSECS for that purpose. Return the remaining
	time limit as second value.

	* slime.el (slime-fuzzy-complete-symbol): Accomodated to deal with
	the additionally returned flag of SWANK:FUZZY-COMPLETIONS. Pass
	the flag by.
	(slime-fuzzy-choices-buffer): Pass interruption flag by.
	(slime-fuzzy-fill-completions-buffer): If time limit has exhausted
	during completion retrieval, show an informational indication as
	last entry in *Fuzzy Completion*.
	(slime-fuzzy-last): New variable. To hold the last real completion
	choice previous to the (possible) Time Limit Exhausted information.
	(slime-fuzzy-next): Accomodated to not go beneath SLIME-FUZZY-LAST.

2007-04-06  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp (tokenize-symbol, tokenize-symbol-thoroughly):
	Previously these functions said a string representing a symbol is
	internal exactly if it contained "::" as substring. Now they say
	additionally so for symbols without any package identifier, as
	they are internal to am implicit current package. (Otherwise
	will break fuzzy completion.)

	(tokenize-symbol): Added docstring.

	* swank.lisp (format-completion-result): Fixed formation
	for the case that PACKAGE-NAME is NIL but INTERNAL-P is T.

2007-04-06  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Making fuzzy completion semantically right from a
	user perspective. As an example on SBCL, "sb:with- C-c M-i" will
	display all exported "with"-style macros in all sb-* packages from
	now on. :)

	(parse-completion-arguments): Replacing with a semantically-sound
	implementation, as the previous one was a bit confused. Clarifying
	docstring. Adding commentary table of various constellations of
	returned values for thorough explanation.

	(carefully-find-package): Removed. Obsolete by above change.

	(defstruct fuzzy-matching): Introduced to make internally-used
	datastructure explicit. Distinguishing ``completion chunks''
	between those pertaining to the symbol itself and those to the
	package identifier.

	(convert-fuzzy-completion-result): Renamed to
	FUZZY-CONVERT-MATCHING-FOR-EMACS.

	(fuzzy-convert-matching-for-emacs): Accomodating for the new
	datastructure. Only the chunks pertaining to the symbol itself are
	fixed up positionally, the package-chunks are untouched.
	Necessary for letting package identifiers be highlighted within
	*Fuzzy Completions* in cases like "sb:with- C-c M-i."

	(fuzzy-completion-set): Taking out most code to become new
	function FUZZY-CREATE-COMPLETION-SET.

	(fuzzy-create-completion-set): Doing all the hard work. Crux of
	this changeset. so to speak. Largly rewritten to accomodate all
	different cases of PARSE-COMPLETION-ARGUMENT.

	(fuzzy-find-matching-symbols, fuzzy-find-matching-packages):
	Accomodating to new datatstructure FUZZY-MATCHING. Adapting
	docstring accordingly.

	* swank-backend.lisp: Export WITH-STRUCT.

	* swank.lisp (eval-for-emacs, fuzzy-completions):
	Various trivia like fixing spelling and indentation.

2007-04-06  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-fuzzy-highlight-current-completion): Fix
	off-by-one error that causes the currently selected
	completion in the *Fuzzy Completion* buffer be highlighted
	one char too far.

2007-04-06  Tobias C. Rittweiler <tcr@freebits.de>

	* swank.lisp: Cleanup of parts of the fuzzy completion code.
	Additionally a couple of enhancements. As follows:

	(fuzzy-completions, fuzzy-completion-selected): Minor
	stylistic and clarifying modifications of the docstrings.

	(fuzzy-find-matching-symbols): Huge code reorganization.
	Organizing relevant code into local function TIME-EXHAUSTED-P,
	renaming local function SYMBOL-MATCH to PERFORM-FUZZY-MATCH,
	making previously required argument EXTERNAL to new &key
	argument :EXTERNAL-ONLY, clarifying docstring.

	(fuzzy-find-matching-packages): Making its return value
	conformant to that of FUZZY-FIND-MATCHING-SYMBOLS, i.e.
	instead of returning, among others, a package's name as
	string, it now returns a symbol representing the package.
	Accomodates the docstring accordingly.

	(fuzzy-completion-set): Minor typographical fix in docstring.
	Changing local function CONVERT to use MAP-INTO instead of
	doing it essentially manually. Accomodating to changes of
	FUZZY-FIND-MATCHING-SYMBOLS, resp. -PACKAGES.

	(fuzzy-completion-set):	Additional new feature:
	The returned completions are sorted alphabetically by the
	matched completion string before sorted by its score.
	Affects especially the list of all possible completions when
	the user hits fuzzy-completion on an empty string within Emacs;
	also makes the potential limitness of the listed completions
	clearer to the end user of SLIME.

	(classify-symbol): New function. Returns a list with keywords
	that classifies a given symbol. (E.g. :BOUNDP, :MACRO &c)
	Supersedes parts of CONVERT-FUZZY-COMPLETION-RESULT,
	implementing them in a more straightforward and proper way;
	removes prior KLUDGE in that part of the original function.

	(convert-fuzzy-completion-result): The above changes made
	it possible to simplify this function drastically. Now uses
	the newly introduced function CLASSIFY-SYMBOL.

	* slime.el: Minor stylistic changes. Additionally:
	(slime-fuzzy-insert-completion-choice):
	(slime-fuzzy-fill-completions-buffer) : Adding use of the
	:PACKAGE classification flag returned by SWANK:FUZZY-COMPLETIONS.
	This flag is called "p".

2007-04-06  Neil Van Dyke  <neil@neilvandyke.org>

	* slime.el (sldb-insert-frame): Added mouse-face to frame label
	and expression in Backtrace.
	(sldb-insert-frames): Added mouse-face to "--more--" label in
	Backtrace.

2007-04-06 Michael Weber <michaelw+slime@foldr.org>

	* slime.el (slime-call-defun): insert the closing parenthesis for
	the form.

2007-04-06  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (package swank-mop): Added
	slot-makunbound-using-class.

2007-03-29  Nikodemus Siivola <nikodemus@random-state.net>

	* swank-sbcl.lisp (swank-compile-string): save the original
	directory into the source plist as :emacs-directory.
	(make-definition-source-location): use the :emacs-directory from
	the source plist and guess-readtable-for-filename to determine the
	correct readtable for string-compiled definitions.

2007-03-29  Nikodemus Siivola <nikodemus@random-state.net>

	* swank.lisp (*macroexpand-printer-bindings*): add *print-lines*
	to defaults (NIL).
	(find-definitions-for-emacs): use unless instead of cond.

2007-03-25  Douglas Crosher <dcrosher@common-lisp.net>

	* slime.el (with-selected-window): define for compatibility with
	Emacs 21.

2007-03-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (menu-choices-for-presentation): Offer a
	"disassemble" menu item for functions.

2007-03-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-read-port-and-connect): Fix race condition:
	retry one more time if the port file is empty. Pop up the debugger
	on other errors.
	(slime-attempt-connection): Moved to toplevel.
	(slime-timer-call): New. Used by slime-attempt-connection.
	(slime-cancel-connect-retry-timer): New.
	(slime-abort-connection): Use it.
	(slime-repl-insert-prompt): Use insert-before-markers. This fixes
	some redisplay problems, but I don't know why.  Also: remove the
	timer for async output.
	(slime-repl-move-output-mark-before-prompt): Removed.
	(slime-repl-save-merged-history): Use with-temp-message.
	(slime-goto-location-buffer): Support Zip files.
	(sldb-quit): Don't print "Evaluation aborted".

2007-03-22  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-scratch-buffer): Respect the syntax text
	properties of presentations.

2007-03-21  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (lookup-presented-object): The presentation id of
	frame locals now includes the thread id; ignore it for now.

	* slime.el (slime-copy-presentation-at-mouse-to-point): Manually
	invoke the after-change function, so that the presentation overlay
	is created even if we paste to non-REPL buffers.
	(slime-menu-choices-for-presentation): Evaluate
	menu-choices-for-presentation-id in the right buffer, thus in the
	right Lisp thread.  Reported by Attila Lendvai.
	(slime-menu-choices-for-presentation): Show the id of the presentation.
	(sldb-insert-locals): Include the thread id in the presentation id.

2007-03-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-eval-string, slime-repl-insert-result):
	Support the presentation-less old protocol.
	(slime-goto-location-position): Use column number if available.

2007-03-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (completion-output-symbol-converter): Fix completion
	for mixed-case symbols that need escaping in readtable-case
	:upcase or :downcase.

	* slime.el (slime-copy-presentation-at-mouse-to-point)
	(slime-copy-presentation-at-mouse-to-kill-ring): New commands.
	(slime-menu-choices-for-presentation): Change interface.  New
	menu options, Copy to kill-ring, Copy to point.
	(slime-presentation-menu): Change call to
	slime-menu-choices-for-presentation.

2007-03-20  Takehiko Abe  <keke@gol.com>

	* swank-openmcl.lisp (hash-table-weakness): fix typo

2007-03-14  Christophe Rhodes  <csr21@cantab.net>

	* slime.el (slime-search-suppressed-forms): handle multiple
	conditionals on the same line.

2007-02-26  Nikodemus Siivola <nikodemus@random-state.net>

	* swank.lisp (inspect-for-emacs): Add support for inspecting
	non-decodable float entities like NaNs and infinities.

2007-02-25  Tobias C. Rittweiler <tcr@freebits.de>

	* swank-backend.lisp (inspect-for-emacs): Remove reference to
	inexistent argument from docstring.

2007-02-25  Harald Hanche-Olsen <hanche@math.ntnu.no>

	* slime.el (slime-init-keymaps): Use vectors when defining keys,
	because e.g. (define-key (string ?\C-c) ...) doesn't work in the
	emacs-unicode-2 branch.  Some strings are still there.

2007-02-25  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-delete-swank-port-file): Don't use
	display-warning; that's not available everywhere.
	(slime-repl-update-banner): Insert the date only if the buffer is
	empty.
	(slime-list-compiler-notes): Fetch the notes only if called
	interactively.
	(slime-set-query-on-exit-flag): New function, to avoid compiler
	warnings about obsolete function process-kill-without-query.
	(slime-defun-if-undefined): Perform the test at runtime not at
	compile time.  Reported by Lennart Staflin.

	* swank.lisp (guess-package): Renamed from
	guess-package-from-string.
	(set-package): Use it.

2007-02-22  Juho Snellman  <jsnell@iki.fi>

	* slime.el (slime-start-lisp): Don't cd if no directory was specified.
	(slime-maybe-start-lisp): Pass directory argument to slime-start-lisp
	also in other cond branch.
	(slime-restart-sentinel): Pass a NIL directory to slime-start-lisp.

2007-02-21  Marco Baringer  <mb@bese.it>

	* slime.el (slime-start): Added :directory argument and pass it to
	slime-maybe-start-lisp.
	(slime-maybe-start-lisp): Added directory argument and pass it to
	slime-start-lisp (but not slime-reinitialize-inferior-lisp-p)
	(slime-start-lisp): Added directory argument. Used to set buffer's
	directory before starting the inferior lisp.

2007-02-17  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-find-tag-if-tags-table-visited): New function.
	(slime-edit-definition-fallback-function): Offer it as a value
	for customization.

2007-02-05  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (sldb-insert-locals): Repair presentation markup of
	frame locals.

2007-02-04  Antonio Menezes Leitao <aml@gia.ist.utl.pt>

	* swank-lispworks.lisp (dspec-file-position): Bind
	*compile-file-pathname*, *compile-file-truename*, *load-pathname*
	and *load-truename* in dspec-file-position.

2007-02-04  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-write-string): When writing a :repl-result,
	update the slime-output-end marker for the purpose of asynchronous
	output (when *use-dedicated-output-stream* is true).
	Reported by Madhu <enometh@meer.net>.

2007-02-03  Marco Baringer  <mb@bese.it>

	* slime.el (slime-delete-swank-port-file): Fix typo in
	warning message.

2007-02-02  Marco Baringer  <mb@bese.it>

	Warn, as opposed to bailing out with an error, when deleting the
	port file fails. Patch by: Samium Gromoff
	<_deepfire@feelingofgreen.ru>

	* slime.el (slime-delete-swank-port-file): New function.
	(slime-inferior-connect): Use slime-delete-swank-port-file.
	(slime-read-port-and-connect): Use slime-delete-swank-port-file.

2007-01-31  Marco Baringer  <mb@bese.it>

	* slime.el (slime-repl-update-banner): Restore animation.
	(slime-startup-animation): restore.

2007-01-30  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-complete-symbol-function): Restore old default.
	(set-keymap-parents): Deleted.
	(slime-startup-animation): Deleted.
	(slime-read-from-minibuffer): Don't use defun*.
	(slime-repl-terminate-history-search): New.
	(slime-repl-next-matching-input): Use it.

	* slime-autoloads.el: New file.

2007-01-29  Sean O'Rourke <sorourke@cs.ucsd.edu>

	* slime.el (slime-start): Continue even if the user, after
	prompting, didn't recompile the stale .elc file.
	(slime-urge-bytecode-recompile) [xemacs]: Abort immediately if the
	user doesn't want to continue.
	(slime-recompile-bytecode): Don't use byte-compile-warning-types;
	it may not exist in XEmacs.

2007-01-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-recenter-region): Use count-screen-lines instead
	of count-lines.

	* swank.lisp (unparse-name): New function.
	(list-all-package-names): Use it.  This fixes a bug related to
	readtable-case and makes package name completions look prettier.
	Suggested by Harald Hanche-Olsen <hanche@math.ntnu.no>.

2007-01-24  Bill Clementson <billclem@gmail.com>

	* slime.el (slime-call-defun): Put the docstring before
	the (interactive) form so that "C-h f slime-call-defun" will
	return it.

	* slime.el (slime-scratch-mode-map): Changed parent keymap to
	lisp-mode-map to prevent unnecessary duplication of slime-mode-map
	bindings and so that lisp-mode-map key bindings are present in the
	slime scratch buffer. Change identified by Ariel Badichi.

2007-01-20  Luke Gorrie  <luke@synap.se>

	* slime.el (slime): Use COMMAND and CODING-SYSTEM parameters
	Previously they were ignored.

2007-01-17  Christian Lynbech <christian.lynbech@ericsson.com>

	* slime.el (slime-init-command): Use expanded files when writing
	the LOAD form for swank.

2007-01-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Cleanups for the repl history code.
	(slime-repl-mode-map): Don't shadow M-C-d.
	(slime-repl-history-replace): Simplified.
	(slime-repl-history-search-in-progress-p): New.
	(slime-repl-position-in-history): If there's no match return
	out-of-bound positions instead of nil.
	(slime-repl-add-to-input-history): Never modify the argument.
	(slime-repl-previous-input): Renamed from
	slime-repl-previous-input-starting-with-current-input.
	(slime-repl-next-input): Renamed from
	slime-repl-next-input-starting-with-current-input
	(slime-repl-forward-input): Renamed from slime-repl-next-input.
	(slime-repl-backward-input): Renamed from
	slime-repl-previous-input.
	(slime-repl-history-pattern): Renamed from
	slime-repl-matching-input-regexp.
	(slime-repl-delete-from-input-history): Simplified.

	(slime-repl-history-map)
	(slime-repl-history-navigation-neutral-commands)
	(slime-repl-jump-to-history-item)
	(slime-repl-previous-or-next-input)
	(slime-repl-starting-with-current-input-regexp)
	(slime-repl-continue-search-with-last-pattern)
	(slime-repl-previous-or-next-matching-input): Deleted.

	(sldb-list-locals, sldb-list-catch-tags): Deleted. Aren't of much
	use anymore.

2007-01-12  Helmut Eller  <heller@common-lisp.net>

	* swank-clisp.lisp: Better classification on frames on the stack.
	Make variables in eval frames accessible to the debugger.
	(frame-type, *frame-prefixes*, frame-to-string, is-prefix-p)
	(frame-string-type, boring-frame-p): New.
	(%frame-count-vars, %frame-var-name, %frame-var-value)
	(frame-venv, next-venv, venv-ref, %parse-stack-values): Replaces
	old frame-do-venv.
	(extract-frame-line, extract-function-name, split-frame-string)
	(string-match): New code to print frames.
	(frame-locals, frame-var-value): Use the new stuff.

	(inspect-for-emacs): Fix various bugs.

	* swank-loader.lisp (compile-files-if-needed-serially): Don't wrap
	everything in a compilation unit.  If we abort on load errors and
	it is confusing to see compiler warnings after the abort message.
	(handle-loadtime-error): CLISP's format implements ~< differently
	as everybody else, so use a explicit pprint-logical-block instead.

	* swank.lisp (list-all-systems-in-central-registry): Don't
	reference asdf directly, that leads to read errors in some
	systems.

2007-01-12  Juho Snellman  <jsnell@iki.fi>

	* slime.el (slime-read-expression-map): Switch the slime-mode-map
	and minibuffer-local-map back the way they were. The previous change
	was made due to a misunderstanding, caused by a keybinding for
	[(return)] apparently being more specific than one for (kbd "RET"),
	even when the former is in a parent keymap and the latter in the
	child.

2007-01-12  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (handle-request): Use 'abort as restart name, but
	bind *sldb-quit-restart* to the restart returned by find-restart.
	Also use a slighly friendlier message, because newbies seem to
	invoke the ABORT restart instead of pressing q in the debugger.

2007-01-12  Edi Weitz  <edi@agharta.de>

	* slime.el (slime-find-asd): Remove file extension.

	(slime-read-system-name): Use SWANK:LIST-ASDF-SYSTEMS.

	* swank.lisp (list-all-systems-in-central-registry): Use only
	pathname name.

	(list-all-systems-known-to-asdf): New function.

	(list-asdf-systems): New function.

2007-01-12  Marco Baringer  <mb@bese.it>

	* slime.el (slime-keys): Remove binding of M-*, restore binding of
	M-,.

2007-01-11  Edi Weitz  <edi@agharta.de>

	* slime.el (slime-repl-test-system, slime-repl-test/force-system):
	New REPL shortcuts.  Patch by Kevin Rosenberg
	<kevin@rosenberg.net>.

2007-01-11  Juho Snellman  <jsnell@iki.fi>

	* slime.el (slime-read-expression-map): restore tab completion in
	the minibuffer. Switch the slime-mode-map and minibuffer-local-map
	around, so that the minibuffer binding for return takes precedence
	over the slime-mode one.

2007-01-11  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspect-for-emacs integer): Don't die if the integer
	can't be expressed as a float.  Patch by Ariel Badichi
	<abadichi@bezeqint.net>.

	* slime.el (slime-keys): Removed binding of M-,

2007-01-11  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Some cleanups for the debugger code: add some outline
	sections and docstrings.

	(sldb-setup): Always display the beginning of the condition
	text. Previously, we always showed the beginning of the backtrace.

	(sldb-prune-initial-frames): Do what the docstring says. Reverted
	to Luke's version.

	(sldb-dispatch-extras): Fix typo.

	(sldb-insert-restarts, sldb-insert-frames)
	(sldb-insert-frame, sldb-fetch-more-frames)
	(sldb-toggle-details, sldb-show-frame-details)
	(sldb-insert-locals): Simplified.
	(sldb-frame-details): New.

	(slime-save-coordinates, slime-coordinates)
	(slime-restore-coordinate, slime-count-lines): New macro and its
	helpers.
	(sldb-recenter-region): Renamed from slime-maybe-recenter-region.

	(sldb-enable-styled-backtrace, sldb-show-catch-tags)
	(sldb-highlight): Deleted. Seem to be obsolete.
	(sldb-add-face): Removed, because it is now the same as
	slime-add-face.

	(sldb-help-summary): Deleted. The docstring for sldb-mode is
	already pretty terse.
	(define-sldb-face): Renamed from def-sldb-face.

	* swank-sbcl.lisp, swank-cmucl.lisp (condition-extras): Fix typo

2007-01-10  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*sldb-printer-bindings*): Add *print-right-margin*.
	(debug-in-emacs): Bind *sldb-printer-bindings* here ...
	(backtrace, debugger-info-for-emacs, frame-locals-for-emacs):
	... and remove redundant bindings here.

2007-01-10  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el: FIX: set-keymap-parents for GNU Emacs was bogus, fixed
	by Ariel Badichi.

2007-01-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-merge-histories): Use (setf (gethash ...)
	instead of puthash, for Emacs 20.

2007-01-09  Juho Snellman  <jsnell@iki.fi>

	SBCL 1.0.1.15 supports restart-frame natively, and uses a different
	debug catch tag interface than earlier versions.

	* swank-sbcl (sbcl-with-restart-frame): New function, detects SBCL
	1.0.1.15 or later.
	(return-from-frame): Another version for 1.0.1.15, using
	sb-debug:unwind-to-frame-and-call
	(restart-frame): Another version for 1.0.1.15, using
	sb-debug:unwind-to-frame-and-call

2007-01-07  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (open-streams): Don't pass nil to make-fn-streams;
	use a dummy function as workaround.  Both arguments must be
	functions and CMUCL checks the types.

2007-01-06  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el: Added set-keymap-parents when not available (GNU
	Emacs). Result: slime bindings while reading expressions from the
	minibuffer.

	* slime.el, swank.lisp: FIX: slime-insert-possibly-as-rectange and
	sldb stuff on newer emacsen

2007-01-04  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el: Added slime-insert-possibly-as-rectangle and use it
	when inserting things here and there. The effect of this is that
	multi-line strings coming from swank (e.g. stuff in sldb) are
	inserted with insert-rectangle, so they are properly indented.

	* swank.lisp: FIX: sort is destructive, call copy-seq at a few
	places. FIX: bind *sldb-printer-bindings* also in
	frame-locals-for-emacs.

2007-01-03  Attila Lendvai  <attila.lendvai@gmail.com>

	* swank.lisp: FIX: drop extra "Slots: " from standard-object's
	inspector presentation

	* swank.lisp: FIX: keyword symbols keep their : when travelling
	from swank to slime

	* slime.el: FIX: older Emacsen have no line-number-at-pos.

	* slime.el: Convert some minibuffer reading defun's to defun* and
	use keywords. Support extra arguments.

	* slime.el: Use set-parent-keymaps when available (xemacs only for
	now) when setting up slime-read-expression-map. The effect of this
	is that the minibuffer will have all the slime-mode-map keys where
	minibuffer-local-map is not overriding.

	* slime.el, swank.lisp: Handle better the case when swank can not
	read anything from the string sent to be inspected. Only bring up
	the debugger when the inspect command is prefixed.

2006-12-31  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Restore the nested-presentations feature.

	* present.lisp (slime-stream-p): Allow sending presentations to
	the repl-results stream.
	(make-presentations-result): Removed.
	(send-repl-results-to-emacs): New.

	* swank.lisp (connection): New slot repl-results (a stream).
	(make-output-function-for-target): New.
	(open-streams): Use it here to also create a stream for REPL results.
	(initialize-streams-for-connection): Store the stream.

2006-12-29  Edi Weitz  <edi@agharta.de>

	* slime.el (slime-find-asd, slime-read-system-name): Only offer
	initial input if system is really in central registry.

2006-12-29  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Simplify the REPL-results protocol.  The results are now printed
	using special :WRITE-STRING events from the Lisp side.

	* slime.el (slime-repl-insert-prompt): Don't insert a result, only
	the prompt.
	(slime-repl-insert-result): Removed.
	(slime-repl-eval-string, slime-repl-show-abort)
	(slime-repl-set-package, slime-output-buffer)
	(slime-repl-update-banner): Change all callers.
	(slime-dispatch-event): Event :WRITE-STRING gets an
	optional argument TARGET, which controls where the string is
	inserted.
	(slime-write-string): Handle targets NIL (regular process output)
	and :REPL-RESULT.

	* swank.lisp (make-presentations-result): Removed.
	(send-repl-results-to-emacs): New function, sends :WRITE-STRING events.
	(listener-eval): Use it here instead of make-presentations-result.

2006-12-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Performance improvement for slime-autodoc-mode, in particular when
	there are REPL results that are long lists.

	* slime.el (slime-repl-mode-beginning-of-defun)
	(slime-repl-mode-end-of-defun): New.
	(slime-repl-mode): Use them as beginning-of-defun-function and
	end-of-defun-function.
	(slime-enclosing-operator-names): Bind
	parse-sexp-lookup-properties to nil, don't parse more than 20000
	characters before point, don't determine exact argument positions
	larger than 64.  Byte-compile this function.

2006-12-24  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el, swank.lisp: Added customizable dwim lookup hook
	support for inspect

	* doc/slime.texi: Small doc fixes by Alfredo Beaumont

	* swank.lisp: Change the order to [set value] [make unbound]. Sort
	slot names in the inspector

2006-12-23  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank-clisp.lisp (make-weak-key-hash-table)
	(make-weak-value-hash-table): Implement for CLISP, so that the
	REPL results history does not cause "memory leaks".

	* slime.el (slime-inspect): Add a dwim-mode keyword argument, move
	all input handling into the interactive spec.  Restore the
	behavior of slime-inspect when point is within a presentation (no
	prompting, no DWIM).
	(slime-inspect-presentation-at-mouse): Don't do DWIM here, so the
	presentation-retrieval expression does not end up on the inspector
	stack.
	(slime-inspector-position): New.
	(slime-inspector-operate-on-point, slime-inspector-reinspect): Use
	it here to make it work on GNU Emacs too.
	(slime-open-inspector): Fix row-col addressing at end of buffer.

2006-12-20  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el: FIX: inspecting presentations from the right click
	menu broke in the inspect refactor

	* slime.el: FIX: slime-fuzzy-target-buffer-completions-mode's
	keymap must always precede other keymaps

	* slime.el, swank.lisp: Extend :write-string with and &optional
	presentation id and use this in present-in-emacs

	* swank.lisp: Added present-in-emacs that prints a presentation of
	the given object in the repl

	* swank.lisp: Return the inspected object when inspecting from the
	lisp side.

	* swank.lisp: Turn off right margin for restart printing, too

2006-12-19  Attila Lendvai  <attila.lendvai@gmail.com>

	* HACKING: Added useful init.el piece into HACKING about
	update-change-log

	* swank.lisp: In all-slots-for-inspector pad slot names to be
	equal length, so the result is more readable

	* slime.el: Fix slime-insert-presentation to handle multi-line
	presentations better (use insert-rectangle)

	* swank.lisp: Properly bind *sldb-printer-bindings* and turn off
	right margin while printing stuff in sldb

	* slime.el: Smarten up the sldb heuristic that drops swank frames

	* swank-allegro.lisp, swank-backend.lisp, swank-openmcl.lisp,
	swank-sbcl.lisp, swank.lisp: Added hash-table-weakness and use it
	in hash-table-inspecting

	* swank.lisp: Hashtable inspecting: added [clear hashtable]
	and [remove entry] actions

	* slime.el, swank.lisp: FIX dwim inspecting to handle (setf
	some-fun) functions, too

	* slime.el: FIX: slime-sexp-at-point for foo::|bar::baz|

	* slime.el: FIX: Properly keep track of slime-buffer-package in
	the inspector

	* swank.lisp: Small: get rid of notes and warnings

	* slime.el, swank.lisp: Added dwim-mode to slime-inspect that
	tries to be smart unless prefixed

	* slime.el: Make slime-fuzzy-complete-symbol the default in the
	belife that it's better for new users

	* swank.lisp: Add (expt 1.2 length) higher scores for longer
	matches in fuzzy completion. A good example: puts "make-instance"
	before "make-string-input-stream" while completing "make-ins"

	* slime.el: Set slime-fuzzy-completion-in-place enabled by default

	* slime.el: Added (cons row col) addressing to
	slime-open-inspector, use in slime-inspector-operate-on-point

	* slime.el: FIX: operate the inspector in the debug thread when
	started from sldb

	* slime.el: Convert some inspector defuns to defun* and use
	keywords. Other minor cleanups.

2006-12-18  Marco Baringer  <mb@bese.it>

	* slime.el (slime-region-for-defun-at-point): end-of-defun and
	beginning-of-defun modify match-data, added a save-match-data to
	prevent this from affecting callers of
	slime-region-for-defun-at-point.

2006-12-15  Edi Weitz  <edi@agharta.de>

	* swank-lispworks.lisp (make-weak-key-hash-table): Weak hash
	tables for Lispworks.
	(make-weak-value-hash-table): Ditto.

2006-12-14  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*sldb-printer-bindings*): *PRINT-LINES* is in
	effect only if *PRINT-PRETTY* is non-NIL, so it better to enable
	the pretty printer.  Suggested by Madhu <enometh@meer.net>.

	* slime.el (slime-expand-abbreviations-and-complete): Emacs
	`choose-completion' (choosing a completion from the *Completions*
	buffer) always replaces text upto (point). So the code which
	figures out an `unambiguous-completion-length' and places the
	point there in `slime-expand-abbreviations-and-complete' causes
	problems: the replacement text gets garbled.  Get rid of the bogus
	`unambiguous-completion-length'.  Patch by Madhu <enometh@meer.net>

	* swank-cmucl.lisp (remove-gc-hooks): The variables
	EXT:*GC-NOTIFY-AFTER* and EXT:*NOTIFY-BEFORE* should hold
	functions and should be NIL. This affects the function
	REMOVE-GC-HOOKS in swank-cmucl.lisp which sets them to
	NIL, (should one happen to use it).  Set them back to the original
	parameters.  Patch by Madhu <enometh@meer.net>

	* slime.el (slime-repl-output-mouseover-face): Fix a pair of extra
	parens.  Patch by Madhu <enometh@meer.net>

2006-12-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-search-buffer-package): Remove Xemacs special
	casing.  There's already a compatibility defun for
	match-string-no-properties.

2006-12-13  Attila Lendvai  <attila.lendvai@gmail.com>

	* swank.lisp: FIX: fuzzy completion for M-V-B. Fix by Madhu.

2006-12-12  Nikodemus Siivola <nikodemus@random-state.net>

	* swank.lisp (inspect-for-emacs integer): Pad the hex formatted
	value to eight digits, "Code-char:" instead of "Corresponding
	character:", "Integer-length:" instead of "Length:",
	"Universal-time:" instead of "As time".
	(inspect-object): Use TYPE-FOR-EMACS instead of TYPE-OF.
	(inspect-in-emacs): New function, analogous to ED-IN-EMACS.

	* swank-backend.lisp (type-for-emacs): New generic function,
	defaults to TYPE-OF for non-integers, and returns FIXNUM or BIGNUM
	for integers.

	* slime.el (destructure-case): Indicate in the error message that
	it was the Elisp destructure-case that failed to avoid confusion.
	(slime-check-eval-in-emacs-enabled): More verbose error message.

2006-12-11  Attila Lendvai  <attila.lendvai@gmail.com>

	* swank.lisp: Added [set value] command for slot inspecting

	* slime.el: Work on repl history navigation, restore old M-p/M-n
	behaviour due to #lisp demand

	Also print the current regexp in the minibuffer messages.  M-p/M-n
	takes the repl input up to the point not the entire input as it
	did before.
	slime-repl-previous/next-input-starting-with-current-input: new
	names for the old M-p/M-n commands History navigation commands
	jump to the end of buffer when point is before the prompt.

	* slime.el: Fix/smarten up temp-buffer-quit

	Now it tries its best to remember the original window config and
	restore it at slime-temp-buffer-quit unless it was changed
	meanwhile. IOW, fix "q" after macroexpand in a macroexpand buffer
	not closing the temp window.
	Also fix the compiler notes usage of the temp buffer.

	* swank-backend.lisp, swank.lisp:
	Added inspect-slot-for-emacs to let users customize it.

	Use all-slots-for-inspector everywhere, render link to both the
	effective and direct slots when both are available.  Dropped
	slot-value-using-class-for-inspector and friends.  Added
	slot-makunbound-using-class to the swank-mop package and added
	a [make-unbound] action to the standard slot presentation.

	* slime.el: FIX: slime-symbol-name-at-point for symbols like
	foo::|bar::baz|

	* .cvsignore, swank.lisp: FIX: Drop #\. and add #\, to escaped
	symbol chars

	* slime.el: Added slime-repl-delete-from-input-history that
	deletes the current history entry when no input is supplied

	* slime.el: slime-repl-kill-input kills the entire input when
	point is at the prompt and resets the history navigation state

	* slime.el:
	Use a hashtable to remove duplicates in slime-repl-merge-histories

2006-12-07  Marco Baringer  <mb@bese.it>

	* swank.lisp (init-inspector): Added eval parameter. If NIL we
	don't eval FORM but limit our selves to cl:read'ing it and
	inspecting that value.

	* slime.el (slime-inspect): If a prefix argument is provided pass
	:eval nil to swank:init-inspector.

2006-12-07  Paul Collins <paul@briny.ondioline.org>

	* hyperspec.el (common-lisp-hyperspec): Strip all text properties
	from the symbol-at-point to avoid problems with read-only text.

2006-12-06  Marco Baringer  <mb@bese.it>

	* slime.el (slime-search-buffer-package): Don't call
	match-string-no-properties if it's not defined (as is on some
	xemacs')
	(slime-repl-clear-buffer): Added optional prefix argument
	specifying how many lines to leave.

2006-12-06  Johan Bockgård  <bojohan+sf@dd.chalmers.se>

	* swank.lisp (fuzzy-completion-set): Don't mix for clauses and
	body clauses in loop.

2006-12-05  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (create-swank-server): Removed. Use create-server
	instead.

	* slime.el (slime-first-change-hook): Don't do anything if buffers
	file doesn't exist.
	(slime-start, slime-set-connection-info): Add support for a
	:init-function which is called after the usual initialization of the
	connection is completed.

	* swank-source-file-cache.lisp (buffer-first-change): Always
	return nil and remove the now redundant test with probe-file.

	* swank-backend.lisp (guess-external-format): Return nil if the
	file can't be opened.  Previusly we wrongly read from stdin.

2006-12-05  Juho Snellman  <jsnell@iki.fi>

	Real xref support for SBCL (requires SBCL 1.0.0.18).

	* swank-sbcl.lisp (who-calls): New function, fetch xref data from
	sb-introspect.
	(who-binds): Ditto.
	(who-sets): Ditto.
	(who-references): Ditto.
	(who-macroexpands): Ditto.
	(defxref): New macro, create the above functions.
	(source-location-for-xref-data): New, map from sb-introspect xref
	format to the Swank xref format.
	(sanitize-xrefs): Map PCL method names to something more readable.
	(string-path-snippet): New function, finds a more accurate source
	snippet for definition source locations which have both an
	:emacs-string and a full source path available. Otherwise the xref
	location would point to the toplevel form rather than the exact
	form for functions compiled with C-c C-c.
	(source-file-position): New function, somewhat like
	source-path-file-position but uses the source-file cache, handles
	missing form-paths more gracefully.
	(make-definition-source-location): Use the above two functions.
	(sbcl-with-xref-p): New function, detect whether SBCL has xref support
	for backwards compability.

2006-11-26  Juho Snellman  <jsnell@iki.fi>

	* swank-source-file-cache.lisp (buffer-first-change): Check
	whether a file exists before trying load it into the source cache.

2006-11-26  Juho Snellman  <jsnell@iki.fi>

	Restore the way M-n and M-p used to work in the REPL. (cherry-picked
	from a patch with other changes, sent by Attila Lendvai).

	* slime.el (slime-repl-previous-input-starting-with-current-input)
	(slime-repl-next-input-starting-with-current-input): New functions,
	work like the old slime-repl-previous-input / next-input.
	(slime-repl-matching-input-regexp): Restore old version.
	(slime-repl-mode-map): Bind s-r-p-i-s-w-c-i and s-r-n-i-s-w-c-i
	to M-p and M-n respectively. slime-repl-previous-input and
	slime-repl-next-input are still accessible with C-up / C-down.

2006-11-25  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-read-break): Use a :emacs-interrupt message
	instead of a RPC to swank:simple-break.  Suggested by Taylor R.
	Campbell.

2006-11-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-search-buffer-package): Prettify the package
	name if it is written as string or keyword.

2006-11-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-in-expression-p): Use `read' and `eq' to test
	the first element of the list.  Previuosly, the pattern (foo)
	wrongly matched (foobar) because we used (looking-at <symbol>).

	* swank-cmucl.lisp (setf-definitions): Also include defs which
	were created with (defun (setf NAME) ...).  Previously we only
	found definitions created with defsetf or define-setf-expander.

2006-11-22  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-edit-definition): Don't hide error messages.

2006-11-21  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*coding-system*): "Coding systems" are now strings
	instead of keywords.

2006-11-19  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-compile-file): Let the Lisp side choose the
	coding system.
	(slime-coding): Deleted.

	* swank.lisp (compile-file-for-emacs): Use guess-external-format.
	(swank:create-server): no more accepts an  :external-format 'enc ,
	use  :coding-system "enc"  instead.

	* swank-backend.lisp (find-external-format)
	(guess-external-format): New.
	(swank-compile-file): The external-format argument is now a
	backend specific value returned by find-external-format.

	* swank-cmucl.lisp, swank-sbcl.lisp, swank-clisp,
	swank-lispworks.lisp, swank-allegro.lisp, swank-corman.lisp,
	swank-ecl.lisp, swank-scl.lisp, swank-abcl.lisp, swank-openmcl:
	Update implementations accordingly.

	* swank-source-file-cache.lisp (read-file): Use guess-external-format.

	* swank.lisp (*swank-wire-protocol-version*): Is now initialized
	by the loader.
	(wire-protocol-version): Removed, because it contained a reference
	to swank-loader::*source-directory*.

	* slime.el (slime-set-connection-info): On protocol version
	mismatch, ask the user how to proceed.
	(slime-protocol-version): New variable. Initialize it at compile
	time to detect stale elc files.

	* swank-loader.lisp (load-swank): Set the protocol version.

2006-11-12  Marco Baringer  <mb@bese.it>

	* slime.el (slime-make-tramp-file-name): Added (require 'tramp)
	since tramp-make-tramp-file-name is not an autoloaded function.

2006-11-07  Edi Weitz  <edi@agharta.de>

	* slime.el (slime-fuzzy-completion-time-limit-in-msec): Escaped
	left parenthesis in doc string.

2006-11-05  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-complete-keywords-contextually): Unused
	variable, removed.

2006-11-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-sexp-highlight-mode): Remove bloat.

2006-11-04  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Support nested presentations in REPL results, when present.lisp is
	loaded.

	* swank.lisp (make-presentations-result): New, factored out from
	listener-eval.
	(listener-eval): Use it here.

	* present.lisp (make-presentations-result): Override it here.

2006-11-03  Marco Baringer  <mb@bese.it>

	* swank.lisp (all-slots-for-inspector): Added declare ignore for
	unused argument inspector (openmcl warns about this). Reindented.

2006-11-01  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el (sldb-sexp-highlight-mode): New custom.
	(slime-handle-repl-shortcut): Trigger slime-lookup-shortcut when
	the point is anywhere before slime-repl-input-start-mark.  IOW,
	you can press "," anywhere before the prompt.
	(slime-edit-definition): Handle the case when there are only such
	entries returned from swank that have errors.
	(slime-read-from-minibuffer): Allow overriding of the keymap.
	(slime-repl-previous-matching-input): Similar behaviour like
	isearch-forward.
	(slime-repl-next-matching-input): Ditto. In more details: You can
	freely navigate with slime-repl-previous/next-input with M-p and
	M-n at any time among the history entries.  When M-r is pressed,
	which invokes slime-repl-previous-matching-input, the the
	minibuffer is activated to read the regexp to search for and the
	contents will default to the current repl input.  Pressing M-r
	again will start searching with the last pattern used no matter
	what the content of the minibuffer is. Subsequent invocations of
	M-r get the next match, and of course the same applies for M-s,
	which is slime-repl-previous-matching-input.

	* swank.lisp (fuzzy-completion-set): Fix on clisp.
	(convert-fuzzy-completion-result): Fix symbol fbound and other
	annotations.
	(slot-value-using-class-for-inspector): New.
	(slot-boundp-using-class-for-inspector): New.
	(inspect-for-emacs): Use the special slot access methods so that
	it's possible to customize the inspecting of complex
	slots (e.g. computed-class at
	http://common-lisp.net/project/computed-class/).
	(all-slots-for-inspector): Converted to generic method.

2006-11-01  Marco Baringer  <mb@bese.it>

	* swank.lisp (*swank-wire-protocol-version*): Use a defvar to
	declare the existence of tihs variable to the lisp (Reported by:
	Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>).

2006-10-30  Marco Baringer  <mb@bese.it>

	* swank.lisp (*dont-close*): New variable.
	(defpackage :swank): Export *dont-close*.
	(start-server, create-server): Use *dont-close* as the default
	value of the :dont-close parameter.
	(connection-info): Send the wire-protocol-version (supplied by the
	swank-version.el file) to slime when connecting.
	(wire-protocol-version): New function.

	* slime.el (slime-global-variable-name-regexp): New variable.
	(slime-global-variable-name-p): Use
	slime-global-variable-name-regexp.
	("swank-version"): Load swank-version.el to get the wire protocol
	version.
	(slime-set-connection-info): Check the wire protocol version.

2006-10-30  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-global-variable-name-p): Oops... need to handle
	very long strings.

2006-10-29  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el (slime-global-variable-name-p): Use defun* instead of
	defun.

2006-10-29  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-global-variable-name-p): Simplified.

2006-10-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Add completion for character names.

	* slime.el (slime-completions-for-character): New.
	(slime-contextual-completions): Use it here.

	* swank-backend.lisp (character-completion-set): New interface.

	* swank-allegro.lisp (character-completion-set): Implement it.

	* swank.lisp (completions-for-character): New slimefun.
	(compound-prefix-match/ci/underscores)
	(longest-completion/underscores, tokenize-completion/underscores)
	(untokenize-completion/underscores): New functions.

2006-10-28 Ivan Toshkov <ivan@toshkov.org>

	* hyperspec.el: Missing Hyperspec links for ~| and ~~

2006-10-27 Ivan Toshkov <ivan@toshkov.org>

	* hyperspec.el: Missing Hyperspec links for ~% and ~&

2006-10-27 Nikodemus Siivola <nikodemus@random-state.net>

	* swank-sbcl.lisp (make-weak-key-hash-table): Restore support
	for older SBCLs without weak hash-tables.
	(make-weak-value-hash-table): Ditto.

2006-10-26  Utz-Uwe Haus  <haus+slime@mail.math.uni-magdeburg.de>

	* swank-allegro.lisp (sldb-break-at-start): Implement.

2006-10-26  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el (slime-setup-command-hooks): Use make-local-hook.
	(slime-repl-mode): Ditto.
	(slime-fuzzy-choices-buffer): Ditto.
	(sldb-mode): Ditto.
	(slime-fuzzy-completion-limit): New variable.
	(slime-fuzzy-completion-time-limit-in-msec): New variable.
	(slime-fuzzy-next): Fix when at the end of the buffer.
	(completion-output-symbol-converter): New to handle escaped
	symbols for those who need to mess around with symbols like
	layered-function-definers::|CONTEXTL::SLOT-VALUE-USING-LAYER|.
	When a symbol is escaped then completion is case sensitive.
	(completion-output-package-converter): New.
	(mimic-key-bindings): New to easily define bindings by first
	trying to look up bindings for an operation and only use the
	provided default bindings if nothing was found in the source
	keymap. Use it to set up fuzzy bindings. (Hint: if you have keys
	like previous-line customized, then only load slime after they
	have been set, and the fuzzy mode will mimic them.)
	(slime-temp-buffer-quit): Always close the opened window, updated
	docstring.  Also made the fuzzy maps smarter, they now try to look
	up keys with 'where-is-internal and map the functions on them.

	* swank-sbcl.lisp
	(make-weak-value-hash-table): New for sbcl.
	(make-weak-key-hash-table): New for sbcl.

	* swank.lisp (fuzzy-completions and friends): Added :limit and
	:time-limit-in-msec keyword params. Used vectors instead of lists
	that nearly doubled its speed (at least on sbcl).  Also added some
	declare optimize and type annotations.
	(do-symbols*): New, uses a hash-table to visit only non-seen
	symbols. Replaced various uses of do-symbols where it was
	appropiate.

2006-10-26  Marco Baringer  <mb@bese.it>

	* slime.el (slime-global-variable-name-p): Use a custom 'parser'
	instead of string-match to avoid regexp overflow errors on very
	long strings.

2006-10-21  Helmut Eller  <heller@common-lisp.net>

	* swank-lispworks.lisp (initialize-multiprocessing): Don't init
	MP if it is already running.

	* test.sh: Run Emacs in Screen.

2006-10-20  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp, swank-cmucl.lisp:
	(startup-idle-and-top-level-loops): Deleted. Merged into
	initialize-multiprocessing.

2006-10-20  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el (slime-fuzzy-choices-buffer): Added kill-buffer-hook to
	the completion buffer to slime-fuzzy-abort, so we get out from the
	completion mode and key maps when the completion buffer is closed.

2006-10-20  Marco Baringer  <mb@bese.it>

	* slime.el (slime-target-buffer-fuzzy-completions-map): Fix a bug
	I introduced when applying levente's patch.

2006-10-20  Martin Simmons <martin@lispworks.com>

	* swank-backend.lisp (initialize-multiprocessing): New API to
	support lisps where initialize-multiprocessing may not return
	(lispworks).

	* swank.lisp (start-server): initialize-multiprocessing's API has
	changed.

	* swank-lispworks.lisp (initialize-multiprocessing): Update for
	new API.

	* swank-cmucl.lisp (initialize-multiprocessing): Update for new API.

	* swank-allegro.lisp (initialize-multiprocessing): Update for new api.

2006-10-20  Levente Mészáros <levente.meszaros@gmail.com>

	Added "in-place" fuzzy completion GUI. See
	slime-fuzzy-completions-map and
	slime-target-buffer-fuzzy-completions-map for details.

	* slime.el (slime-fuzzy-completion-in-place): New variable.
	(slime-target-buffer-fuzzy-completions-mode): New keymap for
	in-place fuzzy completions.
	(slime-fuzzy-target-buffer-completions-mode): New minor mode for
	in-place fuzzy completions.
	(slime-fuzzy-current-completion-overlay): New overlay for
	highlighting currently selected completion.
	(slime-fuzzy-completions-map): Added new fuzzy completon keys
	(slime-fuzzy-indent-and-complete-symbol): New function.
	(slime-fuzzy-complete-symbol): Use new in-place fuzzy completion.
	(slime-fuzzy-choices-buffer): Support in-place completion editing.
	(slime-fuzzy-fill-completions-buffer): Highlight completions,
	don't automatically jump to completion buffer.
	(slime-fuzzy-enable-target-buffer-completions-mode,
	slime-fuzzy-disable-target-buffer-completions-mode): New modes for
	moving in/out of in-place fuzzy completion mode
	(slime-fuzzy-next, slime-fuzzy-prev): Don't assume point is in the
	completion buffer.
	(slime-fuzzy-dehighlight-current-completion,
	slime-fuzzy-highlight-current-completion): Manage completion
	selection highlighting.
	(slime-fuzzy-select-or-update-completions): New function.
	(slime-fuzzy-process-event-in-completions-buffer): New function.
	(slime-fuzzy-select-and-process-event-in-target-buffer): New function.
	(slime-fuzzy-done): Changed to deal with in-place completion.

2006-10-19  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (ignored-xref-function-names): Deleted.

	* swank.lisp (guess-package-from-string): Remove special case for
	"#.". parse-package will handle that just fine.
	(find-definitions-for-emacs): Don't filter errors out.
	(sanitize-xrefs): Moved to swank-sbcl.  The backend is supposed to
	return sane values.

	* swank-sbcl.lisp: See above.

	* slime.el (slime-find-buffer-package): Simplify.

2006-10-17  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-accept-process-output): The timeout arg can be
	nil. Handle that case.

2006-10-17  Attila Lendvai  <attila.lendvai@gmail.com>

	* slime.el (slime-find-buffer-package): Handle #. forms.

	* swank.lisp (guess-package-from-string): Handle #. forms.
	(inspect-for-emacs standard-class): Handle non-string
	:documentation slot contents.

	* swank-sbcl.lisp (inspect-for-emacs weak-pointer ...): Added
	method.

2006-10-16  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-activate): Get debug-info from the correct
	thread. Fixes bug reported by Dan Weinreb <dlw@itasoftware.com>.
	(unwind-to-previous-sldb-level): New test.
	(slime-init-command): Send a single form.
	(slime-insert-presentation): Honor slime-repl-enable-presentations.
	Presentations kill SLDB and the inspector in Emacs 20 (besides
	being troublesome GC-wise).

	* swank.lisp: Clean up global IO redirection.
	(setup-stream-indirection): Turn macro into a
	function and delay initialization after user init files are
	loaded, so that we do nothing if *globally-redirect-io* is nil.
	(*after-init-hook*, run-after-init-hook)
	(init-global-stream-redirection): New.

	(parse-symbol-or-lose): Lose loudly and early (instead of failing
	silently).

	* swank-loader.lisp: Abort on compile-time or load-time errors.
	Don't try to load the source-file if COMPILE-FILE's 3rd return
	value is true (it's true even for warnings).
	(handle-loadtime-error): New function.

	Run the after-init-hook.

	* swank-cmucl.lisp (inspect-for-emacs): Don't break for
	simple-strings.

2006-10-11  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-presentation-syntax-table): New.
	(slime-add-presentation-properties): Install it in a syntax-table
	text property, so that #<...> is balanced in a presentation.
	(slime-remove-presentation-properties): Remove the text property.
	(slime-repl-mode): Respect the syntax text properties of
	presentations in REPL buffers.

2006-10-09  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (completions-for-keyword): Look up the operator names
	in the right package.  Return nil (rather than signalling an
	error) when no valid operator name is present.

2006-10-08  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank-loader.lisp (lisp-version-string) [allegro]: Distinguish
	between 32-bit and 64-bit version on the SPARC architecture.

2006-10-03  Marco Baringer  <mb@bese.it>

	Change license statement to say that all files without an explicit
	copyright notice are public domain. This change will allow SLIME
	to moved out of debian's nonfree tree.

	* README: Update license statement.

2006-10-02  Marco Baringer  <mb@bese.it>

	* slime.el (slime-highlight-compiler-notes): New variable.
	(slime-compilation-finished): Only highlight notes when
	slime-highlight-compiler-notes is non-NIL.

2006-09-28  Marco Baringer  <mb@bese.it>

	* swank-loader.lisp (compile-files-if-needed-serially): Don't
	ignore compile-time errors but drop into a debugger (it's not a
	slime debugger but it's certainly better than ignoring the error).

2006-09-27  Marco Baringer  <mb@bese.it>

	* swank.lisp (*globally-redirect-io*): Change default value to T.

2006-09-25  Juho Snellman  <jsnell@iki.fi>

	Fix Slime on SBCL 0.9.17.

	* swank-backend.lisp (ignored-xref-function-names): New interface

	* swank.lisp (sanitize-xrefs): Use ignored-xref-function-names
	instead of having a #+sbcl special case.

	* swank-sbcl.lisp (ignored-xref-function-names): Implement.
	Filter out SB-C::STEP-VALUES, not just SB-C::STEP-FORM, as done by
	the old sanitize-xrefs.	Don't implement the interface at all if
	SBCL is sufficiently new (those symbols don't exist any more, and
	there's nothing in their place to be ignored).

2006-09-21  Marco Baringer  <mb@bese.it>

	* swank.lisp (find-definitions-for-emacs): Don't return locations
	whose CAR is :error.
	(xref): Process whatever is returned by the various xref functions
	with the new sanitize-xrefs functions.
	(sanitize-xrefs): Clean up the list of xrefs to remove duplicates.
	Patch by Dan Weinreb <dlw@itasoftware.com>

	* slime.el (slime-goto-first-note-after-compilation): New
	variable. This controls the behaviour of (next|prev)-note
	immediatly after a slime-compile-and-load-file.
	(slime-compilation-just-finished): New variable.
	(slime-compilation-finished): Update slime-compilation-finished.
	(slime-next-note, slime-previous-note): Respect
	slime-compilation-just-finished.
	(slime-autodoc-use-multiline-p): Specify the type.
	(slime-repl-grab-old-input): Typo in docstring.
	(slime-cheat-sheet): Deal with multiple-bindings
	(slime-cheat-sheet-table): Update as per #lisp's suggestions.

2006-09-20  Marco Baringer  <mb@bese.it>

	* slime.el (slime-cheat-sheet): New function.
	(slime-cheat-sheet-table): New variable which specifies what the
	cheat sheet should list.
	(slime-read-package-name): Set require to T in the call to
	completing read, it doesn't make any sense to switch to an
	inexistent package.

	* doc/slime.texi: Added "Tips and Tricks" chapter (need a better
	name for this).

	* swank-sbcl.lisp (fallback-source-location): Use abort-request
	instead of error.
	(locate-compiler-note): Say, in the error message, what data
	caused the error.

2006-09-20  Juho Snellman  <jsnell@iki.fi>

	* swank-sbcl.lisp (call-with-debugger-hook): use INVOKE-STEPPER
	instead of calling the stepper hook manually

2006-09-19  Juho Snellman  <jsnell@iki.fi>

	* swank-sbcl.lisp (call-with-debugger-hook): make the stepper
	also work with a threaded SBCL, by binding a handler for
	sb-ext:stepper-condition instead of relying on the one that SBCL
	establishes on the toplevel

2006-09-19  Juho Snellman  <jsnell@iki.fi>

	Extend the stepper protocol to work nicely with the SBCL stepper.

	If sldb is invoked on a condition that's sldb-stepper-condition-p,
	the sldb functions sldb-step, sldb-next and sldb-out will invoke
	the matching backend functions for stepping into the stepped form,
	to the next form, or out of the current function. Otherwise the
	functions will behave like sldb-step used to (call active-stepping and
	select the continue restart).

	* swank-backend.lisp (sldb-stepper-condition-p, sldb-step-into,
	sldb-step-next, sldb-step-out): New interface functions

	* swank-sbcl.lisp (activate-stepper, condition-extras,
	sldb-stepper-condition-p, sldb-step-into, sldb-step-next,
	sldb-step-out): Implemented (conditional on CVS SBCL)
	(call-with-debugger-hook): bind sb-ext:*stepper-hook* to
	a function that binds *stack-top-hint* and invokes the debugger
	(conditional on CVS SBCL)

	* swank.lisp (define-stepper-function): new macro for defining
	stepper-related functions, since they all follow the same form
	(sldb-step): redefine with define-stepper-function
	(sldb-next, sldb-out): new functions
	(*sldb-stepping-p*): typo in docstring

	* slime.el (sldb-next, sldb-out): New commands
        (sldb-mode-map): bind sldb-next to "x" and sldb-out to "o"

2006-09-18  Dan Weinreb <dlw@itasoftware.com>

	For those cases where SLIME can't complete a user request (like
	loading an asdf system without asdf or describing an inexistent
	symbol) instead of signaling an error SWANK should politely inform
	the user and return normally.

	* swank.lisp (eval-for-emacs): Handle request-abort conditions.
	(decode-keyword-arg, get-repl-result, parse-symbol-or-lose): Use
	abort-request instead of error.

	* swank-backend.lisp (request-abort): New condition.
	(abort-request): Convenience function for signaling request-abort
	conditions.
	(operate-on-system): Use abort-request instead of error
	(:swank-backend): Export the symbols abort-request and
	request-abort.

	* slime.el (slime-rex): Update docstring.
	(slime-eval, slime-eval-async): Added new REASON parameter sent
	along with :abort message.

2006-09-14  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl (arglist, function-arglist, spawn): update for the SCL.

2006-09-13  Brandon Bergren <bdragon@mailsnare.net>

	* slime.el (slime-filename-translations): Fix docstring

2006-09-13  Bob Halley <halley@play-bow.us>

	* swank.lisp (format-iso8601-time): Properly handle non integer
	time zones.

2006-09-13  Taylor R. Campbell <campbell@mumble.net>

	* slime.el (slime-init-output-buffer): Initial directory and
	package stacks should be empty.
	(slime-repl-push-package): Push the current package, as opposed to
	the new package, and set the new package to whatever the user
	specified.
	(slime-repl-pop-package): Set the current package to the top of
	the package stack, unless it's empty.

2006-09-13  Daniel Koning <dkoning@seas.smu.edu>

	* slime.el (slime-repl-disconnect): New repl shortcut.

2006-09-13  Marco Baringer  <mb@bese.it>

	* slime.el (slime-open-inspector): Added a slime-part-number
	property to the topline so that you can slime-inspector-copy-down
	the object being inspected. There are some cases where we have an
	object in the inspector and we'd like to dump it to the repl but
	we can't get at it through other means (like in back-traces).
	(slime-insert-xrefs): Specify which file the item is in (when that
	information is available).

	* swank.lisp (format-arglist-for-echo-area): Instead of using
	let+first+rest to destructure a form use destructuring-bind.
	(lookup-presented-object): Added (declare (special
	*inspectee-parts*)) to silence openmcl's compiler.
	(inspect-object): Generate, and send to emacs, an ID for the
	object being inspected.

2006-09-01  Nikodemus Siivola <nikodemus@random-state.net>

	* slime.el (slime-repl-matching-input-regexp): Use the portion
	between slime-repl-input-mark and point for history search, not
	the entire input. Patch by Ivan Shvedunov.

	* swank-sbcl.lisp: Declaim SB-C:INSERT-STEP-CONDITIONS 0 for to
	hide Swank while stepping and avoid endless mutex-acquisition
	loops.

2006-08-27  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (input-available-p, process-available-input): Use
	READ-CHAR-NO-HANG instead of LISTEN because LISTEN suddenly
	returns false in SBCL 0.9.?? even if we are called from a
	fd-handler and the OPEN-STREAM-P returns true.

2006-08-26  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-return-behaviour): Fix the defcustom type,
	so Emacs 21.3 does not signal an error when creating a
	customization buffer containing this variable.

2006-08-25  Kai Kaminski <kai.kaminski@gmx.de>

	* swank.lisp (lookup-presented-object): Fix for OpenMCL 1.0
	[ppc32], which requires that the :NO-ERROR clause is last in
	HANDLER-CASE.

2006-08-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-ensure-presentation-overlay): Provide a
	help-echo for presentations, showing the mouse bindings.
	(slime-presentation-around-click): New function.
	(slime-copy-or-inspect-presentation-at-mouse)
	(slime-inspect-presentation-at-mouse)
	(slime-copy-presentation-at-mouse)
	(slime-describe-presentation-at-mouse)
	(slime-pretty-print-presentation-at-mouse): New commands.
	(slime-copy-presentation-at-point): Removed (misnomer).
	(slime-presentation-map): Bind mouse-2 to
	slime-copy-or-inspect-presentation-at-mouse, so the right thing is
	done in REPL buffers and in Inspector and Debugger buffers.
	(slime-menu-choices-for-presentation): Use the new commands here
	instead of inline lambdas.
	(sldb-inspect-in-frame): Use slime-read-object here, so if point
	is in a presentation in the debugger buffer, inspect it
	immediately just like slime-inspect does.
	(slime-inspect-presented-object): Removed.
	(slime-inspect): Don't expect that "swank:init-inspector" is
	already part of the form.  Accept an optional arg "no-reset".
	(slime-read-object): Don't add "swank:init-inspector" to the read
	form; slime-inspect now adds it.

2006-08-21  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Make the values of local variables in debugger frames and values
	of parts in the inspector accessible as presentations.  In
	particular, this allows to copy #<unreadable> values to the REPL
	for further investigation.  It also provides a context menu for
	the values, offering to inspect, pretty-print, and describe them.

	Note that the presentations are only valid as long as the
	corresponding Inspector or Debugger buffer is open.

	* swank.lisp (lookup-presented-object): Handle presentation ids
	(:frame-var frame index), (:inspected-part part-index).
	(init-inspector): New optional argument, reset.

	* slime.el (slime-inspector-insert-ispec): Mark up all values of
	inspected parts as presentations.
	(sldb-insert-locals): Mark up the values of local variables as
	presentations.
	(slime-remove-presentation-properties): Fix for read-only buffers.
	(slime-copy-presentation-at-point): Make it work when the current
	buffer is not the REPL buffer.
	(slime-menu-choices-for-presentation): Describe into a separate
	buffer, not the REPL.  New menu item, pretty-print.
	(slime-presentation-expression): Handle presentation ids that are
	not numbers.
	(slime-inspect-presented-object): Don't reset the inspector if
	already in the inspector buffer.

2006-08-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (*nil-surrogate*): New.
	(save-presented-object, lookup-presented-object): Distinguish
	between a saved NIL and a garbage-collected object that was
	replaced by NIL in the weak hash table.
	(compute-enriched-decoded-arglist with-open-file): Add an IGNORE
	declaration.

2006-08-19  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-parse-extended-operator-name/apply): New.
	(slime-extended-operator-name-parser-alist): Add it to the alist.

	* swank.lisp (compute-enriched-decoded-arglist): Add method for
	handling APPLY.

2006-08-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-accept-process-output): Use brute-force to
	detect whether accept-process-output can be called with a float as
	timeout arg.

	* swank-openmcl.lisp: Fix some breakage caused by the new
	defimplementation.

2006-08-11  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (close-connection, swank-error): Include backtraces
	in our own errors.
	(simple-serve-requests): Don't try to enter the
	debugger if the connection is closed.

	* slime.el (disconnect): Test disconnecting.

	* swank-cmucl.lisp (startup-idle-and-top-level-loops): Initialize
	MP only once.

2006-08-10  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (fspec-definition-locations): Improve
	handling of (:internal ... n) like fspecs.

	* slime.el (slime-restart-inferior-lisp-aux): Remove the
	interactive spec.

	* swank-backend.lisp (definterface): Drop that incredibly
	unportable CLOS stuff. Use plists and plain functions instead.
	Update backends accordingly.

2006-08-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-find-filename-translators): CL:MACHINE-INSTANCE
	can return nil.  Silently accept that case for now.

	* swank.lisp (test-print-arglist): Print a message instead of
	signalling an error. This should avoid startup problems, in
	particular with CormanLisp.
	(setup-stream-indirection): Disable it for now.  We should fix it,
	if there is a need for this functionality or just remove it.

	* swank-backend.lisp (definterface): Bring the old implementation
	based on NO-APPLICABLE-METHOD back.  It avoids lots of redefintion
	warnings (but it creates more "noise" in backtraces).

	* swank-*.lisp (inspect-for-emacs): Don't use defimplementation
	for real generics.

2006-07-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-thread-quit): Call swank:quit-thread-browser.
	Reported by Taylor R. Campbell.

2006-07-28  Willem Broekema <metawilm@gmail.com>

	* swank-allegro.lisp: Profiling functions on Allegro (except for
	profile-package).

2006-07-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Add support for destructuring macro arglists in arglist display,
	form completion, and keyword completion; in particular for
	with-open-file.

	* swank.lisp (find-valid-operator-name): New, factored out from
	arglist-for-echo-area.
	(arglist-for-echo-area): Use it here.
	(print-arglist): New, factored out from decoded-arglist-to-string.
	Handle recursive arglist structures that arise in destructuring
	macro arglists.
	(decode-required-arg, encode-required-arg): New, handle
	destructuring patterns.
	(decode-keyword-arg, encode-keyword-arg, decode-optional-arg)
	(encode-optional-arg, decode-arglist, encode-arglist): Use them
	here to handle destructuring patterns.
	(print-decoded-arglist-as-template): Change interface, handle
	destructuring patterns.
	(decoded-arglist-to-template-string): Use it here.
	(enrich-decoded-arglist-with-keywords): New, factored out from
	enrich-decoded-arglist-with-extra-keywords.
	(enrich-decoded-arglist-with-extra-keywords): Use it here.
	(compute-enriched-decoded-arglist): New generic function, factored
	out from arglist-for-insertion, form-completion.  Add specialized
	method for with-open-file.
	(arglist-for-insertion, form-completion): Use it here.
	(arglist-ref): New.
	(completions-for-keyword): Change interface, handle destructuring
	macro arglists.

	* slime.el (slime-enclosing-operator-names): For nesting levels
	without operator, record nil.
	(slime-completions-for-keyword): New argument arg-indices.
	(slime-contextual-completions): Pass all enclosing operators and
	arg-indices to slime-completions-for-keyword.

2006-07-16  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-edit-definition): Invoke the
	slime-edit-definition-fall-back-function also in the case where
	find-definitions-for-emacs returns an error message.
	(slime-edit-definition-fallback-function): Fix typo (find-tag
	rather than find-tags).

2006-07-15  Juho Snellman  <jsnell@iki.fi>

	* swank-sbcl.lisp (preferred-communication-style): Remove use of
	  linux_no_threads_p alien variable (the value has been hardcoded to
	  false for about a year), so that we can also remove it from from SBCL
	  in the future.
	  (*definition-types*): defcondition -> define-condition,
	  to make slime-show-definitions display condition FOO as
	  (DEFINE-CONDITION FOO) instead of (SWANK-BACKEND::DEFCONDITION FOO).

2006-07-15  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-shared-lisp-mode-hook): New function, factored
	out from slime-lisp-mode-hook.
	(slime-lisp-mode-hook): Use it here.
	(slime-scheme-mode-hook): New function, use
	slime-shared-lisp-mode-hook.
	(slime-setup): If scheme-mode is one of the slime-lisp-modes,
	install our hook.

2006-07-13  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (keywords-of-operator): New support function for
	writing user-defined `extra-keywords' methods.

2006-07-11  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (make-weak-key-hash-table): Use ACL's weak
	hashtables.

	* swank.asd: Set *source-directory* to the asdf component dir.

2006-07-01  Luís Oliveira  <loliveira@common-lisp.net>

	* swank-sbcl.lisp (locate-compiler-note): Change first branch to
	handle the changes introduced by the previous patch to
	swank-compile-string.

2006-06-26  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (find-definitions): Remove backward
	compatibility code.

2006-06-26  Luís Oliveira <loliveira@common-lisp.net>

	* swank-sbcl.lisp (tmpnam, temp-file-name): New functions.
	(swank-compile-string): Create temporary file with the string and
	compile-file it instead of compiling an anonymous lambda, as
	before, in order to better handle eval-when forms.

2006-06-25  Helmut Eller  <heller@common-lisp.net>

	* swank-source-path-parser.lisp (suppress-sharp-dot): Return a
	unique symbol to avoid multiple entries for nil at toplevel in the
	source-map.

	* slime.el (test compile-defun): Add a test for #. reader macro at
	toplevel.
	(slime-run-one-test): New command.
	(sldb-activate): Recreate the sldb buffer if it doesn't
	exist. (Can happen if someone kills the buffer manually.)
	(slime-wait-condition): Add a dummy to slime-stack-eval-tags while
	waiting so that the SLDB enters a recursive edit.

2006-06-18  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-echo-arglist): Simplify, just use slime-autodoc.

	* swank.lisp (arglist): Distinguish between provided actual args
	and required formal args using the new slot provided-args.
	(form-completion): Likewise.
	(decoded-arglist-to-string): Use it here to display the argument
	list (make-instance 'CLASS-NAME ...) rather
	than (make-instance (quote CLASS-NAME) ...).

	* swank.lisp (extra-keywords change-class): Don't drop the first
	argument.

	* slime.el (slime-parse-extended-operator-name): Don't move
	point; fixes infinite loop.

2006-06-17  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-parse-extended-operator-name/cerror): Handle
	cerror and change-class with :make-instance.
	(slime-extended-operator-name-parser-alist): Handle change-class.
	(slime-parse-extended-operator-name)
	(slime-enclosing-operator-names): Fix the case when point is
	within the operator.

	* swank.lisp (operator-designator-to-form): Handle cerror and
	change-class with :make-instance.

2006-06-16  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (operator-designator-to-form): Handle :cerror.
	(extra-keywords cerror): Make it work.

	* slime.el (slime-parse-extended-operator-name)
	(slime-parse-extended-operator-name/make-instance)
	(slime-parse-extended-operator-name/defmethod): New functions,
	factored out from slime-enclosing-operator-names.
	(slime-parse-extended-operator-name/cerror): New function.
	(slime-extended-operator-name-parser-alist): New variable.
	(slime-enclosing-operator-names): Use them here.

2006-06-14  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-goto-definition): If all definitions of a name
	have the same location, go there directly rather than presenting
	an xref buffer.

2006-06-11  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl (ext:stream-write-chars): update for SCL 1.3.

2006-06-09  Alan Ruttenberg <alanr-l@mumble.net>

	* swank-abcl: Update to cvs version of abcl and warnings errors
	when compiling in a buffer will now be properly caught by slime vs
	current behavior of always saying 0 errors 0 warnings and printing
	them in the repl instead

2006-05-31  Nathan Bird <nathan@acceleration.net>

	* swank.lisp (*sldb-quit-restart*): New variable.
	(throw-to-toplevel): Use the restart named by *sldb-quit-restart*
	as opposed to hard coding abort-request.

2006-05-30  Tobias Rittweiler <tcr@freebits.de>

	* slime.el (slime-get-temp-buffer-create): New keyword REUSEP
	which indicates whether an already-existing buffer named like the
	buffer to be created should be reused, i.e. not killed, then
	freshly created. Update docstring accordingly.
	(slime-with-output-to-temp-buffer): Make &optional arg MODE an
	&key keyword arg. Add REUSEP keyword.
	(slime-macroexpansion-minor-mode-map): Make remapped `undo' update
	highlighted edits in the macroexpansion buffer.
	(slime-eval-macroexpand-in-place): Update highlighted edits when
	macroexpanding in-place.
	(slime-eval-macroexpand): Reuse macroexpansion buffer if it exists
	already to preserve `undo' functionality.

2006-05-30  Tobias Rittweiler <tcr@freebits.de>

	* slime.el (slime-use-autodoc-mode): Fix typo in docstring.
	(slime-use-highlight-edits-mode): New variable, analogous to
	SLIME-USE-AUTODOC-MODE.
	(slime-setup, slime-lisp-mode-hook): Make above variable
	work. Also, activates the HIGHLIGHT-EDITS-MODE in proper way (thus
	avoiding the nasty "Toggling ... off; better pass an explicit
	argument." message.)

	* slime.el: Fix typo in comment about communication protocol.

2006-05-27  Alan Ruttenberg <alanr-l@mumble.net>
	* swank-abcl: slot-boundp-using-class slot-value-using-class  so you
	can inspect instances

2006-05-26  Tobias C. Rittweiler <tcr@freebits.de>

	* slime.el (slime-eval-macroexpand-inplace): Fix out-of-range
	error on in-place macroexpand when point is placed at a closing
	parenthesis. In this case the sexp closed by that paren is
	expanded.
	Also make expanding of expressions work that are quoted like, for
	instance, "'(FOO BAR)" if point is placed at the opening paren.

2006-05-24  Brian Downing  <bdowning@lavos.net>

	* swank.lisp (recursively-compute-most-completions & friends):
	Micro-optimize the fuzzy completion engine, improving performace
	by a factor of about 4 on SBCL.  However, it will only work on
	simple-strings now, and CHAR= is burned in instead of being an
	option.  I don't think this is too much of a limitation.  At this
	point rendering the results on the emacs side takes much longer
	than finding them for long result lists.

2006-05-24  Alan Ruttenberg <alanr-l@mumble.net>
	* swank-abcl: Add some more mop functions to you can inspect classes,
	generic functions, methods, slots.

2006-05-16  Marco Baringer  <mb@bese.it>

	* slime.el (slime-repl-return-behaviour): New variable which
	controls slime-repl-return's heaviour.
	(slime-repl-return): Respect slime-repl-return-behaviour.

2006-05-14  Marco Baringer  <mb@bese.it>

	* slime.el (slime-macroexpansion-minor-mode-map): Rebind 'undo' to
	set buffer-read-only temporarily to t.
	(slime-repl-return): Only send repl input if point is past a
	complete form.

2006-05-12  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (update-indentation-information): Fix for problem
	with Allegro CL 8.0: If I type M-x slime-update-indentation,
	Allegro CL starts growing until it hits a STORAGE-CONDITION or
	even segfaults.

2006-05-04  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank-allegro.lisp (fspec-definition-locations): Handle
	:top-level-form entries that appear in backtraces.

2006-04-20  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (toggle-trace): Implemented. Currently only
	provides 'best effort' support, :labels and :flet are ignored,
	:defmethod and :call are treated like a normal trace of the
	operator.

2006-04-20  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*use-dedicated-output-stream*): Make it nil by
	default to avoid race conditions.

2006-04-19  Christophe Rhodes <csr21@cam.ac.uk>

	* doc/Makefile (contributors.texi): use texinfo macros for
	accented characters.

	* ChangeLog: canonize Gabor Melis' spelling, otherwise he appears
	twice in the "Hackers of the good Hack table"

	* doc/slime.texi (nyorsko): delete
	(EDITION): make it say 2.0

2006-04-19  Christophe Rhodes <csr21@cam.ac.uk>

	* swank.lisp (decoded-arglist-to-string): if the keyword and the
	variable are different, print the keyword name with escapes.
	(encode-keyword-arg): get the keyword and the arg-name the same
	way round as in lambda lists.
	(appliable-methods-keywords): use
	swank-mop:compute-applicable-methods-using-classes and
	compute-applicable-methods in the AMOP-friendly way, to get EQL
	specializers right.
	(class-from-class-name-form, extra-keywords/slots): new.
	(extra-keywords/make-instance): use new functions.  Also get
	keywords from SHARED-INITIALIZE (after Dan Barlow) and
	ALLOCATE-INSTANCE.
	(extra-keywords/change-class): new.
	(extra-keywords (eql 'change-class)): new.  Won't work at present,
	just as the CERROR case doesn't work.

2006-04-19  Christophe Rhodes <csr21@cam.ac.uk>

	* swank-sbcl.lisp (preferred-communication-style): Make it nil
	under win32, for now.

	* doc/slime.texi: document nil *communication-style*

2006-04-18  Espen Wiborg  <espenhw@grumblesmurf.org>

	* swank-corman.lisp: Define a class file-stream to let swank.lisp
	load.

2005-04-17  Andras Simon <andras@renyi.hu>

	* swank-abcl.lisp: (accept-connection): New argument: timeout.

2006-04-14  Gerd Flaig <gefla@pond.sub.org>

	* slime.el (slime-autodoc): Fix reference to unbound variable.

2006-04-13  Martin Simmons <martin@lispworks.com>

	* swank-loader.lisp (load-site-init-file, swank-source-files): Fix
	pathname construction to take all unspecified components from the
	directory pathname, in particular the drive letter on Windows.

2006-04-13  Helmut Eller  <helmut@common-lisp.net>

	* slime.el (slime-find-filename-translators): Use assoc-if instead
	of assoc-default for XEmacs compatibility.
	(slime-show-note-counts): Don't show the highlighting bit as it
	spills of the screen.
	(slime-highlight-notes): Use with-temp-message.
	(with-temp-message): Define it for XEmacs.
	(slime-beginning-of-symbol): Use eq instead of char-equal as
	char-equal signals an error at the beginning of a buffer.

2006-04-13  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl (make-socket-io-stream): set the stream to ignore
	character conversion errors, and to substitute the character #\?.
	Without this the communication channel is prone to lockup when a
	conversion error occurs.

	* swank-scl (inspect-for-emacs function): correct the index into the
	closure environment; it was reading off the end of the closure
	environment and picking up a corrupting value.

	* swank-scl (mailbox): rework the mailbox implementation to better
	handle interruption.  Use a polling loop rather than condition
	variables because interrupting a condition variable wait leaves the
	thread with the condition variable lock held and leads to a deadlock
	error.

2006-04-12  Robert Macomber <slime@rojoma.com>

	* swank-backend.lisp (make-recursive-lock): New interface
	function.
	(call-with-recursive-lock-held): New interface function.

	* swank-grey.lisp (class slime-output-stream): Added recursive
	locking to class and generic functions specialized on it.
	(clss slime-input-stream): Added recursive locking to class and
	generic functions specialized on it.

	* swank-sbcl.lisp (make-recursive-lock): Implement the new interface.
	(call-with-recursive-lock): Implement the new interface.

2006-04-01  Matthew D. Swank <akopa@charter.net>

	* slime.el (slime-fontify-string): Use set-text-properties, not
	propertize, for Emacs 20 compatibility.

2006-03-30  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-init-command): Don't translate filenames since
	the new scheme doesn't work without a connection.
	(slime-to-lisp-filename,slime-from-lisp-filename): Remove some
	redundancy.
	(slime-macroexpansion-minor-mode): Make it Emacs 20 compatible.

2006-03-29  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-mode): Enable autodoc-mode if
	slime-use-autodoc-mode is true.

2006-03-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (multiple-value-or): New macro.

	* slime.el (slime-recently-visited-buffer): Ignore internal
	buffers (starting with a space), to avoid selecting the
	*slime-fontify* buffer.  Reported by Andreas Fuchs.

	* slime.el (slime-enclosing-operator-names): Handle forms similar
	to make-instance (make-condition, error, etc.), to get extra
	keywords based on the condition class.

	* swank.lisp (operator-designator-to-form): Handle forms similar
	to make-instance (make-condition, error, etc.)
	(extra-keywords/make-instance): New function.
	(extra-keywords): Specialize on operators make-condition, error,
	signal, warn, cerror.  Use multiple-value-or.

2006-03-27  Marco Baringer  <mb@bese.it>

	* slime.el (slime-make-tramp-file-name): If emcas' tramp has
	tramp-multi-methods then pass the method parameter to
	tramp-make-tramp-file-name, otherwise don't.
	(slime-create-filename-translator): Use
	slime-make-tramp-file-name.

2006-03-27  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* hyperspec.el (common-lisp-hyperspec-strip-cl-package): New
	function.
	(common-lisp-hyperspec): Don't get confused by a cl: or
	common-lisp: package prefix.

	* slime.el (slime-hyperspec-lookup): Don't get confused by a cl:
	or common-lisp: package prefix.

2006-03-26  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-enclosing-operator-names): Fix for situation
	when point is at end of buffer, as it happens often in the REPL.

2006-03-25  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (arglist-for-echo-area): New keyword arg,
	print-lines.
	(decoded-arglist-to-string): New function, implement argument
	highlighting also for &optional and &rest/&body arguments.
	(arglist-to-string): Use decoded-arglist-to-string.
	(arglist): New slots aux-args, known-junk, unknown-junk.
	(nreversef): New macro.
	(decode-arglist, encode-arglist): Refine to handle more structure
	in argument lists, including implementation-defined stuff like
	&parse-body.
	(format-arglist-for-echo-area): New keyword arg, print-lines.
	Simplify the code as there is no need to fall back to the unparsed
	arglist any more.

	* slime.el (slime-fontify-string): Fix for arguments spanning
	multiple lines.
	(slime-autodoc-message-dimensions): New.
	(slime-autodoc-thing-at-point): Use it here to either ask for a
	one-line or a nicely formatted multi-line arglist.
	(slime-enclosing-operator-names): Handle linebreaks.

2006-03-24  Mikel Bancroft <mutandiz@yahoo.com>

	* swank-allegro.lisp (set-default-directory): Fix for pathnames
	without a trailing slash.

2006-03-24  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-background-activities-enabled-p): Allow
	"background activities" in sldb-mode.
	(slime-autodoc-message-ok-p): Allow autodoc in sldb-mode.
	(sldb-mode-syntax-table): New variable.
	(sldb-mode): Enable autodoc-mode when slime-use-autodoc-mode is
	true.  Use sldb-mode-syntax-table to make #<...> balance like
	parentheses.  This enables autodoc-mode to match #<unreadable>
	actual arguments in the backtraces with formal arguments of the
	function.
	(slime-beginning-of-symbol, slime-end-of-symbol): Handle
	es::|caped| symbols.
	(slime-enclosing-operator-names): Use syntax table to check
	whether we are at the beginning of a balanced expression.

2006-03-23  Christophe Rhodes <csr21@cam.ac.uk>

	* swank.lisp (ed-in-emacs): Allow conses as function names.
	Ensure that there is a connection to emacs before sending the
	:ed message.

	* slime.el (slime-edit-definition): read names, not symbols.
	(slime-ed): handle conses whose car is not a string as function
	names.

2006-03-23  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-qualify-cl-symbol-name): Strip leading colon
	from package names for qualifying symbols.
	(slime-call-defun): New command.
	(slime-keys): Bind it to C-c C-y.
	(slime-easy-menu): Show it in the menu.

	* slime.el (slime-autodoc-use-multiline-p): New defcustom.
	(slime-autodoc-message): Use it here.  Fix bug that autodoc
	messages exceeding one line could not be overwritten by later
	autodoc messages.
	(slime-autodoc-pre-command-refresh-echo-area): Use message
	rather than slime-background-message.

	* swank.lisp (casify): Removed.
	(casify-char, tokenize-symbol-thoroughly): New functions.
	(parse-symbol): Use tokenize-symbol-thoroughly, so as to handle
	|escaped symbols|.  This fixes arglist display for operators with
	strange symbol names.

2006-03-23  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-backend (accept-connection): add a 'timeout argument to
	this function.

	* swank-backend (set-stream-timeout): new implementation specific
	function.  Used to set the timeout for stream operations, which
	can help make the network connection establishment more robust.

	* swank (setup-server): ignore errors from the function 'serve to
	allow another connection to be made.

	* swank (serve-connection): ensure the listener socket is closed
	when 'dont-close is false, even if the connection attempt fails.

	* swank (accept-authenticated-connection): ensure the new
	connection is closed if the connection establishment fails.  Set a
	short stream timeout to prevent denial of survice.

	* swank (open-dedicated-output-stream): ensure the listener socket
	is closed, even if unable to open the dedicated stream.  Implement
	a timeout while waiting for a connection for the dedicate stream
	to prevent denial of service.

	* swank (create-connection): ensure the new connection is closed
	if not successful.

2006-03-22  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (arglist-for-echo-area): Fix when arg-indices are
	not given.

	* slime.el (slime-ed): Handle (FILENAME :charpos CHARPOS).

	* swank.lisp (inspect-for-emacs): Specialize on FILE-STREAM and
	STREAM-ERROR, offering to visit the file at the current stream
	position as an inspector action.  Useful for dealing with reader
	errors.

2006-03-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-autodoc-pre-command-refresh-echo-area):
	Show the last autodoc message again (movement commands clear it);
	technique to avoid flickering, taken from eldoc.
	(slime-autodoc-mode): Install it as a pre-command-hook.
	(slime-autodoc-last-message): New variable.
	(slime-autodoc-message): New function.
	(slime-autodoc): Use them here.
	(slime-autodoc-message-ok-p): OK to overwrite an autodoc message.

	* slime.el (slime-handle-indentation-update): Also update
	scheme-indent-function if slime-lisp-modes contains scheme-mode.

2006-03-19  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Highlight the formal argument corresponding to the actual
	argument around point in the echo-area arg-list display.
	Works most impressively when slime-autodoc-mode is enabled
	and when one has to deal with extremely long argument lists.

	* slime.el (slime-space): First insert the space, then obtain
	information.
	(slime-fontify-string): Also handle argument highlights.
	(slime-enclosing-operator-names): As a secondary value, return a
	list of the indices of the arguments to the nested operator.
	(slime-contextual-completions): Use changed interface of
	slime-enclosing-operator-names.
	(slime-function-called-at-point): Removed.
	(slime-function-called-at-point/line): Removed.
	(slime-autodoc-thing-at-point): New.
	(slime-autodoc): Re-implement with slime-enclosing-operator-names
	instead of slime-function-called-at-point.
	(slime-echo-arglist): Pass the argument indices to
	arglist-for-echo-area.
	(slime-autodoc-message-ok-p): Autodoc is also OK in REPL buffers.

	* swank.lisp (arglist-for-echo-area): New keyword argument
	arg-indices.
	(arglist-to-string): New keyword argument highlight.
	(format-arglist-for-echo-area): Likewise.

2006-03-18  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-goto-location-buffer): Avoid calling the
	expensive function find-file-noselect when we are already in the
	right buffer.

	* swank.lisp (arglist-for-echo-area): Add keyword argument
	print-right-margin.
	(arglist-to-string, format-arglist-for-echo-area): Likewise.
	* slime.el (slime-autodoc): Use it here to make use of the whole
	width of the echo area for arglist display.

2006-03-16  Gábor Melis <mega@hotpop.com>

	* swank-allegro.lisp (inspect-for-emacs): Fix typo.

2006-03-16  Gary King <gwking@metabang.com>

	* swank-loader.lisp (lisp-version-string): Modified swank-loader
	so that Allegro's alisp and mlisp programs get different
	locations. Otherwise mlisp complains about alisp's files.

2006-03-16  Marco Baringer <mb@bese.it>

	* slime.el (slime-to-lisp-filename): Call expand-file-name before
	passing the filename to the to-lisp function.

2006-03-14  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-system-history): New variable.
	(slime-read-system-name): Use a separate history list for ASDF
	system names.
	(slime-note-counts-message): New variable.
	(slime-show-note-counts): Store the note counts message for later use.
	(slime-highlight-notes, slime-list-compiler-notes): Show a
	progress message, keeping note counts visible.
	(slime-find-buffer-package): Handle IN-PACKAGE forms that appear
	in SWIG/Allegro CL wrappers.

	* swank-allegro.lisp (compile-from-temp-file): Suppress Allegro's
	redefinition warnings; they are pointless when we are compiling
	via a temporary file.
	(profile-report): Implement.

2006-03-06   Nathan Bird <nathan@acceleration.net>

	* slime.el (slime-create-filename-translator): use the tramp
	methods for dissecting and building filenames.

2006-03-04  Wojciech Kaczmarek <wojtekk@kofeina.net>

	* slime.el (slime-filename-translations): Typo in example.
	(slime-create-filename-translator): Typo in generated lambdas.

2006-03-03  Marco Baringer  <mb@bese.it>

	Allow per-host (per machine-instance actually) filename
	translation functions.

	* slime.el (slime-translate-to-lisp-filename-function): removed.
	(slime-translate-from-lisp-filename-function): removed.
	(slime-filename-translations): New variable.
	(slime-to-lisp-filename): Rewrote to search through available
	transalations.
	(slime-from-lisp-filename): idem.
	(slime-create-filename-translator): New function.
	(slime-add-filename-translation): New function.

2006-02-27  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-eval-macroexpand-inplace): Indent the inserted
	macroexpansion.

2006-02-27  Marco Baringer  <mb@bese.it>

	Provide functions for performing macroexpansion inplace, use these
	functions in the *SLIME macroexpansion* buffer.

	* slime.el (slime-macroexpansion-minor-mode): Attempt to map
	-inplace functions to the same keys as their regular contureparts
	in slime-mode-map.
	(slime-eval-macroexpand-inplace): New function.
	(slime-macroexpand-1-inplace): New function.
	(slime-macroexpand-all-inplace): New function.
	* doc/slime.texi: Document new macroexpansion mode.

2006-02-26  Douglas Crosher <dcrosher@common-lisp.net>
	* swank-scl.lisp: (ext:stream-read-chars):  Correct the updating of
	the buffer index.  Fixes slime input stream problems.

2006-02-25  Helmut Eller  <heller@common-lisp.net>

	* swank-loader.lisp (default-fasl-directory): Previously we return
	only the directory-namestring which breaks SCL, because it loses
	the host and device components.  Return the complete pathname
	instead.  Patch by Douglas Crosher.

	* slime.el (slime-lisp-host): New variable. Replace all references
	to "127.0.0.1" with the variable.

2006-02-25  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-backend.lisp (operate-on-system): symbol case fix for
	SCL's lowercase mode.

	* swak.lisp (setup-stream-indirection)
	(globally-redirect-io-to-connection)
	(revert-global-io-redirection): symbol case fixes.

	* swank-scl.lisp: (inspect-for-emacs):  Fixes for the inspect
	standard-objects, and inspect array.  Plus misc symbol case fixes.

2006-02-22  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-send-input): Don't include the final
	newline in the slime-repl-input-face overlay, thus avoid showing the
	"Evaluation aborted" message in boldface.  Don't set non-existent
	"rear-nonsticky" overlay property; overlay stickiness is
	controlled by make-overlay arguments.

2006-02-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Use argument list information to complete keywords contextually.
	Example:  (find 1 '(1 2 3) :s <M-TAB> --completes--> :start
	rather than suggesting all ever-interned keywords starting with ":s".

	* slime.el (slime-complete-keywords-contextually): New
	customizable variable.
	(slime-enclosing-operator-names): New optional argument
	max-levels.
	(slime-completions-for-keyword): New.
	(slime-contextual-completions): New.
	(slime-expand-abbreviations-and-complete): Use it instead of
	slime-completions.

	* swank.lisp (operator-designator-to-form): New, factored out from
	arglist-for-echo-area.
	(arglist-for-echo-area): Use it here.
	(completions-for-keyword): New.
	(find-matching-symbols-in-list): New.

2006-02-19  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-expand-abbreviations-and-complete): Scroll the
	completions buffer if the TAB key is pressed another time, like
	Emacs minibuffer completion does.

2006-02-18  Marco Baringer  <mb@bese.it>

	* slime.el (slime-macroexpansion-minor-mode): New minor mode for
	macroexpansion buffer. Exactly like slime-temp-buffer-mode but
	with slime-macroexpand-again bound to "g".
	(*slime-eval-macroexpand-expression*): New variable. introduced
	for slime-macroexpand-again, used by slime-eval-macroexpand as
	well.
	(slime-eval-macroexpand): Added optional string argument which
	defaults to (slime-sexp-at-point-or-error).
	(slime-macroexpand-again): New function, redoes the last
	macroexpansion.
	(slime-sexp-at-point-or-error): New function. Like
	slime-sexp-at-point but signals an error when slime-sexp-at-point
	would return nil.
	* swank-openmcl.lisp
	(swank-mop:compute-applicable-methods-using-classes): Implement.

2006-02-16  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* sbcl-pprint-patch.lisp: New file, adds the annotations feature
	to the SBCL pretty printer.  This is needed for sending
	presentations through pretty-printing streams.
	* present.lisp [sbcl]: Load it here.
	(slime-stream-p, write-annotation) [sbcl]: Handle pretty-streams.

2006-02-10  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp, swank-lispworks.lisp (inspect-for-emacs):
	Use the backend specific method to inspect standard-objects
	because {slot-boundp,slot-value}-using-class don't conform to the
	MOP spec in LW and ACL.

	* swank.lisp (macro-indentation): Don't count '&optional as
	argument.

	* swank-loader.lisp (default-fasl-directory): Include the SLIME
	version.
	(slime-version-string): New.

2006-02-06  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Show enriched arglists for DEFMETHOD in the echo area when the
	user types SPC after the generic function name.

	* swank.lisp (arglist-to-template-string): Unused, removed.
	(extra-keywords): Indicate which part of the actual arglist was
	used to determine the extra keywords.  For MAKE-INSTANCE, don't
	signal an error if the class does not exist.
	(enrich-decoded-arglist-with-extra-keywords): Indicate which part
	of the actual arglist was used to determine the extra keywords,
	and whether any extra keywords were added.
	(form-completion): Generalize to handle display of enriched formal
	arglists.
	(read-incomplete-form-from-string): New, factored out from
	complete-form.  Handle end-of-file.
	(complete-form): Use it here.
	(format-arglist-for-echo-area): Use form-completion, so as to
	show enriched formal arglists for MAKE-INSTANCE and DEFMETHOD
	calls.
	(arglist-for-echo-area): Handle MAKE-INSTANCE and DEFMETHOD
	calls.

	* slime.el (slime-enclosing-operator-names): Represent
	MAKE-INSTANCE calls by (:make-instance "CLASS-NAME"), handle
	DEFMETHOD too.

2006-02-05  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-complete-form): Indent the inserted template.

2006-02-04  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-fontify-string): New.
	(slime-echo-arglist, slime-arglist, slime-autodoc): Use it here to
	fontify echo-area arglists.

2006-02-02  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp: Added imports for slot-boundp-using-class,
	slot-value-using-class and finalize-inheritance.

2006-02-01  Alan Ruttenberg <alanr-l@mumble.net>

	* swank-abcl.lisp: define with-compilation-hooks (= funcall for
	now), so that you can do slime-oos

2006-01-30  Ian Eslick <eslick@csail.mit.edu>

        Show slot values for metaclasses that override the default storage
	locations for objects slots (i.e. where the default slot-boundp
	returns nil) in the inspector.

	* swank.lisp (inspect-for-emacs standard-object): Use
	slot-value-using-class and slot-boundp-using-class.

	* swank-backend.lisp: Add slot-value-using-class and
	slot-boundp-using-class to the swank-mop package.

2006-01-26  Luís Oliveira <loliveira@common-lisp.net>

	* slime.el (slime-enclosing-operator-names): detect make-instance
	forms and collect the class-name argument if it exists and is a
	quoted symbol.

	* swank.lisp (arglist-for-echo-area): handle pairs of of the form
	("make-instance" . "<class-name>") by passing them to
	format-initargs-and-initforms-for-echo-area.
	(class-initargs-and-iniforms): New function.
	(format-initargs-and-initforms-for-echo-area): New function.

2006-01-20  Mészáros Levente <melevy@freemail.hu>

	* swank-sbcl.lisp (restart-frame): Provide an implementation even
	if it doesn't quite do what it's supposed to do.

2006-01-19  Helmut Eller  <heller@common-lisp.net>

	Return to the previous loading strategy: load everything when
	swank-loader is loaded.  It's just to convenient to give that up.
	To customize the fasl directories, the new variable
	swank-loader:*fasl-directory* can be set before loading
	swank-loader.

	* swank-loader.lisp (*fasl-directory*, *source-directory*): New
	variables.
	(load-swank): Call it during loading.

2006-01-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-compile-defun): If point was at the opening
	paren we wrongly used the preceding toplevel form.  Fix it.
	Reported by Chisheng Huang and Liam M. Healy.

	* swank.lisp (spawn-threads-for-connection): Fix a race condition:
	Don't accept input before all threads are ready.

	Make the fasl directory customizable: load-swank must now be
	called explicitly so that we can supply the fasl dir as argument.

	* swank-loader.lisp (load-swank): New entry point.

2006-01-14  Andreas Fuchs <asf@boinkor.net>

	* slime.el (slime-selector ?r): Call slime instead of slime-start
	to pick up the usual defaults.

2005-12-31  Harald Hanche-Olsen <hanche@math.ntnu.no>

	* slime.el (slime-open-stream-to-lisp): Inherit the
	process-coding-system from the current connection.

2005-12-27  Alan Ruttenberg <alanr-l@mumble.net>

	* swank-abcl. (backtrace-as-list-ignoring-swank-calls): remove the
	swank calls from the backtrace to make it easier to use.
	(frame-locals): Fix a typo that caused entry into the debugger if
	you tried to look at frame locals. Now you don't error out, but
	you still don't see frame locals because I don't know how to get
	them :(

2005-12-27  Helmut Eller  <heller@common-lisp.net>

	Keep a history of protocol events for better bug reports.

	* swank.lisp (log-event): Record the event in the history buffer.
	(*event-history*): Buffer for events.
	(dump-event-history): New function.
	(close-connection): Escape non-ascii strings and include the event
	history in the error message.

2005-12-22  Helmut Eller  <heller@common-lisp.net>

	Make highlighting of modified text a minor mode. Also use
	after-change-functions instead of rebinding all self-inserting
	keys.

	* slime.el (slime-highlight-edits-mode): New minor mode.
	(slime-self-insert-command): Deleted.
	(slime-before-compile-functions): New hook to decouple edit
	highlighting from compilation.
	(slime-highlight-edits-face): Renamed from slime-display-edit-face.

2005-12-20  Marco Baringer  <mb@bese.it>

	When inspecting classes, methods and generic functions show all
	the slots in the case that what we're inspecting is a subclass of
	the standard class and has extra user defined slots.

	* swank.lisp (all-slots-for-inspector): New function.
	(inspect-for-emacs): Use all-slots-for-inspector.

2005-12-19  Peter Seibel  <peter@gigamonkeys.com>

	* slime.el (slime-self-insert-command): Got rid of message about
	setting up face and skipping edit-hilights when in a comment.

2005-12-18  Nikodemus Siivola <nikodemus@random-state.net>

	* slime.el (slime-mode-hook): Bind simple characters to
	slime-self-insert-command only if there was no previous local
	binding, and the major mode is _not_ slime-repl-mode. This
	restores keybindings of slime-xref-mode and prevents us from
	stomping on user bindings. The hilighting also makes no sense in
	the REPL.

2005-12-16  Nikodemus Siivola <nikodemus@random-state.net>

	* slime.el (slime-selector-method: ?r): If no connection offer to
	start Slime.

	* swank.lisp (to-string): Handle errors from printing objects.
	Among other things makes the inspector more robust in the face of
	objects with unbound slots and print-methods that fail to cope.

2005-12-16  William Bland <doctorbill.news@gmail.com>

	Added hilighting of tetx which has been edited but not yet
	compilied.

	* slime.el (slime-display-edit-hilights): New variable.
	(slime-display-edit-face): New face.
	(slime-compile-file, slime-compile-defun, slime-compile-region):
	Remove edits overlay.
	(slime-remove-edits): New function.
	(slime-self-insert-command): New function.
	(slime-mode-hook): Rebind simple characters to
	slime-self-insert-command.

2005-12-07  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank-allegro.lisp (find-definition-in-file)
	(find-fspec-location, fspec-definition-locations): Allegro CL
	properly records all definitions made by arbitrary macros whose
	names start with "def".  Use excl::find-source-file and
	scm:find-definition-in-definition-group (rather than
	scm:find-definition-in-file) to find them.

	* slime.el (slime-load-file): Change the default to be the buffer
	file name with extension.  This is more convenient for files like
	.asd files that do not have the default source file extension.
	(slime-save-some-lisp-buffers, slime-update-modeline-package):
	Handle all files with major mode in slime-lisp-modes, not just
	lisp-mode.

2005-12-06  Juho Snellman <jsnell@iki.fi>

	* swank-sbcl.lisp (function-source-location,
	safe-function-source-location): Oops, define these functions also
	for the >0.9.6 case. Fixes broken sldb-show-source on SBCL 0.9.7.

2005-12-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-find-coding-system): Use check-coding-system
	only if it's actually fbound.

2005-11-22  Marco Monteiro <masmxx@gmail.com>

	* slime.el (slime-connect): Use slime-net-coding system if the
	optional arg coding-system was not supplied.

2005-11-22  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-compile-file): Call 'check-parens before
	compiling.
	(slime-compile-file): Call 'check-parens before compiling.
	(slime-find-coding-system): Return nil if the coding system
	isn'tvalid instead of singalling an error.
	(slime-repl-history-file-coding-system): Use
	slime-find-coding-system to find the default.

	* swank-cmucl.lisp (accept-connection): Remove fd-handlers if the
	encoding isn't iso-latin-1.

2005-11-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-start): Don't set slime-net-coding-system ..
	(slime-read-port-and-connect): .. read it from the inferior lisp args.
	(slime-connect): Take the coding-system as third argument.
	(slime-repl-history-file-coding-system): New user option.
	(slime-repl-safe-save-merged-history): New function.  Use it in
	hooks so that bad coding systems don't stop us from exiting.
	(slime-repl-save-history): Include the coding-system which was
	used to save the buffer.
	(repl-shoctut change-package): Add alias ,in and ,in-package.
	(slime-eval-macroexpand): Error out early if there's no sexp at
	point.
	(slime-compiler-macroexpand): New command.
	(slime-inspector-pprint): New command.

	* swank-cmucl.lisp (inspect-for-emacs): Add support for
	funcallable instances.

	* swank.lisp (pprint-inspector-part, swank-compiler-macroexpand): New.

	* swank-backend.lisp (compiler-macroexpand)
	(compiler-macroexpand-1): New functions.

2005-11-14  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl.lisp (accept-connection): handle the :buffering argument.

2005-11-13  Andras Simon <andras@renyi.hu>

	* swank-abcl.lisp: (accept-connection): New argument: buffering.

2005-11-13  Andras Simon <andras@renyi.hu>

	* swank-abcl.lisp: Steal auto-flush stuff from swank-sbcl.lisp

2005-11-11  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*dedicated-output-stream-buffering*): New variable
	to customize the buffering scheme.  For single-threaded Lisps we
	disable buffering because lazy programmers forget to call
	finish-output.
	(open-dedicated-output-stream): Use it.

	* swank-backend.lisp, swank-allegro.lisp, swank-lispworks.lisp,
	swank-openmcl.lisp, swank-cmucl.lisp, swank-sbcl.lisp,
	swank-clisp.lisp, swank-abcl.lisp, swank-corman.lisp,
	swank-ecl.lisp (accept-connection): New argument: buffering.

	* slime.el (slime-repl-save-history): When the history exceeds
	slime-repl-history-size remove the old not the new entries.
	Some renaming:
	slime-repl-read-history -> slime-repl-load-history,
	slime-repl-read-history-internal -> slime-repl-read-history.
	(slime-eval-macroexpand): Call font-lock-fontify-buffer
	explicitly, because with certain Emacs versions the buffer doesn't
	get fontified immediately.

2005-11-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-eval-macroexpand): Use lisp-mode (and
	font-lock-mode) when dispaying the expansion.  Suggested by Jan
	Rychter.

	* swank-source-path-parser.lisp (make-source-recording-readtable):
	Suppress the #. reader-macro.

2005-11-06  Juho Snellman <jsnell@iki.fi>

	* swank-sbcl.lisp (find-definitions, make-source-location-specification
          make-definition-source-location, source-hint-snippet): As of
          SBCL 0.9.6.25 SB-INTROSPECT has better support for finding
          source locations. Use as much of it in swank-sbcl as possible.
          (Original version left reader-conditionalized for older SBCLs).

2005-11-04  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (connection-info): Docfix.

	* slime.el (slime-set-connection-info): Generate a new connection
	name only if the implementation-name and the inferior-lisp-name
	are different.

2005-10-31  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-start, slime-lookup-lisp-implementation)
	(slime-set-connection-info): Add a :name property for the
	implementation and use it to derive the connection-name.
	(slime-lisp-implementation-name): Renamed from
	slime-lisp-implementation-type-name.

	* swank.lisp (simple-serve-requests): Add an extra abort restart.
	(connection-info): Rename :type-name to :name.

2005-10-30  Andras Simon <andras@renyi.hu>

	* swank-abcl.lisp (inspect-for-emacs): Track mop changes in ABCL.

2005-10-30  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-eval): Ensure that the connection is open before
	waiting for input.

	* swank.lisp (simple-serve-requests): Close the connection at the
	end.

2005-10-23  Harald Hanche-Olsen <hanche@math.ntnu.no>

	* slime.el (slime-init-keymaps): Use vectors when defining keys,
	because e.g. (define-key (string ?\C-c) ...) doesn't work in the
	emacs-unicode-2 branch.

2005-10-23  Stefan Kamphausen <skampi@gmx.net>

	* slime.el (slime-repl-history-size, slime-repl-history-file): Use
	defcustom to declare the variables.

2005-10-23  Gábor Melis  <mega@hotpop.com>

	* swank-backend.lisp (install-debugger-globally): new interface
	function

	* swank.lisp (install-debugger): call install-debugger-globally

	* swank-sbcl.lisp (install-debugger-globally): set
	sb-ext:*invoke-debugger-hook* too

2005-10-23  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (make-stream-interactive): Spawn a thread to
	flush interactive streams in reasonably short intervals.
	Remove the old backward-compatible threading implementation.

	* swank.lisp (package-string-for-prompt): Respect *print-case*.

2005-10-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-start-swank-server): Avoid comint-send-input
	here as it seems to trigger a bug in ansi-color-for-commit-mode.

2005-10-18  Douglas Crosher <dcrosher@common-lisp.net>

	* swank.lisp (canonical-package-nickname): always return the
	package name as a STRING if found.  This restores the printing of
	package names as strings.

2005-10-17  Marco Baringer  <mb@bese.it>

	* swank.lisp (eval-in-emacs): Instead of taking a string and
	attempting to parse it emacs side the function now takes a form
	and converts it to a string internally. This should allow users of
	the function to not have to worry about quoting issues and emacs'
	different printed represenation for, among other things,
	characters.
	(process-form-for-emacs): New function. Converts a list into a
	string for passing to emacs.

	* slime.el (slime-eval-for-lisp): New API. This function now takes
	a single string, representing the form to evaluate, and uses
	emacs' read function to convert it into a form before eval'ing it.
	(slime-dispatch-event): The :eval event now passes a single
	string (instead of a string and something looking kind of like a
	form).

2005-10-15  Douglas Crosher <dcrosher@common-lisp.net>

	* swank-scl.lisp: Support for Scieneer Common Lisp.

	* swank-backend.lisp (*gray-stream-symbols*) Scieneer Common Lisp
	implements stream-line-length.

	* swank-loader.lisp: Support for Scieneer Common Lisp:
	(*sysdep-pathnames*) use swank-scl.
	(*impl ementation-features*) add :scl.
	(*os-features*) add :hpux.
	(*architecture-features*) add :amd64, :i686, :i486, :sparc64, :sparc,
	   :hppa64, and :hppa.

	* swank.lisp: (*canonical-package-nicknames*) use lowercase
	symbols to name the packages.  This supports CL implementations
	with lowercase default symbol names, such as Scieneer Common Lisp,
	while still being compatible with ANSI-CL.

2005-10-11  Stefan Kamphausen <skampi@gmx.net>

	* slime.el: Persistent REPL history.  The history from REPL
	buffers is now saved to the file ~/.slime-history.eld.  The file
	is read on startup and saved when a REPL buffer gets killed or
	when Emacs exits.  There are also commands to save or read the
	history file.
	(slime-repl-save-merged-history, slime-repl-merge-histories)
	(slime-repl-read-history, slime-repl-save-history): New functions.
	(slime-repl-history-file, slime-repl-history-size): New vars.
	(slime-repl-mode): Add hooks to load and save the history.

2005-10-11  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-read-interactive-args): Split the string
	inferior-lisp-program to get the values for :program and
	:program-args.  Also let slime-lisp-implementations take
	precedence if non-nil.
	(slime-lisp-implementations): Renamed from
	slime-registered-lisp-implementations.

	* swank.lisp (force-user-output): There seems to be a bug in
	Allegro's two-way-streams. As a workaround we use force-output for
	the user-io stream.  (finish-output *debug-io*) still triggers the
	bug.

2005-10-10  Svein Ove Aas  <svein.ove@aas.no>

	* swank-allegro.lisp (find-external-format): Translate :utf-8-unix
	to :utf8, which Allegro 7.0 understands.

2005-10-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime, slime-start): Introduce a separate function for
	the non-interactive case.  `slime-start' takes lots of keyword
	arguments and `slime' is reserved for interactive use.
	(slime-read-interactive-args): New function.
	(slime-maybe-start-lisp, slime-inferior-lisp)
	(slime-start-swank-server): Pass all arguments needed to start
	the subprocess as a property list.  Also store this list in a
	buffer-local var in the inferior-lisp buffer, so that we can
	cleanly restart the process.
	(slime-registered-lisp-implementations): Change the format and
	document it.  M-- M-x slime can now be used select a registered
	implementation.
	(slime-symbolic-lisp-name): Deleted. And updated all the functions
	which passed it along.
	(slime-set-connection-info): Use the new format.
	(slime-output-buffer): Don't re-initialize buffer-local variables
	if the buffer already exists.  This saves the history. From Juho
	Snellman.

	* swank-cmucl.lisp (sis/in): Use finish-output instead of
	force-output.

	* swank.lisp (connection-info): Include the initial package and
	a more self-descriptive format.

2005-10-01  Juho Snellman  <jsnell@iki.fi>

	* swank-backend (*gray-stream-symbols*): Add :STREAM-LINE-LENGTH
        to *GRAY-STREAM-SYMBOLS* on implementations that support this
        extension to gray streams. Reported by Matthew D Swank.

2005-09-29  Luke Gorrie  <luke@synap.se>

	* swank-scheme48: Removed due to excessive whining.

2005-09-28  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-multiprocessing): Deleted. No longer needed.
	(slime-init-command): Updated accordingly.
	(slime-current-package): Add a special case for Scheme.
	(slime-simple-completions, slime-apropos): Quote the package,
	because in can be a plain symbol in Scheme.
	(slime-inspector-reinspect): Use a proper defslimefun.

	* swank.lisp (inspector-reinspect): New function.
	(start-server): Call initialize-multiprocessing before starting
	the server and startup-idle-and-top-level-loops afterwards.
	Calling startup-idle-and-top-level-loops here shouldn't be a
	problem because start-server is only invoked at startup via stdin.

	* swank-scheme48/source-location.scm: New file. For M-.
	* swank-scheme48/module.scm (list-all-package): New function.
	* swank-scheme48/interfaces.scm (module-control-interface): Export it.
	* swank-scheme48/inspector.scm: Add methods for records and hashtables.
	(swank:arglist-for-echo-area): Implement it.  Only works for
	functions with enough debug-data (ie. only user-defined functions).
	* swank-scheme48/completion.scm: New file.
	(swank:simple-completions, swank:apropos-list-for-emacs): Implemented.
	* swank-scheme48/load.scm, swank-scheme48/defrectypeX.scm: Renamed
	the file from defrectype*.scm
	* swank-scheme48/packages.scm (swank-general-rpc): Don't use
	posix-process because it doesn't work on Windows, and we don't need
	it for a mulithreaded server.

2005-09-22  Helmut Eller  <heller@common-lisp.net>

	* swank-backend.lisp (*gray-stream-symbols*): Collect the needed
	symbols here, so that we don't need to mention them in every
	backend.
	(import-from). New function.

	* swank-sbcl.lisp, swank-allegro.lisp, swank-lispworks.lisp,
	swank-openmcl.lisp, swank-ecl.lisp: Use *gray-stream-symbols* when
	importing the needed symbols.

	* swank-gray.lisp (stream-fresh-line): Define a method, so that
	Allegro passes our tests.

2005-09-21  Aleksandar Bakic <a_bakic@yahoo.com>

	* swank.lisp (accept-authenticated-connection): Minor fix. Ensure
	that the decoded message is a string before calling string= on it.

2005-09-21  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-setup-command-hooks): Make
	after-change-functions a buffer-local variable; it's by default
	global in XEmacs.

	* swank.lisp (throw-to-toplevel): Invoke the `abort-restart'
	request instead of throwing to the `slime-toplevel' catch tag.
	(handle-request): Rename the restart from abort to abort-request.
	(call-with-connection): Remove the slime-toplevel catch tag
	because with-connection is used in far to many places which aren't
	at "toplevel".

	* present.lisp (presentation-start, presentation-end): Use
	finish-output instead of force-output.

	* swank-gray.lisp, swank-cmucl.lisp: Improve stream efficiency by
	buffering more output. stream-force-output simply does nothing, if
	the output buffer was flushed less than 200 millisecons before.
	stream-finish-output can still be used to really flush the buffer.
	(slime-output-stream): New slot last-flush-time.
	(stream-finish-output): New function. Do what stream-force-output
	did previously.
	(stream-force-output): Buffer more output.

	* slime.el (slime-process-available-input): Oops, don't start a
	timer for every event.
	(slime-write-string): Renamed from slime-output-string.
	(slime-dispatch-event): Rename :read-output to :write-string.
	(slime-io-speed-test): New command.
	(slime-open-stream-to-lisp): Fix parens. The coding system should
	also be set if presentations are disabled.

	* swank.lisp (make-output-function): Rename :read-output to
	:write-string.
	(eval-for-emacs, interactive-eval, eval-region): Use finish-output
	not force-output.

	* swank-sbcl.lisp, swank-openmcl.lisp, swank-allegro.lisp,
	swank-lispworks: Import `stream-finish-output'.

	* swank-scheme48/io.scm (empty-swank-output-buffer): Rename
	:read-output to :write-string.

	* swank-scheme48/load.scm (slime48-start): Fix '() vs. #f bug.

2005-09-19  Luke Gorrie  <luke@synap.se>

	* nregex.lisp: Released into the public domain by Lawrence E. Freil.

2005-09-19  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime48): New command.

2005-09-19 Taylor R. Campbell <campbell@mumble.net>

	* swank-scheme48/: New backend.

2005-09-18  Wolfgang Jenkner  <wjenkner@inode.at>

	* bridge.el: cl is required at macro expansion time (because of
	`block').  Reported by Matthew D Swank.

2005-09-18  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp: Move presentation menu protocol here from present.lisp.

2005-09-15  Alan Ruttenberg <alanr-l@mumble.net>
	* slime.el (slime-repl-return) don't copy presentation to input if
	already in input area.

2005-09-15  Helmut Eller  <heller@common-lisp.net>

	* swank-clisp.lisp (compute-backtrace): Include only "function
	frames" in the backtrace.  I hope that makes some sense.
	(sldb-backtrace, function-frame-p): New functions.
	(*sldb-backtrace*, call-with-debugging-environment, nth-frame):
	Compute and remember the backtrace when entering the debugger.
	(arglist): If the function has a function-lambda-expression, fetch
	the arglist from there.
	(find-encoding): Use strings instead of 'charset:foo symbols to
	avoid compile time problems if the charset is not available.
	Suggested by Vaucher Laurent.

	* swank.lisp (eval-in-emacs): Fix a race condition which occurred
	with sigio.
	(*echo-area-prefix*): New variable.

	* slime.el (slime-process-available-input): Simplify it a bit and
	make it easier to debug read errors.
	(slime-net-close): Don't kill the buffer if the new optional arg
	`debug' is true.
	(slime-run-when-idle): Accept arguments for the function.
	(slime-init-connection-state): Close over the proc variable. It
	was lost when the async evaluation returned.
	(slime-output-buffer, slime-connection-output-buffer): Make
	slime-output-buffer faster by keeping the buffer in a connection
	variable.
	(slime-restart-inferior-lisp-aux, slime-quit-lisp): Disable the
	process filter to avoid errors in XEmacs.

2005-09-14  Alan Ruttenberg <alanr-l@mumble.net>

	* slime.el (slime-menu-choices-for-presentation),
	(slime-presentation-menu) Fix loss after refactoring. xemacs can't
	handle lambda forms in the menu spec given to x-popup-menu, only
	symbols, so save the actions in a hash table keyed by a gensym,
	give x-popup-menu the gensym and then call the gensym. Haven't
	checked that it actually works in xemacs because my xemacs is
	hosed in os x Tiger. Could someone let me know...

	* swank.lisp (inspect-factor-more-action)
	rename (inspect-show-more-action) Prompt before reading how many
	more. Would be nicer to prompt in the minibuffer...

2005-09-14  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-presentation-expression): Remove handling of
	cons presentation-ids.

2005-09-13  Alan Ruttenberg <alanr-l@mumble.net>

	* slime.el (defcustom slime-ed-use-dedicated-frame ... vs defvar

	(defcustom slime-when-complete-filename-expand: Use
	comint-replace-by-expanded-filename instead of
	comint-dynamic-complete-as-filename to complete file names

	* swank.lisp (run-repl-eval-hooks .. finally (return vs no return

	inspector-call-nth-action Allow second value :replace for
	inspector actions

	(defvar *slime-inspect-contents-limit* default nil. How many
	elements of a hash table or array to show by default. If table has
	more than this then offer actions to view more. Set to nil for no
	limit. Probably should set default to reasonable value - I like
	200.

	(inspect-for-emacs ((ht hash-table) inspector)) - banner line is
	hash table object.  Respect *slime-inspect-contents-limit*

	(defmethod inspect-for-emacs ((array array) inspector)
	Respect *slime-inspect-contents-limit*

	* swank-openmcl.lisp inspector for closures shows closed-over
	values. To be fixed: inspector-princ needs to be loaded earlier
	since swank package not available when compiling

2005-09-13  Helmut Eller  <heller@common-lisp.net>

	* present.lisp (menu-choices-for-presentation-id): Use
	lookup-presented-object secondary return value instead of
	*not-present*.
	(execute-menu-choice-for-presentation-id, presenting-object-1):
	Remove references to *can-print-presentation*.

	* slime.el (slime-current-output-id): Remove this ugly klugde.
	(slime-repl-insert-result): New function. Handle the presentations
	and other special cases cleaner.
	(slime-repl-insert-prompt): Use it. The `result' arg is now a
	structured list; update callers accordingly.
	(slime-repl-return): Make the prefix arg work again.
	(package-updating): The result of swank::listener-eval changed a
	bit. Update the test.

	Remove some unnecessary uses of `defun*' and reindent it to 80
	columns.

	* swank.lisp: Simplify the object <-> presentation-id mapping.
	(save-presented-object): Remove the optional `id' arg.
	(lookup-presented-object): Id should be a fixnum not some cons
	with fuzzy/non-documented meaning.  Use the secondary return value
	to test for absence of the id.  Update callers accordingly.
	(*not-present*): Deleted.

	Remove the repl result special cases, let the general presentation
	machinery handle it.
	(*last-repl-result-id*, add-repl-result, *current-id*)
	(clear-last-repl-result): Deleted.
	(listener-eval): Don't *current-id* to tag result values.

	(*can-print-presentation*): Deleted. Nobody quite knows whether
	it's still needed so let just try without it.  Updated referrers
	accordingly.

	(eval-region, run-repl-eval-hooks): Move the eval hook stuff to
	a separate function.

	* swank-loader.lisp (lisp-version-string)[cmu]: Replace spaces
	with underscores.

2005-09-12  NIIMI Satoshi <sa2c@sa2c.net>

	* swank.lisp, slime.el, swank-clisp.lisp, swank-sbcl.lisp: add
	EUC-JP as coding system.  This patch eliminates the requirement of
	Mule-UCS to use Japanese characters.  (Nice for pre-22 Emacs
	users.)

2005-09-10  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-enable-evaluate-in-emacs): Resurrected.
	(slime-dispatch-event): Respect slime-enable-evaluate-in-emacs for
	messages :eval-no-wait and :eval.

2005-09-09  Alan Ruttenberg <alanr-l@mumble.net>
	* slime.el (slime-choose-overlay-region). Don't try to overlay a
	note if location is nil.

2005-09-08  Alan Ruttenberg <alanr-l@mumble.net>

	* bridge.el Fix bug in bridge filter where a bridge message which
	straddled a packet would be mishandled. Sometimes this would
	result in spurious bridge message text being inserted with the
	presentation and the presentation not being sensitive. In other
	cases there would be an actual error. Introduce bridge-leftovers
	to save the last, unfinished bit for the next call, and prepend it
	before processing a chuunk. Also, fix the parentheses so that the
	unwind protect cleanup forms are actually in the cleanup section.
	In openmcl, where apparently communication with slime is done in
	2k chunks, you can trigger the bug with something like this:
	(swank::presenting-object 'foo t
	  (dotimes (i 2040) (write-char	#\:)))

	* swank-openmcl.lisp (handle-compiler-warning). Don't create a
	location if the condition doesn't have a filename. If it does,
	make sure you pass a string rather than a pathname object
	otherwise you get a net-read error

2005-09-07  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* present.lisp (menu-choices-for-presentation): The
	Inspect/Describe/Copy items are now provided from the Emacs side.
	Implement all pathname menu items without having Emacs evaluate a
	form.  Fix for Lisps where ".lisp" is parsed as :name ".lisp".

	* slime.el (slime-menu-choices-for-presentation): New function,
	return a menu with Inspect/Describe/Copy plus the items that come
	from the menu protocol.
	(slime-presentation-menu): Security improvement for the
	presentation menu protocol: Don't eval arbitrary forms coming from
	the Lisp.  Minor cleanup: Use x-popup-menu in the normal Emacs way,
	associating a command with each menu item.

2005-09-05  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (background-message): New function. Forward the
	call to the front end.
	(pre-gc-hook, post-gc-hook): Use it.
	(swank-sym, sending-safe-p): Deleted.

	* swank.lisp (y-or-n-p-in-emacs): Simplify arglist.
	(evaluate-in-emacs, dispatch-event, send-to-socket-io): Remove
	evaluate-in-emacs stuff.
	(to-string): Undo last change. to-string is not to supposed to
	ignore errors.  Bind *print-readably* instead.
	(background-message): New function.
	(symbol-external-p): Simplify it a little.

	* slime.el (slime-setup-command-hooks): Add after-change-functions
	only if presentations are enabled.
	(slime-dispatch-event, slime-enable-evaluate-in-emacs)
	(evaluate-in-emacs): Remove evaluate-in-emacs stuff.  It was not
	used and redundant.
	(slime-save-some-lisp-buffers): Renamed from
	save-some-lisp-buffers.
	(slime-choose-overlay-region): Ignore :source-form locations.
	(slime-choose-overlay-for-sexp): Ignore errors when stepping over
	forms.
	(slime-search-method-location, slime-goto-location-position): Move
	all this regexpery to its own function.
	(slime-recenter-if-needed, slime-repl-return): Factor some
	duplicated code into its own function.
	(slime-presentation-bounds, slime-presentation-around-point)
	(slime-presentation-around-or-before-point): Minor cleanups.

2005-09-04  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-ensure-presentation-overlay): New.
	(slime-add-presentation-properties): Don't add face, mouse-face,
	keymap text properties.  Call slime-ensure-presentation-overlay to
	implement them via overlays.
	(slime-remove-presentation-properties): Don't remove these text
	properties.  Delete the right overlay.
	(slime-after-change-function): Add overlays for presentations if
	necessary.
	(slime-copy-presentation-at-point): Don't add face text property.
	(slime-repl-grab-old-output): Likewise.

2005-08-31  Marco Baringer  <mb@bese.it>

	* swank.lisp (to-string): Handle errors during printing of objects.

2005-08-30  Alan Ruttenberg <alanr-l@mumble.net>
	* slime.el (slime-mark-presentation-start/end-handler) modify
	regexp to recognize negative presentation ids to make
	presenting-object work with bridge mode.

2005-08-30  Luke Gorrie  <luke@synap.se>

	* present.lisp: Added public domain dedication (OK'd by Alanr and
	Matthias on the list).

2005-08-29  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank-lispworks.lisp (env-internals:confirm-p): Use new function
	y-or-n-p-in-emacs rather than eval-in-emacs.

	* swank-cmucl.lisp (eval-in-emacs): Removed.
	(send-to-emacs): New.
	(pre-gc-hook, post-gc-hook): Use new protocol message
	:background-message rather than eval-in-emacs.

	* swank.lisp (dispatch-event, send-to-socket-io): Handle new
	messages :y-or-n-p, :background-message.
	(y-or-n-p-in-emacs): New function.

	* slime.el (slime-dispatch-event): Handle new messages :y-or-n-p,
	:background-message.
	(slime-y-or-n-p): New.

2005-08-29  Alan Ruttenberg <alanr-l@mumble.net>

	* slime.el (sldb-insert-condition) - Add tooltip for long
	condition string which otherwise falls off the right of the screen
	* swank.lisp (list-threads) - thread name might be a symbol - pass
	the symbol name when that happens

2005-08-29  Juho Snellman  <jsnell@iki.fi>

	* swank-sbcl.lisp (make-weak-key-hash-table): Remove the
        implementation; SBCL doesn't actually support weak hash-tables.

2005-08-28  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-repl-kill-input): New command.
	(slime-repl-mode-map): Bind it to C-c C-u, like in comint.
	(slime-repl-easy-menu): Include it in the REPL menu.
	(slime-repl-mode-hook): Show the SLIME menu in the REPL too.

	* swank-backend.lisp (make-weak-key-hash-table)
	(make-weak-value-hash-table): New interfaces.
	* swank-cmucl.lisp (make-weak-key-hash-table): Implement it.
	* swank-sbcl.lisp (make-weak-key-hash-table): Implement it.
	* swank-openmcl.lisp (make-weak-key-hash-table)
	(make-weak-value-hash-table): Implement it.

	* swank.lisp (*object-to-presentation-id*)
	(*presentation-id-to-object*): Use new functions
	make-weak-key-hash-table, make-weak-value-hash-table.

	* slime.el (slime-enable-evaluate-in-emacs): New variable.
	(evaluate-in-emacs): Security improvement: If
	slime-enable-evaluate-in-emacs is nil (the default), don't
	evaluate forms sent by the Lisp.

	* swank.lisp (send-to-socket-io): Handle :evaluate-in-emacs.

2005-08-27  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-presentation-menu): When an object is no longer
	recorded, remove text properties from the presentation.

2005-08-15  Alan Ruttenberg  <alanr-l@mumble.net>

	* swank-openmcl.lisp (condition-source-position)
	ccl::compiler-warning-stream-position is sometimes nil, so placate
	this function by making it (or .. 0). Wrong but I don't have
	enough time now to figure out what the right thing is.


2005-08-24  Marco Baringer  <mb@bese.it>

	* swank.lisp (fuzzy-find-matching-symbols): When completing the
	string "package:" present a list of all the external symbols in
	package (completing "package::" lists internal symbols as well).
	(inspect-for-emacs standard-class): List all the slots in the
	class (as per standard-object). The previous method of hard coding
	the slots in the inspector's code made inspecting custom
	meta-classes useless.

2005-08-24  Christophe Rhodes  <csr21@cam.ac.uk>

	* swank-sbcl.lisp (method-definitions): present qualifiers (if
	any).

2005-08-23  Taylor R. Campbell  <campbell@bloodandcoffee.net>

	* slime.el (slime-goto-location-position): Added a second regexp
	for the :function-name case which matches "(def... ((function-name
	..." (with N opening parens preceding the function name). This is
	to allow scheme48 style function names and definitions.

2005-08-22  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp (fspec-pathname): Cope with CVS CLISP's
	(documentation symbol 'sys::file) returning a list.  Return either
	a list of start and end line positions or nil as second value.
	(fspec-location): Use it.  Also, if we have to guess the name of a
	source file make sure that it actually exists.

	(with-blocked-signals, call-without-interrupts): Don't add
	:linux to *features* since this changes the return value of
	unique-directory-name in swank-loader.lisp.
	Comment out with-blocked-signals.

	Update some comments at the top of the file.
	State the licence in the same terms as slime.el does.

2005-08-21  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* present.lisp (menu-choices-for-presentation-id): Check against
	the gensym in *not-present* instead of :non-present.

2005-08-20  Christophe Rhodes  <csr21@cam.ac.uk>

	* swank-sbcl.lisp (preferred-communication-style): guard against
	non-Linux non-linkage-table platforms (and assume that they won't
	have dodgy threads) with #+linux.

2005-08-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Enable nested presentations.

	* slime.el (slime-presentation): Remove slots start-p, stop-p.
	(slime-add-presentation-properties): Use a new text property
	layout.  Also add an overlay to enable nested highlighting.
	(slime-remove-presentation-properties): New.
	(slime-presentation-whole-p): Changed interface.
	(slime-presentations-around-point): New.
	(slime-same-presentation-p): Removed.
	(slime-presentation-start-p, slime-presentation-stop-p): New.
	(slime-presentation-start, slime-presentation-end): Changed to use
	new text property layout.
	(slime-presentation-bounds): New.
	(slime-presentation-around-point): Reimplemented to handle nested
	presentations.
	(slime-for-each-presentation-in-region): New.
	(slime-after-change-function): Use
	slime-remove-presentation-properties and
	slime-for-each-presentation-in-region.
	(slime-copy-presentation-at-point): Complain if no presentation.
	(slime-repl-insert-prompt): Don't put rear-nonsticky text property.
	(slime-reify-old-output): Handle nested presentations.
	(slime-repl-return): Use slime-presentation-around-or-before-point.

	Enable reification of presentations in non-REPL buffers.

	* slime.el (slime-buffer-substring-with-reified-output): New,
	factored out from slime-repl-current-input.
	(slime-repl-current-input): Use it here.
	(slime-last-expression): Use it here.

	(slime-add-presentation-properties): Add text properties
	modification-hooks et al. to enable self-destruction of incomplete
	or edited presentations in non-REPL buffers.

2005-08-15  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el (slime-goto-location-position) fix so the :method locator
	regexp so that it can find eql specializers, (setf foo) methods, and to
	allow (a single) newline between arguments in the arglist.

	* swank-openmcl.lisp (specializer-name) patch from Gary Byers and
	Bryan O'Conner to fix complaint about certain classes slipping
	through the etypecase

2005-08-14  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-mark-presentation-end): Really remove the
	presentation-start entry from the hash table.

	Merge some code from present.lisp, removing code duplication.
	Minor code clean-up.

	* swank.lisp (*object-to-presentation-id*)
	(*presentation-id-to-object*, clear-presentation-tables)
	(*presentation-counter*, lookup-presented-object): Move here from
	present.lisp.
	(save-presented-object): Likewise.  Assign negative numbers only,
	so as not to clash with continuation ids.

	* swank.lisp (*repl-results*): Removed.

	* swank.lisp (get-repl-result, clear-repl-results): Use new
	implementations from present.lisp.
	(add-repl-result): Likewise, don't take the negative of the id.
	(*last-repl-result-id*): New variable.
	(clear-last-repl-result): Use it here.

	* slime.el (slime-repl-insert-prompt): Don't take the negative of
	the id.
	(slime-presentation-expression): New, take care to handle
	arbitrary *read-base* settings.
	(reify-old-output): Use it here.
	(slime-read-object): Use it here.

2005-08-12  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (substring-no-properties): Fix to handle non-zero start
	argument correctly.

	Patch to remove use of the slime-repl-old-output text property in
	favor of the slime-repl-presentation text property, in order to
	simplify the code.

	* slime.el (slime-presentation-whole-p): Generalize to work with
	strings too.
	(slime-presentation-start, slime-presentation-end): Likewise.
	(slime-presentation-around-point): Likewise.
	(slime-presentation-around-or-before-point): New.

	* slime.el (reify-old-output): Use slime-repl-presentation
	property and slime-presentation-around-point function rather than
	slime-repl-old-output property.
	(slime-repl-return): Use slime-repl-presentation rather than
	slime-repl-old-output.
	(slime-repl-grab-old-output): Use
	slime-presentation-around-or-before-point.
	(slime-read-object): Use slime-presentation-around-point.

	* slime.el (toplevel): Don't handle slime-repl-old-output text
	property.
	(slime-add-presentation-properties): Likewise.
	(slime-after-change-function): Likewise.

2005-08-12  Yaroslav Kavenchuk <kavenchuk@jenty.by>

	* swank-clisp.lisp (fspec-pathname): Use the documentation
	function instead of accessing clisp internals.

2005-08-11  Edi Weitz  <edi@agharta.de>

	* swank.lisp (transpose-lists): Fixed it.

2005-08-10  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el move slime-repl-add-to-input-history to
	slime-repl-send-input so we can see the presentations we copied to
	input when we reuse history rather than #.(blah...)
	[Thanks Matthias! - was very busy and just returned to see your
	changes merged. Most excellent.]

2005-08-10  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-presentation-around-point): Change interface,
	return presentation as primary return value.
	(slime-copy-presentation-at-point): Use
	slime-presentation-around-point.  Copying now also works when the
	first character is clicked and when the REPL buffer is not current.
	(slime-presentation-menu): Use slime-presentation-around-point.

2005-08-10  Martin Simmons <martin@lispworks.com>

	* swank-lispworks.lisp (defadvice compile-file): Return all values
	from the real compile-file.

2005-08-10  Edi Weitz  <edi@agharta.de>

	* swank.lisp (transpose-lists): Replaced with much nicer function
	by Helmut Eller.

2005-08-09  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-read-object): Handle ids that are conses.
	Patch by "Thas" on #lisp.

2005-08-09  Edi Weitz  <edi@agharta.de>

	* swank.lisp (transpose-lists): Reimplemented without APPLY so we
	don't have problems with CALL-ARGUMENTS-LIMIT.

2005-08-08  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (undo-in-progress): Define for XEmacs compatibility.
	Reported by Friedrich Dominicus.

2005-08-07  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Fix for the presentations menu.  Reported by Aleksandar Bakic.

	* present.lisp (lookup-presented-object): Handle ids that are
	conses.
	(execute-menu-choice-for-presentation-id): Use equal for comparing
	ids, to handle the cons case.
	(menu-choices-for-presentation): Quote the presentation id, as it
	can be a cons.
	* slime.el (slime-presentation-menu, slime-presentation-menu)
	(slime-inspect-presented-object): Quote the presentation id.

2005-08-06  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (form-completion): New generic function, factored out
	from complete-form.
	(complete-form): Factor out form-completion.
	(form-completion): Specialize on defmethod forms to insert arglist
	of generic function.

	* doc/slime.texi (Programming Helpers): Document C-c C-s,
	slime-complete-form.

2005-08-04  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Improvements to the presentations feature.  Parts of presentations
	can be copied reliably using all available Emacs facilities (not
	just kill-ring-save), and they are no longer "semi-readonly" (in
	the sense that keypresses are silently ignored).  Whenever a user
	attempts to edit a presentation, it now simply turns into plain
	text (which is indicated by changing the face); this can be
	undone.  Presentations are now also supported if
	*use-dedicated-output-stream* is nil.  It is now possible to
	access the individual values of multiple-value results.  For some
	systems (Allegro CL and upcoming CMUCL snapshots), presentations
	can be reliably printed through pretty-printing streams.

	* present.lisp (slime-stream-p) [allegro]: Allow printing
	presentations through pretty printing streams.
	[cmu]: Allow printing presentations through pretty printing
	streams, if CMUCL has annotations support and we are using the
	bridge-less protocol.
	[sbcl]: Allow printing presentations through indenting streams.

	* present.lisp (write-annotation): New function.
	(presentation-record): New structure.
	(presentation-start, presentation-end): New functions, supporting
	both bridge protocol and bridge-less protocol.
	(presenting-object-1): Use them here.

	* present.lisp [sbcl, allegro]: Add printer hooks for unreadable
	objects and pathnames.

	* swank.lisp (*can-print-presentation*): New variable, moved here
	from present.lisp.
	* swank.lisp (interactive-eval, listener-eval, backtrace)
	(swank-compiler, compile-file-for-emacs, load-file)
	(init-inspector): Bind *can-print-presentation* to an appropriate
	value.
	* present.lisp: Remove code duplication with swank.lisp for the
	functions above.

	* swank.lisp (encode-message): Don't use the pretty printer for
	printing the message length.

	* slime.el (slime-dispatch-event): New events :presentation-start,
	:presentation-end for bridge-less presentation markup.
	* swank.lisp (dispatch-event, send-to-socket-io): Likewise.

	* swank.lisp (listener-eval): Store the whole values-list with
	add-repl-result.
	* slime.el (slime-repl-insert-prompt): Accept a list of strings,
	representing individual values of a multiple-value result.  Mark
	them up as separate presentations.
	(reify-old-output): Support reifying individual values of a
	multiple-value result.

	* slime.el (slime-pre-command-hook): Don't call
	slime-presentation-command-hook.
	(slime-post-command-hook): Don't call
	slime-presentation-post-command-hook.
	(slime-presentation-command-hook): Removed.
	(slime-presentation-post-command-hook): Removed.

	* slime.el (slime-presentation-whole-p): New.
	(slime-same-presentation-p): New.
	(slime-presentation-start, slime-presentation-end): New.
	(slime-presentation-around-point): New.
	(slime-after-change-function): New.
	(slime-setup-command-hooks): Install slime-after-change-function
	as an after-change-function.

	* slime.el (slime-repl-enable-presentations): Make
	slime-repl-presentation nonsticky.
	(slime-mark-presentation-start, slime-mark-presentation-end): New
	functions.
	(slime-mark-presentation-start-handler): Renamed from
	slime-mark-presentation-start.
	(slime-mark-presentation-end-handler): Renamed from
	slime-mark-presentation-end.
	(slime-presentation): New structure.
	(slime-add-presentation-properties): New function.
	(slime-insert-presentation): New function.

2005-08-03  Zach Beane  <xach@gwi.net>

	* swank-sbcl.lisp (swank-compile-string): Restore honoring of
	*trap-load-time-warnings*.

2005-08-03  Juho Snellman  <jsnell@iki.fi>

	* swank-sbcl.lisp: Remove SBCL 0.9.1 support.
        (swank-compile-string): Funcall the compiled function outside
        with-compilation-hooks to prevent runtime warnings from
        popping up a *compiler-notes* buffer.

2005-07-29  Marco Baringer  <mb@bese.it>

	* doc/slime.texi (Other configurables): Document
	*dedicated-output-stream-port*.

	* swank.lisp (*dedicated-output-stream-port*): New variable.
	(open-dedicated-output-stream): Open the stream on the port
	*dedicated-output-stream-port*.

	* slime.el (slime-set-default-directory): Fix typo in doc string.

2005-07-26  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* swank.lisp (inspect-for-emacs): Don't make whitespace
	surrounding :action buttons part of the highlighted region.

	* slime.el (slime-goto-location-buffer): Put "SLIME Source Form"
	buffer into Lisp mode.

2005-07-26  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (compile-file-for-emacs): Accept optional
	external-format arg.  I frogot to commit this file on 2005-07-05.

	* slime.el (slime-input-complete-p): Skip over strings too.

2005-07-26  Zach Beane  <xach@xach.com>

	* swank-sbcl.lisp (swank-compile-string): Revert to old string
	compilation behavior to fix compiler note annotations. Code from
	Juho Snellman.

2005-07-24  Tom Pierce <tlpierce@gmail.com>

	* swank.lisp (format-iso8601-time): New functions. Properly
	formats a universal-time as an iso8601 string.
	(inspect-for-emacs integer): Use the new
	format-iso8601 function when printing an integer as a date.

2005-07-22  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (frame-catch-tags): Remove some debugging
	forms which were "polluting" the repl buffer when viewing an sldb
	buffer.
	(function-source-location): Make :error messages have the proper
	form (exactly one string argument). This fix also removes the
	issues with sending unreadble lists (containing #<...> to emacs).

2005-07-14  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (find-external-format): Fix typo.

2005-07-06  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-send-sigint): Use the symbol SIGINT stead of the
	signal number.  Suggested by Joerg Hoehle.
	(slime-compile-file): XEmacs needs the buffer as argument to
	local-variable-p.  Reported by Andy Sloane.

2005-07-05  Helmut Eller  <heller@common-lisp.net>

	The file variable slime-coding can now be used to specify the
	coding system to use for C-c C-k.  E.g., if the file contains
	-*- slime-coding: utf-8-unix -*- Emacs will tell the Lisp side
	to call COMPILE-FILE with an external-format argument.

	* slime.el (slime-compile-file): Send the coding system if
	the buffer local variable `slime-coding' is bound.

	* swank-backend.lisp, swank-sbcl.lisp, swank-clisp.lisp,
	swank-lispworks.lisp, swank-cmucl, swank-allegro.lisp,
	swank-abcl.lisp, swank-corman.lisp
	(swank-compile-file): New optional argument `external-format'.

	* swank-clisp.lisp (getpid): Undo the last change.

	* swank-corman.lisp (spawn, thread-alive-p): More thread tweaking.

2005-07-03  Joerg Hoehle <hoehle@users.sourceforge.net>

	* swank-clisp (describe-symbol-for-emacs): Report :setf and :type
	where appropriate.

2005-07-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el (next-single-char-property-change)
	(previous-single-char-property-change) [xemacs]: Only define them
	if not present.
	(next-char-property-change, previous-char-property-change): Define
	if needed.

	* README: Show examples for the filenames instead of the general
	"/the/path/to/this/directory".  Suggested by Brandon J. Van Every.

	* swank-corman.lisp (default-directory): Return a namestring
	instead of the pathname.
	(inspect-for-emacs, inspect-structure): Teach the inspector how to
	deal with structures.
	(spawn, send, receive): Implement rudimentary threading support.
	It's now possible to connect with the :spawn communication style
	and to bring up a listener.  Unfortunately, debugging the
	non-primary threads doesn't work at all.  Still no support for
	interrupt-thread.

	* slime.el (slime-start-swank-server): Send an extra newline
	before the "(swank:start-server ...".  I don't know why, but this
	seems to fix the problem when starting CLISP/Win32.  Interrupting
	CLISP/W32 is still horribly broken.

	* swank-loader.lisp (compile-files-if-needed-serially) [corman]:
	force-output after each file.

2005-07-02  Marco Baringer  <mb@bese.it>

	* slime.el (save-some-lisp-buffers): New Function.
	(slime-repl-only-save-lisp-buffers): New customizable variable.
	(slime-repl-compile-and-load): Use save-some-lisp-buffers.
	(slime-oos): Use save-some-lisp-buffers.

2005-07-01  Gábor Melis  <mega@hotpop.com>

	* swank-sbcl.lisp (threaded stuff): make SBCL 0.9.2.9+ work while
	retaining support for 0.9.2

2005-06-28  Gábor Melis <mega@hotpop.com>

	* swank-sbcl.lisp (threaded stuff): horrible hack to make threaded
	SBCL 0.9.2 work.  (also, Happy Birthday Christophe!)

2005-06-21  Edi Weitz  <edi@agharta.de>

	* swank.lisp (find-matching-packages): Also use nicknames.

2005-06-13  Edi Weitz  <edi@agharta.de>

	* swank.lisp (list-all-systems-in-central-registry): Delete
	duplicates.

	* swank-lispworks.lisp (unmangle-unfun): If you rename a package
	you should rename it everywhere...

2005-06-12  Alexey Dejneka  <adejneka@comail.ru>

	* slime.el (slime-with-xref-buffer): fix "pgk" typo.

2005-06-12  Christophe Rhodes  <csr21@cam.ac.uk>

	* swank.lisp (ed-in-emacs): allow strings as well as pathnames;
	don't call emacs for things that the emacs editor doesn't know how
	to deal with.  Return T if we called emacs and NIL if not.

	* slime.el (slime-ed): Change a listp to consp, so that NIL
	arguments are correctly handled.

2005-06-11  Nikodemus Siivola <nikodemus@random-state.net>

	* swank-sbcl.lisp: Patched for SBCL HEAD: utilize the new
	:source-plist functionality; maintain compatibility with 0.9.1
	till 0.9.2 is out. Removed cruft left over from previous
	excercises in supporting both HEAD and latest release.

	* doc/slime.texi: Document Slime as supporting the latest official
	release of SBCL, as opposed to a specific version number which
	would need to be updated monthly.

2005-06-10  Helmut Eller  <heller@common-lisp.net>

	* nregex.lisp (slime-nregex): Rename package to avoid name clashes
	with other version of this file.

	* swank.lisp (compiled-regex): Use the new package name.

	* slime.el (slime-with-xref-buffer): Gensym package too, to avoid
	problems when switching to buffers with -*- package: ... -*- file
	variables.  From Antonio Menezes Leitao.
	(slime-property-bounds): Use the prop argument instead of the
	hardcoded 'slime-repl-old-output.  From Andras Simon.

2005-06-07  Espen Wiborg  <espenhw@grumblesmurf.org>

	* swank-corman.lisp: Convert to Unix line-endings.
	(create-socket): Pass through the port argument unmodified,
	gettting a random port if 0.  Requires supporting change in
	<ccl>/modules/sockets.lisp.
	(inspect-for-emacs): defimplementation instead of defmethod.

2005-06-06  Espen Wiborg  <espenhw@grumblesmurf.org>

	* doc/slime.texi, PROBLEMS: Added notes about CCL.

2005-06-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-background-activities-enabled-p): Allow
	background stuff in repl-mode buffers too.

	* swank-cmucl.lisp (sis/misc): Return t for :interactive-p.

2005-06-01  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-load-system, slime-oos): Fix bug related to file
	locking.  Don't bind the variable system-name.  system-name is a
	predefined Emacs variable and is used among other things for lock
	filenames.

2005-06-01  Joerg Hoehle <hoehle@users.sourceforge.net>

	* swank-clisp (getpid): Updates for current CLISP versions. Use
	defimplementation. Define always (slime needs it).

2005-06-01  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-background-activities-enabled-p): Return nil
	instead of signalling an error if there is a open but no default
	connection.
	(slime-current-connection): New helper function.
	(slime-connection): Use it.
	(slime-first-change-hook): Only run when
	slime-background-activities-enabled-p.

2005-06-01  Joerg Hoehle <hoehle@users.sourceforge.net>

	* swank-cmucl.lisp, swank-sbcl.lisp, swank-clisp.lisp
	(describe-symbol-for-emacs): Distinguish macro and special
	operators from functions.

	* slime.el (slime-print-apropos): Must keep in sync with above,
	therefore added :macro and :special-operator properties.

	* swank.lisp (present-symbol-before-p): Make it conform to its
	specification -- sort first by package and then by symbol name.

	* swank-clisp.lisp (describe-symbol-for-emacs): Report :alien-type
	when the name is known as foreign type.

2005-06-01  Espen Wiborg  <espenhw@grumblesmurf.org>

	* swank-loader.lisp: Redefine compile-files-if-needed-serially for
	Corman Lisp to load everything from source.

2005-05-27  Espen Wiborg  <espenhw@grumblesmurf.org>

	* swank-corman.lisp: New file, swank for Corman Lisp.

	* swank.lisp (simple-announce-function): force-output after
	announcing.
	(symbol-external-p): Be extra paranoid about the symbol's package;
	find-symbol barfs on a nil package in Corman Lisp.

	* swank-loader.lisp: Add Corman Lisp support.

2005-05-24  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el text-property-default-nonsticky not defined in
	xemacs. oops.

2005-05-24  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el meta-w now removes properties before insertion if you
	cut just a portion of the presentation. Added xemacs
	support. Enabled in xemacs.

2005-05-23  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el slime-presentation-menu - use with-current-buffer, so
	that menus work even if you are not in the buffer with the
	presentation.

	* present.lisp More menu items for pathnames. Remember last
	slime-stream-p value. *can-print-presentation* t during
	swank-compiler and during presentation menu action.

2005-05-22  Alan Ruttenberg  <alanr-l@mumble.net>

	* present.lisp. (slime-stream-p) check if a stream is destined for
	output in a slime listener. (checks *connections* looks int
	o pretty-print streams in openmcl and cmucl)
	Don't present unless (slime-stream-p stream).

	Variable *enable-presenting-readable-objects* The only readable object
	which is presented are pathnames (e.g. pathnames printed when loading
	and *load-verbose* is t). Try the useful menu :)
	More to come if this doesn't cause problems.  (nil this if it does)

	*can-print-presentation* t around compile-string-for-emacs,
	load-file, interactive-eval.

	In cmucl, use fwrappers to modify behaviour rather than redefinition.

2005-05-22  Alan Ruttenberg  <alanr-l@mumble.net>

	* present.lisp. mouse-3 now gives a menu for actions on the
	presentation. See documentation in file for information about how
	to define menus. Also, disable presentations in inspector. Initial bits
	of dealing with the possibility of presenting readable objects.

	* slime.el support menu. Xemacs users beware this uses x-popup-menu,
	which may be fsf specific.

2005-05-20  Alan Ruttenberg  <alanr-l@mumble.net>
	* swank.lisp make repl output presentation work even if
	present.lisp not loaded

2005-05-20  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-repl-enable-presentations): Default is enabled
	in GNU Emacs but disabled in XEmacs. Feature is not portable yet.
	Brutally 80-column'ified alanr's latest changes :-)

2005-05-20  Alan Ruttenberg  <alanr-l@mumble.net>

	* bridge.el new file. from ilisp cvs distribution to collect
	in-band messages using process filter mechanisms. One edit which
	calls bridge-insert with process argument as well as output

	* present.lisp new file. Enough code to do the following:
	(swank::presenting-object object stream (print "This is really
	object")). This makes the string "This is really object" behave
	like old repl input for the object. Sample code for openmcl and
	cmucl that hooks this into the printing of unreadable objects This
	should be part of swank.lisp (and lisp specific files) but I am
	too chicken to merge yet. For now you have to load this file
	manually.

	* slime.el changes to support above:
	slime-repl-enable-presentations: customize to enable this stuff.
	Default value t. Set to nil to turn it off.
	slime-presentation-start-to-point: map object ids to the (point)
	where they start to print out. slime-mark-presentation-start,
	slime-mark-presentation-end. handlers for the bridge messages.
	slime-open-stream-to-lisp: When enabled start the bridge and
	define the handlers.

2005-05-19  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el slime-presentation-map

2005-05-20  Luke Gorrie  <luke@synap.se>

	* swank.lisp (clear-repl-results): Fixed unbalanced parens. Thanks
	Lawrence Mitchell.

2005-05-19  Alan Ruttenberg  <alanr-l@mumble.net>

	* slime.el (slime-presentation-command-hook) new function for
          nicer behaviour for presentations.
	(slime-pre-command-hook) do slime-presentation-command-hook
	(slime-post-command-hook) put pre-command-hook back if goes away
	(slime-copy-presentation-at-point) mouse-2 copies previous output
	to point slime-repl-output-mouseover-face what the old output
	looks like when the mouse moves over it default: box around it
	like on lispm
	(slime-repl-insert-prompt) add mouseover face, mouse
	action. newline after output not propertized.
	(slime-property-bounds) adjust for lack of propertized newline to
	fix: presentation region behaviour should be attach to generic
	property like
	  (:acts-as-token t ) rather than tying to repl-output property

2005-05-19  Luke Gorrie  <luke@synap.se>

	* swank.lisp (*record-repl-results*): Variable to enable/disable
	recording of REPL results. True by default.
	(*repl-results*): Renamed from ****.

	* slime.el (slime-property-bounds): Factored out this common part
	of slime-repl-grab-old-{input,output}.
	(slime-read-object): Avoid inline CL code.

2005-05-18  Antonio Menezes Leitao <aml@gia.ist.utl.pt>

	* slime.el (slime-repl-inputed-output-face): new face.
	(slime-current-output-id): New variable.
	(slime-dispatch-event): Bind slime-current-output-id when
	neccessary.
	(slime-repl-insert-prompt): Add the neccessary text properties to
	the result.
	(reify-old-output): New function which makes sure swank sees
	\(swank::get-**** ...) while the user sees the printed
	representation of the object.
	(slime-repl-return): When called on a old output (as per the
	slime-repl-old-output text property, call
	slime-repl-grab-old-output.
	(slime-repl-send-input): Added the slime-repl-old-input text
	property.
	(slime-repl-grab-old-input): Keep the old input's text
	properties (unwanted text properties are removed later).
	(slime-repl-grab-old-output): New function.
	(slime-repl-clear-buffer): Added call to swank::clear-****
	(slime-repl-clear-output): Added call to swank::clear-**** and
	bind inhibit-read-only to nil.
	(slime-inspect): Call slime-read-object to get the value to
	inspect.
	(slime-read-object): New function which either reads an object
	from the minibuffer or returns the object at point if it has the
	slime-repl-old-output text property.

	* swank.lisp (*current-id*, ****): New variables.
	(add-****, get-****, clear-last-****, clear-****): New functions
	for manipulating the repl history.
	(listener-eval): Add * to ****.

2005-05-12  Alan Ruttenberg  <alanr-l@mumble.net>

	* swank.lisp Add ability to customize behavior of the repl. To do
	so, add a function to the list swank::*slime-repl-eval-hooks*.
	This function is passed the form typed into the repl. The function
	should decide whether it wants to handle evaluation of the
	form. If not, call (repl-eval-hook-pass) and the next hook is
	tried. Otherwise the values the function returns are used instead
	of calling eval. Inside the body of the function you can also
	suppress having the repl print the result by calling
	(repl-suppress-output) and/or suppress the advancement of the
	history variables (*** ** * /// // /) by calling
	(repl-suppress-advance-history).


2005-05-11  Tim Daly Jr.  <tim@tenkan.org>

	* swank-source-path-parser.lisp (read-and-record-source-map):
	Ensure that at least the toplevel form is in the source-map.

2005-05-11  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-remove-old-overlays): Remove overlays in all
	slime buffers not only in the current buffer.
	(slime-filter-buffers): New helper.
	(slime-display-completion-list): Take the completed prefix as
	additional argument to initialize completion-base-size.  This is
	apparently needed to make mouse-selection working.
	(slime-maybe-complete-as-filename): Factor for common code in
	slime-complete-symbol* and slime-simple-complete-symbol.

2005-05-06  Alan Ruttenberg  <alanr-l@mumble.net>

	* swank-openmcl.lisp specializer-name didn't handle
	structure-class which caused meta-. of methods specialized on
	defstruct arguments to fail.

2005-05-06  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (post-gc-hook): Include the elapsed time and
	the size distribution.

2005-05-05  Edi Weitz  <edi@agharta.de>

	* swank-lispworks.lisp (unmangle-unfun): New function to convert
	strange symbols in SETF package to SETF function names.
	(signal-undefined-functions): Use it.

2005-05-04  Edi Weitz  <edi@agharta.de>

	* swank-lispworks.lisp (call-with-compilation-hooks): Provide
	better implementation.
	(compile-file-and-collect-notes): Advice for COMPILE-FILE so
	pathname information for undefined functions can be recorded.
	(*within-call-with-compilation-hooks*): New special variable used
	by CALL-WITH-COMPILATION-HOOKS.
	(*undefined-functions-hash*): New special variable to record
	pathname information for undefined functions.
	(signal-error-database): Make LOCATION parameter optional, use
	FILENAME info from error database if not provided.
	(signal-undefined-functions): Make LOCATION parameter optional,
	use info from *UNDEFINED-FUNCTIONS-HASH* if not provided.

2005-05-03  Luke Gorrie  <luke@synap.se>

	* swank.lisp (slime-secret): Removed #+unix conditional, suggested
	by Edi Weitz.

2005-05-02  Mark Wooding  <mdw@nsict.org>

	* swank.lisp: If ~/.slime-secret exists then insist that Emacs
	sends the contents (as a password) during initial handshaking.
	(announce-server-port): Use :IF-EXISTS :ERROR to prevent bad guys
	from slipping a symlink into /tmp and reading what port Lisp is
	listening on.

	* slime.el: If ~/.slime-secret exists then send it, as per above.

2005-05-01  Marco Baringer  <mb@bese.it>

	* slime.el (slime-inspector-reinspect): New function which
	reinspects the current object.
	(slime-inspector-mode-map): Bind slime-inspector-reinspect to g.

2005-04-29  Dan Pierson <dlp@itasoftware.com>

	* slime.el (slime-parse-context): Fix method parsing so that
	pressing, say, C-c C-t when point is on a '-' in a symbol name
	won't break.
	(slime-browser-map): New variable. Add support for the common 'q'
	keystroke to quit out of the xref.
	(slime-fetch-browsable-xrefs): New function. Remove the (FLET ...)
	entries which appear on at least CMUCL.  I don't believe you can
	actually expand them on any current implementation and they just
	mess up the browse tree.  Use only the method name when looking
	up (METHOD ...) entries on CMUCL.  This really shouldn't be here,
	but I can't see how to avoid the error thrown by swank:xref.
	(slime-expand-xrefs): Use it.
	(slime-call-with-browser-setup): Initialize slime-buffer-package
	properly.  Previously, lisp-mode was called after setting it, but
	lisp-mode clears all local variables, use lisp-mode-variables
	instead.

	* swank-cmucl.lisp (toggle-trace): Be more carefully when tracing
	methods: try both (METHOD ...) and (PCL:FAST-METHOD ...).

2005-04-27  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (+header-type-symbols+): Drop the third arg to
	apropos-list; it's no longer supported in recent CMUCLs.

2005-04-21  Luke Gorrie  <luke@synap.se>

	* swank.lisp (arglist-to-string): Rolled back the previous change
	because it interferred with values appearing in parameter lists.

2005-04-20  Luke Gorrie  <luke@synap.se>

	* swank.lisp (arglist-to-string): Bind *PRINT-ESCAPE* to NIL. This
	way symbols in arglists are printed as with PRINC, i.e. without
	package qualifier.

	* swank-sbcl.lisp (preferred-communication-style): Use
	`linux_no_threads_p' alien variable to decide whether to use
	:SPAWN. From dan_b for compatibility with new SBCLs.

2005-04-19  Helmut Eller  <heller@common-lisp.net>

	* PROBLEMS: Warn about old kernels.

	* swank-backend.lisp: Fix some typos.

	* swank-sbcl.lisp (preferred-communication-style): Don't test for
	sb-futex, it has lost its meaning in 0.8.21.

2005-04-18  Helmut Eller  <heller@common-lisp.net>

	* slime.el (inferior-lisp-program): Defvar it here, in case it is
	not defined in loaddefs and inf-lisp is not loaded. (That's the
	case in XEmacs.)

	* mkdist.sh: update version number.

	* doc/slime.texi: Update version numbers for SBCL and ACL.

2005-04-17  Peter Seibel  <peter@gigamonkeys.com>

	* swank-loader.lisp (*implementation-features*): Added features
	for GCL and ECL ...
	(lisp-version-string): ... and code to compute version
	string. (Supplied by someone who's email I've misplaced.)

2005-04-14  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-selector): Discard input after sleeping.

2005-04-09  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-get-buffer): Create a fresh buffer if there's no
	buffer for the connection (and don't reuse an existing buffer even
	if it has a matching name).
	(slime-buffer-visible-p, slime-ir1-expand): Delete unused
	functions.  Mark some others as unused, but leave them there
	because they are potentially useful.

	* swank.lisp (with-io-redirection, with-connection)
	(with-buffer-syntax): Implement macros with `call-with' functions
	to avoid some code bloat.
	(call-with-connection, maybe-call-with-io-redirection)
	(call-with-buffer-syntax): New functions.
	(interactive-eval): Use from-string instead of read-from-string to
	avoid problems whit *read-suppress*.

	* swank-sbcl.lisp: Add a few comments.

	* swank-abcl.lisp (print-frame): Trim whitespace to make the
	backtrace look a bit terser.

2005-04-07  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-net-coding-system): More fixes for
	non-mule-XEmacsen.
	(slime-net-coding-system): Even more fixes to make it for
	mule-XEmacs.

2005-04-05  Juergen Gmeiner <gj@gjdv.at>

	* swank-lisworks.lisp (find-top-frame): If we can't find an
	invoke-debugger frame we take any old frame at the top.

2005-04-04  James McIlree <ovrskeek@mac.com>

	* slime.el (find-coding-system, check-coding-system)
	(process-coding-system, set-process-coding-system): Dummy
	functions for no-mule-XEmacsen.

2005-04-04  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-show-maximum-output): New
	function. Immitate the scrolling behavior of a terminal.
	(slime-with-output-end-mark, slime-repl-return)
	(slime-repl-send-input, slime-display-output-buffer): Use it
	(slime-lisp-implementation-version, slime-machine-instance): New
	connection variables.  Suggested by Eduardo Muñoz.
	(slime-set-connection-info): Initialize them.

	* swank.lisp (connection-info): Include version and hostname in
	the result.

	* swank-cmucl.lisp (breakpoint-values): Fixes for CMUCL-2005-03
	snapshot.

	* doc/slime.texi: Fix spelling errors.

	* cl-indent.el: Remove the file.  Let the Emacs developers
	maintain it.

2005-04-01  Helmut Eller  <heller@common-lisp.net>

	* slime.el (sldb-get-buffer): Initialize the buffer local
	variables slime-buffer-connection and slime-current-thread when
	creating a fresh buffer.

	* swank.lisp (spawn-repl-thread): Use
	*default-worker-thread-bindings* just like spawn-worker-thread.
	(wrap-sldb-vars): New function.  Rebind *sldb-level* to avoid
	confusion with recursive errors during eval-in-frame.
	(eval-string-in-frame, pprint-eval-string-in-frame): Use it.

	* swank-allegro.lisp (eval-in-frame): Allegro's
	eval-form-in-context does nothing special with lexical variables
	in the frame.  Wrap an explicit LET around the form to get similar
	behavior as in the other Lisps.
	(inspect-for-emacs (structure-object)): Remove structure related
	methods.  It's already covered by the general case with
	allegro-inspect.
	(common-seperated-spec): Deleted

2005-04-01  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-xref-mode): Summarise the most important
	bindings in the mode description.

	* metering.lisp: Now supports only CLISP and OpenMCL.
	Removed a lot of really ugly reader-conditionalized code, much of
	it for archaic lisps (#+cltl2, #+lcl3.0, #+mcl1.3.2, etc).

	* swank-source-path-parser.lisp (check-source-path): Signal an
	error if a source path is malformed. SBCL sometimes gives (NIL).
	(source-path-stream-position): Use it.

	* slime.el (slime-goto-definition): Handle :error locations here
	before any window/buffer changes are made.

2005-04-01  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-keys): Bind slime-edit-definition-other-window
	to `C-x 4 .' and slime-edit-definition-other-frame to `C-x 5 .',
	shadowing the equivalent find-tag... bindings.
	(slime-goto-definition): In the other-window and other-frame cases,
	make sure point does not move in the originating window, even when
	the definition is found in the same buffer.

2005-03-31  Luke Gorrie  <luke@synap.se>

	* doc/slime.texi (slime-selector): New section.
	(Inspector): Updated for the post-1.0 inspector.

	* slime.el (slime-selector): Removed unneeded "the" prefixes in
	descriptions of what the selector methods do.

2005-03-27  Helmut Eller  <heller@common-lisp.net>

	* PROBLEMS, NEWS, doc/slime.texi: Some updates for the upcoming
	release.

2005-03-27  Russell McManus <russell_mcmanus@yahoo.com>

	* swank-clisp.lisp (getpid): Try sys::process-id if
	sys::program-id doesn't exist.

2005-03-23  Marco Baringer  <mb@bese.it>

	* swank.lisp (commit-edited-value): Read a backquated string,
	instead of quating the result of read. This allows one to put
	,(form) into edit-value buffers.

2005-03-22  Helmut Eller  <heller@common-lisp.net>

	* swank-lispworks.lisp (swank-compile-string): Bind *print-radix*
	to t, to avoid problems if somebody uses different values for
	*print-base* and *read-base*.  Reported by Alain Picard.
	(emacs-connected): Add default methods for
	environment-display-notifier and environment-display-debugger.

2005-03-21  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (locate-compiler-note): Handle errors in macros
	better.
	(source-file-source-location): Read the snippet at the right
	position.

	* swank-source-file-cache.lisp (read-snippet): Take the start
	position as optional argument.

2005-03-21  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (quit-lisp): If we are running multithreaded,
	terminate all other threads too.  (still broken in 0.8.20.27; used
	to work in ~0.8.20.2.)
	(with-debootstrapping, call-with-debootstrapping): Remove ugly
	backward compatibility code.
	(sbcl-source-file-p, guess-readtable-for-filename): New utilities.
	(function-source-location): Handle work off to helper functions.
	(find-function-source-location): New function.  Use the
	shebang-readtable for SBCL source files.
	(function-source-position, function-source-filename)
	(function-source-write-date, function-toplevel-form-number)
	(function-hint-snippet, function-has-start-location-p)
	(function-start-location): New helpers.
	(safe-source-location-for-emacs): Don't catch errors if
	*debug-definition-finding* is true.
	(inspect-for-emacs): Minor beautifications.

	* swank.lisp (commit-edited-value): Use buffer syntax.
	(compile-file-for-emacs, compile-string-for-emacs): Bind
	*compile-print* to nil.

	* swank-cmucl.lisp (call-with-debugging-environment): Rebind
	kernel:*current-level* 0.  Useful for debugging pretty printer
	code.
	(inspect-for-emacs): Show details of interpreted functions.

2005-03-21  Luke Gorrie  <luke@synap.se>

	* swank-sbcl.lisp (function-source-location): For definitions
	compiled in Emacs buffers, include the :emacs-string as a :snippet
	hint for search-based M-. lookup.

2005-03-21  Edi Weitz  <edi@agharta.de>

	* swank-loader-lisp (*implementation-features*, *os-features*,
	*architecture-features*): LispWorks was completely missing.

2005-03-18  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-complete-symbol*-fancy): Now nil by default.

2005-03-18  Helmut Eller  <heller@common-lisp.net>

	* swank-source-path-parser.lisp (make-source-recording-readtable):
	Ignore non-ascii chars.

	* swank-sbcl.lisp (swank-compile-string): Re-implemented.  This
	time with temp-files and proper source-location tracking.
	(install-debug-source-patch, debug-source-for-info-advice): Patch
	SBCL's debug-source-for-info so that we can dump our own bits of
	debug info.
	(function-source-location, code-location-source-path): Rewritten
	to handle C-c C-c functions.  Also use the source-path to locate
	the position.
	(locate-compiler-note): Renamed from resolve-note-location.
	(temp-file-name, call/temp-file): New utilities.
	(file-source-location, lisp-source-location)
	(temp-file-source-location, source-file-source-location)
	(string-source-position, code-location-debug-source-info)
	(code-location-debug-source-name, code-location-debug-source-created,)
	(code-location-debug-fun-fun, code-location-from-emacs-buffer-p)
	(function-from-emacs-buffer-p, function-debug-source-info)
	(info-from-emacs-buffer-p, code-location-has-debug-block-info-p)
	(stream-source-position): Lots of new helper functions.
	(with-debootstrapping): Moved upwards so that it can be used for
	source location searching.
	(source-location-for-emacs): Deleted

2005-03-16  Helmut Eller  <heller@common-lisp.net>

	* slime/swank.lisp (*macroexpand-printer-bindings*): New user
	variable.
	(apply-macro-expander): Use it.
	(call-with-bindings): Bind variables in reverse order. Thit makes
	it easer to cons or push a new binding at the front the list.
	(with-bindings): New macro.

	* slime.el (slime-run-when-idle): New function to hide
	Emacs/XEmacs differences.
	(slime-process-available-input): Use it.

	* swank-loader.lisp (unique-directory-name): Rewritten to avoid
	the rather irritating warning that (warn "Don't know ...") is
	unreachable.

2005-03-13  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-dispatch-event): Use `slime-busy-p' to control
	the "; pipelined request" message. This way it takes requests
	blocked in the debugger into account and avoids spurious messages.

	* swank.lisp (inspect-for-emacs symbol): Add an "unintern it"
	action for symbols.

	* swank-source-file-cache.lisp (read-snippet): Skip comments and
	whitespace in SBCL. The source-positions reported by SBCL are not
	adjusted to skip over whitespace before the definition.

	* swank-sbcl.lisp (function-source-location): Updated for revised
	sb-introspect patch:
	s/DEFINITION-SOURCE-CREATED/DEFINITION-SOURCE-WRITE-DATE/

	* swank-loader.lisp (*os-features*): Added :mswindows. Thanks Will
	Glozer.

2005-03-12  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-edit-value): New function on `C-c E'. Prompts
	for a Lisp expression, evaluates and displays the result in a new
	buffer for editing, and then setf's the edited value in Lisp after
	you press C-c C-c. Usage example: `C-c E asdf:*central-registry*'
	Minor docstring and pull-down-menu changes.

	* swank.lisp (value-for-editing, commit-edited-value): New
	functions for slime-edit-value.

	* swank-allegro.lisp (toggle-trace): Fix from Antonio Menezes
	Leitao.

	* swank-sbcl.lisp: Use swank-source-file-cache to find snippets of
	definitions. M-. is now much more robust to modifications in the
	source file.
	NOTE: To be effective requires a patch to sb-introspect that I
	have posted to sbcl-devel.

	* swank-source-file-cache.lisp: Factored this into its own file,
	from swank-cmucl.lisp.

	* swank-loader.lisp, swank-cmucl.lisp: Updated for the above.

2005-03-10  Antonio Menezes Leitao  <aml@gia.ist.utl.pt>

	* slime.el (slime-toggle-trace-fdefinition): If there is no symbol
	at point then prompt for one.

2005-03-09  Peter Seibel  <peter@gigamonkeys.com>

	* swank-loader.lisp (*architecture-features*): Added :pc386 for CLISP.
	(unique-directory-name): Change ERROR to WARN.

	* slime.el (slime-register-lisp-implementation): Add facility for
	registering lisp implementations with symbolic names that can be
	passed to C-u M-x slime.

2005-03-08  Peter Seibel  <peter@gigamonkeys.com>

	* doc/Makefile (clean): added clean and really_clean targets.
	(all): and added slime.pdf to all prerequisites.

	* swank-loader.lisp (*implementation-features*): Whoops. Forgot
	CLISP.
	(*architecture-features*): Added :x86-64 for SBCL on AMD64 (thanks
	Vincent Arkesteijn)

2005-03-07  Peter Seibel  <peter@gigamonkeys.com>

	* swank-loader.lisp (unique-directory-name): Replaced *lisp-name*
	variable with more sophisticated version that accounts for impl,
	impl version, os, and hardware architecture.

2005-03-07  Edi Weitz  <edi@agharta.de>

	* swank.lisp: Fixed parenthesis-balancing problem.

2005-03-06  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-easy-menu): Add menu item for
	slime-complete-form.

	* swank.lisp (format-arglist-for-echo-area): Use extra-keywords to
	enrich the list of keywords.
	(arglist-to-string): Remove extraneous whitespace.
	(keyword-arg, optional-arg): New structures.
	(decode-keyword-arg, decode-optional-arg): Return structure
	objects rather than multiple values.
	(encode-keyword-arg, encode-optional-arg, encode-arglist): New
	functions.
	(arglist): New slot key-p.
	(decode-arglist): Handle &whole, &environment.  Store more
	information on optional and keyword args, set arglist.key-p.
	(values-equal?): Removed.
	(print-decoded-arglist-as-template): If keyword is
	not a keyword symbol, quote it in the template.
	(extra-keywords): Return a secondary value (allow-other-keys).
	For make-instance, try to finalize the class if it is not
	finalized yet (fix for Allegro CL 6.2).  If class is not
	finalizable, use direct slots instead of slots and indicate that
	the keywords are not complete.
	(enrich-decoded-arglist-with-extra-keywords): New function, use
	the secondary value of extra-keywords.
	(arglist-for-insertion, complete-form): Use it here.
	(remove-keywords-alist): New variable.
	(remove-actual-args): When the keyword :test is provided, don't
	suggest :test-not and vice versa.

	* swank-backend.lisp (:swank-mop package): Export
	finalize-inheritance.

2005-03-06  Luke Gorrie  <luke@synap.se>

	* swank.lisp: Export *LOG-OUTPUT*.

2005-03-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-net-sentinel): Always print a message when the
	lisp disconnects.
	(slime-inferior-lisp): Don't display the buffer.  Let callers do
	that.
	(slime): Display the inferior buffer here.
	(slime-quit-lisp, slime-quit-sentinel): Use set a special sentinel
	and do most of the cleanups there.
	(slime-repl-sayoonara): Use slime-quit-lisp.
	(slime-restart-inferior-lisp, slime-restart-inferior-lisp-aux)
	(slime-restart-sentinel): Use a special sentinel to restart
	processes.
	(slime-hide-inferior-lisp-buffer): Do the windows arrangement a
	bit differently. Related to restart-lisp.
	(slime-repl-buffer): Take the connection as second optional
	argument.  Useful for rearranging windows for dead processes.

	* swank-allegro.lisp (call-with-debugging-environment)
	(find-topframe): Hide the first 2 frames. Those are created
	by swank-internal functions.

2005-03-04  Antonio Menezes Leitao <aml@gia.ist.utl.pt>

	* swank-allegro.lisp (process-fspec-for-allegro, toggle-trace):
	Handle setf functions.
	(tracedp): Fix free variable.

	* slime.el (slime-trace-query): The :defgeneric query was bogus.
	(slime-extract-context): Don't skip over the method name if we are
	already at the end of the name.

2005-03-03  Nikodemus Siivola  <tsiivola@cc.hut.fi>

	* swank-sbcl.lisp: Fixed for latest SBCL HEAD revision and
	temporarily backwards-compatible with the current release.

2005-03-02  Marco Baringer  <mb@bese.it>

	* swank-loader.lisp Look for a file in the same directory as
	swank-loader.lisp called site-init.lisp. If it exists we load that
	instead of attempting to load ~/.swank.lisp.
	(user-init-file): Superseded by load-user-init-file.
	(load-user-init-file): New function.
	(load-site-init-file): New function.

2005-03-01  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-who-bindings): Bind who-specializes to C-c W a.
	(slime-extract-context): Renamed from name-context-at-point.
	(slime-beginning-of-list): Renamed from out-first.
	(slime-slime-parse-toplevel-form): Renamed from definition-name.
	(slime-arglist-specializers): Renamed from parameter-specializers.
	(slime-toggle-trace-function, slime-toggle-trace-defgeneric)
	(slime-toggle-trace-defmethod, slime-toggle-trace-maybe-wherein)
	(slime-toggle-trace-within): Deleted. Everything is now handled
	by slime-trace-query.
	(slime-calls-who): For symmetry with silme-who-calls.
	(slime-edit-definition-with-etags): Better intergration with TAGS.
	(slime-edit-definition-fallback-function): Mention it in the
	docstring.

	* swank-backend (calls-who, toggle-trace): New functions.
	(toggle-trace-function, toggle-trace-generic-function-methods,
	(toggle-trace-method,  toggle-trace-fdefinition-wherein): Replaced
	by toggle-trace.

	* swank.lisp (*sldb-printer-bindings*, *swank-pprint-bindings*):
	New variables.  The alists replace the variables which where
	previously hidden with the define-printer-variables macro.
	(define-printer-variables, with-printer-settings): Deleted,
	because the variable names where not visible in the source code.
	(swank-toggle-trace): Renamed from toggle-trace-fdefinition.

	* swank-cmucl.lisp, swank-lispworks, swank-sbcl.lisp,
	swank-allegro.lisp (toggle-trace): Update tracing code for new
	interface.

2005-02-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-dispatch-event): Add :eval-no-wait and :eval
	events.
	(slime-eval-for-lisp): New function.
	(sldb-buffers): Delete the variable.  Use buffer-list instead.

	* swank.lisp: (eval-for-emacs): Use the new backend function
	call-with-debugger-hook.
	(eval-in-emacs): Cleaned up. Add support for synchronous RPCs.
	(receive-eval-result): New function.
	(dispatch-event, read-from-socket-io, send-to-socket-io): New
	:eval event. Rename :%apply to :eval-no-wait.
	(read-user-input-from-emacs, evaluate-in-emacs): Increment
	*read-input-catch-tag* instead of re-binding it. Reduces the
	danger of throwing to the wrong tag a bit.

	* swank-backend.lisp (call-with-debugger-hook): New function.
	Useful if the backend needs special incantations for BREAK.
	(toggle-trace-function): Add a default implementation for simple
	symbols.

	* swank-lispworks.lisp (slime-env): New class.
	(call-with-debugger-hook): Use env:with-environment to pop up our
	debugger on a BREAK.
	(toggle-trace-method, parse-fspec, tracedp, toggle-trace):
	Implement method tracing.

	* swank-sbcl.lisp (call-with-debugger-hook): Bind
	sb-ext:*invoke-debugger-hook* instead of setting it in
	emacs-connected.
	(emacs-connected): Deleted.

	* swank-loader.lisp (compile-files-if-needed-serially): Reduce
	verbosity by setting the :print argument for compile-file to nil.

2005-02-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-startup-animation, slime-repl-update-banner):
	Put the animation back in to keep the kids quiet.
	(slime-kill-without-query-p): Change default to nil.
	(slime-eval-describe, slime-eval-region)
	(slime-pprint-eval-last-expression): Fix typos in docstrings.
	(slime-eval/compile-defun-dwim): Deleted. We never had a key
	binding anyway.

2005-02-22  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-complete-form): Emacs 20 compatibility fix.
	(slime-repl-update-banner): Remove animation stuff.
	(slime-startup-animation): Deleted.

	* swank-lispworks.lisp (compute-applicable-methods-using-classes):
	Implement it.

2005-02-20  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	Supersede the command slime-insert-arglist with the new command
	slime-complete-form and bind it to C-c C-s.  The command completes
	an incomplete form with a template for the missing arguments.
	There is special code for discovering extra keywords of generic
	functions and for handling make-instance. Examples:

	  (subseq "abc" <C-c C-s>
	    --inserts--> start [end])
	  (find 17 <C-c C-s>
	    --inserts--> sequence :from-end from-end :test test
	                 :test-not test-not :start start :end end :key key)
	  (find 17 '(17 18 19) :test #'= <C-c C-s>
	    --inserts--> :from-end from-end
	                 :test-not test-not :start start :end end :key key)
	  (defclass foo () ((bar :initarg :bar)))
	  (defmethod initialize-instance :after ((object foo) &key blub))
	  (make-instance 'foo <C-c C-s>
	    --inserts--> :bar bar :blub blub initargs...)

	* swank.lisp (arglist): New struct for storing decoded arglists.
	(decode-arglist): New function.
	(arglist-keywords, methods-keywords, generic-function-keywords,
	applicable-methods-keywords): New functions.
	(decoded-arglist-to-template-string,
	print-decoded-arglist-as-template): New functions.
	(arglist-to-template-string): Rewrite using above functions.
	(remove-actual-args): New function.
	(complete-form): New slimefun.

	* swank.lisp (extra-keywords): New generic function.

	* swank-backend.lisp (:swank-mop package):
	Export compute-applicable-methods-using-classes.

	* swank.lisp (arglist-for-insertion): Use extra-keywords to
	enrich the list of keywords.

	* swank.lisp (valid-operator-symbol-p): New function.
	(valid-operator-name-p): Use valid-operator-symbol-p.

	* slime.el (slime-complete-form): New command.
	(slime-keys): Bind C-c C-s to slime-complete-form rather than
	slime-insert-arglist.

2005-02-18  Antonio Menezes Leitao  <aml@gia.ist.utl.pt>

	Improve the trace mechanism (on lisps that support it). SLIME is
	now able to trace/untrace flet/labels functions, methods and, of
	course, regular and generic functions.

	In the process support for sending code to emacs form the lisp was
	added. The code, elisp forms, is sent over the wire like normal
	lisp code, evaluated in emacs and the return value is returned
	back to the lisp.

	* slime.el (slime-dispatch-event): Added the :evaluale-in-emacs
	dispatch state which simply parses the message and class
	evaluate-in-emacs.
	(evaluate-in-emacs): New function.
	(complete-name-context-at-point, name-context-at-point, out-first,
	definition-name, parameter-specializers,
	slime-toggle-trace-fdefinition, slime-toggle-trace-function,
	slime-toggle-trace-defgeneric, slime-toggle-trace-defmethod,
	slime-toggle-trace-maybe-wherein, slime-toggle-trace-within): New
	functions implementing the new intelligent slime trace.

	* swank-backend.lisp (toggle-trace-function,
	toggle-trace-generic-function-methods, toggle-trace-method,
	toggle-trace-fdefinition-wherein,
	toggle-trace-fdefinition-within): New backend functions
	for the new trace facility.

	* swank.lisp (dispatch-event): Handle the :evaluate-in-emacs
	message type.
	(evaluate-in-emacs): New function.

	* swank-allegro.lisp (toggle-trace-generic-function-methods,
	toggle-trace, toggle-trace-function, toggle-trace-method,
	toggle-trace-fdefinition-wherein,
	toggle-trace-fdefinition-within): Implement.
	(process-fspec-for-allegro): New function.

	* swank-cmucl.lisp (toggle-trace-generic-function-methods,
	toggle-trace-function, toggle-trace-method,
	toggle-trace-fdefinition-wherein): Implement.
	(toggle-trace, process-fspec): New functions.

	* swank-sbcl.lisp (toggle-trace-generic-function-methods,
	toggle-trace-function, toggle-trace-method,
	toggle-trace-fdefinition-wherein): Implement.
	(toggle-trace, process-fspec): New functions.

2005-02-02  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Require the timer package explicitly.

2005-02-02  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-repl-send-input): Move some properties
	of old REPL input (e.g. read-only) from text properties into an
	overlay, so that kill/yank will leave them behind. Left
	`slime-repl-old-input' as a text properties because it's more
	convenient to lookup that way.
	(slime-repl-return): Ignore `slime-repl-old-input' property if the
	point is in front of the current REPL prompt, i.e. if the user has
	copy&pasted some old REPL input into the current input area.

2005-01-30  Bryan O'Connor <bryan-slime@lunch.org>

	* slime.el (slime-goto-location-position): Changed the regexp to
	require the function-name to be followed by a
	non-symbol-constituent character \S_.  Previously, a function-name
	of "find" first matched find-if-not if it occured earlier in the
	file.

2005-01-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-busy-p): Ignore debugged continuations to enable
	arglist lookup while debugging.  Suggested by Lynn Quam.
	(sldb-continuations): New buffer local variable in sldb buffers to
	keep track of debugged continuations.
	(sldb-debugged-continuations): New function.
	(sldb-buffers): Renamed from sldb-remove-killed-buffers.
	(slime-eval-print): New function to insert the stream output and
	the result of an evaluation in the current buffer.
	(slime-eval-print-last-expression): Use it.
	(slime-interactive-eval): Use slime-eval-print when a prefix
	argument was given.

	* swank.lisp (*pending-continuations*, eval-in-emacs)
	(debugger-info-for-emacs): Keep track of debugged continuation the
	new variable *pending-continuations* and include the list of
	active continuations in the debugger info for Emacs.
	(eval-and-grab-output): New function.  Used by slime-eval-print.
	(*log-output*): Renamed from *log-io*.  Use *standard-error* as
	initial value instead of *terminal-io*.  CMUCL opens its own tty
	and that makes it hard to redirect to output with a shell.
	*standard-error* writes its output to file descriptor 2.
	(*canonical-package-nicknames*): Fix typo.

2005-01-20  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (parse-symbol): Don't break if the package doesn't
	exist.  Reported by Lynn Quam.

2005-01-20  Ian Eslick <eslick@csail.mit.edu>

	* swank-allegro.lisp (restart-frame): Handle frames with arguments
	better.

2005-01-20  Edi Weitz  <edi@agharta.de>

	* swank-allegro.lisp (handle-undefined-functions-warning): Prevent
	breakage if the undefined function is called at multiple
	locations.

2005-01-19  Helmut Eller  <heller@common-lisp.net>

	* swank-gray.lisp (stream-unread-char): If the char argument
	doesn't match the contents in the buffer, ignore it and emit a
	warning instead.

2005-01-19  Utz-Uwe Haus <haus+slime@merkur.math.uni-magdeburg.de>

	* swank-cmucl.lisp (breakpoint): Add a slot for return values to
	make return values inspectable in the debugger.
	(signal-breakpoint): Initialize the new slot.

2005-01-19  Matthias Koeppe <mkoeppe@merkur.math.uni-magdeburg.de>

	* slime.el (slime-insert-arglist): Inserts a template for a
	function call instead of the plain arglist; this makes a
	difference for functions with optional and keyword arguments.

	* swank.lisp (arglist-to-template-string): New function.
	(arglist-for-insertion): Use it
	(decode-keyword-arg, decode-optional-arg): New functions.

2005-01-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>

	* slime.el (slime-header-line-p): Customize variable to
	enable/disable the header-line in the REPL.

2005-01-18  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-complete-symbol*-fancy): New variable to enable
	extra bells and whistles with slime-complete-symbol*. Currently
	controls whether to use arglists semantically. Default is t.
	(slime-complete-symbol*-fancy-bit): Factored out this function.
	Only do "semantic" completion when the symbol is in
	function-position, avoid interning argument names in Emacs, and
	don't display arglists if the minibuffer is active.

2005-01-14  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-repl-send-input): Make old input read-only using
	an overlay instead of a text property. This way if you copy&paste
	the input elsewhere it will become editable (overlay is associated
	with the buffer region and not the text).

2005-01-14  Edi Weitz  <edi@agharta.de>

        * slime.el (slime-complete-symbol*): Maybe insert closing
        parenthesis or space (depending on arglist) after symbol
        completion has finished.  Optionally also show arglist.

2005-01-13  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (create-socket): The byte-order of the :host
	argument for CREATE-INET-LISTENER was changed in the Jan 2005
	snapshot.  Test whether the symbol 'ext:socket-error exists to
	decide if we are in a older version.
	(resolve-hostname): Return the address in host byte-order.

2005-01-12  Robert Lehr <bozzio@the-lehrs.com>

	* slime.el (slime-changelog-date): Return nil if the ChangLog file
	doesn't exits.
	(slime-repl-update-banner): Write "ChangeLog file not found" if
	the ChangeLog doesn't exist.

2005-01-12  Matthias Koeppe  <mkoeppe@mail.math.uni-magdeburg.de>

	* slime.el (slime-inspector-operate-on-click): New command for
	inspecting the value value at the clicked-at position or invoking
	an inspector action.
	(slime-inspector-mode-map): Bind it to mouse-2.
	(slime-inspector-insert-ispec): Add mouse-face properties for
	clickable values and action buttons.

2005-01-12  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*default-worker-thread-bindings*): New variable to
	initialize dynamic variables in worker threads.
	(spawn-worker-thread, call-with-bindings): New helper functions.
	(thread-for-evaluation): Use them.

2005-01-10  Utz-Uwe Haus <haus+slime@merkur.math.uni-magdeburg.de>

	* swank-sbcl.lisp (profile-package): Add implementation for SBCL.

2005-01-10  Eduardo Muñoz <emufer@terra.es>

	* swank.lisp (inspect-for-emacs-list): LispWorks has a low args
	limit for apply: use reduce instead of apply.

2005-01-10  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-conservative-indentation): The default is now
	nil.  Suggested by Travis Cross.

2005-01-10  Matthias Koeppe <mkoeppe@merkur.math.uni-magdeburg.de>

	* slime.el (slime-inspector-next-inspectable-object): Accept a
	prefix argument and make wrapping around more reliable.  The code
	is adapted from `widget-move'.
	(slime-inspector-previous-inspectable-object): New command.
	(slime-inspector-mode-map): Bind to S-TAB.

2004-12-16  Martin Simmons <martin@xanalys.com>

	* swank-lispworks.lisp (create-socket): Work around bug in
	comm::create-tcp-socket-for-service on Mac OS LW 4.3.

2004-12-16  Edi Weitz  <edi@agharta.de>

	* slime.el (slime-complete-symbol*): Bind
	comint-completion-addsuffix so unambiguous or exact completion
	closes the string automatically.

2004-12-16  Matthias Koeppe <mkoeppe@merkur.math.uni-magdeburg.de>

	* slime.el (slime-keys): Bind M-* to
	slime-pop-find-definition-stack for compatibility with standard
	Emacs conventions.

2004-12-16  Helmut Eller  <heller@common-lisp.net>

	* swank-source-path-parser.lisp (read-source-form): New function
	which uses *read-suppress* properly.  Common code from
	source-path-stream-position and form-number-stream-position.
	(source-path-stream-position): Use it.

	* swank-cmucl.lisp (form-number-stream-position): Use
	read-source-form.

	* swank.lisp (frame-for-emacs): Print the frame number a little
	nicer with ~2D.

2004-12-15  Matthias Koeppe  <mkoeppe@merkur.math.uni-magdeburg.de>

	* slime.el (slime-lisp-modes): New variable to make C-c C-k
	customizable and usable in scheme-mode.
	(slime-compile-file): Use it.

2004-12-15  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp, swank-backend.lisp (frame-package): Delete it.
	Include the package name for local variables because it is utterly
	confusing if `eval-in-frame' doesn't work due to missing package
	prefixes.

	* swank-source-path-parser.lisp (source-path-stream-position):
	Bind *read-suppress* to nil before calling
	read-and-record-source-map.

	* swank-clisp.lisp (*buffer-name*, *buffer-offset*): Move
	definitions upward before the first use.

2004-12-15  Bryan O'Connor <bryan-slime@lunch.org>

	* slime.el (slime-edit-definition): Switch to the other frame if
	the `where' is 'frame.
	(slime-edit-definition-other-frame): New function.

2004-12-15  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-send-input): Make the input read-only to
	avoid confusion.
	(slime-make-region-read-only): New function.

2004-12-13  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-mode-map): Bind <home> to slime-repl-bol.
	Suggested by Chris Capel.
	(slime-repl-grab-old-input): Remove the 'old-input text-property
	from the copied text.  Reported by Tim Oates.
	(slime-repl-grab-old-input): Append the old input to the current
	input by default.  If the new `replace' argument is true, replace
	the current input.  Suggested by Antonio Menezes Leitao.
	(slime-repl-return): Pass the prefix argument to
	slime-repl-grab-old-input.

2004-12-09  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (*sldb-print-pretty*, *sldb-print-circle*)
	(*sldb-print-length*, *sldb-print-level*, *sldb-print-lines*)
	(*sldb-print-pprint-dispatch*): Export those symbols.

2004-12-05  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-global-variable-name-p): Also return true for
	names of constants like +foo+.  Suggested by Christian Lynbech.

	* swank-allegro.lisp (handle-compiler-warning): Handle
	undefined-functions warnings by looking the fromat-arguments of
	the condition.
	(compiler-undefined-functions-called-warning-p)
	(location-for-warning, handle-undefined-functions-warning): New
	functions.

	* swank-cmucl.lisp (*install-gc-hooks*): New user variable.
	(sending-safe-p): New predicate.
	(pre-gc-hook, post-gc-hook): Use it.

	* swank.lisp (eval-region): Use a simple loop.

2004-12-02  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp: (inspect-for-emacs (symbol)): Handle non-interned
	symbols.

	* slime.el (slime-repl-clear-buffer, slime-repl-clear-output): Fix
	docstrings.

2004-11-29  Lynn Quam <quam@ai.sri.com>

	* slime.el (slime-global-variable-name-p): Allow optional
	"<package-name>:" or "<package-name>::".

2004-11-29  Chris Capel <pdf23ds@gmail.com>

	* swank.lisp (macro-indentation): Ignore &whole, &aux, and
	&environment args.

2004-11-29  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-repl-wrap-history): New user variable.
	(slime-repl-history-replace): Implement wrap around.
	(slime-repl-easy-menu): Fix binding for "Next Input".  Reported by
	Surendra Singhi.

	* swank-lispworks.lisp (list-callers-internal): Return the
	function if dspec:object-dspec returns nil.
	(xref-results): Previously, functions for which
	dspec:dspec-definition-locations returned nil were ignored.
	Include them with a unknown source-location.

	* swank-abcl.lisp, swank-allegro.lisp, swank-clisp.lisp,
	swank-cmucl.lisp, swank-openmcl.lisp, swank-sbcl.lisp,
	swank-lispworks (accept-connection): The :external-format argument
	defaults now to :iso-latin-1-unix.

2004-11-26  Helmut Eller  <heller@common-lisp.net>

	* swank-cmucl.lisp (read-into-simple-string): Use #-cmu19 instead
	of #+cmu18e.

2004-11-25  Chris Capel <pdf23ds@gmail.com>

	* slime.el (slime-indent-and-complete-symbol): Echo the arglist if
	there's no symbol before point.  Don't complete after parens.
	(slime-echo-arglist): Factorized from slime-space.
	(slime-space): Use it.
	(slime-repl-history-replace): Clear the input at the end of the
	history.

	* swank.lisp (arglist-to-string): Don't show &whole, &aux and
	&environment args.
	(clean-arglist): New function.

2004-11-25  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-net-coding-system): Emacs does funky encoding
	for `raw-text-unix' use `binary' instead.
	(slime-safe-encoding-p): New function.
	(slime-net-send): Use it and don't try to send stuff which can't
	be decoded by Lisp.
	(slime-inferior-lisp-program-history): XEmacs compatibility:
	declare it as a variable.
	(slime-xref-mode): In Emacs 21, set delayed-mode-hooks to nil
	because we don't want to run the lisp-mode-hook.  Reported by
	Chris Capel.

	* swank.lisp (dispatch-loop): Catch errors and close the
	connection.  It's almost impossible to run the debugger inside the
	control-thread, so let it crash instead.  A backtrace would be
	nice, though.
	(cleanup-connection-threads): Can now be called in the
	control-thread.  Add a check to avoid thread suicide.
	(start-swank-server-in-thread): Fix the call to start-server.

	* swank-sbcl.lisp (%thread-state-slot, %thread-state): Refactored
	from thread-status.
	(thread-status): Use it.
	(all-threads): Exclude zombies.

2004-11-24  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-start-and-load): Use vanilla comint instead of
	inf-lisp.  Let's try that for a while.
	(slime): Ask for the coding system when invoked with C-u C-u.
	(slime-net-coding-system, slime-net-valid-coding-systems): Add
	some alternatives for older Emacsen.
	(slime-find-buffer-package): Skip quotes.  Old code looks
	sometimes like (in-package 'foo).
	(slime-repl-mode-map): Inhibit C-c C-z.  Avoids accidental loading
	inf-lisp.
	(slime-net-coding-system): Use find-coding-system in XEmacs.
	coding-system-p means something different here.
	(slime-repl-mode-map): XEmacs compatibility: use (kbd "C-<up>")
	instead of [C-up].

	* swank.lisp (inspect-for-emacs-list): subseq on improper lists
	breaks in Lispworks. Handle that case better.

	* swank-sbcl.lisp (inspect-for-emacs)[code-component]: Disassemble
	code-components too.

	* swank-backend.lisp (import-swank-mop-symbols): Better error
	message for the assertion.

	* swank-cmucl.lisp (debug-var-value): Return #:invalid or
	#:unknown instead of :<not-available>.
	(swank-compile-file): Load the fasl file only if load-p is true.
	(inspect-for-emacs, inspect-alien-record, inspect-alien-pointer):
	Add inspector support for some alien types.

	* swank-lispworks.lisp (emacs-connected): Set the sigint handler
	only for single threaded operation. I.e. when
	*communication-style* is nil.

	* swank-allegro.lisp (set-external-format): New function.  Use LF
	as eol mark.
	(call-with-compilation-hooks): Trap compiler-notes too.

2004-11-24  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-repl-mode-map): Add C-up and C-down to move
	through history. Consistent with comint-mode.
	(slime-repl-mode-map): Add slime-load-file on `C-c C-l' and
	slime-compile-file on `C-c C-k'. This is mostly to override
	unwanted inf-lisp bindings in lisp-mode-map.
	(slime-load-file): Handle (buffer-file-name) being nil.

2004-11-20  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (make-socket-io-stream): Add some #+sb-unicode.

2004-11-20  Travis Cross <travis@crosswirecorp.com>

	* swank-sbcl.lisp (thread-status): Fix unbalanced parenthesis.

2004-11-20  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (make-stream-interactive): Only add ouptut
	streams (subclasses of ccl:fundamental-output-stream) to
	ccl::*auto-flush-streams*.

2004-11-19  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-net-coding-system): New variable.  Specifies the
	coding system to use for network communication.  The default is
	iso-latin-1 and should work for all Lisps.  Only a small set of
	coding systems is currently supported.
	(slime-net-valid-coding-systems): New variable.  A list of coding
	systems which may be used.
	(slime-check-coding-system, slime-coding-system-mulibyte-p)
	(slime-coding-system-cl-name): New utility function for coding
	systems.
	(slime-net-connect, slime-make-net-buffer,
	slime-open-stream-to-lisp): Use it.
	(slime-net-decode-length, slime-net-encode-length): Renamed from
	slime-net-read3 and slime-net-enc3.  The length is now encoded as
	a 6 char hex string.

	* swank.lisp (*coding-system*): New variable.
	(start-server): Accept external-format as argument.
	(create-server, create-swank-server, setup-server)
	(serve-connection, open-dedicated-output-stream)
	(create-connection): Ditto.
	(defstruct connection): Add external-format slot.
	(decode-message-length): New function for new length encoding.
	(decode-message): Use it.
	(encode-message): Use new encoding.

	* swank-cmucl.lisp (accept-connection): Accept external-format
	argument.
	(inspect-for-emacs): Add CMUCL specific versions for array and
	vectors.

	* swank-sbcl.lisp, swank-openmcl.lisp, swank-lispworks.lisp,
	swank-clisp.lisp, swank-backend.lisp, swank-allegro.lisp,
	swank-abcl.lisp (accept-connection): Accept :external-format as
	argument.

2004-11-19  Matthew Danish <mrd+nospam@cmu.edu>

	* swank-allegro.lisp: (count-cr): New function. Convert
	file-offsets to match Emacs' eol-conventions.
	(find-definition-in-file): Use it.

	* slime.el (slime-insert-xrefs): Display the multi-line label much
	more cleanly.

2004-11-19  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (thread-status): Decode the thread-state-slot
	instead of returning ???.

	* swank-allegro.lisp (swank-mop:slot-definition-documentation):
	ACL 7 says documentation should have 2 args. So, pass t as second
	argument.
	(fspec-primary-name): Recurse until we have a symbol.
	(allegro-inspect): New function.  Mostly reverse engineered from
	ACL's native inspector.
	(inspect-for-emacs (t), inspect-for-emacs (function)): Use it.

	* swank.lisp (inspect-for-emacs array): Use row-major-aref instead
	of a displaced array.  I hope that does the same.
	(inspect-for-emacs integer): Ignore errors in
	decode-universal-time.  Negative values and, in SBCL, also small
	values cannot be decoded.
	(list-threads): Include the thread-id. Useful for SLIME debugging.

	* slime.el (slime-list-threads, slime-thread-insert): Show the
	thread-id.
	(slime-thread-control-mode-map): Remove the binding for the
	no-longer-existent slime-thread-goahead command.

2004-11-18  Alexey Dejneka <adejneka@comail.ru>

	* swank.lisp (inspect-for-emacs): Fix bug in handling of arrays
	with fill-pointers.

2004-11-15  Helmut Eller  <heller@common-lisp.net>

	* slime.el: The REPL commands ,quit and ,sayoonara are now
	distinct.  Previously Quit killed all Lisps an all buffers.  The
	new Quit command kills only the current Lisp.
	(slime-quit-lisp): New function.
	(repl-command quit): Use it. Don't delete all buffers.
	(repl-command sayoonara): No longer an alias for ,quit.
	(slime-connection-list-mode-map): Bind C-k to slime-quit-lisp.
	(slime-communication-style): New connection variable.
	(slime-use-sigint-for-interrupt): Is no longer a connection local
	variable.  It's derived from the new slime-communication-style.
	(slime-inhibit-pipelining): New user option.
	(slime-background-activities-enabled-p): New predicate to control
	various background activities like autodoc and arglist fetching.
	(slime-space, slime-autodoc-message-ok-p): Use it.
	(slime-search-call-site): Use hints provided to search a call-site
	in a defun.  Useful for the show-frame-source command.
	(slime-goto-source-location): Use it.
	(slime-quit): Deleted, as it was broken.  May come back later.
	(slime-inspector-label-face, slime-inspector-value-face)
	(slime-inspector-action-face, slime-reader-conditional-face):
	Provide better defaults for Emacsen which don't support :inherited
	faces.

	* swank-backend.lisp (emacs-connected): Don't pass the stream as
	argument.  make-stream-interactive is a better place for setting
	buffering options.

	* swank-cmucl.lisp (emacs-connected): Install GC hooks to display
	GC messages in the echo area.
	(sos/misc :flush-output): There seem to be funny signal safety
	issues if the dedicated output stream is not used.  So, lets first
	reset the buffer index before sending the buffer to the underlying
	stream.

	* swank-lispworks.lisp (frame-source-location-for-emacs): Pass the
	function name of the next (newer) frame as a hint to Emacs.  This
	way we can highlight the call site in some cases, instead of the
	entire defun.
	(frame-location): Renamed from function-name-location.  The
	argument is now a dspec, not only a name. Also include hints for
	Emacs.
	(lispworks-inspect): Simplified from old code.
	(inspect-for-emacs): Use it for also for simple functions.
	(emacs-connected, make-stream-interactive): Move the
	soft-force-output stuff to make-stream-interactive.

	* swank-abcl.lisp (emacs-connected): Deleted.  The default
	implementation should be good enough.

	* swank-sbcl.lisp (emacs-connected): Updated for new interface.

	* swank-openmcl.lisp (emacs-connected, make-stream-interactive):
	Move buffering stuff to make-stream-interactive.

	* swank.lisp (defstruct connection): Add new slot:
	communication-style for convenience.
	(create-connection): Initialize the new slot.
	(connection-info): Send the communication-style to Emacs.
	(install-fd-handler, simple-serve-requests): Sending
	:use-sigint-for-interrupt is no longer necessary.

2004-11-11  Raymond Toy <raymond.toy@ericsson.com>

	* slime.el (slime-activate-font-lock-magic): Add XEmacs support.
	(slime-reader-conditional-face): New face.

2004-11-10  Marco Baringer  <mb@bese.it>

	* swank-backend.lisp (definterface): Eliminate unused variable
	received-args.
	(emacs-connected, make-stream-interactive, condition-references,
	condition-extras, buffer-first-change): Add (declare (ignore X))
	for unused arguments in default implementations.
	(inspect-for-emacs): Remove (declare (ignore)) for inexistent
	variable inspection-mode. Added T qualifiers in method arguments.

	* swank-openmcl.lisp (inspect-for-emacs): Use definterface so
	SLIME knows we implement this.
	(arglist function): Use ccl:arglist, not ccl::arglist-from-map.
	(inspect-for-emacs): Added support for inspecting the uvector
	objects under lisp datums.

2004-11-09  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (features-for-emacs): New function to avoid
	keyword/string confusion.  Case doesn't matter since Emacs will
	downcase them anyway.
	(connection-info, sync-features-to-emacs): Use it.  Should fix
	highlighting bug reported by Edi Weitz.

	* slime.el (slime-eval-feature-conditional): Convert AND, OR, and
	NOT to lowercase keywords.
	(slime-net-read3): Silly optimization: give char-after the offset
	as argument to avoid save-excursion and forward-char.

2004-11-07  Brian Downing  <bdowning@lavos.net>

	* slime.el (slime-fuzzy-explanation): Added line to describe
	flags (:boundp, :fboundp, :macro, etc), which are now reported in
	the fuzzy-completion output.
	(slime-fuzzy-insert-completion-choice): Added flags.
	(slime-fuzzy-choices-buffer): Added flags header.

	* swank.lisp (fuzzy-completions): Changed docstring to describe
	new flags in the completion results.
	(convert-fuzzy-completion-result): New function to marshall the
	results from the completion core into something Emacs is
	expecting.  Added flags.
	(fuzzy-completion-set): Use the above.
	(compute-completion): Removed.
	(score-completion): Cleaned up a little bit.
	(highlight-completion): Use destructive nstring-upcase.

2004-11-01  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-easy-menu): Add item for
	slime-update-indentation.  Suggested by Lynn Quam.
	(slime-severity-faceslime-show-note-counts)
	(slime-most-severe, slime-choose-overlay-region): Handle
	read-errors.
	(slime-show-buffer-position): New function.
	(slime-show-source-location): Use it.

	* swank-backend.lisp (deftype severity): Add read-errors.

	* swank-cmucl.lisp (severity-for-emacs): Special case read-errors.
	(read-error-location): Add the offset to the buffer start.

	* swank.lisp (assign-index): Avoid linear search.

2004-10-30  Helmut Eller  <heller@common-lisp.net>

	* swank-source-path-parser.lisp (source-path-stream-position):
	Bind *read-suppress* only as long as we skip over forms.  The last
	toplevel form in the path is read with *read-suppress* = nil
	because in newer versions of CMUCL and SBCL read will return nil
	if *read-suppress* is t.

2004-10-28  Helmut Eller  <heller@common-lisp.net>

	* swank-clisp.lisp: Ups. Undo previous change.

	* swank-clisp.lisp: Add workaround for CLISP's broken control
	string parser.

	* swank-cmucl.lisp (set-step-breakpoints): Handle breakpoints at
	single-return points in escaped frames better.  Previously we
	tried to set a breakpoint at the current position and consequently
	was only hit during the next call.
	(inspect-for-emacs)[function]: Call the next method only for
	funcallable instances.
	(profile-report, profile-reset, unprofile-all): We have to use
	eval because the macro expansion depends on the value of
	*timed-functions*.  Reported by Chisheng Huang.

	* slime.el (slime-space): Call slime-message in the right buffer,
	so that after-command hooks are added in the right buffer.
	Reported by Juho Snellman.
	(slime-dispatch-event): Accept stepping flag.
	(sldb-setup): Don't query when entering a recursive edit.
	(sldb-exit): Don't kill the buffer if we are in stepping mode.
	(slime-inspector-insert-ispec): New function.
	(slime-open-inspector): Use it.
	(slime-inspector-operate-on-point): Simplified.
	(test interactive-eval): Fix test case.
	(slime-kill-all-buffers): More regexp kludges.  From Bill Clementson.

	* swank-backend.lisp (activate-stepping): New function.

	* swank.lisp (*sldb-stepping-p*): New variable.  Used to tell
	emacs that the debugger buffer should not be closed even if we
	unwind.
	(debug-in-emacs): Use it.
	(sldb-step): Moved to the front end.
	(inspector-princ, method-specializers-for-inspect): Simplified.
	(methods-by-applicability): Use a simpler algorithm. I doubt there
	is much difference in practice.
	(inspect-for-emacs)[symbol, function, standard-generic-function]
	[standard-method]: Use less than 80 columns.
	(inspector-call-nth-action): Don't accept &rest args.  Was never
	used.
	(inspect-for-emacs) [integer]: Fix control string.  Thanks to CSR
	for pointing it out.

2004-10-27  Helmut Eller  <heller@common-lisp.net>

	* swank-sbcl.lisp (signal-compiler-condition): Actually delete one
	of the reader-conditionalized forms.

2004-10-26  Helmut Eller  <heller@common-lisp.net>

	* cl-indent.el: Add indentation specs for some missing CL symbols.
	(lisp-prefix-match-indentation): Change default to
	nil to avoid confusion for people who don't care about the issue.

	* swank-sbcl.lisp (signal-compiler-condition): Remove reader
	conditionals as the current code doesn't work in any SBCL before
	0.8.13 anyway.

	* swank-source-path-parser.lisp: Remove workarounds for SBCL bugs.
	The bugs are fixed in the versions we support.

	* swank-cmucl.lisp (read-error-location)
	(signal-compiler-condition): Handle read-errors.
	(swank-compile-file): Don't load the fasl file if there was an
	error.

	* swank.lisp (define-printer-variables): Handle doc strings
	properly.
	(*sldb-pprint-dispatch*): Initialize it with the default dispatch
	table.

	* slime.el (slime-init-command): New function to send the command
	to load swank.  Having a separate function for the task should
	make it easier to start a Lips with a preloaded swank.
	(slime-maybe-start-lisp): Use it.
	(slime-maybe-start-multiprocessing): Deleted.
	(slime-repl-buffer): Include the name of the implementation.
	(slime-set-default-directory)
	(slime-sync-package-and-default-directory): Translate filenames.

2004-10-25  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspect-for-emacs array): Properly deal with arrays
	without fill pointers.
	(inspect-for-emacs function): Show function-lambda-expression
	when available.

	* swank-openmcl.lisp (specializer-name): New function.
	(who-specializes): Use it.
	(maybe-method-location): Use it.
	(function-source-location): Use it.

	* swank-cmucl.lisp (inspect-for-emacs function): Use next
	method's values and simply add cmucl specific details.

	* slime.el (slime-repl-defparameter): Change default value to "*".

2004-10-25  Thomas Schilling <tjs_ng@yahoo.de>

	* swank-allegro.lisp (inspect-for-emacs): Use
	excl::external-fn_symdef to get the function documentation.

	* swank.lisp (inspect-for-emacs): Order generic function's methods
	and show abbreviated docs for methods.
	(abbrev-doc): New function.
	(methods-by-applicability): New function.
	(*gf-method-getter*): New variable.

2004-10-19  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-show-source-location): Call `push-mark' to push
	the source position onto the global mark ring.

2004-10-19  Helmut Eller  <heller@common-lisp.net>

	* swank.lisp (define-printer-variables): NIL is not a valid
	docstring.  Reported by Alain Picard.
	(printer-variables sldb-print): Include print-gensym,
	pprint-dispatch, base, radix, array, and lines.

2004-10-17  Luke Gorrie  <luke@synap.se>

	* slime.el (slime-message): Use slime-typeout-frame if available.

2004-10-17  Helmut Eller  <heller@common-lisp.net>

	* cl-indent.el: Our local copy.  Should eventually be merged the
	file with in the main distribution.

	* slime.el: (slime-find-buffer-package-function): New variable to
	allow customization for unusal syntax.
	(slime-maybe-rearrange-inferior-lisp): Removed unused function.
	(slime-set-inferior-process): Non-macro version to make
	byte-compiler happy.  Reported by Raymond Wiker.
	(slime-maybe-start-lisp): Use it.
	(slime-sync-package-and-default-directory): Synch the
	default-directory in the REPL buffer too.
	(slime-goto-connection): Close the connection list window.
	Suggested by Andras Simon.
	(slime-repl-clear-buffer): Place point after the prompt.
	(selector-method ?i): Use slime-process to switch to the right
	buffer.
	(slime-background-message): Do nothing if the minibuffer is
	active.
	(slime-indent-and-complete-symbol): Don't indent if we at the same
	line as the prompt.

	* swank.lisp (*sldb-pprint-frames*): Renamed to
	*sldb-print-pretty*.
	(*sldb-print-level*, *sldb-print-length*, *sldb-print-circle*)
	(*sldb-print-readbly): Group of new variables to customize
	printing in the debugger.  The default values should be safe.
	(define-printer-variables, with-printer-settings): New macros to
	make defining and binding groups of printer variables easier.
	(inspect-for-emacs-list): Fix bug with circular lists and only
	shows the first 40 elements.
	(inspect-for-emacs): Various cleanups.
	(all-qualified-readnames): Removed. It was not needed because
	common-lisp-indent-function strips of any package prefix and
	downcases the symbol anyway.
	(printer-variables sldb-print): Ooops. Better use sldb-print as prefix
	than sldb alone.  *sldb-level* was already defined.

	* swank-cmucl.lisp (inspect-for-emacs (code-component)):
	Disassemble the memory region if there's not enough debug info.

2004-10-17  Jan Rychter  <jan@rychter.com>

	* swank-cmucl.lisp (return-from-frame): Add it.

2004-10-11  Thomas F. Burdick  <tfb@OCF.Berkeley.EDU>

	* swank-sbcl.lisp (function-definitions): Find compiler macros, too.
	(find-defintions, compiler-definitions)
	(optimizer-definitions, transform-definitions): Add compiler
	transformers and optimizers to the list of definitions.

2004-10-07  Peter Seibel  <peter@javamonkey.com>

	* swank.lisp (spawn-threads-for-connection): Bind *debugger-hook*
	instead of SETF'ing it.

2004-10-06  Luke Gorrie  <luke@synap.se>

	* swank.lisp (update-indentation/delta-for-emacs): Configure Emacs
	indentation settings not just for the symbol name but for all
	package-qualified forms of it as well.

	* doc/slime.texi (Credits): Updated the credits list to include
	more Lisp implementors who're also SLIME hackers.

2004-10-05  Luke Gorrie  <luke@synap.se>

	* swank.lisp (arglist-for-echo-area): Handle errors and return a
	message.
	(parse-symbol): Recognise an empty package name as the KEYWORD
	package.

2004-10-03  Reini Urban <rurban@x-ray.at>

	* swank-clisp.lisp (getpid)[win32]: Use
	win32:|GetCurrentProcessId|.

2004-10-03  Helmut Eller  <heller@common-lisp.net>

	* slime.el: Reduce dependency on inf-lisp internals. Make it
	possible to start the inferior lisp in a buffer different from
	"*inferior-lisp*".
	(slime): Parse the command argument explicitly and don't rely on
	`inferior-lisp'.  Don't close all connections, but only the one
	for the inferior lisp buffer we are using.
	(slime-maybe-start-lisp): Take the command and buffer as argument.
	Decide here whether we should start start a new processwe or just
	disconnect and reconnect .
	(slime-start-lisp): Load verbosely.
	(slime-inferior-lisp): New function.  Replaces call to
	`inferior-lisp'.
	(slime-inferior-connect, slime-start-swank-server): Take the
	inferior process as argument
	(slime-read-port-and-connect): Set the slime-inferior-process
	variable in the new connection.
	(slime-inferior-process): New connection local variable.
	(slime-process): Use it.
	(slime-restart-inferior-lisp): Don't use inferior lisp stuff.
	(slime-switch-to-output-buffer): Process interactive arguments
	properly.

	* swank-loader.lisp (compile-files-if-needed-serially): Load
	verbosely.

2004-10-01  Helmut Eller  <heller@common-lisp.net>

	* swank-allegro.lisp (find-fspec-location): excl:source-file can
	return stuff like (:operator ...); try to handle it.

	* swank-cmucl.lisp (code-component-entry-points): Only include
	entry points with "valid" functions names.  This excludes internal
	lambdas which have usually a string as name, like "defun foo".

	* swank.lisp (parse-symbol): Don't use the reader to avoid
	interning unknown symbols.  The downside is that we no longer
	handle escaped |symbols| correctly.

	* slime.el (slime-set-connection-info): Hide the *inferior-lisp*
	buffer after we know Lisp's pid.  Print the words of encouragement
	here, when all the other asynchronous initialization is completed.
	(slime-find-buffer-package): We need to preserve the case for
	things like (:in-package "foo"), so return "\"foo\"".

2004-09-27  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-process): New function intended to replace all
	those references to the *inferior-lisp* buffer.
	(slime-maybe-start-lisp): Split it up.
	(slime-start-lisp): New function.
	(slime-restart-inferior-lisp): Use the command from the existing
	process to start the new process.

2004-09-27 Christian Lynbech <christian@defun.dk>

	* slime.el (define-slime-dialect): New macro to make starting
	Lisps with different command line options easier.

2004-09-27 Rui Patrocínio <rui.patrocinio@netvisao.pt>

	* swank.lisp (mop, mop-helper): Support functions for the class
	browser.

	* slime.el (slime-browse-classes, slime-browse-xrefs): New
	commands to browse class hierarchies and xref graphs in a tree
	widget.

	* tree-widget.el: New file.  Only needed for older Emacsen.

2004-09-23  Helmut Eller  <heller@common-lisp.net>

	* slime.el (slime-start-and-load): Take arguments so that the
	function can be called non-interactively. Only start SLIME is if
	it is not running.
	(slime-recompile-bytecode): Don't warn about uses of cl-functions.
	(slime-reset): Kill all sldb buffers.
	(slime-goto-location-position): Fix syntax for Emacs 20.
	(sldb-mode-map): Add C-c C-d bindings.
	(slime-open-inspector): Insert the type in the second line so that
	we can make longer titles, e.g we should include the princed
	version of the inspected object.

	* swank-backend.lisp (frame-package, label-value-line)
	(label-value-line*): New functions.

	* swank.lisp (frame-locals-for-emacs): Bind *print-pretty* to
	*sldb-pprint-frames* to get more compact lines and bind *package*
	to frame-package to get shorter labels for variables.
	(format-values-for-echo-area): Include the hex and octal
	representation for integers.
	(apply-macro-expander, disassemble-symbol): Use the buffer-package
	for reading.
	(inspector-content-for-emacs): Use print-part-to-string so that we
	see cycles in the data structure.
	(inspect-for-emacs): Minor beautifications.
	(load-file-set-package): New function.

	* swank-cmucl.lisp (frame-package): Implemented.
	(inspect-for-emacs): Only include stuff that is actually stored in
	the object itself (see objdef.lisp for exact object layout).
	Include the disassembly for functions and code components.

2004-09-19  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-gray.lisp (stream-read-char): Treat empty strings as
	end-of-file.

	* swank-cmucl.lisp (sis/in): Treat empty strings as end-of-file.
	(map-allocated-code-components): Inhibit efficiency notes.
	(arglist)[symbol] Delete unreachable code.
	(sldb-break-on-return, sldb-break-at-start): Implement it
	(sldb-step): Some cleanups.

	* swank.lisp (thread-for-evaluation): Restart the listener thread
	if it was dead for some reason.
	(debugger-condition-for-emacs): Include "extra" stuff. Currenlty
	only used to pop up the source buffer at breakpoints.
	(sldb-break): New function.
	(interrupt-worker-thread): Interrupt the repl thread if there is
	no other active thread.

	* swank-backend.lisp (import-swank-mop-symbols): New
	function. Useful if the implementation has most of the mop symbols
	in the same package.
	(sldb-break-on-return, sldb-break-at-start, condition-extras): New
	functions.

	* slime.el (sldb-break-on-return, sldb-break): New commands.
	(slime-repl-return-string): Allow empty strings.  That's our way
	to send end-of-file.
	(sldb-insert-condition): Add "extra" slot for random thing that
	don't fit nicely somewhere else.
	(sldb-dispatch-extras): New function.
	(sldb-show-frame-source): New non-interactive version of
	sldb-show-source.
	(sldb-show-source): Use it.
	(slime-beginning-of-symbol, slime-end-of-symbol): New functions
	which don't include the character after a hash '#'.
	(slime-symbol-name-at-point): Use them.
	(slime-symbol-start-pos, slime-symbol-end-pos): Ditto.

2004-09-17  Marco Baringer  <mb@bese.it>

	* swank.lisp: Don't print "Documentation:" if none is available;
	add support for classes specializer-direct-methods; deal with
	eql-specializers in methods.
	(inspector-princ): New function.
	(method-specializers-for-inspect): New function.
	(method-for-inspect-value): New function.
	(inspect-for-emacs): Use inspector-princ instead of
	princ-to-string.

	* swank-backend.lisp (swank-mop): Require eql-specializer,
	eql-specializer-object and specializer-direct-methods in swank-mop
	package.

	* swank-allegro.lisp, swank-clisp.lisp, swank-cmucl.lisp,
	swank-openmcl.lisp, swank-sbcl.lisp (swank-mop): Export
	eql-specializer, eql-specializer-object and
	specializer-direct-methods from swank-mop.

	* swank-cmucl.lisp (inspect-for-emacs): Thinko fix.

	* swank-lispworks.lisp (swank-mop): Export
	specializer-direct-methods.
	(eql-specializer): Implement.
	(eql-specializer-object): Implement.

	* swank-sbcl.lisp (inspect-for-emacs): Fix broken ignore
	declaration.

	* doc/slime.texi: Update inspector documentation.

2004-09-16  Marco Baringer  <mb@bese.it>

	* swank-clisp.lisp (swank-mop, inspect-for-emacs): Only define the
	CLOS parts of the inspector if the underlying lisp provides the
	required functionality. If not enough MOP is present to implement
	the inspector then we define some very simple replacement methods.

2004-09-16  Marco Baringer  <mb@bese.it>

	* swank-clisp.lisp (swank-mop): Implement the MOP compatability
	package.
	(inspect-for-emacs): Update for new inspection API.

2004-09-15  Alan Ruttenberg <alanr-l@mumble.net>
	* swank-openmcl: typo in who-references. Fix frame-var-value

2004-09-15  Marco Baringer  <mb@bese.it>

	* slime.el (slime-inspector-label-face,
	slime-inspector-value-face, slime-inspector-action-face,
	slime-inspector-type-face): These faces now inherit from similar
	font-lock-<whatever> faces.
	(slime-open-inspector): Use slime-inspector-value-face for values.

	* swank.lisp (inspect-for-emacs): Add function and compiler-macro
	documentation when inspecting symbols. View the truename of
	logical pathnames where they exist. Fix typos in package
	inspector (fix by Torsten Poulin <torsten@diku.dk>).

	* swank-sbcl.lisp, swank-cmucl.lisp (inspect-for-emacs): Insert
	function object's documentation when it's available.

2004-09-15  Eduardo Muñoz  <emufer@terra.es>

	* .cvsignore: Added *.elc

	* hyperspec.el: Fixed syntax error.

2004-09-15  Alan Caulkins <fatman@maxint.net>

	* swank.lisp (cleanp-connection-threads): Kill all Swank threads
	for a connection when it terminates.

2004-09-14  Thomas Schilling <tjs_ng@yahoo.de>

	* swank-allegro.lisp (inspect-for-emacs): Fixes to previous patch.

2004-09-14  Marco Baringer  <mb@bese.it>

	* swank-backend.lisp (inspector, make-default-inspector): Add an
	INSPECTOR object argument to the inspector protocol. This allows
	implementations to provide more information regarding cretain
	objects which can't be, or simply aren't, inspected using the
	generic inspector implementation. also export inspect-for-emacs
	and related symbols from the backend package.
	(make-default-inspector): New function.

	* swank.lisp (inspected-parts): Rename to inspect-for-emacs and
	add an inspector argument. Move inspect-for-emacs to
	swank-backend.lisp, leave only the default implementations.

	* swank-openml.lisp, swank-sbcl.lisp, swank-allegro.lisp,
	swank-cmucl.lisp, swank-lispworks.lisp (inspected-parts): Rename
	and change argument list. Many of the inspected-parts methods were
	being clobbered by the inspected-parts in swank.lisp, now that
	they're being used the return values have been updated for the new
	inspect-for-emacs API.

2004-09-14  Thomas Schilling <tjs_ng@yahoo.de>

	* swank-allegro.lisp (inspected-parts): Implement inspector for
	structs.

2004-09-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (intern-catch-tag): New function.
	(read-user-input-from-emacs, take-input): Use it.

2004-09-13  John Paul Wallington  <jpw@gnu.org>

	* swank.lisp (define-special): Make the doc-type `variable'
	rather than `symbol'.  Don't quote `doc'.  Doc fix.

2004-09-09  Martin Simmons <martin@xanalys.com>

	* swank-lispworks.lisp: Set up the swank-mop package.  Implement
	swank-mop:slot-definition-documentation and function-name.

2004-09-13  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspected-parts): Added inspectors for pathnames,
	logical pathnames, standard-objects and numbers (float, ratio,
	integer and complex).

	* swank-backend.lisp: Define import-to-swank-mop.

	* swank-openmcl.lisp, swank-sbcl.lisp, swank-allegro.lisp: Don't
	define the import-to-swank-mop function (now defined in
	swank-backend.lisp).

	* swank-cmucl.lisp (swank-mop, function-name): Implement backend
	for inspector.
	(arglist): Add support for extracting arglists from function
	objects.
	(create-socket): Don't specify the host on PPC.

2004-09-13  Alan Ruttenberg <alanr-l@mumble.net>

        * slime.el slime-goto-location-position: New location specifiers:
	(:method name specializers . qualifiers) all are strings. Looks
	for defxxx name then the qualifiers as words, in order then the
	specializers as words, in order (except for "T", which is
	optional). Pass the symbols names for specializers and qualifiers
	(no packages). Used by openmcl but might be useful for others
	(:text-anchored <position fixnum> <string> <delta fixnum>)
	Got to position, then search for string, then move delta. To
	support upcoming source recording for openmcl debugging.

	* swank-openmcl multiple changes: - fix support for *sldb-top*
	 (formerly *swank-debugger-stack-frame*) Was not thread safe. Now
	 (application-error), and (interrupt-thread) records the error
	 pointer in a table associated with thread and map-backtrace picks
	 up the appropriate pointer. *process-to-stack-top*,
	(grab-stack-top), (record-stack-top).

	 - Other adjustments for changes to multiprocessing: remove
	(force-break-in-listener) no longer necessary since we use
	process-interrupt instead of ccl::*interactive-abort-process*
	Adjust break-in-sldb to do so for swank repl connections
	(abstraction breaking reference to swank::*connections*, but
	nicely via intern)

	 - changes to (find-definitions) (function-source-location),
	 addition of (maybe-method-location) (remove-filename-quoting).

	To support editing definitions of methods. To fix bug with
	pathnames with quoted characters (like "\\.swank.lisp"). To remove
	bogus source recording of l1-boot-3 in functions that didn't have
	a source file noted.

	 - Implementation of xref functions: (xref-locations) uses xref
	implementation added to openmcl recently. Note that you have to
	(ccl::start-xref) for it to work for other than who-calls, and
	that xref information is not currently persisted in fasl files (I
	will release a patch for this soon) Backend functions (who-binds)
	(who-macroexpands) (who-references) (who-sets)
	(who-calls) (list-callees) (who-specializes)

	 - Lifted profile backend functions from swank-clisp which use
	 "metering.lisp"

	 - (openmcl-set-debug-switches) turns on the various variables I.
	know about that have the lisp record extra debugging
	information(including starting xref). I suggest you call
	it. Should it be called by default?

	- (frame-arguments) use builtin ccl::frame-supplied-args since the
	current version was sometimes missing the first argument to the
	function. (I think this was when it was passed by register. If you
	don't want to lose it in the frame locals in backtrace, call
	(openmcl-set-debug-switches) specifically, set
	ccl::*ppc2-compiler-register-save-label* to t

	- implement frame-var-value backend

	* metering.lisp: Minor changes to #+ #- to recognize openmcl

	* swank-loader.lisp: Load "metering.lisp"

2004-09-13  Marco Baringer  <mb@bese.it>

	* swank.lisp (inspected-parts): Deal with unfinalized classes in
	standard-class inspector. (Patch from Thomas Schilling)

2004-09-13  Marco Baringer  <mb@bese.it>

	* swank.lisp: New inspector protocol. The lisp side now returns a
	specially formated list of "things" to format which are then
	passed to emacs and rendered in the inspector buffer. Things can
	be either text, recursivly inspectable values, or functions to
	call.
	(inspected-parts): Redefine for new inspector protocol.
	(*inspectee-parts*): Redefine as array.
	(*inspectee-actions*): New array, similar to *inspectee-parts*.
	(reset-inspector): Update for new implementation of
	*inspectee-parts* and new variable *inspectee-actions*.
	(inspector-contents-for-emacs): New function.
	(inspect-object): Update for new inspector protocol.
	(inspector-nth-part): Update for new *inspectee-parts*
	implementation.
	(inspector-call-nth-action): New function.

	* slime.el (slime-inspector-action-face): New face.
	(slime-open-inspector): Adapt to new inspector protocol.
	(slime-inspector-operate-on-point): New function, subsumes
	slime-inspector-inspect-object-at-point.
	(slime-inspector-next-inspectable-object): Skip to next object,
	not just end of current object; wrap around buffer.
	(slime-inspector-mode-map): change bindings of [return] and "\C-m"

	* swank-bacend.lisp (swank-mop): New package. Simply defines all
	the MOP related symbols we need from an implementation.
	(arglist): Update doc string. Provide default implementation.
	(function-name): New backend function.

	* swank-allegro.lisp (swank-mop, slot-definition-documentation):
	Implement. (Patch from Thomas Schilling)

	* swank-sbcl.lisp (swank-mop, slot-definition-documentation,
	function-name): Implement.

	* swank-openmcl.lisp (swank-mop, function-name): Implement.
	(arglist): Implement for function objects.

2004-09-12  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (compile-file-for-emacs): Use with-buffer-syntax so
	that SBCL source files can be compiled.  From Christophe Rhodes.

2004-09-09  Martin Simmons <martin@xanalys.com>

	* swank-loader.lisp (make-swank-pathname): Preserve the host
	component (important for LispWorks on Windows).

2004-09-08  Martin Simmons <martin@xanalys.com>

	* swank-lispworks.lisp: Implement call-with-compilation-hooks.

2004-09-03  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* NEWS: Summarize changes since August.

	* slime.el: Add some docstrings.

	* mkdist.sh: Add PROBLEMS file. We're no longer alpha.

	* swank.lisp: Remove debugging code in comment.

	* swank-sbcl.lisp: Delete dead code.

	* swank-lispworks.lisp (defimplementation): define-dspec-alias
	seems to more apropriate than define-form-parser.

	* swank-cmucl.lisp (print-frame): Catch errors during printing.

	* README: Fix typo.

2004-09-02  Wolfgang Mederle <wolfgang.mederle@stud.uni-muenchen.de>

	* swank-loader.lisp (*lisp-name*): Replace / with - in CMUCL
	version strings.

2004-09-01  John Paul Wallington  <jpw@gnu.org>

	* slime.el (slime-oneliner): Don't use free variable.
	(slime-recenter-window, slime-set-connection-info)
	(slime-pprint-event, slime-compiler-notes-quit)
	(slime-apropos-summary): Likewise.
	(slime-connect): Tidy up handshake `message' call.

2004-09-01  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-push-directory): Fix interactive spec.
	(sldb-reference-properties): Take a the reference object as
	argument instead of its parts. Fix callers accordingly.
	(slime-fuzzy-choices-buffer): Remove assignment to unused variable
	slime-fuzzy-target-mtime.
	(slime-ed): Replace call to new-frame with make-frame.
	(sldb-find-buffer): Cleanup.
	(sldb-highlight-sexp): Fix regexp. It's now almost a full line.

	* swank.lisp (completion-set, tokenize-symbol-designator)
	(tokenize-completion, fuzzy-completion-set)
	(briefly-describe-symbol-for-emacs): Remove simple-base-string
	declarations.

2004-08-30  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* PROBLEMS: We require SBCL 0.8.13.  0.8.12 is no longer
	supported.

	* swank-allegro.lisp (find-fspec-location): Catch errors in
	excl:source-file.

	* swank.lisp (send-to-socket-io): Add some ignore declarations.

	* slime.el (sldb-fetch-all-frames, sldb-end-of-backtrace)
	(sldb-beginning-of-backtrace): New commands.
	(slime-search-suppressed-forms): Change the start regexp so that
	reader conditionals in single line comments, like "; #+foo", are
	ignored.

2004-08-27  Peter Seibel  <peter@javamonkey.com>

	* swank-backend.lisp (swank-compile-string): Add directory
	argument which is used by Allegro backend to improve source
	recording for definitions compiled with C-c C-c.

2004-08-23  John Paul Wallington  <jpw@gnu.org>

	* slime.el (slime-pretty-package-name): Fix last cond clause.

2004-08-21  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (*global-debugger*): New configurable to globally
	install swank-debugger-hook as *debugger-hook*. True by default.

2004-08-19  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi: C-c C-c C-a, C-c C-u C-e.
	Thanks Barry Fishman for reporting incorrect indexing.

2004-08-18  Matthew Danish <mrd+nospam@cmu.edu>

	* swank-allegro.lisp (swank-compile-string): Use #\; instead of
	#\: to separate the position from the buffer-name.  This avoids
	troubles on Windows.

2004-08-16  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi: Random updates.

	* slime.el (slime-space): Use slime-message instead of
	slime-background-message. This displays multi-line arglists.
	(sldb-mode-map): Bind 'C' to sldb-inspect-condition.

2004-08-14  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-find-buffer-package): Use "%s", not "%S", to
	avoid ugly escape characters, if the package name contains dots.

2004-08-13  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-eval-in-frame): Print result to the REPL when a
	prefix argument is given.
	Added pull-down menus for SLDB and the REPL.

	* swank-source-path-parser.lisp: Removed caching of readtables and
	the source-map hashtable. Fresh creation is ultra-cheap (<1ms).
	The caching didn't handle modifications to readtables and
	generally made me feel uneasy while tracking down an obscure bug
	in a reader macro.
	The cached source-map hashtable also wasn't thread-safe (ho hum).

2004-08-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-merge-notes, slime-tree-for-note): Use the short
	note message for annotation in the source buffer and the long
	message in the tree widget.  Used to be the other way around.
	(sldb-insert-frames): Set the `start-open' property for XEmacs.
	Without `start-open', the `point-entered' property is inherited
	when we insert something before the "--more--" marker.  Reported
	by Sundar Narasimhan.

	* swank.lisp (variable-desc-for-echo-area): Bind some printer
	variables to limit the length of the output.

2004-08-05  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-setup): Added typeout-frame keyword argument.
	(slime-thread-attach): Fixed misnamed function call.

2004-08-04  Luke Gorrie  <luke@bluetail.com>

	* swank-allegro.lisp (find-fspec-location): Fixed to work for more
	types of definition than just functions. So M-. now works for e.g.
	classes in Allegro. From Matthew Danish.
	(find-fspec-location): Include the type of the definition in the
	designator sent to Emacs. From Matthew Danish.

2004-08-04  Martin Simmons <martin@xanalys.com>

	* swank-lispworks.lisp (frame-actual-args): Correct syntax for
	handler-case.

2004-08-04  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: (slime-mode-map, slime-repl-mode-map)
	(slime-repl-read-mode-map): Remove the binding for C-c C-g.  C-c
	C-b is now the default interrupt key.
	(slime-list-repl-short-cuts): Don't trash the shortcut-table: copy
	it before sorting.  (Thanks to Mark Simpson.)

2004-08-02  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-connect): Shorten the welcome message by leaving
	out the port number (which is displayed in the REPL anyway). This
	avoids line-wrapping some messages of encouragement.

	* swank.lisp (with-buffer-syntax): Don't bind *readtable* to
	*buffer-readtable* if they are already EQ. When we shadow this
	binding the user can't assign *readtable* from the REPL so it's
	best avoided when possible.

	* swank-allegro.lisp: Removed fwrapper-based code for inheriting
	"swankiness" to newly spawned threads. This was fighting the
	system and not the right thing.

	* slime.el (slime-choose-overlay-region): Tweaked the
	multiline-annotation-avoidance code to work with forms not
	starting with an open-paren, e.g. `(..) or #'(..).
	(slime-update-modeline-package): New configurable. Non-nil (the
	default) means update the Lisp package in the modeline using an
	idle timer.
	(slime-repl-send-input): Make the `slime-repl-old-input' property
	cover the whole input (including newline) so that pressing RET on
	the end of an input line works.
	Use a unique integer as the value of this property to distinguish
	adjacent inputs.
	(slime-current-package): Deal with narrowing.

2004-08-01  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp (swank-compile-string): Use a temporary file
	and set excl::*source-pathname* manually.  This way we can find
	the source buffer of functions compiled with C-c C-c.
	(call-with-temp-file, compile-from-temp-file): New functions.
	(list-callers, function-callers, in-constants-p)
	(map-function-constants): Implements list callers by groveling
	through the constants pools of named functions.

	* swank-lispworks.lisp: Minor refactoring.

2004-07-30  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-connection): Say "No default connection
	selected" if there are open connections but no default connection.
	(slime-tree-indent-item): Point wasn't updated correctly if the
	last line was empty.  Use insert-before-markers instead of insert
	to do it properly.
	(slime-draw-connection-list): Don't break if there is no default
	connection.

	* swank-cmucl.lisp (call-with-debugging-environment): Only handle
	DI::UNHANDLED-CONDITION not all DI:DEBUG-CONDITIONs.

	* swank-backend.lisp (sldb-condition): Show the original condition
	in the message.

2004-07-28  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-eval-feature-conditional): Treat uppercase
	operators NOT, AND, OR correctly.
	(sldb-find-buffer): Remove killed buffers.
	(sldb-quit): Raise an error if the RPC returns.
	(slime-expected-failures): Delete unused function.
	(complete-symbol): Test completion of
	swank::compile-file. LispWorks has extra completions for
	cl::compile-file.
	(arglist): Test arglist of method cl:class-name.  Add enough
	regexpery to pass the test in most implementations.

	* swank-sbcl.lisp (list-callers, list-callees): Implemented.

2004-07-26  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-first-change-hook): Add `save-match-data' to
	avoid breaking e.g. query-replace. Also added `save-excursion'
	just to be safe.

	* README: s/setup-slime/slime-setup/ in the .emacs snippet.

2004-07-23  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-set-state): Show the message in the modeline in
	the case where we aren't connected. Otherwise the "not connected"
	status is ignored.
	(slime-net-sentinel): Close the connection before changing the
	status message. The old behaviour of this combined with the old
	behaviour of `slime-set-state' could generally cause spurious
	errors after a connection was closed.

2004-07-22  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (carefully-find-package): Return *BUFFER-PACKAGE* if
	no other package can be found. This is reverting a previous change
	that broke completion in buffers with no known package.

	* slime.el (slime-maybe-start-lisp): Check that *inferior-lisp*
	exists /and/ has a running process. Fixes a startup problem if
	your inferior-lisp has died and you want to restart SLIME.

2004-07-21  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-sync-package-and-default-directory): Sync
	`default-directory' in the REPL buffer too.
	(slime-set-state): Convenience function for setting a connection's
	state-name and updating the modeline if appropriate. This function
	is called in the right places.
	(slime-to-lisp-filename): Use `expand-file-name'.

2004-07-20  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-repl-update-banner): Restore old behaviour of
	using an asynchronous evaluation to setup the REPL. This works
	around a problem I'd reintroduced where the first REPL command
	uses the wrong keymap.

2004-07-20  Andreas Fuchs  <asf@boinkor.net>

	* swank-sbcl.lisp (call-with-compilation-hooks): Trap and report
	errors that cause compilation to fail, e.g. read errors.

2004-07-19  Luke Gorrie  <luke@bluetail.com>

	* HACKING: Updated. Some notes about Emacs features.

	* slime.el: More major refactoring.
	Restructured and documented the networking and protocol code.
	(slime-rex-continuations): Now connection-local.

2004-07-18  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Major refactoring.
	Mostly resectioning and reordering definitions to try and improve
	readability.
	(slime-get-temp-buffer-create): New utility function to popup a
	temporary buffer that automatically has a binding on `q' to
	intelligently restore window configuration. Handy, but currently
	not applicable to all of our temporary buffers.
	(slime-with-chosen-connection): Removed this macro. Consequently
	the compilation commands no longer prompt for which connection to
	use when given a prefix argument. `slime-switch-to-output-buffer'
	still works like that, but for other cases I think the
	connection-list buffer is sufficient.
	(slime-eval-async): New arglist: (form &optional cont pkg). If the
	continuation is unspecified then the evaluation result is ignored,
	and if the package is unspecified then (slime-buffer-package) is
	used.
	(slime-eval): Package arg now defaults to (slime-buffer-package).
	(slime-current-package): New name for (slime-buffer-package). No
	more caching: returns the buffer-local `slime-buffer-package' if
	set, otherwise searches for an `in-package' form.
	A consequence of non-caching is that the package name doesn't
	appear in the modeline anymore. The simplification is worthwhile
	in my opinion.

2004-07-17  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-autodoc): If there is a global variable name at
	point then show its value.
	(slime-autodoc-cache-type): Cache type 'full is no longer
	supported.
	(slime-background-message): Truncate messages to fit on a single
	echo area line.
	(slime-repl-update-banner-p, slime-dont-prompt)
	(slime-swank-connection-retries): Removed these unused or unuseful
	configuration variables.
	Rearranged organised "customize" groups.

	* swank.lisp (variable-desc-for-echo-area): New function.
	(arglist-for-echo-area): Return nil if symbol can't be found.
	(close-connection): Close connection before printing error
	message. This avoids it getting lost in closed I/O redirection.

	* README, doc/slime.texi: Updated setup instructions.

2004-07-16  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-conservative-indentation): New variable. When
	true (the default) don't auto-learn indentation of def* and with-*
	macros. Set to nil if you want to learn them.
	(slime-handle-indentation-update): Use it.

	* swank.lisp (known-to-emacs-p): Removed filtering of def* and
	with-*. Now handled by Emacs.

	* slime.el (slime-interactive-eval): Changed display of results.
	By default the result goes to `slime-message', which leads either
	to echo area, temporary buffer, or typeout frame.
	With a prefix argument the result is printed to the REPL.
	This goes for all commands based on slime-interactive-eval, e.g.
	`C-x C-e' and `C-c M-:'.

2004-07-16  Peter Seibel  <peter@javamonkey.com>

	* slime.el (package-updating): Fixing this and other tests I broke
	with my change to how emacs keeps track of the package prompt
	string.
	(arglist): Fix an test failure under Allegro due to a slight
	difference in the way EXCL:ARGLIST returns arglist (no default
	values of &optional parameters)

2004-07-16  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (print-connection): print-function for connection
	objects. Dumping the indentation-cache was damned ugly with
	non-truncated lines (e.g. bug reports on slime-devel).

	* slime.el (slime-setup): New function for installing a
	lisp-mode-hook. You can call this from ~/.emacs to setup SLIME.
	Takes a `autodoc' keyword argument to enable
	slime-autodoc-mode. We can add more keywords in future.
	(slime-keys): Moved `slime-reindent-defun' from C-M-q to
	C-cM-q. This avoids overriding the standard binding of C-M-q to
	index-sexp.
	(slime-typeout-frame-properties): Removed some properties:
	`name', because it interacts badly with X properties, `left' and
	`top' because they don't put the frame anywhere terribly
	convenient, and (width . 40) because it makes the frame narrower
	than the usual word-wrapping width.

2004-07-14  Peter Seibel  <peter@javamonkey.com>

	* slime.el (slime-lisp-package-prompt-string): Separate SLIME's
	notion of package into two parts, an actual package name and the
	name used in the prompt since the latter isn't necessarily an
	actual package nickname any more.

2004-07-13  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-restart-inferior-lisp): Renamed shortcut to
	"restart-inferior-lisp" from "restart-lisp". The name better
	suggests what it does: kill *inferior-lisp* and rerun SLIME.

2004-07-13  Eric Blood  <eblood@winkywooster.org>

	(slime-inspector-next-inspectable-object): New inspector command
	to goto the next inspectable object (slot). Bound to TAB.

2004-07-13  Christophe Rhodes  <csr21@cam.ac.uk>

	* slime.el: add support for actionable references in the
	*slime-compiler-notes* buffer.
	(slime-merge-notes): merge references if applicable.
	(slime-compiler-notes-mode-map): use new functions defaulting to
	show-details, but overrideable by text properties.
	(slime-tree-default-printer): destroy generality by assuming a
	tree of conditions, and insert references if applicable.
	(sldb-format-reference-source): add :amop

	* swank-sbcl.lisp (signal-compiler-condition,
	brief-compiler-message-for-emacs,
	long-compiler-message-for-emacs): handle references in compiler
	conditions.

	* swank.lisp (make-compiler-note): propagate references.

	* swank-backend.lisp (compiler-condition): add references slot.

2004-07-12  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-easy-menu): Added "Apropos all" menu item.
	(slime-restart-lisp): Added `restart-lisp' shortcut. Doesn't do
	the right thing if you have multiple Lisps up.

	* swank.lisp: Added some docstrings.
	Rearranged completion code and somewhat SLDB trying to layout
	functions above their subfunctions in a tree-like way.
	(slime-protocol-error): Renamed from slime-read-error.
	(carefully-find-package): Now returns NIL if package can't be
	determined, rather than *BUFFER-PACKAGE*. Correct? I didn't see
	why it should return *BUFFER-PACKAGE*.
	(xref): Find symbol in *BUFFER-PACKAGE*.

2004-07-09  Peter Seibel  <peter@javamonkey.com>

	* swank.lisp (package-string-for-prompt): Change the way package
	name in prompt is computed. N.B. after this change the name
	displayed will not necsarily be either an actual name or nickname
	of the package: if the name contains dots by default the prompt
	will only display the last element, i.e. COM.GIGAMONKEYS.SPAM will
	be shown as SPAM. This change also makes CL-USER the canonical
	name for COMMON-LISP-USER even in implementations that provide a
	shorter nickname such as USER.

2004-07-09  Christophe Rhodes  <csr21@cam.ac.uk>

	* slime.el (sldb-lookup-reference): substitute hyphens for spaces
	in the url.

2004-07-07  Thomas Schilling  <tjs_ng@yahoo.de>

	* swank.lisp (arglist-for-insertion): Changed formatting to use
	arglist-to-string. That results in proper cases for
	slime-insert-arglist.

2004-07-07  Luke Gorrie  <luke@bluetail.com>

	* swank-loader.lisp (*lisp-name*): Include the version number in
	ACL.

	* slime.el (slime-alistify): Preserve order. This keeps the
	*compiler-notes* right. Pointed out by Christophe Rhodes.
	(slime-repl-update-banner-p): Renamed from slime-reply-..
	(slime-changelog-date): Reintroduced for informational purposes.
	(slime-repl-update-banner): Show ChangeLog date in the animation.
	(slime-space): Do arglist lookup before inserting the
	space. Otherwise we get a funky race condition: entering the space
	may trigger `first-change-hook', which would send an async
	notification to Lisp, which would put us in the 'busy' state and
	thus we wouldn't lookup the arglist! Detective work by Edi Weitz.
	(sldb-prune-initial-frames): More regexp fudgery :-(.
	(read-directory-name): Use `file-name-as-directory' to ensure we
	have the trailing / on the directory name.
	(byte-compile-warnings): Bye-compile slime-alistify. Its inputs
	can be pretty big.

2004-07-04  Luke Gorrie  <luke@bluetail.com>

	* slime.el, swank-backend.lisp, swank.lisp: Added a new backend
	function `buffer-first-change' which is called via Emacs's
	`first-change-hook' in slime-mode buffers. This gives Lisp a
	chance to do something with source files before you change them on
	disk.

	* swank-cmucl.lisp (buffer-first-change): Suck the source file
	into the cache unless already present. This is for M-. to increase
	the chances of our having a copy of the sources corresponding with
	the loaded code. Should help with the case where a user edits and
	saves a file (without recompiling it) and then M-.'s for one of
	its definitions.

	* swank-allegro.lisp (make-process/inherit): Changed reader
	conditionals to use fwrappers for #+(version>= 6).

	* swank-backend.lisp (make-stream-interactive): This backend
	function is called with each stream that will be used for
	user-interaction, i.e. the redirected stdio streams. Can be used
	to setup special output-flushing or similar.

	* swank.lisp (open-streams): Call make-stream-interactive on the
	redirected io streams.

	* swank-allegro.lisp (make-stream-interactive): Set
	interactive-stream-p slot on the stream to make it auto-flush.
	(*swank-thread*, *inherited-bindings*): New variables.
	(spawn): Bind *swank-thread* to T.
	(make-process/inherit): Fwrapper (advice) for
	mp:make-process. When *swank-thread* is T then make the new thread
	inherit "sliminess": debugger hook, I/O streams, and also
	*swank-thread* so that its children will inherit too.

2004-07-03  Luke Gorrie  <luke@bluetail.com>

	* hyperspec.el (common-lisp-hyperspec-section-4.0): Bugfix from
	Lennart Staflin.

	* slime.el (slime-repl-clear-output): Avoid clearing the previous
	REPL expression too. Patch from Andras Simon.

	* swank-backend.lisp (definterface): Don't use
	NO-APPLICABLE-METHOD for default methods. Instead just define them
	as regular methods with all argument types being
	T. Defimplementation will then replace them by using the same
	signature. N-A-M was a stupid idea!

2004-07-02  Brian Downing  <bdowning@lavos.net>

	* slime.el (slime-reindent-defun): Added a check for (boundp
	'slime-repl-input-start-mark) before checking the variable, as
	XEmacs leaves variables unbound when `make-variable-buffer-local'
	is run, while GNU Emacs binds them to NIL.

2004-07-02  Martin Simmons <martin@xanalys.com>

	* swank-lispworks.lisp (dspec-stream-position,
	make-dspec-location): Fix typo in features for LW 4.1 and 4.2.

2004-07-01  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (frame-actual-args): Bind
	*break-on-signals* to nil and special case &rest, &optional, and
	&key.

2004-07-01  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-lookup-reference): Preserve case in SBCL node
	names. Previously they were downcased, but the HTML manual's
	filenames seem to have changed.

	* NEWS: Added security note about the TCP server.
	Added notes for ACL and ABCL.

	* doc/slime.texi: General updatings for an alpha release.

2004-06-30  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-display-compilation-output): New customizable
	variable.

	* swank.lisp: Minor cleanups.
	(find-symbol-designator, find-symbol-or-lose)
	(case-convert-input): Deleted.  Replaced with calls to
	parse-symbol{-or-lose}.

	* swank-lispworks.lisp (describe-symbol-for-emacs): Include
	information about setf-functions.
	(emacs-connected): Add a default method to
	env-internals:environment-display-debugger.

2004-06-30  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-read-port-and-connect-to-running-swank)
	(slime-connect, slime-open-stream-to-lisp): Replace "localhost"
	with "127.0.0.1". This is believed to avoid unwanted DNS lookups
	on certain operating systems. The lookups can become crippling if
	the DNS server isn't available.
	(line-beginning-position, line-end-position): Simple bugfix
	suggested by Richard Klinda.

	* swank-sbcl.lisp (preferred-communication-style): Choose
	:fd-handler instead of :sigio when threads aren't available. A lot
	of people seem to have had problems with :sigio on SBCL.

2004-06-30  Luke Gorrie  <luke@bluetail.com>

	* NEWS: Wrote preliminary release notes for alpha-1.

2004-06-29  Luke Gorrie  <luke@bluetail.com>

	* mkdist.sh: New shell script for creating a tarball for
	distribution.

2004-06-29  Bill Clementson  <Bill_Clementson@peoplesoft.com>

	* slime.el (slime-who-map): Add extra bindings for the XREF
	commands as with the documentation commands. Now `C-c C-w C-c' is
	`slime-who-calls' in addition to `C-c C-w c', etc.

2004-06-29  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-prune-initial-frames): Tweaked regexp for
	matching SWANK's own stack frames for effectiveness in SBCL.
	(slime-keys): Shadow remaining inf-lisp keys (C-c C-a, C-c C-v)
	with a null `slime-nop' command until we put them to a real use.

	* swank.lisp (open-streams): Renamed the restart around reads from
	the user-input stream from ABORT to ABORT-READ. Invoking this
	restart seems kinda dangerous, so better for 'a' in SLDB not to do
	so.

2004-06-28  Thomas F. Burdick  <tfb@OCF.Berkeley.EDU>

	* swank.lisp (inspector-nth-part):
	* slime.el (slime-inspector-copy-down, slime-inspector-mode-map):
	Added copy-down command (M-RET) to easily move an object from the
	inspector to the repl.

2004-06-28  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-doc-map): New keymap for documentation
	commands. These all use the `C-c C-d' prefix, followed by:
	  a - apropos
	  p - apropos-package
	  z - apropos-all
	  d - describe-symbol
	  f - describe-function
	  h - hyperspec lookup
	  ~ - hyperspec lookup of a format character
	The final keystroke is bound both unmodified and with control, so
	both `C-c C-d a' and `C-c C-d C-a' will make an apropos
	search. The exception is hyperspec-lookup, because it's nice to
	leave C-h unbound so that `C-c C-d C-h' will summarise the
	documentation bindings.

2004-06-28  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp (nth-frame): Skip frames where
	frame-visible-p is false.

	* slime.el (slime-buffer-package): Return the cached package if we
	can't find something more sensible; this reverts a previous
	change.  The Lisp side will now fall back to an existing package
	if the one supplied by Emacs doesn't exist.  Using the cached
	version is also necessary for some commands in the apropos buffer.
	(sldb-insert-frame): Set the default-action property; pressing RET
	on frame lines now shows/hides details.
	(sldb-toggle-details): Preserve the current column.
	(slime-inspector-buffer, slime-saved-window-config)
	(slime-inspector-quit): Save and restore the window configuration.
	(slime-highlight-suppressed-forms, slime-search-suppressed-forms):
	Display expressions with reader conditionals (#+/#-) in
	font-lock-comment-face if the test is false.  Not implemented for
	XEmacs.
	(repl-return): New test.

2004-06-28  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Events in the *slime-events* buffer are now exact
	on-the-wire messages, without including e.g. Elisp continuation
	functions. This is easier for debugging I think.

	* swank-allegro.lisp (compute-backtrace): Only include frames
	satisfying `debugger:frame-visible-p'. I did this as a lame
	workaround for a problem where `output-frame' was segfaulting on
	certain frames, and those frames happened not to be visible-p. I
	don't know if it really fixes anything.

	* hyperspec.el (common-lisp-hyperspec-format): This command now
	works at the end of the buffer, fixed `char-after' usage as
	suggested by Johan Bockgård.

2004-06-28  Christophe Rhodes  <csr21@cam.ac.uk>

	* hyperspec.el: add support for issue cross-reference lookups,
	strongly inspired by hyperspec symbol lookup.
	(common-lisp-hyperspec-issuex-table,
	common-lisp-hyperspec-issuex-symbols): new variables
	(common-lisp-issuex): new function

	* slime.el (sldb-format-reference-node, sldb-lookup-reference):
	(sldb-reference-properties): use new support for issue lookups
	to support :ansi-cl :issue reference types.

	* hyperspec.el: add support for glossary lookups.
	(common-lisp-glossary-fun): new variable
	(common-lisp-glossary-4.0, common-lisp-glossary-6.0): new functions

	* slime.el (sldb-format-reference-node, sldb-lookup-reference):
	(sldb-reference-properties): use new support for glossary lookupts
	to support :ansi-cl :glossary reference types.

2004-06-27  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* doc/slime.texi: Remove macros from chapter and section headings
	to avoid texi2pdf breakage.

	* swank-source-path-parser.lisp (cmucl-style-get-macro-character):
	Add tests for #\space and #\\.  Suggested by Christophe Rhodes.

	* swank-sbcl.lisp, swank-openmcl.lisp, swank-lispworks.lisp,
	swank-cmucl.lisp, swank-backend.lisp, swank-allegro.lisp,
	swank-abcl.lisp (thread-id, find-thread): New backend functions.

	* swank.lisp (dispatch-event): Quitting from the debugger was
	seriously broken.  Fix it.  Move generation of thread ids to the
	backends.
	(encode-message, send-to-socket-io): Use WITHOUT-INTERRUPTS in
	send-to-socket-io.  The multithreaded version of encode-message
	doesn't need it.
	(nth-thread): Renamed from lookup-thread-by-id.
	(debug-nth-thread): Renamed from debug-thread-by-id:
	(kill-nth-thread): Renamed from kill-thread-by-id.

	* slime.el (sldb-get-buffer): Add support for sldb buffers for
	multiple threads.

2004-06-25  Thomas F. Burdick  <tfb@OCF.Berkeley.EDU>

	* swank-sbcl.lisp (call-with-syntax-hooks, with-debootstrapping):
	Preserve compatability with fairly recent SBCLs by checking for
	the presense of the debootstrapping facilities at macroexpansion
	time.

	* slime.el (sldb-insert-condition): Initialize sldb-default-action
	so that pressing RET inspects the condition.

2004-06-25  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-insert-prompt): Set defun-prompt-regexp.
	beginning-of-defun can be very slow in the repl buffer if the
	defun-prompt-regexp is not set.
	(sldb-insert-locals): Initialize sldb-default-action.
	(sldb-var-number-at-point, sldb-inspect-var): New function.

	* swank.lisp (inspect-frame-var): New function.

	* swank-backend, swank-cmucl.lisp, swank-sbcl.lisp,
	swank-allegro.lisp, swank-lispworks.lisp, swank-clisp.lisp
	(frame-var-value): New backend function.

2004-06-24  Christophe Rhodes  <csr21@cam.ac.uk>

	* slime.el (sldb-format-reference-node): fix for when `what' is a
	list.
	(sldb-lookup-reference,sldb-reference-properties): support
	:ansi-cl :section reference types.

	* hyperspec.el (common-lisp-hyperspec-6.0): generalize to work
	with section numbers lower than 10.

2004-06-24  Brian Downing  <bdowning@lavos.net>

	* slime.el (slime-repl-send-input): Fixed a subtle difference in
	sending input to the Lisp introduced in 1.316.  The newline was
	not getting sent, resulting in the Lisp constantly asking for more
	read data.  I believe the code has been adjusted to behave the
	same as 1.315 with regard to sending newlines.
	Also adjusted the `slime-repl-old-input' text property to end just
	before the newline, not just after.  This causes a gap between
	inputs even if no Lisp output appeared in between, so that putting
	point on an old line and hitting RET will only call up that line,
	and hitting RET in the middle of the current line will send it and
	not bring up a confusing combination of all previous input.
	Many thanks to Loyd Fueston for pinpointing the date and exact
	patch for when this problem was introduced.

2004-06-23  Brian Downing  <bdowning@lavos.net>

	* slime.el: Re-added most of Luke's patches from yesterday.  It
	has the shortened names, uses markers instead of stored `(point)'
	values, and `slime-fuzzy-complete-symbol' is an option for
	`slime-complete-symbol-function'.
	It still string compares the target buffer instead of using
	`(buffer-modified-tick)'.
	I left the `C-c M-i' keybinding in, as it allows use of the
	regular completion as well.  If there's an objection to this it
	can be removed.
	`window-configuration-change-hook' is used if the variable is
	present, and ignored it not.  This neatly sidesteps its absence in
	XEmacs while not killing the functionality for GNU Emacs.

	* doc/slime.texi: Added a command entry and short description for
	`C-c M-I, slime-fuzzy-complete-symbol', and added its existence to
	the `slime-complete-symbol-function' documentation.

2004-06-22  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi: Noted ABCL support.

	* slime.el: Backed out all of my changes to fuzzy completion. I
	was too hasty and didn't do good things. Now it's back in pristine
	state from Brian's patch -- use `C-c M-i' to fuzzy-complete.

	* doc/Makefile (contributors.texi): The contributors list in the
	manual is now sorted by most number of ChangeLog entries. Patch
	from Michael Weber.

	* slime.el: Some minor hacking to fuzzy completion:
	Use the shorter `slime-fuzzy-' symbol prefix.
	Use markers instead of numbers to remember where the completion is
	being done. This way they are self-updating.
	Use `buffer-modified-tick' to detect modifications instead of text
	comparison.
	Always restore window configuration when a completion is
	chosen. For this completion style I think this will work okay
	[famous last words], and the existing code wasn't
	XEmacs-compatible for want of window-configuration-change-hook.
	Now there is no separate keybinding for fuzzy completion, but it's
	included as a customize option for `slime-complete-symbol-function'

2004-06-22  Brian Downing  <bdowning@lavos.net>

	* slime.el, swank.lisp: Added "fuzzy completion."

2004-06-22  Matthew Danish  <mdanish@andrew.cmu.edu>

	* swank-backend.lisp (unbound-slot-filler): New structure for
	representing an unbound slot in the inspector functions.

	* swank.lisp, swank-allegro.lisp: Use it.

2004-06-22  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-output-filter): Choose connection based on
	process-buffer, not current buffer. This fixes a bug where output
	from multiple Lisp sessions could get mixed up.
	(slime-kill-all-buffers): Include all *inferior-lisp*[<n>] buffers.
	Split the customize settings into more subgroups.

	* swank.lisp (prefixed-var): Intern *REAL-STANDARD-INPUT* etc in
	the SWANK package instead of the COMMON-LISP package.

2004-06-21  Luke Gorrie  <luke@bluetail.com>

	* swank-loader.lisp (*lisp-name*): Add version number to
	Lispwork's fasl directory. We should do this for ACL and OpenMCL
	too, but for some reason my ACL 5.0 gets an error when trying to
	create a directory with a version number in its name, and I don't
	have OpenMCL to test with.

	* swank-backend.lisp, swank.lisp (add-hook, run-hook): Moved the
	hook mechanism and all hooks to swank.lisp (from
	swank-backend.lisp). There is no compelling use for the hooks in
	backends yet and I want to pass swank.lisp-internal data
	structures in the existing hooks.
	(notify-backend-of-connection): Call `emacs-connected' with the
	user-io stream for its argument. Should fix previous breakage
	where the connection structure was passed instead.
	(*globally-redirect-io*): New configurable: when true the standard
	streams are globally redirected to Emacs. That way even
	e.g. SERVE-EVENT handlers will print to Emacs. Currently does not
	handle standard input -- that is trickier since the Lisp's native
	REPL can be trying to read from that.

	* slime.el (slime-complete-maybe-restore-window-configuration):
	Only restore the window configuration if the completions buffer is
	currently visible in the window that we popped it up in.
	(slime-complete-maybe-save-window-configuration): Don't save the
	window configuration if the completions buffer is already visible.
	(slime-repl-return): Make sure the newline goes at the end of the
	input, not at point.
	(slime-complete-restore-window-configuration): Wrap the
	`set-window-configuration' call in (run-at-time 0 ..). XEmacs does
	not allow us to set the window configuration from inside
	pre-command-hook.

2004-06-20  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-sbcl.lisp (emacs-connected): Set *invoke-debugger-hook* to
	our debugger hook.  Not optimal, but at least BREAK will then
	invoke our debugger.
	(*trap-load-time-warnings*): New variable.  If it is true,
	conditions, most notably redefinition warnings, signalled at load
	time are not trapped.
	(swank-compile-file, swank-compile-string): Use it.

	* swank.lisp (guess-buffer-package): Don't signal a continuable
	error if the package doesn't exists; that's too annoying.

	* slime.el: Fix outline structure.
        (slime-maybe-list-compiler-notes): Fix thinko.
	(break): New test.  Reorganize the test-suite a bit to support
	"expected failures".
	(slime-eval-feature-conditional, slime-to-feature-keyword): Add a
	?: to the symbol-name if needed.

2004-06-20  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (changelog-date): Removed unneeded function.
	(connection-info): No more version field in result.

	* slime.el: Audited to remove namespace slipups. Tracking a really
	horrible clashing-with-some-user-configuration bug and want to
	eliminate potential symbol conflicts.
	(sldb-get-buffer): Renamed from `get-sldb-buffer'.
	(slime-emacs-20-p): Renamed from `emacs-20-p'.
	(slime-defun-if-undefined): Renamed from `defun-if-undefined'.
	(slime-isearch): Small bugfix that could cause M-. to go to the
	wrong place in CMUCL.
	(slime-changelog-date, slime-check-protocol-version): Removed
	unneeded functions.

	* swank-backend.lisp (add-hook, run-hook): Added an Emacs-like
	hook mechanism.  The hope is that this will make some sections of
	the code more self-describing by showing where they hook in.
	(*new-connection-hook*): Hook run when a new connection is
	established. Initialized to '(swank-backend:emacs-connected).
	(*pre-reply-hook*): Hook run before sending a reply to Emacs.

	* swank.lisp: Added some comments and docstrings.
	(package-external-symbols): Removed unused function.
	(serve-connection): Call *new-connection-hook*.
	(eval-for-emacs): Call *pre-reply-hook*.
	(sync-features-to-emacs, sync-indentation-to-emacs): Added to
	*pre-reply-hook*.
	(cl-package, keyword-package): Now defconstant instead of
	defvar. Removed the *'s accordingly.

	* slime.el (slime-abort-connection): Renamed from
	`slime-connection-abort'. The new name is easier to find with
	completion.

	* swank-sbcl.lisp: Change sb-posix:: to sb-posix:

2004-06-19  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (known-to-emacs-p): Bugfix. Indentation-updates was
	broken.

2004-06-18  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-buffer-package): If DONT-CACHE is true and no
	package name can be found, then default to "COMMON-LISP-USER."
	Previously we just kept using the cached version, but that could
	lead to error-after-error if it was incorrect.

	* swank.lisp (throw-to-toplevel): If our top-level catcher isn't
	on the stack (i.e. we're using the debugger from outside an RPC)
	then ABORT instead. That makes 'q' DWIM in SLDB.

2004-06-18  Matthew Danish  <mdanish@andrew.cmu.edu>

	* swank-allegro.lisp (frame-source-location-for-emacs):
	Implemented.

2004-06-18  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-repl-return): If the user presses return on old
	REPL input then take it and insert it as the current input.
	Signal an error if the point is not on any input.
	(slime-preserve-zmacs-region): Function to ensure that the current
	command doesn't deactivate zmacs-region (XEmacs only).
	(slime-repl-bol, slime-repl-eol): Use it.
	(slime-kill-all-buffers): Changed buffer-name regexps for XEmacs
	compatibility. The ",quit" shortcut now works in XEmacs.
	(slime-display-message): Fixed call to `slime-typeout-message'
	to handle formatting characters. Avoids errors on certain messages.
	(slime-list-compiler-notes): Save the window configuration
	earlier. This fixes an error under XEmacs when dismissing the
	notes buffer.
	(slime-recenter-window): Avoid moving the point. This keeps the
	point in the right place when showing debugger-frame locations in
	Emacs 21.

2004-06-17  Luke Gorrie  <luke@bluetail.com>

	* swank-loader.lisp (binary-pathname): Place fasl files under
	~/.slime/fasl/ instead of the SLIME installation directory. The
	installation directory can now be read-only.
	(binary-pathname, user-init-file): Removed Win32
	conditionalization. The init file is now called ~/.swank.lisp
	instead of ~/_swank.lsp.

	* swank-lispworks.lisp (with-fairly-standard-io-syntax): New
	macro. Like with-standard-io-syntax, but keeps the existing values
	of *package* and *readtable*.
	(dspec-stream-position): Use it.
	(quit-lisp): Implemented.

2004-06-16  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-set-default-directory): Don't call
	slime-repl-update-banner in Emacs 20.
	(slime-show-source-location, slime-recenter-window): Use
	set-window-start instead of recenter; this avoids flickering.
	(sldb-list-locals): Don't forget about slime-current-thread in the
	temporary buffer.  (Fixes bug reported by Mike Beedle.)
	(sldb-step): Re-enabled.  The CMUCL backend has rudimentary support
	for stepping.

	* swank.lisp (*readtable-alist*): Call backend function for
	initialization.
	(eval-for-emacs, guess-buffer-package): Signal a continuable error
	if a package name was supplied but no such package exists.  Not
	sure if this is better than what we did before (i.e. silently use
	the current package).

	* swank-cmucl.lisp (default-directory): Add implementation.
	(sldb-step): Uncomment it and remove references to
	*swank-debugger-condition*.

	* swank-backend.lisp (sldb-step, default-readtable-alist): New
	backend functions.
	(emacs-connected): Pass the redirected stream as argument, so that
	the OpenMCL backend can add it to CCL::*AUTO-FLUSH-STREAMS*.

	* swank-sbcl.lisp (default-readtable-alist): Implement it.

	* swank-loader.lisp: Move readtable-alist initialization to
	swank-sbcl.lisp.

	* swank-allegro.lisp (default-directory, call-with-syntax-hooks):
	Add implementations as workarounds for ACL5 bugs.

2004-06-16  Lawrence Mitchell <wence@gmx.li>

	* slime.el (slime-maybe-rearrange-inferior-lisp): Call
	`generate-new-buffer-name' manually, rather than relying on the
	UNIQUE argument to `rename-buffer' to do so.

2004-06-16  Frederic Brunel <frederic.brunel@in-fusio.com>

	* slime.el (slime-startup-animation): Use defcustom to declare the
	variable.
	(slime-enable-startup-animation-p): Deleted.

2004-06-16  Robert Lehr  <bozzio@the-lehrs.com>

	* slime.el (slime-backend): This variable can now be set to an
	absolute filename.

2004-06-15  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-compile-file): Just prompt for saving the
	current file instead of calling `save-some-buffers'. Based on a
	patch from Brian Downing.

2004-06-12  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* wank-allegro.lisp (format-sldb-condition, condition-references):
	Add workarounds for buggy no-applicable-method.

	* swank.lisp (parse-symbol, parse-package): Handle reader errors.

	* swank-openmcl.lisp (send, receive): Ensure that messages are
	never nil.

2004-06-10  Christophe Rhodes <csr21@cam.ac.uk>

	* swank-sbcl.lisp (call-with-syntax-hooks): Add hooks to fix
	"SB!"-style package names.
	(shebang-readtable): Return a readtable with readermacros needed
	to parse SBCL sources.

	* swank.lisp (with-buffer-syntax): New macro.  This should be used
	for code which needs to READ code from Emacs buffers.  *package*
	and *readtable* are bound suitable values.
	(to-string, format-values-for-echo-area, interactive-eval)
	(eval-region, interactive-eval-region, re-evaluate-defvar)
	(swank-pprint, pprint-eval, listener-eval)
	(compile-string-for-emacs, disassemble-symbol, describe-to-string)
	(describe-symbol, describe-function)
	(describe-definition-for-emacs)
	(documentation-symbol, init-inspector, inspect-nth-part)
	(inspector-pop, inspector-next, describe-inspectee)
	(inspect-current-condition): Use it.

2004-06-10  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-loader.lisp: Initialize swank::*readtable-alist* for SBCL.

	* swank-backend.lisp (default-directory, call-with-syntax-hooks):
	New functions.

	* swank.lisp (*readtable-alist*): New configurable.  The keys are
	package name and the values readtables.  The readtable will be
	used to READ code originating from Emacs buffers in the associated
	slime-buffer-package.
	(drop-thread): Simplified.
	(*buffer-readtable*): New variable.
	(parse-package): New function.
	(parse-string): Renamed from symbol-from-string.  Make it case
	insensitive.
	(eval-for-emacs): Initialize the *buffer-readtable*.
	(symbol-indentation): Don't consider symbols in the CL package.
	Emacs already knows how to indent them.
	(compile-file-if-needed): Used for REPL shortcut
	'compile-and-load'.

	* slime.el (pwd): Re-add REPL shortcut.
	(slime-repl-push-directory, slime-repl-compile-and-load): Simplified.

2004-06-10  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-step): Command is disabled because the function
	`swank:sldb-step' that it calls doesn't exist. I don't see any
	stepping code in our backends.

2004-06-09  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-goto-location-position) [:function-name]: The
	function name can also occur after a ?(, not only after
	whitespace.

	* (slime-init-output-buffer): Initialize the package stack.
	Reported by Rui Patrocínio.

	* (slime-completions): Make it consistent with
	slime-simple-completions. The second argument was never supplied.
	Reported by Rui Patrocínio.

2004-06-09  Eric Blood <eblood@winkywooster.org>

	* slime.el (slime-indent-and-complete-symbol): Renamed from
	slime-repl-indent-and-complete-symbol.

	(slime-typeout-frame-properties): Add more default options for the
	typeout frame--specifically it now has a default width, and moves
	the typeout frame to the upper right.

2004-06-09  Andras Simon <andras@renyi.hu>

	* swank-abcl.lisp: New backend for Armed Bear Common Lisp.

	* swank-loader.lisp: Add ABCL support.

2004-06-09  Martin Simmons <martin@xanalys.com>

	* swank-lispworks.lisp (dspec-stream-position): New function to
	make source location work for anything complicated e.g. methods.
	(with-swank-compilation-unit): Refactoring.
	(who-macroexpands): Implemented.
	(list-callers): Implemented.

	* swank-backend.lisp (network-error): Inherit from simple-error to
	get correct initargs.

2004-06-09  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-insert-references): Added support for hyperlinked
	references as part of conditions being debugged. This is a new
	feature in SBCL to reference appropriate sections of their manual
	or CLHS from condition objects. The references are clickable.

	* swank-backend.lisp (format-sldb-condition): New backend function
	to format conditions for SLDB.
	(condition-references): New function to return a list of
	documentation references associated with a condition.

	* swank.lisp (debugger-condition-for-emacs): Call the above
	backend functions to add a `references' list for Emacs.

	* swank-sbcl.lisp (format-sldb-condition, condition-references):
	Implemented. Requires a recent (latest?) SBCL release.

2004-06-08  Luke Gorrie  <luke@bluetail.com>

	* swank-cmucl.lisp (close-socket): Remove any SERVE-EVENT handlers
	for the socket's file descriptor.

	* swank-sbcl.lisp (close-socket): Same fix.

2004-06-07  Luke Gorrie  <luke@bluetail.com>

	* swank-cmucl.lisp: Minor refactorings.

2004-06-07  Edi Weitz  <edi@agharta.de>

	* swank-allegro.lisp (call-with-compilation-hooks): Implemented.
	Wrap IMPORT call in EVAL-WHEN.

	* swank.lisp, swank-backend.lisp: Wrap EXPORT calls in
	EVAL-WHEN. Fixes many warnings in ACL.

2004-05-25  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-kill-without-query-p): Default to T.
	(sldb-highlight): Variable to control face-based highlighting of
	SLDB locations. (In Emacs21 the point is visible even in unselected
	windows, which is sufficient for me.)
	(sldb-show-location-recenter-arg): Argument to `recenter' when
	showing SLDB locations. Default to nil, i.e. location appears in
	the middle of the window.

2004-05-24  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-input-complete-p): Return nil for unbalanced
	sexps starting with quote ?', backquote ?`, or hash ?#.  C-j can
	be used for more complicated cases.

2004-05-22  Marco Baringer  <mb@bese.it>

	* slime.el (slime-repl-sayoonara): Added "quit" as an alias for
	sayoonara.

2004-05-22  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (arglist): Catch (reader) errors in
	READ-ARGLIST.

	* swank-allegro.lisp (fspec-primary-name): New function.
	(find-fspec-location): Use it, if the start position cannot be
	found.

	* slime.el (slime-pprint-event): New function.
	(slime-log-event): Use it.
	(slime-reindent-defun): Indent the form after point, if point is
	in the first column an immediately before a #\(.

2004-05-21 Bill Clementson <Bill_Clementson@peoplesoft.com>

	* slime.el (slime-switch-to-output-buffer): Use "P" as interactive
	spec.

2004-05-21  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-switch-to-output-buffer): Override the
	prefix-arg if we are called non-interactively.
	(slime-repl-current-input): Don't add newlines.
	(slime-repl-return): Send input if we are in read-mode also if it
	isn't a complete expression.
	(repl-read-lines): New test case.
	(slime-enable-startup-animation-p): New configurable.
	(slime-repl-update-banner): Use it.
	(slime-hide-inferior-lisp-buffer): New function. Reuse the
	*inferior-lisp* buffer window for the SLIME REPL.

	* swank-allegro.lisp (find-fspec-location): Better handling of
	methods.  From Bill Clementson.

2004-05-17  Luke Gorrie  <luke@bluetail.com>

	* xref.lisp, swank-clisp.lisp: Renamed XREF package to PXREF (P
	for portable). This makes it possible to load the package in
	e.g. CMUCL, which is nice because it's a good package.

	* swank-cmucl.lisp: Some refactoring and high-level
	commenting. Mostly just trying to organise things into fairly
	self-contained sections (my new hobby, sad I know!)

	* slime.el: Added `C-c C-e' as an alternative binding for
	`slime-interactive-eval' (usually `C-c :'). This seems slightly
	more convenient, and has the added bonus of clobbering an unwanted
	`inf-lisp' binding.

2004-05-14  Marco Baringer <mb@bese.it>

	* slime.el (slime-with-output-to-temp-buffer): Now takes a
	package arg specifying what slime-buffer-package should be in the
	generated buffer.
	(slime-show-description): actually pass the package arg.
	(slime-show-apropos): pass the package arg to
	slime-with-output-to-temp-buffer.
	(slime-list-repl-shortcuts): pass a package arg.

2004-05-12  Alan Ruttenberg  <alanr-l@mumble.net>

	* swank-openmcl.lisp: Fixes to support openmcl 0.14.2 changes in
	backtrace protocol, from Gary Byers.
	- Replace string "tcr" to "context".
	- Change the call to %current-tcr in map-backtrace
	  to get-backtrace-context,
	defined so as to be back compatible with 0.14.1.
	- Change the call to %catch-top to explicitly use %current-tcr
	instead of the passed in tcr-which-is-now-called-context.

	Users of map-backtrace (outside of slime code) note: The tcr
	position in the function call is now occupied by the backtrace
	"context" which is always nil.  If you really need the tcr then
	you need to call %current-tcr yourself now.

	Gary comments: The part that's a little hard to document about
	the new "context" stuff - used to walk the stacks of thread A from
	thread B - is that thread B has to be aware of when a context
	becomes invalid (a context describing part of thread A's stack is
	valid while thread A's sitting in a break loop and becomes invalid
	as soon as it exits that break loop.)  A thread sort of announces
	when a context becomes valid and when it becomes invalid; whether
	and how SWANK could hook into that isn't yet clear.

	* swank-openmcl.lisp: Minor changes to backtrace display:
	Anonymous functions names in function position surrounded by
	#<>. Use prin1 instead of princ to print function arguments (so
	strings have "s around them).  prefix symbol and list arguments by
	"'" to make them more look like a valid function call. Let me know
	if you don't like this...

2004-05-12  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Fixes for outline-mode in *slime-events* from Edi
	Weitz.

2004-05-11  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-events-buffer): Disable outline-mode by default.
	(slime-inhibit-ouline-mode-in-events-buffer): New variable.
	(slime-expected-failures): Reduce the number for SBCL.

	* swank-sbcl.lisp (resolve-note-location): Resolve the location if
	we are called by swank-compile-string.  The pathname argument is
	never :stream in SBCL, so the method written for CMUCL was never
	called.

2004-05-10  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (from-string): Bind *READ-SUPPRESS* to NIL.
	(swank-compiler): Bind a restart to abort compilation but still
	report the compiler messages already trapped.
	(string-to-package-designator): Function that uses READ to
	case-convert package names.
	(apropos-list-for-emacs): Use it.

	* slime.el (slime-eval-with-transcript): Don't print the "=>"
	prefix in messages showing evaluation results. It mucks up
	alignment in multi-line messages.
	(sldb-eval-in-frame): Don't print "==>" prefix on evaluation
	results, for the same reason.
	(slime-show-source-location): Move the point to the source
	location in addition to highlighting the matching parens.

2004-05-08  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (find-definitions): Add support for variables
	and constants.

2004-05-07  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-clisp.lisp (compiler-note-location): Use make-location to
	instead of `(:location ...). This initializes the new hint slot
	automatically.

2004-05-07  Barry Fishman <barry_fishman@att.net>

	* swank.lisp (prin1-to-string-for-emacs, arglist-to-string): CVS
	CLISP prints NIL as |COMMON-LISP|::|NIL| if *print-readably* is
	true.  Set *print-readably* to nil for a more Emacs friendly
	printer syntax.

2004-05-06   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-maybe-list-compiler-notes): Display the notes
	listing after C-c C-c only if there are no annotations in the
	buffer.  CMUCL creates usually one warning with an error location
	and an almost redundant warning without at the end of the
	compilation unit.  Don't display the listing in this common case.

	(slime-reindent-defun): Pass nil as the third arument to
	indent-region.

2004-05-06  Marco Baringer <mb@bese.it>

	* slime.el (slime-repl-sayoonara): Don't attempt to quit the lisp
	if we're not connected.

	* swank-openmcl.lisp (*buffer-offset*, *buffer-name*): Supply
	default values. This avoids unbound value errors when compiling an
	asdf system signals errors.

2004-05-04  Alan Shutko  <ats@acm.org>

	* slime.el (slime-compiler-notes-show-details/mouse): New command.
	(slime-compiler-notes-mode-map): Use it.

2004-05-04   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (arglist): Handle byte-code functions better.
	We don't know much about the actual argument list, only the number
	of arguments.  Return at least something mildly interesting like
	 (arg0 arg1 &optional arg2 ...)
	(function-location): Special-case byte-code functions.

	* swank-backend.lisp (with-struct): New macro.

2004-05-04 Thomas F. Burdick  <tfb@OCF.Berkeley.EDU>

	* slime.el (slime-reindent-defun): New command on C-M-q. Reindent
	the current Lisp defun after trying to close any unmatched
	parenthesis. If used within a comment it just calls fill-paragraph.

2004-05-04  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-goto-location-position): Regexp fix.
	(slime-reindent-defun): New command on M-q. Reindent the current
	Lisp defun after trying to close any unmatched parenthesis.

	* swank.lisp: Remove (declaim (optimize ...)). The side-effect
	this has on people's environment seems harmful (I saw someone
	having trouble on the OpenMCL list).

	* swank-cmucl.lisp (source-location-from-code-location): Fixed a
	bug where the source-file-cache was not really used.
	Now always report the location based on source file (cached or
	not) even if modified -- not falling back on regexps, which was
	probably a misfeature.

	* slime.el: Remove `slime-cleanup-definition-refs'.

2004-05-02   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-start-and-load): New command.  Suggested by
	Lars Magne Ingebrigtsen.

2004-05-02  Lars Magne Ingebrigtsen  <larsi@netfonds.no>

	* slime.el (slime-kill-without-query-p): New variable.
	(slime-net-connect): Use it.
	(slime-open-stream-to-lisp): Ditto.
	(slime-maybe-start-lisp): Ditto.

2004-05-02  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-goto-source-location): Added support for the
	:snippet "hint" in a location specifier. If Lisp sends the
	(initial) source text for the definition then Emacs isearches for
	it in both directions from the given character position. This
	makes M-. robust when the Emacs buffer has been edited. Requires
	backends to provide this snippet information.
	(slime-goto-location-position): Tightened up the regular
	expressions for :function-name style location search.
	(slime-cleanup-definition-refs): New function to do a little
	post-processing on definition references from Lisp. Mostly this is
	a hack: if POSITION is NIL then we fill it in with the function
	name, ready for regexp search. I was in a hurry and it was easier
	to do here, and it doesn't seem entirely unreasonable.

	* swank-backend.lisp (:location): Added a 'hints' property list
	to the location structure. This is for extra information that
	compliments the buffer/position.

	* swank-cmucl.lisp (code-location-stream-position): Position the
	argument stream at the definition before returning.
	(source-location-from-code-location): Include the :snippet hint
	for Emacs (see above). The snippet will only be accurate provided
	that the source file on disk has not been modified.
	(*source-file-cache*) The contents of all source files consulted
	for M-. are now cached if they match the version of the running
	code. This is so that we can accurately lookup source locations
	even when the file is modified, provided we manage to get the
	right version (by file timestamp) at least once.
	(source-location-from-code-location): If the right source version
	is not available on disk or in our cache then let Emacs fall back
	on a regular expression search.

2004-05-01   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (find-top-frame): New function used to hide
	debugger-internal frames.
	(call-with-debugging-environment): Use it.

2004-05-01  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-abort): Print a message if the Emacs RPC
	returns. It shouldn't, if ABORT manages to unwind the stack, but
	it currently does in OpenMCL due to some bug.
	(slime-edit-definition-fallback-function): Name of a function to
	try if the builtin edit-definition finding fails. You can set
	this to `find-tag' to fall back on TAGS.

	* swank.lisp (list-all-systems-in-central-registry): Use explicit
	:wild in pathname for matching (needed in at least SBCL).

	* swank-openmcl.lisp: Removed obsolete `swank-compile-system'.

	* swank-sbcl.lisp: Removed obsolete `swank-compile-system'.
	Removed some stale comments about supported features.

2004-04-30   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-update-banner): Don't print the working
	directory.  It rarely fits in a line and was only Emacs'
	default-directory.  M-x pwd is convenient enough.

	* swank.lisp (symbol-indentation): Don't infer indentation for
	symbols starting with 'def' or 'with-'.  It was wrong most of the
	time and Emacs' defaults are better.

	* swank-lispworks.lisp (emacs-connected): Add methods to
	stream-soft-force-output for socket-streams and
	slime-output-streams.  This flushes those streams automatically
	(i assume it gets called when Lisp is idle).

2004-04-29   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-mode): Set slime-current-thread to
	:repl-thread.

	* swank.lisp (thread-for-evaluation, dispatch-event): Accept
	:repl-thread as thread specifier and dispatch evaluation and
	interrupt request properly.
	(repl-thread-eval, repl-eval): Deleted. We do the special casing in
	thread-for-evaluation.

2004-04-29  Lars Magne Ingebrigtsen  <larsi@netfonds.no>

	* slime.el (slime-event-buffer-name): New variable.
	(slime-events-buffer): Use it.
	(slime-space-information-p): Ditto.
	(slime-space): Use it.
	(slime-reply-update-banner-p): Ditto.
	(slime-repl-update-banner): Use it.

2004-04-28   Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-loader.lisp (*lisp-name*): Add versioning support for
	CLISP.

	* swank-clisp.lisp (arglist): Trap exceptions and return
	:not-available in that case.

	* swank.lisp (arglist-for-insertion): Don't use ~< ..~:@>.
	CLISP's pretty printer can't handle it.

2004-04-28  Luke Gorrie  <luke@bluetail.com>

	* NEWS: Created a NEWS file for recording changes that we want
	users to read about.

	* slime.el (slime-log-event): Use outline-minor-mode in
	*slime-events* instead of hideshow-mode. It's more
	reliable. (Patch from Lawrence Mitchell.)

2004-04-28  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-net-connect): Bind inhibit-quit to nil, so that
	we have a chance to interrupt Emacs if open-network-stream blocks.
	(slime-complete-maybe-restore-window-configuration): Keep trying
	after slime-repl-indent-and-complete-symbol.
	(slime-space): Don't close the completion buffer.  We don't know
	the window-config before the completion, so leave the buffer open.

	* swank.lisp (create-server): New keyword based variant to start
	the server in background.
	(setup-server): Add support to keep the socket open for
	single-threaded Lisps.

2004-04-27  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi (Other configurables): Updated instructions on
	globally installing SLDB on *debugger-hook*.

	* slime.el (slime-log-event): Better bug-avoidance with
	hs-minor-mode. Hopefully XEmacs users can rest safely now.
	(slime-prin1-to-string): Bind `print-escape-newlines' to nil.
	(slime-set-connection-info): Commented out call to
	`slime-check-protocol-version'. Let's see how we do without it.
	(slime-oneway-eval): Removed unused function.

	* swank.lisp (oneway-eval-string): Removed unused function.

2004-04-26  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp: Move definition of `with-io-redirection' above
	`with-connection' to avoid a CLISP error. This is really weird.
	(interactive-eval): Bind *package* to *buffer-package*, so that
	`C-x C-e' and related commands evaluate in the expected package.

	* slime.el (sldb-insert-frames): Handle empty backtrace (I got one
	in CLISP).

	* swank-allegro.lisp (arglist): Return :not-available if arglist
	lookup fails with an error.

	* slime.el: Moved snippets of Common Lisp code into swank.lisp
	from the thread control panel. (Remember, no CL code in slime.el!)

	* swank-loader.lisp (*lisp-name*): Include a short version number
	in the Lisp name to separate FASL files for different
	versions. Only implemented for CMUCL and SBCL sofar.

	* swank.lisp (ed-in-emacs): Avoid mutating the argument.
	(spawn-repl-thread): Add a new thread for evaluating REPL
	expressions. This same thread is used for all REPL
	evaluation. This fixes some issues with variables like * and **
	in at least SBCL.

	* nregex.lisp: Typo fix (thanks Barry Fishman).

	* slime.el (slime-events-buffer): Don't use hideshow-mode in
	XEmacs for the *slime-events* buffer. It causes obscure problems
	for some users. Still used in GNU Emacs.

2004-04-25  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-backend.lisp (arglist): Return a list or :not-available.
	Don't return strings or raise exceptions.

	* swank.lisp (arglist-for-echo-area): Simplified and adapted for
	the new semantic of ARGLIST.
	(arglist-for-insertion): Now a separate function.
	(read-arglist): Deleted. No longer needed.

	* swank-cmucl.lisp, swank-lispworks.lisp (arglist): Return
	:not-available if the arglist cannot be determined.

	* slime.el (slime-set-connection-info): Hide the *inferior-lisp*
	buffer here, so that we have all the buffer rearrangement in one
	place.
	(slime-insert-arglist): Use swank:arglist-for-insertion.

2004-04-24  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-init-connection-state): Use an asynchronous RPC
	instead of slime-eval to reduce the amount of work we do in the
	timer function.  We can remove the workaround for the timer
	problem.

2004-04-23  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Updated top comments.
	Make SLIME faces inherit from their font-lock cousins properly.
	(slime-connect): Bind `slime-dispatching-connection' to avoid
	being confused by old buffer-local variables when initializing
	the connection. This fixes a bug where doing `M-x slime' from the
	REPL could give a "Not connected" error.

2004-04-22  Edi Weitz <edi@agharta.de>

	* slime.el (slime-read-system-name): Perform completion on all
	systems in the central registry.

	* swank.lisp (list-all-systems-in-central-registry): New function.

2004-04-22  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-update-banner): Add workaround to force the
	proper behavior of the the first command in the REPL buffer.
	(slime-repl-shortcut-history): Define the variable to make XEmacs
	happy.

2004-04-22  Tiago Maduro-Dias <tcmd@rnl.ist.utl.pt>

	* slime.el (slime-space): Cleanup.
	(slime-complete-restore-window-configuration): Use
	slime-close-buffer instead of bury-buffer.

2004-04-21  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Suppress byte-compiler warnings by binding
	byte-compiler-warnings to nil.
	(slime-repl-shortcut): Use a structure instead of a list for the
	short cut info.  Update the users accordingly.

	* swank-cmucl.lisp (arglist): Return a list instead of the string.

2004-04-21  Edi Weitz <edi@agharta.de>

	* slime.el (slime-apropos): Add support for regexp-based apropos.
	We use nregex, so the regexp syntax is different from Emacs'
	regexps and bit restricted (alternation '|' and optional groups
	'(xy)?' are not implemented).
	(slime-insert-arglist): New command - stolen from ILISP. I always
	thought this was quite useful.
	(slime-oos): Fix typo.

	* swank.lisp (apropos-symbols): Use regexp and support
	case-sensitive matching.
	(arglist-for-echo-area): New argument to control if the operator
	name should be included.

	* nregex.lisp: New file.

	* swank-loader.lisp (*sysdep-pathnames*): Load it.

2004-04-21  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* doc/slime.texi (Compilation): slime-remove-notes is bound to C-c
	M-c not M-c.  Noted by Edi Weitz.

2004-04-21  Edi Weitz <edi@agharta.de>

	* swank.lisp (list-all-package-names): Optionally include
	nicknames in the result.

	* slime.el (slime-read-package-name): Include nicknames in the
	completions set.
	(slime-repl-mode-map): Bind C-c : to slime-interactive-eval just
	like in most other SLIME buffers.
	(read-directory-name): Compatibilty defun.

2004-04-20  Tiago Maduro-Dias <tcmd@rnl.ist.utl.pt>

	* slime.el (slime-close-buffer): New utility function.
	(slime-space): Use it to kill superfluous *Completions* buffers.

2004-04-17  Raymond Toy <rtoy@earthlink.net>

	* swank-cmucl.lisp (source-location-tlf-number)
	(source-location-form-number): New functions to extract the
	encoded form-numbers from source locations.
	(resolve-stream-source-location, resolve-file-source-location):
	Use them.

2004-04-17  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-merge-notes): Use mapconcat instead of
	(concat (slime-intersperse (mapcar ....)))
	(slime-intersperse): Handle empty lists.

2004-04-16  Luke Gorrie  <luke@bluetail.com>

	* doc/Makefile: Added 'install' and 'uninstall' targets for the
	Info manual. It may be necessary to tweak `infodir' in the
	Makefile to suit the local system before installing. (Patch from
	from Richard M Kreuter.)

	* doc/slime.texi (Top): The Top node is now smaller, with details
	moved into Introduction. This makes the Info front page easier to
	navigate. (Patch from Richard M Kreuter.)

2004-04-15  Ivan Boldyrev  <email@secret-by-request>

	* slime.el (slime-handle-repl-shortcut): Call `completing-read'
	with an alist as expected, using `slime-bogus-completion-alist'.

2004-04-14  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi (Shortcuts): Described REPL shortcuts.

	* slime.el (slime-oos): Generic ASDF interface.
	(force-compile-system, compile-system, load-system,
	force-load-system): New REPL commands.

	* swank-backend.lisp (operate-on-system): More generic interface
	to ASDF.

	* swank.lisp (operate-on-system-for-emacs): More generic
	interface to ASDF.

	* slime.el (slime-repl-mode-map): Portability fix for definition
	of the REPL command character.
	(slime-maybe-rearrange-inferior-lisp): Bugfix for running
	multiple inferior lisps.

2004-04-13  Marco Baringer  <mb@bese.it>

	* slime.el (slime-handle-repl-shortcut,
	slime-list-all-repl-shortcuts, slime-lookup-shortcut,
	defslime-repl-shortcut): Refactor repl shortcut code to provide a
	more leggible help.

2004-04-09  Lawrence Mitchell  <wence@gmx.li>

	* slime.el (slime-same-line-p): Use `line-end-position', rather
	than searching for a newline manually.
	(slime-repl-defparameter): Use VALUE, not VALUE-FORM.

2004-04-08  Marco Baringer  <mb@bese.it>

	* slime.el (slime-repl-package-stack): New buffer local variable.
	(slime-repl-directory-stack): New buffer local variable.
	(slime-repl-command-input-complete-p): Remove.
	(slime-repl-update-banner): New function.
	(slime-init-output-buffer): Use slime-repl-update-banner.
	(slime-repl-shortcut-dispatch-char): New variable.
	(slime-repl-return): Don't check for repl commands anymore.
	(slime-repl-send-repl-command): Remove.
	(slime-repl-mode-map): Bind slime-repl-shortcut-dispatch-char to
	slime-handle-repl-shortcut.
	(slime-set-default-directory): Use read-directory-name, call
	slime-repl-update-banner.
	(slime-repl-shortcut-table): New global variable.
	(slime-handle-repl-shortcut): New function.
	(defslime-repl-shortcut): New macro for defining repl shortcuts.
	(slime-repl-shortcut-help, "change-directory",
	slime-repl-push-directory, slime-repl-pop-directory,
	"change-package", slime-repl-push-package, slime-repl-pop-package,
	slime-repl-resend, slime-repl-sayoonara, slime-repl-defparameter,
	slime-repl-compile-and-load): New repl shortcuts.
	(slime-kill-all-buffers): Kill sldb buffers as well.

	* swank.lisp: Remove the repl related functions.
	(requires-compile-p): New function.

2004-04-07  Lawrence Mitchell  <wence@gmx.li>

	* slime.el (slime-repl-prompt-face): New face.
	(slime-repl-insert-prompt): Use it.
	(slime-with-chosen-connection, with-struct): Docstring
	fix for function's arglist display.
	(when-let, slime-with-chosen-connection, with-struct): Docstring
	fix for function's arglist display.
	(slime-read-package-name): Use `slime-bogus-completion-alist' to
	construct completion table.
	(slime-maybe-rearrange-inferior-lisp): Use `rename-buffer's
	optional argument to rename uniquely.
	(slime-check-connected): Display keybinding for `slime' via
	`substitute-command-keys'.
	(slime-repl-send-repl-command): Use whitespace character class in
	regexp.
	(slime-autodoc-stop-timer): New function.
	(slime-autodoc-mode): Add `interactive' spec to specify optional
	arg.  This allows prefix toggling of mode (behaves more like
	most Emacs modes now).  Stop timer if switching mode off with
	`slime-autodoc-stop-timer'.
	(slime-autodoc-start-timer, slime-complete-symbol)
	(slime-complete-saved-window-configuration)
	(slime-insert-balanced-comments): Docstring fix.
	(slime-ed): Call `slime-from-lisp-filename' on filename for list
	case of argument.
	(slime-insert-transcript-delimiter, slime-thread-insert): Use
	?\040 to indicate SPC.
	(line-beginning-position): `forward-line' always puts us in
	column 0.
	(line-end-position): Define if not fboundp (for older XEmacs).

2004-04-07  Peter Seibel  <peter@javamonkey.com>

	* swank-allegro.lisp (set-default-directory): Allegro specific
	version that also uses excl:chdir.

	* swank.lisp (swank-pprint): Add swank versions of two missing
	pretty-printer control variables.

2004-04-07  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (completion-set): Also complete package
	names. (Patch from Sean O'Rourke.)
	(find-matching-packages): Add a ":" to the end of package names
	in completion.

2004-04-06  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-bytecode-stale-p): Automatically check if
	slime.elc is older than slime.el and try to help the user out if
	so.

2004-04-06  Marco Baringer  <mb@bese.it>

	* slime.el (slime-repl-command-input-complete-p): New function.
	(slime-repl-send-string): New optional arg specifying what string
	to put on slime-repl-input-history, usefull when this string
	differs from what we actually want to eval.
	(slime-repl-return): Check for repl commands and pass then to
	slime-repl-send-repl-command.
	(slime-repl-send-repl-command): New function.
	(slime-kill-all-buffers): New function.

	* swank.lisp: Define the various repl command handlers: sayoonara,
	cd, pwd, pack and cload.

	* swank-backend.lisp (quit-lisp): Define as part of the backend
	interface and export.

	* swank-sbcl.lisp, swank-openmcl.lisp, swank-cmucl.lisp,
	swank-clisp.lisp, swank-allegro.lisp (quit-lisp): implement.

2004-04-06  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (macro-indentation): Check that the arglist is
	well-formed. This works around a problem with ACL returning
	arglists that aren't real lambda-lists.

2004-04-05  Lawrence Mitchell  <wence@gmx.li>

	* swank.lisp (*swank-pprint-circle*, *swank-pprint-escape*)
	(*swank-pprint-level*, *swank-pprint-length*): Fix typo in
	docstring.

	* slime.el (slime-arglist): Don't `message' arglist directly, in
	case it contains %-signs.
	(slime-repl-output-face): Fix quoting.
	(slime-symbol-at-point): Call `slime-symbol-name-at-point',
	rather than ourselves.
	(slime-check-protocol-version): Docstring fix.

2004-04-05  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi (Semantic indentation): Documented new
	automatically-learn-how-to-indent-macros feature.
	Added auto version control header in subtitle.

	* slime.el (slime-close-parens-at-point): New command bound to
	C-a C-a. Inserts close-parenthesis characters at point until the
	top-level form becomes well formed. Could perhaps be made fancier.
	(slime-update-indentation): New command to update indentation
	information (`common-lisp-indent-function' properties) based on
	macro information extracted from Lisp. This happens
	automatically, the command is just to force a full rescan.

	* swank.lisp (connection): Added slots to track indentation caching.
	(*connections*): List of all open connections.
	(default-connection): Function to get a "default"
	connection. This is intended to support globally using the
	debugger hook outside the context of a SLIME request, which is
	broken at present.
	(with-connection): Don't setup a restart: that must be done
	separately.
	(sync-state-to-emacs): Call `update-connection-indentation'.
	(update-connection-indentation): Automatically discover how to
	indent macros and tell Emacs.

	* swank-backend.lisp (arglist): Specify that strings returned
	from ARGLIST should be READable.

2004-04-02  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-maybe-list-compiler-notes): Display the notes
	for C-c C-c, when there are notes without a good source-location.

2004-04-01  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-sbcl.lisp: Remove the non-working workarounds for
	non-existent fcntl.  Reported by Brian Mastenbrook.
	(preferred-communication-style): Use multithreading if futexes are
	available, sigio if fcntl is present, and fd-handlers otherwise.
	(resolve-note-location): Don't try to construct a source-location
	if there's no context.  Notes without location will be displayed
	in the note-listing buffer.

2004-04-01  Bill Clementson <Bill_Clementson@peoplesoft.com>

	* swank-allegro.lisp (send): Fix misplaced parens.

2004-03-31  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (debug-function-arglist): Return symbols if
	possible.
	(class-location): Support for experimental source-location
	recording.

2004-03-30  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-result-face): New face.
	(slime-inspector-mode-map): Add a binding for M-.
	(compile-defun): Add test case for escaped double quotes inside a
	string.

	* swank.lisp (ed-in-emacs): New allowed form for argument.
	(pprint-eval-string-in-frame): Apply arguments in proper order.

	* swank-cmucl.lisp (method-dspec): Include method-qualifiers.
	(class-definitions): Renamed from struct-definitions.  Try to
	locate condition-classes and PCL classes (in the future).
	(debug-function-arglist): Insert &optional, &key, &rest in the
	right places.
	(form-number-stream-position): Make it a separate function.

2004-03-29  Lawrence Mitchell  <wence@gmx.li>

	* swank.lisp (ed-in-emacs): New allowed form for argument.

	* slime.el (slime-ed): Deal with list form of argument.  For a
	list (FILENAME LINE [COLUMN]), visit the correct line and column
	number.

2004-03-29  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-source-path-parser.lisp (cmucl-style-get-macro-character):
	New function. Workaround for bug(?) in SBCL.
	(make-source-recording-readtable): Use it.

2004-03-29  Luke Gorrie  <luke@bluetail.com>

	* HACKING: Some small updates (more needed).

	* slime.el (slime-inspector-buffer): Enter `slime-inspector-mode'
	after `slime-mode'. This seems to give priority of keymap to the
	inspector, so that it can override SPC.
	(slime-easy-menu): Add slime-switch-to-output-buffer.
	Enable SLIME menu in the REPL buffer.
	(slime-symbol-name-at-point): Avoid mistaking the REPL prompt for
	a symbol.
	(slime-words-of-encouragement): A few new ones.
	(slime-insert-xrefs): Removed the final newline from XREF
	buffers. This helps to avoid unwanted scrolling.

	* doc/slime.texi: Added a section about user-interface
	conventions and our relationship with inf-lisp.

2004-03-27  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-changelog-date): Reinitialize it at load-time.
	This avoids the need to restart Emacs (horror!) after an update.

	* swank-cmucl.lisp (debug-function-arglist): Properly reconstruct
	the arglist from the debug-info. (Not complete yet.)
	(arglist): Use it.

	* swank-lispworks.lisp (spawn): Remove CL symbols from
	mp:*process-initial-bindings*, to avoid the irritating behavior
	for requests executed in different threads.  E.g., when someone
	tries to set *package*.

	* swank.lisp (*log-io*): New variable.  Bind it to *terminal-io*
	at load-time, so we can log to a non-redirected stream.
	(disassemble-symbol): Allow generalized function names.
	(apropos-symbols): Handle the PACKAGE argument properly to get
	useful output for C-c P.

	* slime.el (slime-repl-indent-and-complete-symbol): New command.
	Bound to TAB in the REPL mode.  First try to indent the current
	line then try to complete the symbol at point.
	(slime-dispatch-event): Ignore a unused thread variable to keep
	XEmacs' byte compiler quiet.

	* swank-sbcl.lisp (enable-sigio-on-fd): Use sb-posix::fcntl
	instead of sb-posix:fcntl to avoid the ugly reader hack.  SBCL
	doesn't have package locks and even if they add locks in the
	future sb-posix::fcntl will still be valid.
	(getpid): Use defimplementation instead of defmethod.
	(function-definitions): Take generalized function names ala '(setf
	car)' as argument.

2004-03-26  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-group-similar): Bugfix: return NIL if the input
	list is NIL.
	(slime-inspector-buffer): Enter `slime-inspector-mode' after
	`slime-mode'. This seems to give priority of keymap to the
	inspector, so that it can override SPC.

2004-03-26  Bjørn Nordbø <bn@telenor.net>

	* swank.lisp (print-arglist): Updated to handle arglists with
	string elements, causing arglists for macros to display properly
	in LW 4.1.

2004-03-26  Marco Baringer <mb@bese.it>

	* swank-cmucl.lisp (set-default-directory): Define only once;
	define with defimplementation, not defun.

2004-03-26  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-merge-notes-for-display): New function to merge
	together compiler notes that refer to the same location. This is
	an optimization for when there are a lot of compiler notes:
	`slime-merge-note-into-overlay' concat'd messages together one by
	one in O(n^2) time/space, and became noticeably slow in practice
	with ~100 notes or more.
	(slime-tree-insert): This function is now automatically
	byte-compiled (good speed gain).
	Wrap byte-compilation in `save-window-excursion' to avoid showing
	an unwanted warnings buffer (in XEmacs).

2004-03-25  Bjørn Nordbø <bn@telenor.net>

	* swank-lispworks.lisp: (create-socket, set-sigint-handler)
	(who-references, who-binds, who-sets): Add backward compatibility
	for LW 4.1.
	(dspec-buffer-position): Fix inappropriate use of etypecase.

2004-03-24  Luke Gorrie  <luke@bluetail.com>

	* swank-sbcl.lisp (getpid): Use sb-posix:getpid.

	* slime.el (slime-inspector-mode-map): Added SPC as extra binding
	for slime-inspector-next (like info-mode).

	* doc/slime.texi: Added completion style and configuration.

2004-03-23  Alan Shutko  <ats@acm.org>

	* swank-clisp.lisp (set-default-directory): New function.

2004-03-23  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp (send): Wait a bit if there are already many
	message in the mailbox.

	* swank-clisp.lisp (xref-results): Use fspec-location instead of
	the of fspec-source-locations.  Reported by Alan Shutko.
	(break): Be friendly to case-inverting readtables.

	* swank-lispworks.lisp (emacs-connected): Add default method to
	environment-display-notifier.  Reported by Bjørn Nordbø.
	(set-default-directory, who-specializes): Implemented for
	Lispworks.
	(gfp): New function.
	(describe-symbol-for-emacs, describe-definition): Distinguish
	between ordinary and generic functions.
	(call-with-debugging-environment): Unwind a few frames.  Looks
	better and avoids the problems with the real topframe.
	(interesting-frame-p): Use Lispworks dbg:*print-xxx* variables to
	decide which frames are interesting.
	(frame-actual-args): New function.
	(print-frame): Use it.

	* swank.lisp (open-streams, make-output-function): Capture the
	connection not only the socket.  This way the streams can be used
	from unrelated threads.  Reported by Alain Picard.
	(create-connection): Factorized.  Initialize the streams after the
	connection is created.
	(initialize-streams-for-connection, spawn-threads-for-connection):
	New functions.
	(with-connection): Fix quoting bug and move upwards before first
	use.
	(guess-package-from-string): Add kludge for SBCL !-package names.
	(apropos-list-for-emacs): Lispworks apparently returns duplicates;
	remove them.
	(inspect-object): Princ the label to allow strings and symbols.
	(send-output-to-emacs): Deleted.
	(defslimefun-unimplemented): Deleted.  Was unused.

	* slime.el (slime-easy-menu): Add some more commands.
	(slime-changelog-date): New variable. Initialized with the value
	returned by the function of the same name.  This detects
	incompatible versions if Emacs has not been restarted after an
	upgrade.
	(slime-check-protocol-version, slime-init-output-buffer): Use it.
	(slime-events-buffer, slime-log-event): Use fundamental mode
	instead of lisp-mode to avoid excessive font-locking for messages
	with lots of strings.

2004-03-22  Luke Gorrie  <luke@bluetail.com>

	* doc/slime.texi: New user manual.

	* swank.lisp (*communication-style*): New name for
	*swank-in-background*.
	Exported configuration variables: *communication-style*,
	*log-events*, *use-dedicated-output-stream*.

2004-03-20  Julian Stecklina <der_julian@web.de>

	* swank-sbcl.lisp (+o_async+, +f_setown+, +f_setfl+): Add correct
	constants for FreeBSD.

2004-03-19  Alan Shutko  <ats@acm.org>

	* swank.lisp, swank-loader.lisp: Take into account
	`pathname-device' when deriving paths. A fix for Windows.

2004-03-19  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-connected-hook): New hook called each time SLIME
	successfully connects to Lisp. This is handy for calling
	`slime-ensure-typeout-frame', if you want to use that feature.
	(sldb-print-condition): New command to print the SLDB condition
	description into the REPL, for reference after SLDB exits. Can be
	called from `sldb-hook' if you want the condition to always be
	printed. Bound to 'P' in SLDB.

2004-03-18  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (format-values-for-echo-area): Bind *package* to
	*buffer-package*.
	(load-system-for-emacs): Renamed from swank-load-system.
	(carefully-find-package): Be friendly to case inverting
	readtables.
	(inspect-current-condition): New function.

	* swank-backend.lisp, swank-cmucl.lisp (set-default-directory):
	New backend function.

	* swank-allegro.lisp, swank-clisp.lisp, swank-lispworks.lisp,
	swank-sbcl.lisp (swank-compile-string): Be friendly to
	case-inverting readtables.

	* slime.el (sldb-inspect-condition): Use
	swank:inspect-current-condition.
	(slime-inspector-label-face): Make it bold by default.
	(slime-check-protocol-version, slime-process-available-input):
	Wait 2 secs after displaying the error message.
	(sldb-list-catch-tags, sldb-show-frame-details): Display catch
	tags as symbols not as strings.

2004-03-16  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-dispatch-event, slime-rex): Pass a form instead
	of a string with :emacs-rex.
	(slime-connection-name): New connection variable.  Use it in
	various places instead of slime-lisp-implementation-type-name.

	* swank.lisp: Better symbol completion for case-inverting
	readtables.  (Thanks Thomas F. Burdick for suggestions.)
	(output-case-converter): New function.
	(find-matching-symbols): Case convert the symbol-name before
	comparing.
	(compound-prefix-match, prefix-match-p): Use char= instead of
	char-equal.
	(case-convert-input): Renamed from case-convert.
	(eval-for-emacs): Renamed from eval-string.  Take a form instead
	of a string.
	(dispatch-event, read-from-socket-io): Update callers.
	(eval-region, interactive-eval): Use fresh-line to reset the column.

2004-03-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-space): Send a list of the operator names
	surrounding point to Lisp.  Lisp can use the list to select the
	most suitable arglist for the echo area.  Suggested by Christophe
	Rhodes and Ivan Boldyrev.
	(slime-enclosing-operator-names): New function.

	* swank.lisp (arglist-for-echo-area): Renamed from arglist-string.
	(format-arglist-for-echo-area, arglist-to-string): New functions.

2004-03-12  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-backend.lisp (find-definitions): Fix docstring.

	* slime.el (slime-dispatch-event): Re-enable :ed command.
	(sldb-return-from-frame): Send swank:sldb-return-from-frame.

	* swank-cmucl.lisp (find-definitions): Allow names like (setf car).

	* swank.lisp (sldb-return-from-frame): Convert the string to a
	sexp.
	(dispatch-event, send-to-socket-io): Allow %apply events.
	(safe-condition-message): Bind *pretty-print* to t.
	(set-default-directory): Use the truename.
	(find-definitions-for-emacs): Allow names like (setf car).

2004-03-12  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank.lisp (:swank): Export startup-multiprocessing,
	restart-frame, return-from-frame.
	What about kill-thread and interrupt-thread, which are accessed
	as internal symbols?

2004-03-10  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (struct-definitions, find-dd)
	(type-definitions, function-info-definitions)
	(source-transform-definitions, setf-definitions): New funtions.
	(find-definitions): Include struct definitions, deftypes, setf
	defintions, compiler-macros and compiler transforms.

2004-03-10  Andras Simon <andras@renyi.hu>

	* swank.lisp (print-arglist): Use with-standard-io-syntax.

2004-03-10  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>

	* swank-cmucl.lisp (unprofile-all): (eval '(profile:unprofile))
	instead of just calling it since it is a macro in cmucl.

	* swank.lisp (:swank): export profile symbols (profiled-functions,
	profile-report, profile-reset, unprofile-all, profile-package)

2004-03-10  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp, swank-lispworks.lisp, swank-sbcl.lisp,
	swank-clisp.lisp, swank-cmucl.lisp (find-definitions): Some
	tweaking.

	* swank.lisp (print-arglist): Bind *pretty-circle* to nil to avoid
	output like "(function . (cons))".  Suggested by Michael Livshin.
	(test-print-arglist): Re-enable the tests.
	(find-definitions-for-emacs): Renamed from
	find-function-locations.

	* slime.el (slime-edit-definition): Renamed from
	slime-edit-fdefinition.  Display the dspec if there are multiple
	definitions.
	(slime-symbol-name-at-point): Handle the case when there is no
	symbol at point.
	(slime-expected-failures): New function
	(slime-execute-tests): Use it.

2004-03-09  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (frame-source-location-for-emacs): Export it.
	Reported by Jouni K Seppanen
	(test-print-arglist): Disable the tests until we know what's wrong
	with print-arglist.  Reported by Michael Livshin.

	* swank-source-path-parser.lisp, swank-gray.lisp (in-package): We
	are in-package :swank-backend.  Thanks to Raymond Wiker.

	Merge package-split branch into main trunk.

	* swank-clisp.lisp (find-fspec-location): Handle "No such file"
	errors.

	* swank-openmcl.lisp (preferred-communication-style): Implemented.
	(call-without-interrupts, getpid): Use defimplementation.
	(arglist, swank-compile-file, swank-compile-string)
	(swank-compile-system, backtrace): Renamed.
	(print-frame): New function.
	(frame-catch-tags): Don't exclude nil source location.
	(format-restarts-for-emacs, debugger-info-for-emacs,
	inspect-in-frame). deleted
	(frame-arguments): Don't use to-string.
	(find-source-locations, find-function-locations
	(method-source-location): Deleted.
	(canonicalize-location, find-definitions,
	function-source-location, list-callers): Use
	ccl::edit-definition-p and
	ccl::get-source-files-with-types&classes.  Makes things easier.
	(return-from-frame): Take a sexp not a string.
	(describe-definition): Describe more types.

	* swank-loader.lisp: Change load order. swank.lisp is now the last
	file.

	* swank-allegro.lisp, swank-clisp.lisp, swank-cmucl.lisp,
	swank-gray.lisp, swank-lispworks.lisp, swank-sbcl.lisp,
	swank-source-path-parser.lisp: Implement changed backend interface
	and remove references to frontend symbols.

	* swank-backend.lisp (:swank-backend): New package.
	(definterface): Export the symbol.
	(:location, :error, :position, :buffer): Define structure of
	source locations here.
	(preferred-communication-style, compute-backtrace, print-frame):
	New functions.
	(debugger-info-for-emacs): Deleted.

	Renaming:

	compile-file-for-emacs   -> swank-compile-file
	compile-string-for-emacs -> swank-compile-string
	compile-system-for-emacs -> swank-compile-stystem
	arglist-string           -> arglist
	backrace                 -> compute-backtrace
	find-function-locations  -> find-definitions

	* swank.lisp (:swank): Create the package here.
	(*swank-in-background*): Call the backend function
	preferred-communication-style to for the initial value.
	(find-symbol-designator): Handle NIL properly.
	(arglist-string): Renamed from format-arglist.  Call backend
	function directly.
	(*sldb-restarts*, swank-debugger-hook, format-restarts-for-emacs)
	(nth-restart, invoke-nth-restart, sldb-abort): Handle restarts in
	the front end.
	(frame-for-emacs): Renamed from print-with-frame-label.
	(backtrace, debugger-info-for-emacs, pprint-eval-string-in-frame)
	(set-default-directory): Now in the front end.
	(frame-locals-for-emacs): Use print not princ for variable names.
	(compile-file-for-emacs, compile-string-for-emacs): Small wrappers
	around backend functions.
	(describe-definition-for-emacs): Handle unknown symbols before
	calling the backend.
	(find-function-locations): Wrapper for new backend function
	find-definitions.
	(group-xrefs, partition, location-valid-p, xref-buffer, xref):
	Updated for the new backend functions.

	* slime.el:
	(slime-symbol-at-point, slime-symbol-name-at-point):
	slime-symbol-at-point calls slime-symbol-name-at-point not the
	other way around.  This avoids the mess if the symbol at point is
	NIL.
	(slime-compile-file, slime-load-system, slime-compile-region)
	(slime-call-describer, slime-who-calls, sldb-catch-tags): Updates
	for renamed lisp functions.
	(slime-list-callers, slime-list-callees): Unified with other xref
	commands.
	(sldb-show-frame-details): Catch tags no longer include the source
	location.
	(sldb-insert-locals): Simplified.

2004-03-09  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (read-into-simple-string): Use the correct fix.
	Reported by HÃ¥kon Alstadheim.

2004-03-08  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-start-swank-server, slime-maybe-start-lisp):
	Translate filenames.  Reported by Dan Muller.

2004-03-08  Bill Clementson <Bill_Clementson@peoplesoft.com>

	* slime.el (slime-insert-balanced-comments)
	(slime-remove-balanced-comments, slime-pretty-lambdas): New
	functions.

2004-03-07  Jouni K Seppanen  <jks@iki.fi>

	* slime.el (sldb-help-summary): New function.
	(sldb-mode): Add docstring so that describe-mode is useful.
	(sldb-mode-map): Add bindings for sldb-help-summary and
	describe-mode.
	(define-sldb-invoke-restart-key): Generate docstrings.
	(sldb-default-action/mouse, sldb-default-action)
	(sldb-eval-in-frame, sldb-pprint-eval-in-frame)
	(sldb-inspect-in-frame, sldb-down, sldb-up, sldb-details-up)
	(sldb-details-down, sldb-list-locals, sldb-quit, sldb-continue)
	(sldb-abort, sldb-invoke-restart, sldb-break-with-default-debugger)
	(sldb-step): Add rudimentary docstrings.

2004-03-07  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-complete-symbol*, slime-simple-complete-symbol):
	Use the correct block name when returning.
	(slime-display-completion-list): Fix typo.

	* swank-cmucl.lisp (frame-locals): Use #:not-available instead of
	"<not-available>".

2004-03-05  Bill Clementson <Bill_Clementson@peoplesoft.com>

	* swank-lispworks.lisp (getpid, emacs-connected): Conditionalize
	for Windows.

2004-03-05  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (frame-locals-for-emacs): Bind *print-readably* to
	nil.

2004-03-05  Marco Baringer  <mb@bese.it>

	* swank.lisp (frame-locals-for-emacs): New function.

	* slime.el (sldb-frame-locals): Use swank::frame-locals-for-emacs
	not swank::frame-locals.
	(sldb-insert-locals): use the :value property, not the
	:value-string property.

	* swank-allegro.lisp, swank-clisp.lisp, swank-cmucl.lisp,
	swank-lispworks.lisp, swank-sbcl.lisp (frame-locals): Return lisp
	objects, not strings. Use the :value property and not the
	:value-string property.

2004-03-04  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-display-comletion-list): New function. Set
	syntax table properly.
	(slime-complete-symbol*, slime-simple-complete-symbol): Use it.
	(slime-update-connection-list): New function.
	(slime-draw-connection-list): Simplified.
	(slime-connection-list-mode-map): Bind g to update-connection-list.
	(slime-open-inspector): Print the primitive type in brackets.
	(slime-test-arglist): Add test for empty arglist.

	* swank-allegro.lisp, swank-clisp.lisp, swank-cmucl.lisp,
	swank-lispworks.lisp, swank-sbcl.lisp, swank-backend.lisp
	(thread-alive-p): Add default implementation.
	(describe-primitive-type): Add default implementation.
	(inspected-parts): Implemented for Allegro and CLISP.

	* swank.lisp (remove-dead-threads): New function.
	(lookup-thread): Use it.
	(print-arglist): New function. This time without a custom pretty
	print dispatch table.
	(format-arglist): Use it.
	(inspected-parts): Add method for hash-tables.

2004-03-03  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp: Use *emacs-connection*, *active-threads*, and
	*thread-counter* as thread local dynamic variables.
	(init-emacs-connection): Don't set *emacs-connection*.
	(create-connection, dispatch-event): Pass the connection object to
	newly created threads.
	(with-connection): New macro
	(handle-request, install-fd-handler, debug-thread): Use it.

	* swank-allegro.lisp, swank-clisp.lisp, swank-cmucl.lisp,
	swank-openmcl.lisp, swank-sbcl.lisp (call-with-compilation-hooks):
	Bind fewer variables. Most of them are already bound in
	swank.lisp.

	* swank.lisp (setup-server, serve-connection): New dont-close
	argument to keep the socket open after the first connection.
	(start-server, create-swank-server): Update callers.
	Reported by Bill Clementson.

	* swank-cmucl.lisp (resolve-note-location): Don't be too clever,
	if there is no context available.  The compiler notes buffer is
	probably more adequate in this situation.
	(compile-file-for-emacs): Use the :load argument to compile-file.
	(inspect-in-frame): Deleted.

	* slime.el (slime-compilation-finished-hook): Use
	slime-maybe-list-compiler-notes as default.
	(slime-maybe-list-compiler-notes): New function.
	(slime-list-compiler-notes): Insert "[no notes]" if there aren't
	any. Pop to the buffer.
	(slime-complete-symbol*, slime-simple-complete-symbol): Set the
	lisp-mode-syntax-table in the completion buffer.
	(check-parens): Compatibility function for XEmacs and Emacs 20.

	* swank.lisp (find-completions): Deleted.
	(simple-completions): Use longest-common-prefix instead of
	longest-completion.
	(inspect-in-frame): Moved here from swank-cmucl.lisp.

	* swank-lispworks.lisp (call-with-debugging-environment): Bind
	*sldb-top-frame*.
	(nth-frame): Use *sldb-top-frame*.
	(name-source-location, name-source-locations): Renamed from
	dspec-source-location, dspec-source-locations.  The result now
	includes methods for generic functions.
	(eval-in-frame, return-from-frame, restart-frame): Implemented.
	(compile-string-for-emacs): Set dspec::*location* to the buffer
	location.
	(signal-undefined-functions, signal-error-data-base)
	(make-dspec-location): Remove temp-file kludges.
	(patch-source-locations, replace-source-file): Deleted.

2004-03-01  Marco Baringer  <mb@bese.it>

	* swank.lisp (format-arglist): deal with nil arglists.

2004-03-01  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (compile-string-for-emacs): Patch the
	recorded source locations.
	(replace-source-file, patch-source-locations): New function.
	(dspec-buffer-position): Handle defgeneric.
	(make-dspec-location): Handle (patched) emacs-buffer locations.
	(emacs-buffer-location-p): New function.
	(describe-primitive-type, inspected-parts): Implemented.
	(kill-thread): Implemented.

	* swank-sbcl.lisp, swank-cmucl.lisp, swank-allegro.lisp
	(kill-thread): Implemented.

2004-02-29  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-complete-symbol): Make slime-complete-symbol
	customizable.  I don't understand how the ILISP style completion
	is supposed to work and find it unintuitive.
	(slime-complete-symbol-function): New variable.
	(slime-complete-symbol*): Renamed from slime-complete-symbol.
	(slime-simple-complete-symbol, slime-simple-completions): New
	function.
	(slime-compiler-notes-to-tree): Return a list of trees, not a single
	tree.

	* swank.lisp (format-arglist): Don't use a custom pprint table.
	Didn't work with CLISP and the behavior was different in SBCL and
	Lispworks.
	(completions): Factorize.
	(parse-completion-arguments, format-completion-set,
	(completion-set, find-matching-symbols, find-completions): New
	functions.
	(simple-completions): New function.
	(prefix-match-p) New function.

2004-02-28  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-compilation-finished-hook): New hook variable.
	(slime-compilation-finished): Call it.
	(slime-maybe-show-xrefs-for-notes): New function.
	(slime-make-default-connection): Use the current connection.
	(slime-connection-at-point): New function.
	(slime-goto-connection, slime-connection-list-make-default): Use
	it.
	(slime-draw-connection-list): Minor cleanups.

	Define selectors for t and c for thread and connection list.

	* swank.lisp: (*initial-pprint-dispatch-table*)
	(*arglist-pprint-dispatch-table*): Workaround for bug in
	CLISP. Don't supply nil as argument to copy-pprint-dispatch.
	(print-cons-argument): Insert a space after the car.

2004-02-27  Marco Baringer  <mb@bese.it>

	* slime.el (slime-read-port-and-connect,
	slime-read-port-and-connect-to-running-swank): Refactor
	slime-read-port-and-connect into two functions so that
	slime-thread-attach can use the logic in
	slime-read-port-and-connect.
	(slime-thread-control-mode-map): Added key bindings for
	slime-thread-kill, slime-thread-attach, slime-thread-debug and
	slime-list-threads.
	(slime-thread-kill, slime-thread-attach, slime-thread-debug): New
	functions.

	* swank-backend.lisp (kill-thread): Added to swank interface.

	* swank-openmcl.lisp (kill-thread): Implement.

	* swank.lisp (start-server): Add optional background argument,
	defaults to *swank-background*.
	(lookup-thread-by-id): New function.
	(debug-thread): New function.

2004-02-26  Peter Seibel  <peter@javamonkey.com>

	* slime.el (slime-draw-connection-list): Use text-properties to
	associate the connections each line of the connections list
	buffer.

2004-02-26  Peter Seibel  <peter@javamonkey.com>

	* slime.el (slime-list-connections): Make the buffer created by
	this function do a bit more: Can use it to switch to different
	connections and change the default.

2004-02-26  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (ccl::force-break-in-listener): Pass a
	condition object to invoke-debugger.
	Patch by Bryan O'Connor <bryan-slime@lunch.org>

2004-02-26  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-backend.lisp (:swank): export connection-info.

	* swank-allegro.lisp (lisp-implementation-type-name): Implement
	it.

	* swank-sbcl.lisp (compile-file-for-emacs): Load the fasl file
	regardless of f-p.

	* swank.lisp (swank-pprint): Bind *package* to *buffer-package*.
	Reported by Alan Picard.

	* swank-lispworks.lisp (dspec-buffer-position): Renamed from
	dspec-buffer-buffer-position.  Handle dspecs of the form (defmacro
	foo).  Reported by Alan Picard.
	(arglist-string): Handle unknown arglists properly.

2004-02-25  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (arglist-string): Delay the call to
	di::function-debug-function until it is actually needed.
	(compile-file-for-emacs): Load the fasl file irrespective of
	COMILE-FILE's third return value.

	* swank.lisp (connection-info): New function.
	(open-streams): Don't send the :check-protocol-version message.  Now
	handled with CONNECTION-INFO.

	* slime.el (slime-symbol-at-point): Don't skip backwards across
	whitespace when we are at the first character of a symbol.  To
	handle this case: skip symbol constituents forward before skipping
	whitespace backwards.  Reported by Jan Richter.
	(slime-connection-close-hook, slime-next-connection)
	(slime-make-default-connection): Remove extra call to format.
	(slime-init-connection-state): Use only a single RPC instead of 4.

2004-02-25  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-with-chosen-connection): Bind
	slime-dispatching-connection and not slime-buffer-connection.
	slime-buffer-connection is a buffer local variable not a dynamic
	variable.
	(slime-find-connection-by-type-name)
	(slime-read-lisp-implementation-type-name): Were lost during the
	merge.
	(sldb-fetch-more-frames): Use (goto-char (point-max)) instead of
	end-of-buffer.

2004-02-25  Peter Seibel  <peter@javamonkey.com>

	* slime.el: Various bits of support for maintaining multiple SLIME
	connections to different Lisp implementations simultaneously.

	* swank-backend.lisp (lisp-implementation-type-name): Add function to
	return simple name of lisp implementation; used by new
	multi-connection functionality in slime.el.

2004-02-25  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (format-arglist): Use a special pprint-dispatch table.

2004-02-22  Lawrence Mitchell  <wence@gmx.li>

	* swank.lisp (format-arglist): Bind *PRINT-PRETTY* to NIL.
	(eval-in-emacs): Fix typo in docstring.

	* swank-cmucl.lisp (arglist-string): Bind *PRINT-PRETTY* to NIL.

2004-02-21  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	Add support for SERVE-EVENT based communication.

	* swank-sbcl.lisp (add-sigio-handler, remove-sigio-handlers):
	Renamed.
	(add-fd-handler, remove-fd-handlers): Implement interface.

	* swank-cmucl.lisp (fcntl): New function.
	(add-sigio-handler, remove-sigio-handlers): Renamed.
	(add-fd-handler, remove-fd-handlers): Implement interface.

	* swank.lisp (create-connection): Add support for fd-handlers.
	(install-fd-handler, deinstall-fd-handler): New functions.

	* swank-backend.lisp (add-sigio-handler): Renamed from
	add-input-handler.
	(remove-sigio-handlers): Renamed from remove-input-handlers.
	(add-fd-handler, remove-fd-handlers): New interface functions.

	* slime.el (slime-batch-test): Use sit-for instead of
	accept-process-output, so that we see something when swank gets
	compiled.  May be problematic in real batch mode.
	(loop-interrupt-continue-interrupt-quit): Wait a second before
	interrupting.  The signal seems to arrive before the evaluation
	request if don't wait => the endless loop is executed inside the
	debugger and sldb-quit will not be processed with fd-handlers.

	* swank.lisp (process-available-input): Move auxiliary function to
	toplevel.  Test if the stream is open.
	(install-sigio-handler): Handle the first request after installing
	the signal handler.

	* slime.el (slime-keys): Bind C-c C-x t to slime-list-threads and
	C-c C-x c to slime-list-connections.
	(slime): Disconnect before reconnecting if the inferior-lisp
	buffer wasn't renamed.
	(slime-connect): Use the host argument and not "localhost".
	(slime-compilation-finished): Undo last change.  Switch to the
	buffer to remove old annotations.
	(slime-choose-overlay-region): Ignore errors in
	slime-forward-sexp.

2004-02-18  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime): Just close the connection when called without
	prefix-argument.  Keeping the connection open doesn't make sense.
	We could ask if the Lisp process should be killed, though.
	(slime-maybe-close-old-connections): Delete unused function.
	(slime-start-swank-server): Use comint-send-string instead of
	comint-proc-query, 'cause I don't like Olin "100%" Shivers' code.
	(slime-init-output-buffer): Show some animations.
	(slime-repl-clear-output): Fixed.
	(slime-compilation-finished): It's not necessary to switch to the
	original buffer, because the buffer is encoded in the
	source-locations.
	(sldb-show-source): Don't raise an error if the source cannot be
	located.  Print a message instead, because errors in
	process-filters cause a 1 second delay.

	* swank-cmucl.lisp (read-into-simple-string): Workaround for
	read-sequence bug in 18e.

2004-02-18  Peter Seibel <peter@javamonkey.com>

	* swank-loader.lisp: Place the fasl files of different
	implementations in different directories.

2004-02-18  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-clisp.lisp: Update comments about metering package.

	* metering.lisp: Imported from CLOCC.  Suggested by Peter Seibel.

2004-02-17  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp, slime.el (make-compiler-note): Don't send the
	short-message across the wire if the slot is nil.

	* swank-cmucl.lisp (clear-xref-info): Compare the truenames with
	equalp instead of the unix-truenames.  The old version was very
	inefficient (clearing the tables with about 1000 entries required
	serveral seconds).
	(xref-context-derived-from-p, pathname=): Delete unused functions.

	* swank-clisp.lisp (remove-input-handlers):
	socket:socket-stream-handle is not available on Windows.
	Reported by Alan Shutko.

	* slime.el (slime-length>): New function.
	(slime-compiler-notes-to-tree): Don't collapse if there is only
	one kind of notes.

2004-02-16  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (make-compiler-note): Include short-message.

	* swank-sbcl.lisp (signal-compiler-condition): Initialize
	short-message slot.
	(long-compiler-message-for-emacs): New function.

	* swank-cmucl.lisp (handle-notification-condition): Don't use the
	context of the previous message.
	(signal-compiler-condition): Set short message slot.
	(long-compiler-message-for-emacs): New function.
	(sigio-handler): Ignore arguments.

	* swank-clisp.lisp (set-sigio-handler, add-input-handler):
	Conditionalize for linux.

	* swank-backend.lisp (compile-system-for-emacs): Add default
	implementation.
	(compiler-condition): New slot short-message.

	* slime.el (slime-compilation-finished): Display compiler notes
	grouped by severity in a separate buffer.
	(slime-compilation-finished-continuation, slime-compile-file)
	(slime-load-system, slime-compile-string): Update callers.
	(slime-list-compiler-notes, slime-alistify, slime-tree-for-note)
	(slime-tree-for-severity, slime-compiler-notes-to-tree)
	(slime-compiler-notes-mode, slime-compiler-notes-quit): New
	functions.
	(with-struct, slime-tree): New code for pseudo tree widget.
	(slime-init-connection-state): Set slime-state-name to "".

2004-02-08  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (create-socket): Fix last fix.  Use the proper
	port argument.

	* swank-allegro.lisp, swank-backend.lisp, swank-clisp.lisp,
	swank-cmucl.lisp, swank-lispworks.lisp, swank-openmcl.lisp,
	swank-sbcl.lisp (create-socket): Take interface as argument.

	* slime.el (sldb-show-frame-details): Fix typos.
	(slime-print-apropos): Don't bind action.
	(slime-reset): Kill sldb-buffers.
	(slime-test-find-definition, slime-test-complete-symbol)
	(slime-test-arglist): Add more slime-check-top-level calls.

	* swank.lisp (setup-server): Pass loopback-interface to
	create-socket.  Reported by Dirk Gerrits.
	(*loopback-interface*): New parameter.
	(sldb-loop): Send :debug event inside unwind-protect, so we never
	lose the corresponding :debug-return event.

2004-02-08  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp (find-source-locations): Eliminate unused
	variable warning.

	* swank.lisp (swank-pprint): Bind pretty print vars to
	*swank-pprint-X* counter parts.
	(*swank-pprint-circle*, *swank-pprint-escape*,
	*swank-pprint-level*, *swank-pprint-length*): Swank counterparts
	to *print-X* variables used when swank needs to pretty print a
	form.
	(apply-macro-expander): Use swank-pprint.

2004-02-07  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (send, receive, interrupt-thread): Implement
	more threading functions.

	* swank-sbcl.lisp (inspected-parts): Implemented.

	* slime.el (slime-rex): Mention thread argument in docstring.
	(sldb-break-with-default-debugger): Use slime-rex and don't switch
	to the output buffer (happens automatically).
	(slime-list-threads): Renamed from slime-thread-control-panel.
	(slime-thread-insert): Use slightly different layout.
	(slime-give-goahead, slime-waiting-threads)
	(slime-popup-thread-control-panel, slime-register-waiting-thread)
	(slime-thread-goahead): Deleted.
	(slime-maybe-start-multiprocessing): Call
	swank:startup-multiprocessing.  Reported by Paolo Amoroso.

	* swank.lisp (dispatch-event): :debug, :debug-condition,
	:debug-activate events were all encoded as :debug events, which
	means the debugger never worked!  Fix it.  I guess no one uses
	SLIME with a multithreaded Lisp.
	(read-user-input-from-emacs): Flush the output before reading.
	(sldb-loop): Add a sldb-enter-default-debugger tag, so we can
	enter the default debugger by throwing to it.
	(sldb-break-with-default-debugger): Throw to
	sldb-enter-default-debugger.
	(*thread-list*): New variable.
	(list-threads): New function.

	* swank-backend.lisp (thread-name): Take a thread object as
	argument.
	(thread-status, all-threads, thread-alive-p): New function.
	(thread-id): Deleted.

	* swank-allegro.lisp, swank-cmucl.lisp, swank-lispworks.lisp,
	swank-openmcl.lisp, swank-sbcl.lisp: Update for modified thread
	interface.

	* swank-sbcl.lisp (enable-sigio-on-fd): New function.  Use
	fallback if sb-posix:fcntl isn't fbound.

	* swank-cmucl.lisp (gf-definition-location): Return an error when
	pathname for the GF is nil (this happens if the GF is not compiled
	from a file).

	* swank.lisp (undefine-function): New function.
	(print-with-frame-label, print-part-to-string): Bind
	*print-circle* to t, to avoid unbound recursion when printing
	cyclic data structures.

	* slime.el (slime-undefine-function): New command.  Bound to C-c
	C-u.

2004-02-06  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (sldb-setup): Offer to enter a recursive edit if there
	are pending continuations.
	(slime-eval): Unwind the stack, thereby exititing recursive edits,
	before signaling the error.

2004-02-05  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-openmcl.lisp (compile-system-for-emacs): Remove compile
	time dependency on ASDF.

2004-02-05  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp, swank-loader.lisp: Add profiling support via
	Kantrowitz's metering package.  Reporting needs to be
	refined (profile-package currently ignores callers-p and methods).

2004-02-04  Bryan O'Connor <bryan-slime@lunch.org>

	* swank-openmcl.lisp (mailbox): Use a semaphore instead of
	process-wait.  Works better with native threads.

2004-02-04  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-backend.lisp (debugger-info-for-emacs): Export it.

	* swank-sbcl.lisp (add-input-handler): Use fcntl from the sb-posix
	package.

	* swank.lisp (sldb-loop, dispatch-event, send-to-socket-io): Send
	a :debug-activate event instead of a :debug event (to avoid
	sending a potentially long backtrace each time).
	(handle-sldb-condition): Include the thread-id in the message.

	* slime.el (slime-path): Use load-file-name as fallback.
	Suggested by Lawrence Mitchell.
	(slime-dispatch-event): Add support for :debug-activate event.
	(sldb-activate): New function.
	(sldb-mode): make-local-hook doesn't seem to work in Emacs 20.
	Use a buffer local variable instead.
	(slime-list-connections): Don't print Lisp's state.
	(slime-short-state-name): Deleted.

2004-02-02  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-debugger): The customization group is called
	'slime-debugger', fix referrers.  Reported by Jouni K Seppanen.

	* swank.lisp (simple-break): Bind *debugger-hook* before invoking
	the debugger.  Reported by Michael Livshin.

2004-01-31  Robert E. Brown <bbrown@speakeasy.net>

	* swank-sbcl.lisp, swank.lisp: Add more type declarations and
	detect missing initargs for the connection struct.

2004-01-31  Jouni K Seppanen <jks@iki.fi>

	* slime.el (slime-path): Placed inside an eval-and-compile.  Works
	around some problems when byte-compiling slime-changelog-date.

2004-01-31  Marco Baringer  <mb@bese.it>

	* swank-openmcl.lisp: remove defslimefun-unimplemented forms.
	(call-with-compilation-hooks, compile-system-for-emacs): Implement
	them.
	(compile-file-for-emacs, compile-string-for-emacs): Use
	with-compilation-hooks.
	(list-callers): Define with defimplementation and not defslimefun.

	* swank-backend.lisp (compile-system-for-emacs): Declare method
	as part of the interface.

	* slime.el (slime-find-asd): Handle files whose directory does
	not contain an asdf system definition.

2004-01-31 Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	Merge stateless-emacs branch into main trunk.  We use now signal
	driven IO for CMUCL and one thread per request for multithreaded
	Lisps.

2004-01-31  Robert E. Brown <bbrown@speakeasy.net>

	* swank-backend.lisp, swank-sbcl.lisp,
	swank-source-path-parser.lisp, swank.lisp: Add type declarations
	to keep SBCL quiet.

2004-01-29  Michael Weber <michaelw+slime@foldr.org>

	* slime.el, swank-backend.lisp, swank-cmucl.lisp, swank-sbcl.lisp,
	swank.lisp: Profiler support.

2004-01-23  Alan Ruttenberg <alanr-l@mumble.net>

	* swank-openmcl.lisp: Bind ccl::*signal-printing-errors* to nil
	inside debugger so that error while printing error take us down.

2004-01-23  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-sbcl.lisp (eval-in-frame, return-from-frame): Implemented.
	(sb-debug-catch-tag-p): New auxiliary predicate.
	(source-path<): Delete unused function.

2004-01-23  Michael Weber  <michaelw@foldr.org>

	* slime.el (slime-keys): Bind C-c M-p to slime-repl-set-package.
	(slime-easy-menu): Add entry for slime-repl-set-package.

2004-01-23  Michael Weber  <michaelw@foldr.org>

	* slime.el (slime-repl-set-package): New command to set the
	package in the REPL buffer.

	* swank.lisp (set-package): Return the shortest nickname.

2004-01-23  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (sldb-disassemble): Was lost somewhere.

2004-01-22  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp: Replace defmethod by defimplementation where
	appropriate.
	(return-from-frame, restart-frame): Implement them.

2004-01-22  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* test.sh: Copy the ChangeLog file too.

	* swank-cmucl.lisp: Replace some defmethods with
	defimplementation.

	* swank-allegro.lisp (return-from-frame, restart-name): Implement
	interface (partly).

	* swank-openmcl.lisp (restart-frame, return-from-frame): Remove
	sldb-prefix.

	* swank-backend.lisp (return-from-frame, restart-frame):
	Are now interface functions.

	* swank.asd: Remove dependency on :sb-bsd-sockets.  Is already
	done in swank-sbcl.

	* swank-loader.lisp: Don't reference the swank package at
	read-time.

	* swank.lisp (completions): Never bind *package* to nil.  That's a
	type error in SBCL.
	(swank-debugger-hook): Flush the output streams and be careful
	when accessing *buffer-package*.
	(create-swank-server): Return the port of the serve socket.

	* swank-lispworks.lisp (interesting-frame-p): Don't print catch
	frames.
	(make-sigint-handler): New function.
	(emacs-connected): Use it.

	* slime.el (slime-lisp-implementation-type): New per connection
	variable.
	(slime-handle-oob): Handle debug-condition event.  Can be signaled
	CMUCL when cannot produce a backtrace.
	(slime-debugging-state): Don't pop up the debugger buffer an
	activate events. Annoying.
	(sldb-break-with-default-debugger): Switch to the output buffer
	before returning to the tty-debugger.
	(sldb-return-from-frame, sldb-restart-frame): Use slime-rex.
	(slime-list-connections, slime-short-state-name): New functions.

2004-01-20  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-complete-symbol): Insert the completed-prefix
	before deleting the original text to avoid troubles with left
	inserting markers.
	(slime-symbol-start-pos): Skip backward across symbol
	constituents.
	(slime-evaluating-state): [:read-sring] Save the window
	configuration.
	(slime-read-string-state): Don't handle activate events
	(troublesome if, e.g, complete-symbol is used from another
	buffer).  Restore the window configuration.
	(slime-repl-read-string): Goto the end of buffer.
	(slime-debugging-state): [:activate] Display the debugger buffer
	if not visible.
	(slime-to-lisp-filename, slime-from-lisp-filename)
	(slime-translate-to-lisp-filename-function)
	(slime-translate-from-lisp-filename-function, slime-compile-file)
	(slime-goto-location-buffer, slime-ed, slime-load-file): Support
	for remote filename translation (untested).

	* swank.lisp (create-swank-server): Take announce-fn as optional
	argument.

	* swank-allegro.lisp: Replace defmethod with defimplementation.
	(eval-in-frame): Implemented.

2004-01-20  Lasse Rasinen  <lrasinen@iki.fi>

	* slime.el (slime-prin1-to-string): Replacement for
	prin1-to-string that avoids escaping non-ascii characters in a
	way that the CL reader doesn't understand. Allows use of 8-bit
	characters in Lisp expressions with Emacs in unibyte-mode.

2004-01-20  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-eval-print-last-expression): Insert a newline
	before and after the result.
	(slime-easy-menu): Added menu items:
	"Eval Region", "Scratch Buffer", "Apropos Package..."
	Added some bold to default SLDB faces.

2004-01-19  Alan Ruttenberg  <alanr-l@mumble.net>
        *swank-openmcl.lisp in frame-catch-tags)
	(ppc32::catch-frame.catch-tag-cell -> 0)
	(ppc32::catch-frame.csp-cell -> 3. FIXME when this code is more
	stable in openMCL.

2004-01-19  Michael Weber  <michaelw@foldr.org>

	* slime.el (slime-close-all-sexp): New command to close all
	unmatched parens in the current defun. Bound to `C-c C-]'. With
	prefix argument, only operate in the region (for closing
	subforms).

2004-01-19  Luke Gorrie  <luke@bluetail.com>

	* swank-openmcl.lisp (thread-id, thread-name): Fixed silly bugs
	(thanks Marco Baringer).

	* swank-loader.lisp: Call (swank:warn-unimplemented-interfaces).

	* swank.lisp (ed-in-emacs): New command with the same interface
	as CL:ED.

	* swank-cmucl.lisp, swank-sbcl.lisp, swank-lispworks.lisp,
	swank-openmcl.lisp, swank-allegro.lisp, swank-clisp.lisp: Updated
	to use `defimplementation'.

	* swank-backend.lisp (definterface, defimplementation): New macros
	as sugar around defgeneric/defmethod. This supports conveniently
	supplying a default (on NO-APPLICABLE-METHOD).  Because the
	underly mechanism is still generic functions this doesn't break
	code that isn't updated.
	(warn-unimplemented-interfaces): Print a list of backend functions
	that are not implemented.
	(xref and list-callers): Defined interfaces for these functions.
	(describe-definition): New function that takes over from the many
	other describe-* functions called from apropos listing. Takes the
	type of definition (as returned by describe-symbol-for-emacs) as
	an argument.

	* slime.el (sldb-enable-styled-backtrace): This is now true by
	default.
	(slime-keys): Bound `slime-inspect' to `C-c I'.
	(slime): `M-x slime' now offers to keep existing connections
	alive (else disconnect them). If you disconnect them, the new
	connection gets to reuse the existing REPL.
	(slime-connection): Error if the connection is closed.
	(slime-handle-oob): New message (:ED WHAT) for `slime-ed'.
	(slime-display-output-buffer): Don't pop up the REPL if it is
	already visible in any frame.
	(slime-find-asd): Handle case where (buffer-file-name) is nil.
	(slime-ed): Elisp backend for (CL:ED WHAT).
	(slime-apropos): Add a summary line to apropos listings.
	(slime-print-apropos): Replaced `action' property (name of lisp
	describe function) with `type' (argument to pass to unified
	swank:describe-definition function).
	(slime-apropos-package): New command on `C-c P'. Presents apropos
	listing for all external (with prefix also internal) symbols in a
	package.

2004-01-18  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (sigint-handler): Bind a continue restart.
	(make-dspec-location): Handle strings like pathnames.
	Some multithreading support.

	* slime.el (compile-defun): Don't use keywords.  The keyword
	package is locked in Lispworks and causes the test-suite to hang.
	(slime-eval-with-transcript): Fix bug triggered when 'package' is
	a buffer local variable.  Reported by Janis Dzerins.
	(slime-batch-test): Wait until the connection is ready.

2004-01-18 Alan Ruttenberg  <alanr-l@mumble.net>

	* swank-openmcl: Implement frame-catch-tags. Added debugger
	functions sldb-restart-frame, sldb-return-from-frame. Should
	probably be added to backend.lisp but let's discuss first. Do
	other lisps support this?

	* slime.el sldb-restart-frame, sldb-return-from-frame

2004-01-18  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp (call-without-interrupts): Evaluate
	linux:SIGFOO at read time since the macro with-blocked-signals
	expects a fixnum.
	(compile-file-for-emacs): Comment fix.

2004-01-18  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-sbcl.lisp (make-fn-streams): Deleted.  Already defined in
	swank-gray.lisp.

	* swank.lisp (find-symbol-or-lose, format-arglist): New functions.
	(without-interrupts): New macro.
	(send-to-emacs): Use it.

	* swank-backend.lisp, swank-clisp.lisp, swank-lispworks.lisp,
	swank-openmcl.lisp, swank-sbcl.lisp, swank-allegro.lisp:
	(arglist-string): Refactor common code to swank.lisp.
	(call-without-interrupts, getpid): Are now generic functions.

	* slime.el (arglist): Test slot readers and closures.

	* swank-cmucl.lisp (arglist-string): Use
	pcl:generic-function-lambda-list for generic functions.  Handle
	closures.  Print arglist in lower case.
	(inspected-parts-of-value-cell): Was lost during the inspector
	refactoring.

2004-01-18  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp (compile-file-for-emacs,
	split-compiler-note-line): Revert last change.
	(handle-notification-condition): Don't signal the condition.
	(*compiler-note-line-regexp*): Fix and rewrite it as extended
	regexp.

	* slime.el (slime-changelog-date): Use file-truename of
	byte-compile-current-file.

2004-01-17  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-format-arglist): Add some sanity checks and
	print zero argument functions nicer.  Suggested by Ivan Boldyrev.
	(slime-test-expect): Take test predicate as argument.
	(arglist): Test generic functions.

	* swank-cmucl.lisp (arglist-string): Handle generic functions
	better.  Reported by Ivan Boldyrev.

2004-01-16  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp: Multiprocessing support.

	* swank-openmcl.lisp, swank-cmucl.lisp, swank-backend.lisp,
	swank.lisp: Refactor inspector code.

	* swank.lisp (changelog-date): Use *compile-file-truename* instead
	of *compile-file-pathname*.
	(with-I/O-lock, with-a-connection): The usual CLISP fixes.
	(create-swank-server): Patch by Marco Baringer <mb@bese.it>.
	Bring it back again.
	(create-connection): Use return the dedicated output stream if
	available.

	* slime.el: Numerous REPL related fixes.
	(slime-update-state-name): Take state as argument.
	(slime-repl-beginning-of-defun, slime-repl-end-of-defun): Fix
	typos.
	(sldb-insert-restarts): Remove duplicate definition.

2004-01-16  Luke Gorrie  <luke@bluetail.com>

	* swank-openmcl.lisp: Multiprocessing support.

	* swank.lisp (changelog-date): make-pathname portability fix
	(from alanr).
	(with-io-redirection): Use (current-connection) instead of
	*dispatching-connection* (from alanr).

	* slime.el (slime-init-output-buffer): XEmacs portability fix, and
	use header-line-format to show info about Lisp in Emacs21.

2004-01-15  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-sbcl.lisp, swank-cmucl.lisp (remove-input-handlers): New
	method.

	* swank-allegro.lisp (excl:stream-read-char-no-hang): Import it.
	(emacs-connected): Add default method.  The method for
	no-applicable-method doesn't seem to work.  ACL bug?

	* swank-loader.lisp (compile-files-if-needed-serially): Don't
	handle compilation errors.  We must compile everything because
	changelog-date requires *compile-file-truename*.

	* slime.el: (slime-changelog-date)
	(slime-check-protocol-version): New functions.
	(slime-handle-oob): Handle :check-protocol-version event.
	(slime-init-output-buffer): Print some info about the remote Lisp.
	(slime-connect): Use it.
	(slime-note-transcript-start): Renamed from
	slime-insert-transcript-delimiter.
	(slime-note-transcript-end): New function.
	(slime-with-output-end-mark, slime-repl-insert-prompt)
	(slime-repl-show-result, slime-compile-file)
	(slime-show-evaluation-result): Insert output from eval commands
	after the prompt and asynchronous output before the prompt.  Needs
	documentation.
	(repl-test, repl-read, interactive-eval-output): New tests.
	(slime-flush-output): Accept output from all processes.

	* swank.lisp (serve-requests): New function.
	(setup-server): Use it.
	(start-server): Pass backgroud to setup-server.
	(create-connection): Check the protocol version.
	(changelog-date): New function.
	(make-output-function): Use write-string instead of princ.

	* swank-backend.lisp (remove-input-handlers): New function.

2004-01-15  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-aux-connect, slime-handle-oob): Support for
	(:open-aux-connection port) message where Lisp requests that
	Emacs make a connection. These are "auxiliary" connections which
	don't (or at least shouldn't) have their own REPL etc.

	* swank.lisp: New support for multiprocessing and multiple
	connections + commentary.
	(with-a-connection): Macro to execute some forms "with a
	connection". This is used in the debugger hook to automatically
	create a temporary connection if needed (i.e. if the current
	thread doesn't already have one).
	(open-aux-connection): Helper function to create an extra
	connection to Emacs.

	* swank-sbcl.lisp: Implemented multiprocessing. Not perfect.

	* swank-cmucl.lisp: Implemented new multiprocessing interface.
	(create-socket): Make FDs non-blocking when multiprocessing is
	enabled.
	(startup-multiprocessing): Set *swank-in-background* to :spawn.

	* swank-backend.lisp: Changed multiprocessing interface.

2004-01-15  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp (with-blocked-signals): New macro.
	(without-interrupts): Use it.
	(*use-dedicated-output-stream*, *redirect-output*): Don't set them
	here, use the default settings.
	Make :linux one of *features* if we find the "LINUX" package.

2004-01-14  Luke Gorrie  <luke@bluetail.com>

	* swank-openmcl.lisp (emacs-connected): Typo fix (missing
	close-paren).

2004-01-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-input-complete-p): Tolerate extra close parens.
	(slime-idle-state): Don't active the repl.
	(slime-insert-transcript-delimiter): Insert output before prompt.
	(slime-open-stream-to-lisp): Initialize the process-buffer with
	the connection buffer.
	(slime-repl-activate): Deleted.
	(slime-repl-eval-string, slime-repl-show-result)
	(slime-repl-show-abort): Better handling of abortion.
	(slime-compile-file): Insert output before prompt.

	* swank-lispworks.lisp (create-socket): Fix condition message.

	* swank-openmcl.lisp (*swank-in-background*): Set to :spawn.
	(emacs-connected): Initialize ccl::*interactive-abort-process*.

	* swank.lisp (*swank-in-background*): New variable.
	(start-server): Start swank in background, depending on
	*swank-in-background*.

	* swank-cmucl.lisp, swank-sbcl.lisp (*swank-in-background*): Set
	to :fd-handler.

	* swank-clisp.lisp (accept-connection): Remove superfluous call to
	socket-wait.

	New more direct socket interface.  The new interface is closer to
	the functions provided by the implementations.  For Lispworks we
	use some non-exported functions to get a sane interface.  The
	interface also includes add-input-handler and a spawn function
	(not used yet).  The idea is that most of the logic can be shared
	between similar backends.

	* swank-gray.lisp (make-fn-streams): New function.
	(stream-read-char-no-hang, stream-read-char-will-hang-p): Moved to
	here from swank-clisp.lisp.

	* swank-allegro.lisp, swank-clisp.lisp, swank-cmucl.lisp,
	swank-lispworks.lisp, swank-openmcl.lisp, swank-sbcl.lisp:
	(create-socket, local-port, close-socket, accept-connection)
	(add-input-handler, spawn): Implement new socket interface.

	* swank.lisp (start-server, open-dedicated-output-stream &etc):
	Use new socket functions.

	* swank-backend.lisp (create-socket, local-port, close-socket)
	(accept-connection, add-input-handler, spawn): New functions.
	(accept-socket/stream, accept-socket/run): Deleted.

2004-01-13  Luke Gorrie  <luke@bluetail.com>

	* swank-clisp.lisp: Updated for new network interface but not
	tested! Probably slightly broken.

	* swank-lispworks.lisp: Updated for new network interface.
	(accept-socket/stream): This function is currently broken, so
	LispWorks can't use the dedicated output channel at the moment.

	* swank.lisp, swank-cmucl.lisp, swank-sbcl.lisp: Updated for new
	network interface.

	* swank-backend.lisp (accept-socket/stream, accept-socket/run):
	New functions replacing the ancient (over 24 hours!)
	`create-socket-server'. This interface is much simpler.

2004-01-12  Luke Gorrie  <luke@bluetail.com>

	* swank-lispworks.lisp: Partially updated for new backend
	interface, but not actually working. The sockets code is broken, I
	haven't grokked LispWorks the interface properly.

	* swank-gray.lisp (slime-input-stream, slime-output-buffer): Added
	slots to support the new `make-fn-streams' interface from
	swank-backend.lisp. These slots need to be initialized by the
	backend, see swank-sbcl.lisp for an example (very easy).

	* swank-sbcl.lisp (create-socket-server): Implemented new server
	interface.

	* slime.el (slime-handle-oob): Added
	:open-dedicated-output-stream message, previously implemented
	with :%apply.
	(slime-repl-read-string, slime-repl-return-string): Pass integer
	argument to `slime-repl-read-mode' to set rather than toggle.

	* swank.lisp: Taking over previously non-portable jobs:
	(start-server): Now only uses sockets code from the backend.
	(handle-request): Top-level request loop.
	(open-dedicated-output-stream): Dedicated output socket.
	(connection): New data structure that bundles together the things
	that constitute a connection to Emacs: socket-level stream and
	user-level redirected streams.

	* swank-cmucl.lisp (create-socket-server): Generic TCP server
	driven by SERVE-EVENT.
	(serve-one-request, open-stream-to-emacs): Deleted. Now handled
	portably in swank.lisp.
	(make-fn-streams): Implement new stream-redirection interface.
	(slime-input-stream): New slot referencing output sibling, so it
	can be forced before input requests.

	* swank-backend.lisp (create-socket-server): Generic
	callback-driven TCP server interface. Replaces
	`create-swank-server', with the higher-level logic moved into
	swank.lisp.
	(emacs-connected): Invoked when Emacs initially connects, as a
	hook for backend implementations.
	(make-fn-streams): Interface for creating pairs of input/output
	streams that are backended by callback functions. Used to
	implement redirected-via-Emacs standard I/O streams.

2004-01-12  Lawrence Mitchell  <wence@gmx.li>

	* slime.el (slime-events-buffer): Set `hs-block-start-regexp'
	before running `hs-minor-mode'.

2004-01-10  Luke Gorrie  <luke@bluetail.com>

	* slime.el (package-updating): Expected package is now a list (can
	be any), since the shortest nickname is not
	standardized. e.g. USER or CL-USER for COMMON-LISP-USER.

	* swank-cmucl.lisp: Don't enable xref (let the user decide).
	(set-fd-non-blocking): Removed unused function.
	Miscellaneous refactoring of the networking code.

	* slime.el (slime-complete-symbol): Use markers to hold the
	beginning and end of the completion prefix, in case looking up
	completions causes insertions (e.g. GC announcements).

2004-01-09  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-activate-state): Only update state name when
	`slime-default-connection' activates. This fixes an annoying
	"Selecting deleted buffer" bug that prevented SLIME from being
	restarted.
	(slime-next-connection): Fixed a bug where buffer-local connection
	bindings could get in the way and prevent the connection from
	actually changing.
	(slime-complete-restore-window-configuration): Wrap
	`set-window-configuration' in `save-excursion'. This fixes a
	problem where the cursor would end up in the wrong place after
	completion in XEmacs.

2004-01-09  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Place (require 'cl) inside a eval-and-compile.
	(slime-with-connection-buffer): Move definition upwards before the
	first use.
	(package-updateing): New test for package updates in the listeners.

	* swank.lisp (eval-region): Bind *package* outside the
	unwind-protect to detect updates.

	* swank-backend.lisp (debugger-info-for-emacs)
	(find-function-locations): Doc fix.

2004-01-09  Wolfgang Jenkner  <wjenkner@inode.at>

	* swank-clisp.lisp: Add methods for GRAY:STREAM-READ-CHAR-NO-HANG
	and for the CLISP specific GRAY:STREAM-READ-CHAR-WILL-HANG-P.
	This should fix the behaviour of SYS::READ-FORM.

2004-01-08  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-inspector-fontify): Function to insert a string
	in a particular inspector face. Replaces macro-code-generation
	function `slime-inspector-expand-fontify'. Fixes a byte-compile
	problem (macro was calling function not defined at compile-time).

2004-01-07  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Multisession internal improvements. Now there are
	three separate connection variables, in order of priority:
	  slime-dispatching-connection (dynamically-bound)
	  slime-buffer-connection      (buffer-local)
	  slime-default-connection     (global)
	The most specific one available is used. This is splitting
	`slime-connection' into multiple variables, so that you can be
	specific about what you want to assign (i.e. know if you're
	setting a dynamic binding or a buffer-local one).
	Fixed some related bugs.
	(slime-connection-close-hook): If default connection closes,
	select another connection.
	(slime-lisp-package): Initially CL-USER nickname instead of
	COMMON-LISP-USER (for REPL prompt).

	* slime.el (slime): Multisession support: with prefix argument,
	gives the option of keeping existing sessions and firing up an
	additional *inferior-lisp* to connect to. Each connection now has
	its own *slime-repl[<n>]* buffer.
	(slime-connection): Should now be read via the function of the
	same name. The accessor will check if the value is NIL, and if so
	use `slime-default-connection'.
	(slime-default-connection): The connection that will be used by
	default, i.e. unless `slime-connection' is bound. Renamed from
	`slime-primary-connection'.
	(slime-init-connection-state): When reconnecting, update the
	`slime-connection' binding in the REPL to use the new connection.
	(slime-repl-input-history, ...): REPL variables are now
	buffer-local.

2004-01-06  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (eval-string): New argument 'id'.  Used to identify
	the remote continuation.
	(log-event): New debugging function.
	(read-from-emacs, send-to-emacs): Use it.

	* slime.el: The new macro 'slime-rex' can now be used to evaluate
	sexps remotely.  It offers finer control what to do when the
	evaluation aborts.
	(slime-rex): New macro
	(slime-eval, slime-eval-async, sldb-continue)
	(sldb-invoke-restart): Use it.
	(slime-continuation-counter, slime-push-evaluating-state): New
	functions.
	(slime-output-buffer): Initialize markers.
	(sldb-mode): XEmacs doesn't like (add-hook (make-local-hook ...)).
	(slime-init-connection): New optional argument SELECT.
	(slime-def-connection-var): Workarounds for Emacs 20 reader bugs.
	Backquote is pretty broken Emacs 20.

2004-01-06  Ignas Mikalajunas <i.mikalajunas@mbt.lt>

	* swank-loader.lisp (user-init-file): Use merge-pathames.  Fix
	Windows support.

2004-01-05  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Multiple session support, i.e. Emacs can open
	multiple connections to Lisps. The guts is there, but
	user-interface is currently minimal.
	(slime-net-process): Replaced with slime-net-processes.
	(slime-net-send): Take process as argument.
	(slime-process-available-input): Poll all connections.
	(slime-connection): Current connection (process) to use for
	talking to Lisp. Can be bound dynamically or buffer-local.
	(slime-with-connection-buffer): Macro to enter the process-buffer
	of `slime-connection' to manipulate the local variables.
	(slime-stack-stack): Now buffer-local in the process-buffer of
	each connection.
	(slime-push-state, slime-pop-state): Operate on the stack inside
	`slime-connection's process-buffer.
	(slime-dispatch-event): Take optional process argument, to bind
	`slime-connection' appropriately when events arrive from the
	network.
	(slime-def-connection-var): Macro to define variables that are
	"connection-local". Such variables are used via (setf'able)
	accessor functions, and their real bindings exist as local
	variables in the process-buffers of connections. The accessors
	automatically work on `slime-connection'.
	(slime-lisp-features, slime-lisp-package, slime-pid, sldb-level):
	These variables are now connection-local.
	(slime-read-from-minibuffer): Inherit `slime-connection' as
	buffer-local so that we complete towards the right Lisp.
	(sldb-mode): Inherit `slime-connection' as buffer-local so that we
	debug towards the right Lisp.
	(get-sldb-buffer): New function to return (optionally create) the
	SLDB buffer for the current connection. Since multiple Lisps can
	be debugged simultaneously, the buffername now includes the
	connection number.
	(slime-connection-abort): New command to abort a connection
	attempt (don't use `slime-disconnect' anymore - that closes all
	connections).
	(slime-execute-tests): Honor `slime-test-debug-on-error'.
	(slime-next-connection): Cycle through open Lisp connections.

2004-01-02  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-display-output-buffer): Move the output markers
	to the end of the buffer.

	* swank-clisp.lisp (frame-do-venv): Rename the :symbol property to
	:name.
	(format-condition-for-emacs): Replaced with
	debugger-condition-for-emacs.
	(backtrace): Use print-with-frame-label.

	* swank-openmcl.lisp (format-condition-for-emacs): Replaced with
	debugger-condition-for-emacs.
	(backtrace): Use print-with-frame-label.
	(frame-locals): Rename the :symbol property to :name.

	* swank-lispworks.lisp (format-condition-for-emacs): Replaced with
	debugger-condition-for-emacs.
	(backtrace): Use print-with-frame-label.
	(frame-locals): Rename the :symbol property to :name.

	* swank-allegro.lisp (frame-locals): Rename the :symbol property
	to :name.
	(format-condition-for-emacs): Replaced with
	debugger-condition-for-emacs.
	(backtrace): Use print-with-frame-label.

	* swank-sbcl.lisp (tracedp, toggle-trace-fdefinition)
	(format-condition-for-emacs): Remove unused functions.
	(format-frame-for-emacs): Use print-with-frame-label.
	(compute-backtrace): Simplified.
	(backtrace): Return our frame numbers.
	(frame-locals): Rename the :symbol property to :name.  Remove the
	:validity property.

	* swank-cmucl.lisp (accept-loop, safe-definition-finding): Doc
	fix.
	(location-buffer=, file-xrefs-for-emacs)
	(sort-contexts-by-source-path, source-path<)
	(format-condition-for-emacs): Remove unused functions.
	(format-frame-for-emacs): Don't include the frame number in the
	description, but use the frame number for indentation. Update
	callers.
	(frame-locals): Rename the :symbol property to :name.

	* slime.el (slime-add-face): New function.
	(sldb-add-face): Use it.
	(sldb-setup): Some refactoring.
	(sldb-insert-condition): New function.  Factorized from
	sldb-setup.  Message and types are now separate.
	(sldb-insert-restarts): New function.  Factorized from sldb-setup.
	(sldb-insert-frame): Factorized from slime-insert-frames. The
	frame number in no longer part of the string describing the frame.
	(sldb-insert-frames): Use it.
	(sldb-show-frame-details): Print frame numbers.  Fix printing of
	catch tags.  Move to the start of the frame before at the
	beginning to get unfontified text properties.
	(sldb-inspect-condition): New command.
	(sldb-insert-locals): The :symbol property is now called :name.
	Fix locals with :id attribute.
	(slime-open-inspector): Fix the bugs I introduced last time.

	* swank.lisp (safe-condition-message): New function.
	(debugger-condition-for-emacs): Used to be
	format-condition-for-emacs in each backend.  Separate the
	condition message from the type description.  Update all backends
	accordingly.
	(print-with-frame-label): New function.

	* slime.el (slime-hyperspec-lookup): New function.

2004-01-02  Wolfgang Jenkner <wjenkner@inode.at>

	* swank-clisp.lisp: New file.  Merged with Vladimir's version.

	* xref.lisp: New file.  Used by swank-clisp.

	* swank-loader.lisp (user-init-file): Add CLISP files.

	* swank.lisp (eval-region, tokenize-completion): Modify loops a
	bit to make CLISP happy.

	* swank-backend.lisp (with-compilation-hooks): Replace () with
	(&rest _) to make CLISP happy.

	* slime.el (slime-goto-source-location): Support for CLISP style
	line numbers. Split it up.
	(slime-goto-location-buffer, slime-goto-location-position): New
	functions.
	(slime-load-system): Use slime-display-output-buffer.
	(slime-repl-mode): Disable conservative scrolling. Not sure if it
	was a good idea.
	(sldb-insert-frames, sldb-show-frame-details, sldb-list-locals):
	Minor fixes.
	(sldb-insert-locals): Renamed from sldb-princ-locals.
	(sldb-invoke-restart): Use slime-eval instead of
	slime-oneway-eval, because interactive restarts may read input.
	(slime-open-inspector): Minor indentation fixes.
	(slime-net-output-funcall): Removed.  Was unused.

2003-12-19 Alan Ruttenberg <alanr-l@mumble.net>

	* slime.el 1.157 fix bug in sldb-princ-locals I introduced when
	adding fonts to sldb

2003-12-19 Alan Ruttenberg <alanr-l@mumble.net>

	* swank-openmcl.lisp 1.42 in request-loop register output stream
	to be periodically slushed per Gary Byer's email.
	* slime.el 1.156 slime-goto-source-location. Sometimes source
	information is recorded but it isn't a standard "def" in that
	case, don't error out, just look for the most likely place for the
	definition.

2003-12-19  Luke Gorrie  <luke@bluetail.com>

	* null-swank-impl.lisp: Deleted this old file. See
	swank-backend.lisp instead.

2003-12-18 Alan Ruttenberg <alanr-l@mumble.net>
	* swank-openmcl.lisp 1.41
	in openmcl (break) now goes into slime debugger.
	(setq swank:*break-in-sldb* nil) to disable that.

2003-12-17 Alan Ruttenberg <alanr-l@mumble.net>

        * slime.el 1.155 Allow font choices for backtrack. Add group for
	customizing them: sldb.  Whole thing is enabled with
	sldb-enable-styled-backtrace which is off by default, for now.

	Try
	 '(sldb-condition-face
	    ((t (:foreground "DarkSlateGray" :weight bold))))
	 '(sldb-detailed-frame-line-face
	     ((t (:foreground "brown" :weight bold :height 1.2))))
	 '(sldb-local-name-face ((t (:weight bold))))
	 '(sldb-restart-face ((t (:foreground "DarkBlue" :weight bold))))
	 '(sldb-restart-number-face ((t (:underline t :weight bold))))
	 '(sldb-restart-type-face
	   ((t (:foreground "DarkSlateGrey" :weight bold))))
	 '(sldb-section-face ((t (:weight bold :height 1.2))))
	 '(sldb-selected-frame-line-face
	    ((t (:foreground "brown" :weight bold :height 1.2))))
	 '(sldb-topline-face
	      ((t (:foreground "brown" :weight bold :height 1.2))))

2003-12-17 Alan Ruttenberg <alanr-l@mumble.net>

         slime.el 1.154
	Allow some face choices in the inspector. Try
	 '(slime-inspector-label-face ((t (:weight bold))))
	 '(slime-inspector-topline-face
	   ((t (:foreground "brown" :weight bold :height 1.2))))
	 '(slime-inspector-type-face
	  ((t (:foreground "DarkRed" :weight bold))))
	You can also set slime-inspector-value-face

2003-12-17 Alan Ruttenberg <alanr-l@mumble.net>

	* swank-openmcl.lisp 1.40
	Fix an error with frame-source-location-for-emacs when the
	function was a method-function.
	Defined method-source-location that handles this case. You can
	still end up looking at the wrong definition, as the protocol
	doesn't allow passing back the qualifiers and specializers to look
	up the correct one in the file

.	* swank-openmcl.lisp 1.39
	Allow you to continue after interrupting.
	Properly set *swank-debugger-stack-frame* when interrupting.

	* slime.el 1.152
	sldb-continue now uses slime-oneway-eval

2003-12-17  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Better handling of asynchronous output.
	(slime-output-end): New variable.  Use this marker to insert
	output.  Insert asynchronous output inserted before the "input
	region" and before the prompt.
	(slime-show-last-output): Use it.
	(slime-repl-insert-prompt): Initialize it.
	(slime-last-output-start): Removed.
	(slime-flush-output): Increase delay to 20 usecs.
	(slime-with-output-end-mark): Renamed from
	slime-with-output-at-eob.  Insert a newline if needed.
	(slime-output-string, slime-repl-activate): Use it.
	(slime-repl-return): Ensure that slime-repl-input-end-mark points
	to a reasonable location.

2003-12-17  Luke Gorrie  <luke@bluetail.com>

	* HACKING: New file summarising our way of working.

2003-12-16  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-lisp-preferred-package-nicknames): Removed. Not
	very interesting (and slightly broken) now that shortest-nicknames
	are automatically used.
	(slime-output-oneway-evaluate-request): New function to evaluate
	an expression for side-effects (without getting a
	result).
	(slime-idle-state): Handle new :emacs-evaluate-oneway.
	(slime-debugging-state): Handle :emacs-evaluate-oneway.
	(sldb-invoke-restart): Use slime-oneway-eval. This avoids pushing
	an evaluating state (which will be aborted, and print an unnecessary
	message saying so).
	(sldb-break-with-default-debugger): New command to break into the
	default TTY debugger. Bound to 'B' in *sldb*.
	(slime-read-string-state): Added :emacs-evaluate-oneway.

	* swank.lisp (invoke-nth-restart-for-emacs): Wrapper around
	INVOKE-NTH-RESTART that checks that Lisp and Emacs agree on the
	debug level. This detects and ignores old restart requests when
	several are sent at once (possible because of new oneway-eval
	feature).
	(oneway-eval-string): New function to evaluate a string without
	sending a result, and with *DEBUGGER-HOOK* bound to NIL. (The
	debugger hook is inhibited to avoid state conflicts.)

2003-12-15  Luke Gorrie  <luke@bluetail.com>

	* swank-openmcl.lisp (ccl::*warn-if-redefine-kernel*): Support for
	interrupting the listener (by Alan Ruttenberg).

2003-12-15  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp *start-swank-in-background*: Set to t by default.

	* slime.el (slime-eval-last-expression-display-output): New
	command.  Bound to C-x M-e.  Suggested by Nicolas Neuss.
	(slime-display-output-buffer): New function.
	(slime-slime-compile-file): Use it.

2003-12-15  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (*processing-rpc*, *multiprocessing-enabled*,
	*debugger-hook-passback*): New variables.
	(with-conversation-lock, with-I/O-lock): New macros.
	(read-next-form): Use with-I/O-lock.
	(send-to-emacs): Use with-I/O-lock.
	(swank-debugger-hook): When called asynchronously (i.e. not
	during RPC) and multiprocessing is enabled, suspend until
	acknowleged by Emacs.
	(install-global-debugger-hook): Install a SLIME-DEBUGGER-FUNCTION
	globally on *DEBUGGER-HOOK*.
	(startup-multiprocessing-for-emacs): Called to initialize
	multiprocessing.
	(eval-string): Dynamically set the *PROCESSING-RPC* flag.
	(eval-string): Nasty hack with *DEBUGGER-HOOK-PASSBACK* to
	install debugger hook. Temporary, I swear!
	(eval-region, shortest-package-nickname): Report the shortest
	package nickname to Emacs (for the REPL prompt). Patch from Marco
	Baringer.

	* swank-backend.lisp: Defined multiprocessing interface.

	* swank-cmucl.lisp: Implmemented the multiprocessing interface.

	* slime.el (slime-multiprocessing): When true, use
	multiprocessing in Lisp if available.
	(slime-global-debugger-hook): When true, globally set
	*debugger-hook* to use the SLIME debugger. For use with
	SERVE-EVENT and multiprocessing.
	(slime-handle-oob): Handle :AWAITING-GOAHEAD message from threads
	that have suspended to wait for Emacs's attention.
	(slime-give-goahead): New command to allow a suspended thread to
	continue (bound to RET in the thread-control-panel).
	(slime-thread-control-panel): New command to display a buffer
	showing all threads that are suspending waiting for Emacs's
	attention. Bound to `C-c C-x t'.
	(slime-popup-thread-control-panel): When true, automatically
	popup the thread-control buffer when a new thread suspends.

2003-12-14  Alan Ruttenberg <alanr-l@mumble.net>

	* swank-openmcl.lisp (eval-in-frame, inspect-object and friends):
	Most of this is copied from swank-cmucl. The parts between &&&&&
	are what I added for openmcl. I piggyback off the inspector which
	is shipped with openmcl, so inspecting won't look the same as it
	would in cmucl, I imagine. Still, it's a start.  eval in frame
	uses frame-locals to get bindings so if you have debug settings
	low or don't have *save-local-symbols* set you won't be able to
	evaluate.

2003-12-14  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (tracedp, toggle-trace-fdefinition): Moved
	to swank.lisp.

	* swank-allegro.lisp (create-swank-server): Add support for
	BACKGROUND and CLOSE argument.
	(call-with-debugging-environment): Use excl::int-newest-frame to
	avoid the kludge with *break-hook*.
	(sldb-abort): New function.
	(frame-source-location-for-emacs): Dummy definition.
	(compile-file-for-emacs): The argument is called
	:load-after-compile and not :load.
	(xref-results-for-emacs): Use dolist instead of loop.

	* swank-openmcl.lisp (create-swank-server): Add support for
	BACKGROUND and CLOSE argument.
	(open-stream-to-emacs): Support for dedicated output stream.

	* swank.lisp: *start-swank-in-background*,
	*close-swank-socket-after-setup*, *use-dedicated-output-stream*:
	Moved here from swank-cmucl.
	(sldb-continue): Don't pass the condition as argument, because
	that doesn't work with Allegro.
	(toggle-trace-fdefinition, tracedp): Replace backend specific code
	with portable, but ugly, calls to eval.

	* swank-cmucl.lisp (compile-system-for-emacs): Add method for
	CMUCL.

	* slime.el (slime-goto-source-location): Better regexp for package
	qualified symbols.  Allow dashes in the name and two colons.
	Reported by Alan Ruttenberg.

2003-12-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-openmcl.lisp (create-swank-server): Interrupt the right
	thread.  Patch by Alan Ruttenberg.  Not yet enabled, due to lack
	of test platform.
	(sldb-disassemble): Implement sldb-disassemble command.  Patch by
	Alan Ruttenberg.
	Remove #' from lambdas.

2003-12-12  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (create-swank-server): New keyword arguments to
	control the server: BACKGROUND and CLOSE.  fd-handlers are used if
	BACKGROUND is true.  If close CLOSE is true, close the socket
	after the first connection; keep it open otherwise.
	*start-swank-in-background*, *close-swank-socket-after-setup*: The
	default values of the corresponding arguments for
	create-swank-server.
	(compile-file-for-emacs): Don't load the fasl-file when the
	compilation failed.

	* swank-openmcl.lisp (toggle-trace-fdefinition, tracedp):
	Implement trace command.  Patch by Alan Ruttenberg.
	(find-function-locations, find-source-locations): Handle
	variables, and method-combinations.  General cleanups.
	(source-info-first-file-name): Removed.
	(list-callers): Fixed.
	(list-callers): Fixed some more.  method-name is not exported in
	0.14.  From Marco Baringer.
	(swank-accept-connection): Accept multiple connections.  Patch by
	Marco Baringer.

	* swank-loader.lisp (user-init-file): Use homedir's truename.
	Reported by Friedrich Dominicus.

	* slime.el (slime-repl-current-input): Don't remove the final
	newline if we are in reading state.
	(slime-goto-source-location): Regex-quote the function-name and
	handle package prefixes.  Reported by Alan Ruttenberg.
	(slime-output-string): Insert asynchronous output before the
	prompt.

2003-12-12  Daniel Barlow  <dan@telent.net>

	* swank-source-path-parser.lisp: new file, excerpting part of
	swank-cmucl.lisp to where SBCL can find it as well.

2003-12-11  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-one-line-ify): New function to convert
	multi-line strings to one-liners by replacing any newline
	followed by indentation by a single space.
	(slime-xrefs-for-notes): Use it.

2003-12-11  Daniel Barlow  <dan@telent.net>

	* swank-sbcl.lisp (compiler-note-location): replace with
	thinly-ported version from the CMUCL backend which understands
	:lisp as a pathname

	* slime.el (slime-xrefs-for-notes): a little more temporary
	variables, a little less cdr.  Should be slightly faster on
	big systems
	(slime-goto-next-xref): set window point as well as buffer point -
	now works in GNU Emacs 21.2.1

	* swank.lisp (swank-compiler): new function abstracts commonality
	between swank-compile-{file, string}.
	(swank-load-system): call swank-compiler to load asdf system

	* swank-sbcl.lisp (compiler-note-location and elsewhere):
	remove all trace of *compile-filename*
	(compile-*-for-emacs): shorten

	* swank-backend.lisp (call-with-compilation-hooks): new GF
	should set up all appropriate error condition loggers etc
	to do a compilation preserving the notes.  Implement for
	sbcl, cmucl

	* slime.el (slime-find-asd, slime-load-system): new command
	to compile and load an ASDF system with all the usual compiler
	notes and stuff
	(slime-compilation-finished): if more than one file has new
	errors/notes, create an xref buffer to show them all
	(slime-remove-old-overlays): bug fix: now removes overlays even
	at start of buffer
	(slime-overlay-note): do nothing quietly if
	slime-choose-overlay-region returns nil
	(slime-choose-overlay-region): return nil if note has no location

2003-12-11  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-repl-previous-prompt, slime-repl-next-prompt):
	New commands.  Suggested by HÃ¥kon Alstadheim.
	(slime-repl-beginning-of-defun, slime-repl-end-of-defun): New
	commands.  Suggested by Andreas Fuchs.
	(slime-repl-insert-prompt): Mark the prompt with a
	slime-repl-prompt text property.
	(slime-repl-eol): New function. Mostly for symmetry.
	(slime-repl-in-input-area-p, slime-repl-at-prompt-end-p): New
	predicates.
	(slime-repl-find-prompt, slime-search-property-change-fn): New
	functions.
	(slime-ir1-expand): New command.

	* swank-cmucl.lisp (accept-connection, request-loop): Don't use
	fd-handlers. The code for the request-loop itself is now almost
	the same as in the Allegro version.
	(print-ir1-converted-blocks, expand-ir1-top-level): New functions.

2003-12-10  Daniel Barlow  <dan@telent.net>

	* swank-sbcl.lisp (serve-request): more fiddling with serve-event
	descriptors

	* slime.el (slime-repl-return): slime-check-connected, otherwise
	pressing Return in an unconnected repl gets a bit weird

2003-12-10  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp, swank-lispworks.lisp, swank-openmcl.lisp,
	swank-sbcl.lisp (create-swank-server): Accept an announce-function
	keyword argument.

	* swank.lisp (start-server): Pass an announce callback function to
	create-swank-server.  Works better with single threaded
	implementations.
	(announce-server-port, simple-announce-function): New functions.
	(alistify): Doc fix.

	* swank-cmucl.lisp (create-swank-server): Use announce callback.
	(sldb-disassemble): New function.

	* slime.el (sldb-disassemble): New command. Bound to D.

2003-12-08  Luke Gorrie  <luke@bluetail.com>

	* swank-cmucl.lisp (*debug-definition-finding*): Now nil by
	default, so that errors while looking for definitions are printed
	as a message and not debugged.

	* slime.el (slime-read-from-minibuffer): Now the only
	completing-read function, stale ones deleted.

2003-12-07  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-prune-initial-frames): Use regexp-heuristics and
	the '--more--' token to avoid showing the user Swank-internal
	backtrace frames initially.
	(slime-repl-current-input): Don't include the final newline
	character, to make backtraces prettier.
	(slime-autodoc): Fixed annoying case where autodocs would be
	fetched in a loop for undocumented symbols.

	* swank.lisp (compound-prefix-match): New name and rewritten for
	speed. Completion is much faster now.
	(*sldb-initial-frames*): Send up to this many (default 20)
	backtrace frames to Emacs when entering the debugger.

2003-12-07  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp, swank-backend.lisp, swank-cmucl.lisp,
	swank-lispworks.lisp, swank-openmcl.lisp, swank-sbcl.lisp
	(function-source-locations): Make it at generic function.
	(function-source-location-for-emacs): Removed.  Fixes bug reported
	by Marco Baringer.

	* slime.el (slime-interactive-eval): Insert the result at point,
	if called with prefix argument.

2003-12-06  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-easy-menu): Added menubar support, contributed
	by Friedrich Dominicus.

2003-12-06  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-allegro.lisp: New file.

	* swank-loader.lisp (user-init-file): Translate logical
	pathnames.  Reported by Friedrich Dominicus.

	* swank-sbcl.lisp (handle-notification-condition): Don't ignore
	warnings without context.
	(compiler-note-location, brief-compiler-message-for-emacs,
	compiler-note-location): Handle null context.
	(compile-file-for-emacs): Bind *compile-filename* and load the
	fasl file only if it exists.
	(function-source-location): The name argument is now optional and
	should be a symbol.
	(find-function-locations): Return errors as a list of one error.
	(call-with-debugging-environment): Set *print-level* to 4 and
	*print-length* to 10.  (Both where nil.)
	(source-location-for-emacs): Fall back to the location of the
	function, if there is no debug-block-info.
	(safe-source-location-for-emacs): Don't catch all conditions; only
	errors.
	*compile-filename*: New variable
	(open-listener): Don't make the socket non-blocking.

	* slime.el (slime-eval/compile-defun-dwim): New command.
	Suggested by "jan" <janmar@iprimus.com.au>.

2003-12-04  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-debugging-state): Don't set sldb-level after
	sldb-setup. Breaks the test-suite.
	(slime-eval-defun): Fix typos.
	(slime-xref-buffer, slime-goto-next-xref): Updated for the new
	xref code.
	(sldb-inspect-in-frame): Query with the sexp at point as initial
	value.
	(sldb-step): New command. Bound to s.

	* swank-cmucl.lisp (format-frame-for-emacs, compute-backtrace,
	backtrace): Don't send CMUCL's frame numbers to Emacs, use our own
	numbering.
	(set-step-breakpoints, sldb-step): Lisp side of sldb-step command.

2003-12-04  Luke Gorrie  <luke@bluetail.com>

	* hyperspec.el: Updated URL to point to a live copy of the
	hyperspec at lispworks.com, because the one on xanalys.com has
	disappeared. Patch from Vincent Arkesteijn on the ilisp-devel
	mailing list.

2003-12-04  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (toggle-trace-fdefinition, tracedp): New
	support functions for toggle-trace command.  Written by Alain
	Picard.
	(compile-from-temp-file): Don't delete the binary file if there is
	none.
	(lispworks-severity): Map all ERRORs to :error.

	* slime.el (slime-eval-defun): Use slime-re-evaluate-defvar if the
	defun starts with "defvar".  C-M-x in elisp does this too.
	(slime-re-evaluate-defvar): Take the form as argument.

2003-12-03  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-debugging-state): Initialize the sldb-buffer if
	(/= sldb-level level).
	(slime-who-specializes): New command.

	* swank-cmucl.lisp (create-swank-server): Set reuse-address to t
	by default.
	(resolve-note-location): Add method for warnings in interpreted
	code.
	(who-specializes): New function.
	(dd-source-location): Handle case without constructors more
	correctly.
	(source-path-source-position): Skip ambigous entries in
	source-map.
	(source-location-from-code-location): Simplified.

2003-12-03  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-completing-read-internal): Fix from Sean
	O'Rourke.

2003-12-02  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-sbcl.lisp (find-function-locations): Return a non-empty
	list of source locations.

	* slime.el (slime-with-xref-buffer): Remove spurious comma. (Bug
	reported by Raymond Wiker).  Some reordering of the xref code.

	* swank.lisp (documentation-symbol): New optional argument for
	return value if the symbol is not documented.

2003-12-02  Sean O'Rourke  <sorourke@cs.ucsd.edu>

        * slime.el: (slime-repl-{clear-buffer,clear-output}): clear the
	last and entire output in the *slime-repl* buffer
	(slime-documentation): pop up a buffer with a symbol's
	documentation instead of its description, if found.
	(slime-complete-symbol): tweak the completion, taken from ilisp, to
	complete filenames inside strings.
	(slime-set-default-directory): also set *slime-repl*'s
	default-directory, so e.g. find-file makes sense.

2003-12-02  Daniel Barlow  <dan@telent.net>

	* slime.el (slime-with-xref-buffer): moved further up the file so
	it's defined before slime-show-xrefs needs it

	* swank-sbcl.lisp (function-source-location-for-emacs): return a
	list of source locations (one per method) when the request is
	for a GF.  This seems to make the elisp side popup a window
	to let the user select one.  Cool.

2003-12-01  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-[cmucl,sbcl,openmcl,lispworks].lisp (invoke-nth-restart):
	Use invoke-restart-interactively.

	* slime.el (slime-create-note-overlay, slime-sexp-depth): The
	'priority' property is unused. Remove it.

	* swank-openmcl.lisp (find-function-locations): Return all methods
	for generic functions. Doesn't work very well if multiple methods
	are in the same file.
	(swank-accept-connection): Don't create an extra thread, call
	request-loop directly.

2003-12-01  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-repl-return): Goto end of input area before
	inserting newline.
	(slime-autodoc-message-ok-p): Test to see if a documentation
	message should be printed (returns nil if the
	minibuffer/echo-area is already being used).
	(slime-symbol-at-point): Skip back over whitespace before
	looking for the symbol.
	(slime-autodoc-delay): New configurable to specify the delay
	before printing an autodoc message (default 0.2 secs).
	(slime-ensure-typeout-frame): New function to call create a
	typeout frame unless it already exists. Suitable to run on
	slime-mode-hook if you always want to have a typeout window.
	(slime-log-events): When nil, don't log events to
	*slime-events*. This works-around a problem Raymond Toy has when
	starting SLIME under XEmacs. Still investigating..

2003-11-29  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Rewrite the xref code to work with other source
	locations.
	(slime-edit-fdefinition): Use the xref window to display generic
	functions with methods.
	(slime-goto-source-location): New representation for source
	locations. Drop old code.
	(slime-list-callers, slime-list-callees): Use the xref window.
	Remove the slime-select-* stuff.
	(slime-describe-function): New command. Bound to C-c C-f.
	Primarily useful in Lispworks.
	(slime-complete-symbol): Display the completion window if the
	prefix is complete but not unique.
	(slime-forward-positioned-source-path): Enter the sexp only if the
	remaining sourcepath is not empty.
	(slime-read-symbol-name): New optional argument QUERY forces
	querying.

	* swank.lisp (group-xrefs): Handle unresolved source locations.
	(describe-symbol): Print something sensible about unknown symbols.

	* swank-cmucl.lisp: Use the new format for source locations.
	(find-function-locations): New function.  Replaces
	function-source-location-for-emacs.  Returns a list of
	source-locations.
	(resolve-note-location): Renamed from resolve-location.
	Simplified.
	(brief-compiler-message-for-emacs): Print the source context
	 (that's the thing after ==>).
	(who-xxxx): Take strings, not symbols, as arguments.
	(function-callees, function-callers): Use the same format as the
	who-xxx functions.  Support for byte-compiled stuff.
	(code-location-stream-position): Try to be clever is the source
	path doesn't match the form.
	(call-with-debugging-environment): Bind *print-readably* to nil.

	* swank-lispworks.lisp: Use the new format for source
	locations. Implement the find-function-locations.
	(list-callers, list-callers): New functions.

	* swank-sbcl.lisp, swank-openmcl.lisp: Use the new format for
	source locations and implement find-function-locations (just calls
	the old code).

2003-11-29  Daniel Barlow  <dan@telent.net>

	* swank-sbcl.lisp (source-location-for-emacs):
	sb-debug::print-description-to-string takes only two args, not
	three.  Now 'v' command works in sldb :-)

	* slime.el (slime-idle-state): added :debug as a valid transition

	* swank.lisp (slime-debugger-function): New.  Returns a function
	suitable for use as the value of *DEBUGGER-HOOK* to install the
	SLIME debugger globally.  Must be run from the *slime-repl* buffer
	or somewhere else that the slime streams are visible so that it
	can capture them.  e.g. for Araneida:
	PKG> (setf araneida:*restart-on-handler-errors*
	           (swank:slime-debugger-fucntion))

2003-11-29  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Some tweaking to the REPL.  slime-repl-input-end-mark
	is now always left inserting and slime-mark-input-end
	"deactivates" the end mark by moving it to the beginning of the
	buffer.
	(slime-goto-source-location): Next try for more uniform
	source-locations.  A source-location is now a structure with a
	"buffer-designator" and  "position-designator".  The buffer-designator
	open the file or buffer and the position-designator moves point to the
	right position.
	(slime-autodoc-mode): New command.
	(slime-find-fdefinitions): Experimental support for generic functions
	with methods.
	(slime-show-xrefs, slime-insert-xrefs, slime-goto-xref): Rewritten to
	work with more general source locations.

	* swank.lisp: Structure definitions for source-locations.
	(alistify, location-position<, group-xrefs): Utilities for xref
	support.

	* swank-cmucl.lisp (code-location-source-location): Renamed from
	safe-source-location-for-emacs.
	(code-location-from-source-location): Renamed from
	source-location-for-emacs.
	(find-fdefinitions, function-source-locations): New functions.
	(safe-definition-finding): New macro.

	* swank-lispworks.lisp: Xref support.
	(make-dspec-location): Updated for the new source-location format.

2003-11-29  Luke Gorrie  <luke@bluetail.com>

	* slime.el (complete-symbol, arglist): Updated test cases for new
	completion interface.

2003-11-28  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-complete-symbol): Use the new completion
	support from the Lisp side. Don't obscure minibuffer input with
	completion messages.

	* completer.el: Dead and buried! Replaced by half a page of Common
	Lisp. Thanks Bill Clementson for a motivational and well-deserved
	taunt.

	* swank.lisp (longest-completion): Compute the best partial
	completion for Emacs.

	* slime.el (slime-swank-port-file): Try (temp-directory),
	temporary-file-directory, or "/tmp/", depending on what
	is (f)bound.

2003-11-28  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp (make-dspec-location): Handle logical
	pathnames.  Reported by Alain Picard.

	* swank-sbcl.lisp, swank-cmucl.lisp: Support for output
	redirection to an Emacs buffer via a dedicated network stream.
	Can be enabled with *use-dedicated-output-stream*.

	* swank.lisp (slime-read-string, eval-string): Flush *emacs-io*.
	(eval-in-emacs): New function.

	* slime.el: Support for output from a dedicated socket.
	(slime-open-stream-to-lisp, slime-output-filter): New functions.
	Reorganized REPL code a bit.
	(slime-input-complete-p): Use vanilla forward-sexp, because
	slime-forward-sexp sometimes caused endless loops.
	(slime-disconnect): Close the output-stream-connection if present.
	(slime-handle-oob): A new :%apply event.  Executes arbitrary code;
	useful for bootstrapping.
	(slime-flush-output): New function.
	(slime-symbol-end-pos): Didn't work at all in Emacs20.  Just use
	point until someone commits a proper fix.
	Various uses of display-buffer: The second argument is different in
	XEmacs.
	(interrupt-bubbling-idiot): Reduce the timeout to 5 seconds.

2003-11-27  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-swank-port-file): Use `temporary-file-directory'
	instead of hardcoding "/tmp/".

2003-11-27  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-lispworks.lisp: New backend.

	* slime.el (slime-with-output-to-temp-buffer): Save the window
	configuration in a buffer local variable instead on a global
	stack.
	(slime-show-last-output): Behavior customizable with
	slime-show-last-output-function.  Various tweaking for better
	multi-frame support.

	* swank-backend.lisp: List exported symbols explicitly.

	* swank-cmucl.lisp (function-source-location): Better support for
	generic functions.

	* swank.lisp (briefly-describe-symbol-for-emacs): Don't return
	unbound symbols.
	(describe-symbol, describe-function): Support package-qualified
	strings.

	* swank-loader.lisp: *sysdep-pathnames*: Add Lispworks files.
	(compile-files-if-needed-serially): Compile all files in a
	compilation unit.

2003-11-27  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-complete-symbol): Make a bogus alist out of the
	completion set, for compatibility with XEmacs.

	* completer.el: Stolen^Wimported from ILISP version 1.4. This is
	one revision prior to their latest, where they added a (require)
	for some other ILISP code. I backed down a revision to make it
	stand-alone, but this may mean that putting SLIME in the load-path
	before ILISP will break ILISP. So, beware.
	(completer-message): Cut dependency on undefined ilisp constant
	testing for xemacs.

2003-11-27  Zach Beane  <xach@xach.com>

	* swank.lisp (completions): Complete compound symbols (see below).

	* slime.el (slime-complete-symbol): Use `completer' package to
	handle more sophisticated completions. This includes abbreviations
	like "m-v-b" => "multiple-value-bind". It also (somewhat scarily)
	redefines other standard Emacs completion functions with similar
	capabilities. See commentary in completer.erl for details.

2003-11-25  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-make-typeout-frame): New command to create a
	frame where commands can print messages that would otherwise go to
	the echo area.
	(slime-background-message): Function for printing "background"
	messages. Uses the "typeout-frame" if it exists.
	(slime-arglist): Print arglist with `slime-background-message'.
	(slime-message): Use typeout frame if it exists, but only for
	multi-line messages.

2003-11-25  Daniel Barlow  <dan@telent.net>

	* swank-sbcl.lisp: delete big chunk of leftover commented-out
	code

	* slime.el: arglist command to use slime-read-symbol-name,
	not slime-read-symbol

	* README: Minor updates for currency

2003-11-24  Luke Gorrie  <luke@bluetail.com>

	* swank-backend.lisp (compiler-condition): Removed use of
	:documentation slot option. That is not portable (to CMUCL 18e).

	* swank.lisp (eval-string-in-frame): Fixed symbol-visibility
	problem (thanks Lawrence Mitchell).

	* swank-sbcl.lisp (function-source-location): Use TRUENAME to
	resolve source file name (thanks Lawrence Mitchell).

	* slime.el (slime-goto-source-location): Fixes when finding
	definition by regexp: open the right file (was missed), and
	tweaked regexp to match more 'def' forms - especially
	`defmacro-mundanely' (hyphen wasn't allowed before).

2003-11-23  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-fetch-more-frames): Call swank:backtrace instead
	of (renamed) swank:backtrace-for-emacs.

	* swank-cmucl.lisp, swank-sbcl.lisp, swank-openmcl-lisp: Updated
	to use new debugger interfaces in swank-backend.lisp.

	* swank-backend.lisp (backtrace, eval-in-frame, frame-catch-tags,
	frame-locals, frame-source-location-for-emacs): More interface
	functions.

	* slime.el (slime-goto-source-location): Added optional `align-p'
	argument for :file and :emacs-buffer location types. This is for
	OpenMCL - unlike CMUCL its positions are not character-accurate so
	it needs to be aligned to the beginning of the sexp.
	(slime-connect): Don't delete a random window when *inferior-lisp*
	isn't visible.

	* swank-cmucl.lisp: Tidied up outline-minor-mode structure and
	added comments and docstrings.

	* swank-cmucl.lisp, swank-sbcl.lisp, swank-openmcl-lisp: Updated
	to use new debugger interface in swank-backend.lisp.

	* swank-backend.lisp (call-with-debugging-environment,
	sldb-condition, debugger-info-for-emacs): More callbacks defined.

	* swank.lisp: Tidied up outline-minor-mode structure, added
	comments and docstrings.
	(sldb-loop): Took over the main debugger loop.

	* swank-openmcl.lisp: Updated after refactoring of other backends
	(was broken).

	* slime.el (slime-goto-source-location): Align at beginning of
	sexp after (:file name pos) and (:emacs-buffer buffer pos).

	* swank-sbcl.lisp (describe-symbol-for-emacs): Don't ask for
	(documentation SYM 'class), CLHS says there isn't any 'class
	documentation (and SBCL warns).

	* swank.lisp, swank-cmucl.lisp, swank-sbcl.lisp: Refactored
	interface through swank-backend.lisp for: swank-compile-file,
	swank-compile-string, describe-symbol-for-emacs (apropos),
	macroexpand-all, arglist-string.

	* swank-backend.lisp: New file defining the interface between
	swank.lisp and the swank-*.lisp implementation files.

2003-11-22  Brian Mastenbrook  <bmastenb@cs.indiana.edu>

	* swank.asd: ASDF definition to load "swank-loader.lisp". This is
	useful for starting the Swank server in a separate Lisp and later
	connecting with Emacs. The file includes commentary.

2003-11-22  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-connect): Slightly reordered some window
	operations to ensure that *slime-repl* is popped up after `M-x
	slime-connect'.
	(slime-show-last-output): If the *slime-repl* buffer is already
	visible in any frame, don't change anything.

	* swank.lisp (listener-eval): Format results in *buffer-package*.
	Exporting (CREATE-SWANK-SERVER <port>). This function can be
	called directly to start a swank server, which you can then
	connect to with `M-x slime-connect'. It takes a port number as
	argument, but this can be zero to use a random available port.
	The function always returns the actual port number being used.

2003-11-19  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp: Better printing off return values.  In the REPL
	buffer we print now every value in a separate line and in the echo
	area separated by a comma.  We also print "; No value" for the
	degenerated case (values).  A new variable *sldb-pprint-frames*
	controls the printing of frames in the debugger. (Thanks Raymond
	Toy for the suggestions.)

	* swank-cmucl.lisp (format-frame-for-emacs): Bind *pretty-print*
	to *sldb-pprint-frames*.

	* slime.el: Window configuration are now saved on a stack, not in
	a single global variable.
	(slime-with-output-to-temp-buffer) We use now our own version of
	with-output-to-temp-buffer.  The default version is painfully
	incompatible between Emacs versions.  The version selects the
	temporary buffer and the behaivor of "q" is now more consistent
	(as suggested by Jan Rychter).
	(slime-connect): Hide the *inferior-lisp-buffer* when we are
	connected.
	sldb-mode-map: Bind n and p to sldb-down and sldb-up.
	(slime-edit-fdefinition-other-window): New function. Suggested by
	Christian Lynbech.

	* swank-loader.lisp (user-init-file): There is now a user init
	file (~/.swank.lisp).  It is loaded after the other files.

2003-11-16  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: [slime-keys] Override C-c C-r with slime-eval-region
	 (reported by Paolo Amoroso).

	* swank-loader.lisp: Compile and load gray stream stuff for SBCL
	and OpenMCL.

	* swank-openmcl.lisp, swank-sbcl.lisp: Import gray stream symbols.
	(without-interrupts*): New function.

	* swank.lisp (send-to-emacs): Protect the write operations by a
	without-interrupts, so that we don't trash the *cl-connection*
	buffer with partially written messages.

	* swank-cmucl.lisp (without-interrupts*): New function.

	* swank-gray.lisp (stream-write-char): Don't flush the buffer on
	newlines.

	* slime.el: Add some docstring.
	(interrupt-bubbling-idiot): New test.
	[slime-keys]:  Don't bind "\C- ".  Problematic on LinuxPPC.

2003-11-15  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Some tweaking for better scrolling in the *slime-repl*
	buffer (suggested by Jan Rychter).
	(slime-compile-file): Display the output buffer at the beginning.
	(slime-show-last-output): Include the prompt so that window-point
	is updated properly.
	(slime-with-output-at-eob): Update window-point if the buffer is
	visible.
	(slime-state/event-panic): Include the *slime-events* and
	*cl-connection* buffers in the report.

	* swank-cmucl.lisp (sos/out): Don't flush the buffer on newlines.

2003-11-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Imititate an "output-mark".  Output from Lisp should
	move point only if point is at the end of the buffer. (Thanks
	William Halliburton for the suggestion.)
	(slime-with-output-at-eob): New function.
	(slime-output-string, slime-repl-maybe-prompt): Use it.

	slime-repl-mode-map: Override "\C-\M-x".

	An experimental scratch buffer:
	(slime-eval-print-last-expression): New function.
	(slime-scratch-mode-map, slime-scratch-buffer,
	 slime-switch-to-scratch-buffer, slime-scratch): New functions.

	* swank-cmucl.lisp (resolve-location): Emacs buffer positions are
	1 based.  Add 1 to the 0 based file-position.

2003-11-13  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-connect): pop-to-buffer into *slime-repl* when
	we connect.

2003-11-13  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el, swank-cmucl.lisp, swank-sbcl.lisp, swank-openmcl: New
	representation for "source-locations".  Compiler notes have now a
	message, a severity, and a source-location field.  Compiler notes,
	edit-definition, and the debugger all use now the same
	representation for source-location.  CMUCL does the source-path to
	file-position translation at the Lisp side.  This works better
	with reader macros, in particular with backquote.  The SBCL
	backend still does the translation on the Emacs side.  OpenMCL
	support is probably totally broken at the moment

2003-11-13  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-repl-previous-input, slime-repl-next-input):
	When partial input has already been entered, the M-{p,n} REPL
	history commands only match lines that start with the
	already-entered prefix. This is comint-compatible behaviour which
	has been requested. The history commands also skip over line
	identical to the one already entered.
	(slime-complete-maybe-restore-window-confguration): Catch errors,
	so that we don't cause `pre-command-hook' to be killed.
	(slime-truncate-lines): If you set this to nil, slime won't set
	`truncate-lines' in buffers like sldb, apropos, etc.

2003-11-12  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-show-description): XEmacs portability: don't use
	`temp-buffer-show-hook'.
	(slime-inspect): Use `(slime-sexp-at-point)' as default inspection
	value (thanks Jan Rychter).

2003-11-10  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-post-command-hook): Inhibit unless (still) in
	slime-mode. Only call `slime-autodoc-post-command-hook' when
	`slime-autodoc-mode' is non-nil.
	(slime-setup-command-hooks): Use `make-local-hook' instead of
	`make-local-variable'.

2003-11-08  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: slime-highlight-face: Use the :inherit attribute if
	possible.
	(slime-face-inheritance-possible-p): New function.

	* slime.el (slime-repl-return): Only send the current input to
	Lisp if it is a complete expression, like inferior-slime-return.

	* swank.lisp (completions): Use *buffer-package* if no other
	package is given.

	* slime.el: Remove the non-working face inheriting stuff.
	Hardcode colors for slime-highlight-face and specify the :inherit
	attribute for slime-repl-output-face.  So Emacs21 will do the
	right thing and the others get at least a customizable face.

	* slime.el (slime-buffer-package): Try to find be the
	package name before resorting to slime-buffer-package.  Return nil
	and not "CL-USER" if the package cannot be determined.
	(slime-goto-location): Insert notes with a source path, but
	without filename or buffername, at point.  This can happen for
	warnings during macro expansion. (The macro expander is a
	interpreted function and doesn't have a filename or buffername.)
	(slime-show-note): Display 2 double quotes "" in the echo area for
	zero length messages.  SERIES tends to signal warnings with zero
	length messages.
	(slime-print-apropos): Add support for alien types.

	* swank-cmucl.lisp (briefly-describe-symbol-for-emacs): Add
	support for alien types.
	(source-path-file-position): Read the entire expression with a
	special readtable.  The readtable records source positions for
	each sub-expression in a hashtable.  Extract the sub-expression
	for the source path from the read object and lookup the
	sub-expression in the hashtable to find its source position.

	* swank-sbcl.lisp (swank-macroexpand-all): Implemented.

2003-11-06  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-autodoc-mode): When non-nil, display the
	argument list for the function-call near point each time the point
	moves in a slime-mode buffer. This is a first-cut; more useful
	context-sensitive help to follow (e.g. looking up variable
	documentation).
	(slime-autodoc-cache-type): Cache policy "autodoc" documentation:
	either nil (no caching), 'last (the default - cache most recent
	only), or 'all (cache everything on symbol plists forever).

	* slime.el: Convenience macros:
	(when-bind (var exp) &rest body)
	  => (let ((var exp)) (when var . body))
	(with-lexical-bindings (var1 ...) . body)
	  => (lexical-let ((var1 var1) ...) . body)

	* slime.el (slime, slime-lisp-package): Reset `slime-lisp-package'
	(the REPL package) when reconnecting.
	(slime-buffer-package): Return `slime-lisp-package' when the
	major-mode is `slime-repl-mode'.

2003-11-04  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-read-string-state): Add support for evaluation
	requests.
	(slime-repl-read-break): New command.
	alternative.
	slime-keys: XEmacs cannot rebind C-c C-g.  Use C-c C-b as an
	alternative.
	(slime-selector): XEmacs has no prompt argument for read-char.
	(slime-underline-color, slime-face-attributes): Make face
	definitions compatible with XEmacs and Emacs20.
	(slime-disconnect): Delete the buffer of the socket.
	(slime-net-connect): Prefix the connection buffer name with a
	space to avoid accidental deletion.

	* swank.lisp (slime-read-string): Send a :read-aborted event for
	non-local exits.
	(case-convert): Handle :invert case better.

2003-11-03  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-display-message-or-view,
	slime-remove-message-window): Display too long lines in a new
	window.  Add a temporary pre-command-hook to remove the multiline
	window before the next command is executed.

	(slime-complete-symbol): Save the window configuration before
	displaying the completions and try to restore it later.  The
	configuration is restored when: (a) the completion is unique (b) there
	are no completion.  It is also possible to delay the restoration until
	(c) certain characters, e.g, space or a closing paren, are inserted.

	(slime-selector): Don't abort when an unkown character is pressed;
	display a message and continue.  Similiar for ?\?.  Add a selector for
	the *sldb* buffer.

	(slbd-hook, sldb-xemacs-post-command-hook): Emulate Emacs'
	point-entered text property with a post-command hook.

	* swank.lisp (case-convert, find-symbol-designator): New
	functions.

	* swank-cmucl.lisp, swank-openmcl.lisp, swank-sbcl.lisp
	(arglist-string): Don't intern the function name.  Use
	find-symbol-designator instead.

2003-11-03  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-display-buffer-region): Hacked to fix completely
	inexplicable XEmacs problems.

2003-11-2  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* null-swank-impl.lisp, swank-cmucl.lisp, swank-openmcl.lisp,
	swank.lisp: Input redirection works now on the line level, like a
	tty.  Output streams are now line buffered.  We no longer compute
	the backtrace-length.

	* slime.el:
	(slime-repl-read-mode, slime-repl-read-string, slime-repl-return,
	slime-repl-send-string, slime-read-string-state,
	slime-activate-state): Reorganize input redirection.  We no longer
	work on the character level but on a line or region; more like a
	terminal.  This works better, because REPLs and debuggers are
	usually written with a line buffering tty in mind.
	(sldb-backtrace-length, slime-debugging-state,
	slime-evaluating-state, sldb-setup, sldb-mode, sldb-insert-frames,
	sldb-fetch-more-frames): Don't use backtrace-length.  Computing
	the length of the backtrace is (somewhat strangely) an expensive
	operation in CMUCL, e.g., it takes >30 seconds to compute the
	length when the yellow zone stack guard is hit.

2003-11-02  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-log-event): Added a *slime-events* buffer
	recording all state machine events. The buffer uses hideshow-mode
	to fold messages down to single lines.
	(slime-show-source-location): Bugfix: only create source-highlight
	overlay if the source was actually located.
	(slime-selector): Renamed from `slime-select' because that
	function name was already in use. Ooops!

	* swank.lisp (eval-string): force-output on *slime-output* before
	returning the result. This somewhat works around some trouble
	where output printed by lisp is being buffered too long.

	* slime.el (slime-lisp-package-translations): Association list of
	preferred package nicknames, for the REPL prompt. By default maps
	COMMON-LISP->CL and COMMON-LISP-USER->CL-USER.

2003-11-01  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-select): Added an extensible "Select" command,
	which I gather is a LispM/Martin-Cracauer knock-off. When invoked,
	the select command reads a single character and uses that to
	decide which buffer to switch to. New characters can be defined,
	and the currently availables ones can be seen with '?'. I have not
	assigned a key to Select, because it seems like a command that
	should have a global binding. I would suggest `C-c s'.

	* swank.lisp (*slime-features*): Variable remembering the FEATURES
	list.
	(sync-state-to-emacs): Update Emacs about any state changes -
	currently this just means changes to the FEATURES list.
	(eval-string): Call `sync-state-to-emacs' before sending result.
	(eval-region): With optional PACKAGE-UPDATE-P, if the evaluation
	changes the current package, tell Emacs about the new package.
	(listener-eval): Tell `eval-region' to notify Emacs of package
	changes, so that e.g. (in-package :swank) does the right thing
	when evaluated in the REPL.

	* slime.el (slime-repl-output-face, slime-repl-input-face): Face
	definitions for output printed by Lisp and for previous REPL user
	inputs, respectively. Defaulting the input face to bold rather
	than underline, because it looks better on multi-line input.
	(slime-handle-oob): Two new out-of-band messages
	(:new-features FEATURES) and (:new-package PACKAGE-NAME). These
	are used for Lisp to tell Emacs about changes to *FEATURES* and
	*PACKAGE* when appropriate.
	(slime-same-line-p): Better implementation (does what the name
	suggests).
	(slime-lisp-package): New variable keeping track of *PACKAGE* in
	Lisp -- or at least, the package to use for the REPL.
	(slime-repl-insert-prompt): The prompt now includes the package
	name.
	(slime-repl-bol): C-a in the REPL now stops at the prompt.
	(slime-repl-closing-return): C-RET & C-M-m now close all open
	lists and then send input in REPL.
	(slime-repl-newline-and-indent): C-j in REPL is now better with
	indentation (won't get confused by unmatched quotes etc appearing
	before the prompt).

2003-11-1  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-debugging-state): Save the window configuration
	in a state variable.
	sldb-saved-window-configuration: Removed.
	(slime-repl-mode): Use conservative scrolling.
	(slime-repl-insert-prompt): Set window-point after the prompt.
	(slime-repl-add-to-input-history): Don't add subsequent duplicates to
	the history.

	* swank.lisp (slime-read-char): Flush the output before reading.
	(listener-eval): Like eval region but set reader variables (*, **,
	*** etc.)

	* swank-openmcl.lisp, swank-sbcl.lisp: Implement stream-line-column.

	* swank-cmucl.lisp (slime-input-stream-misc-ops): Renamed from
	slime-input-stream-misc.

2003-10-31  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-repl-mode-map): Bound `slime-interrupt' on both
	C-c C-c and C-c C-g.

	* swank.lisp (interactive-eval): Evaluate in *buffer-package*.

	* slime.el: Tweaked debugger window management somewhat: the
	window configuration is saved when the debugger is first entered
	and then restored when the idle state is reached.

2003-10-31  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: (slime-repl-read-mode, slime-repl-read-xxx): New minor
	mode for stream character based input to Lisp.

	* swank.lisp: *read-input-catch-tag*, take-input, slime-read-char:
	Moved here from swank-cmucl.lisp.
	(defslimefun, defslimefun-unimplemented): Move macro definitions to
	the beginning of the file.

	* swank-cmucl.lisp: (slime-input-stream, slime-input-stream-read-char,
	lime-input-stream-misc): Character input stream from Emacs.
	(slime-input-stream/n-bin): Removed.

	* swank-openmcl.lisp, swank-sbcl.lisp: Gray stream based input
	redirection from Emacs.

2003-10-29  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el:
	Beginnings of a REPL-mode.
	Minor debugger cleanups.

	* swank.lisp:
	slime-read-error: New condition.
	(read-next-form): Re-signal the conditions as slime-read-errors.  And
	check the result of read-sequence (i.e. detect CMUCL's read-sequence
	bug).
	(sldb-continue, throw-to-toplevel): Was more or less the same in all
	backends.

	* swank-openmcl.lisp, swank-sbcl.lisp, swank-cmucl.lisp:
	(serve-request): Handle slime-read-errors and bind a
	slime-toplevel catcher.

	* swank-cmucl.lisp:
	(sldb-loop): Flush output at the beginning.
	(inspect-in-frame): New function.
	(frame-locals): Don't send the validity indicator across wire.  Too
	cmucl specific.

2003-10-29  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-net-sentinel): Only show a message about
	disconnection if the inferior-lisp is still running.
	(slime-interrupt, slime-quit): Only send the quit/interrupt
	message to Lisp if it is in fact evaluating something for us. This
	fixes a protocol bug reported by Paolo Amoroso.  Added (require
	'pp).

2003-10-28  James Bielman  <jamesjb@jamesjb.com>

	* null-swank-impl.lisp: New file.

	* swank-openmcl.lisp: Pre-refactoring updates to the OpenMCL backend:
	(map-backtrace): Renamed from DO-BACKTRACE.
	(frame-source-location-for-emacs): New function.
	(function-source-location-for-emacs): New function,

	* swank-openmcl.lisp: Docstring updates/additions.

2003-10-25  Luke Gorrie  <luke@bluetail.com>

	* Everywhere: Changed the connection setup to use a dynamic
	collision-free TCP port. The new protocol is this:

	  Emacs calls (swank:start-server FILENAME) via the
	    listener. FILENAME is /tmp/slime.${emacspid}
	  Lisp starts a TCP server on a dynamic available port and writes
	    the port number it gets to FILENAME.
	  Emacs asynchronously polls for FILENAME's creation. When it
	    exists, Emacs reads the port number, deletes the file, and makes
	    the connection.

	The advantage is that you can run multiple Emacsen each with an
	inferior lisp, and the port numbers will never collide and Emacs
	will always connect to the right lisp.

	All backends are updated, but only CMUCL and SBCL are
	tested. Therefore, OpenMCL is almost certainly broken just now.

	* slime.el (inferior-slime-closing-return): New command that
	closes all open lists and sends the result to Lisp. Bound to C-RET
	and (for people who use C-m for RET) C-M-m.
	(inferior-slime-indent-line): Improved indentation in the inferior
	list buffer.

2003-10-24  Luke Gorrie  <luke@bluetail.com>

	* slime.el (inferior-slime-return): Command bound to RET in
	inferior-slime-mode: only send the current input to Lisp if it is
	a complete expression (or prefix argument is given). Two reasons:
	it makes the input history contain complete expressions, and it
	lets us nicely indent multiple-line inputs. (Thanks Raymond Toy
	for the suggestions.)

2003-10-23  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-maybe-start-lisp): Restart inferior-lisp if the
	process has died.

	* swank-sbcl.lisp (accept-connection): Use a character stream to
	match swank.lisp.

2003-10-22  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp (setup-request-handler): Create a character
	stream.
	(read-next-form): Removed.

	* swank.lisp (read-next-form, send-to-emacs): Assume *emacs-io* is
	a character stream. Add the necessary char-code/code-char
	conversions.

	* slime.el: slime-keys: Add :sldb keywords for keys useful in the
	debugger.
	(slime-init-keymaps): Allow allow :sldb keywords.

	inferior-lisp-mode-hook: Display the inf-lisp buffer if there is
	some output.

	(slime-process-available-input): Start a timer to process any
	remaining input.
	(slime-dispatch-event): The timer should take care of any lost
	input. So don't process the available input here.  Remove the
	process-input argument.
	(slime-push-state, slime-pop-state, slime-activate-state,
	 slime-idle-state, slime-evaluating-state): Update callers.
	(slime-debugging-state): Remove the unwind-protect in the
	:debug-return clause.  Should not be necessary.

	sldb-mode-map: Define more slime-mode keys.

	(slime-time<, slime-time-add): Removed. Emacs-21 has equivalent time
	functions.
	(slime-sync-state-stack): Use Emacs-21 time-date functions.
	(seconds-to-time, time-less-p, time-add): Compatibility defuns.

2003-10-22  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime): With a prefix argument, prompt for the port
	number to use for communication with Lisp. This is remembered for
	future connections.

2003-10-22  Hannu Koivisto  <azure@iki.fi>

	* slime.el (slime-space): Now allows one to insert several spaces
	with a prefix argument.

2003-10-21  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-space): Don't give an error when not connected,
	to avoid feeping.

	* swank-sbcl.lisp (swank-compile-string): Include only one
	:SOURCE-PATH attribute in the plist, and replace the front element
	with a 0 (fixes a problem probably due to recent hacks to the
	elisp source-path lookups).

	* slime.el (inferior-slime-mode): New minor mode for use with
	`inferior-lisp-mode'. Defines a subset of the `slime-mode' keys
	which don't clash with comint (e.g. doesn't bind M-{p,n}).
	(slime-keys): List of keybinding specifications.
	(slime-find-buffer-package): If we don't find the "(in-package" by
	searching backwards, then try forwards too.

	* swank.lisp (completions): Fixed semantics: should now consider
	only/all completions that would not cause a read-error due to
	symbol visibility. Also avoiding duplicates and sorting on
	symbol-name.

2003-10-20  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (completions): Slight change of semantics: when a
	prefix-designator is package-qualified, like "swank:", only match
	symbols whose home-package matches the one given - ignore
	inherited symbols.

	* slime.el: Updated test suite to work with the different backends:
	(find-definition): Lookup definitions in swank.lisp.
	(arglist): Lookup arglists of functions in swank.lisp.

2003-10-20  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el (interactive-eval): Make test case independent of
	*print-case*.

2003-10-20  Luke Gorrie  <luke@bluetail.com>

	* swank-cmucl.lisp (clear-xref-info): Conditionalised
	xref:*who-is-called* and xref:*who-macroexpands* with
	#+CMU19. This makes SLIME compatible with CMUCL 18e, but also
	disables the `who-macroexpands' command in any CMUCL version that
	doesn't have the "19A" feature (which does break the command in
	some snapshot builds that can actually support it).

2003-10-20  Daniel Barlow  <dan@telent.net>

	* swank.lisp (*notes-database*): tyop fix

	* swank-sbcl.lisp (throw-to-toplevel): select TOPLEVEL restart
	instead of throwing to a catch that no longer exists

	* slime.el: change some strings containing 'CMUCL' to more
        backend-agnostic phrases

2003-10-19  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el, swank-cmucl.lisp, swank.lisp: First shoot at input
	redirection.

	* swank-sbcl.lisp, swank-openmcl.lisp: Bind *slime-input* and
	*slime-io* to dummy values.

2003-10-19  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime): Connection setup is now asynchronous, with
	retrying on a timer. This makes it possible to bring the server up
	by hand while debugging. `M-x slime' while already connected will
	cause the old connection to be dropped and a new one established.
	(slime-disconnect): New command to disconnect from Swank, or
	cancel asynchronous connection attempts when not yet connected.
	(slime-state/event-panic): Illegal events in the communication
	state machine now trigger a general panic that disconnects from
	Lisp, and displays a message describing what has happened. This is
	a bug situation.
	(slime-connect): Print a message during connection attempts unless
	the minibuffer is active (it's annoying to get messages while
	trying to enter commands).

2003-10-18  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Fix some bugs in the state machine and be a bit more
	careful when processing pending input.
	(slime-compile-region): New command.
	Some more tests.

2003-10-17  James Bielman  <jamesjb@jamesjb.com>

	* .cvsignore: Add OpenMCL and SBCL fasl file extensions.

	* swank-openmcl.lisp (who-calls): Fix bug where we would try to
	take the TRUENAME of NIL when source information isn't available
	for a caller.
	(backtrace-for-emacs): Clean up the backtrace code a bit in
	preparation for implementing FRAME-LOCALS.
	(frame-catch-tags): Implement a stub version of this.
	(frame-locals): Implemented fully for OpenMCL.

	* swank-loader.lisp (compile-files-if-needed-serially): Be a little
	more verbose when compiling files.

2003-10-17  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp, swank-sbcl.lisp, swank-openmcl.lisp,
	swank-cmucl.lisp: Move more stuff to swank.lisp.

2003-10-17  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-post-command-hook): Check that we are connected
	before trying to process input.
	(slime-net-connect): Handle `network-error' condition for XEmacs
	21.5. (Thanks Raymond Toy.)

	* swank-sbcl.lisp: Report style-warnings separately from notes
	(patch from Christophe Rhodes). Use REQUIRE to load sb-introspect
	instead of loading the source file (requires the sb-introspect
	library to be installed, which doesn't yet happen in the
	sourceforge-lagged SBCL anoncvs, but does in the real one).

	* slime.el (slime-style-warning-face): Added style-warnings, which
	are between a warning and a note in severity. (Patch from
	Christophe Rhodes).

	* test.sh: When the test fails to complete, print "crashed"
	instead of reporting nonsense.

2003-10-17  James Bielman  <jamesjb@jamesjb.com>

	* swank.lisp (apropos-symbols): Change back to using the standard
	2-argument APROPOS-LIST and check symbols explicitly when
	EXTERNAL-ONLY is true.
	Move loading of sys-dependent backend code into 'swank-loader'.

	* swank-sbcl.lisp: Moved declarations of *PREVIOUS-COMPILER-CONDITION*
	into 'swank.lisp' to kill warnings about undefined variables.

	* swank-openmcl.lisp (handle-compiler-warning): Use source position
	instead of function name for warning locations.
	(swank-compile-string): Compile into a temporary file instead of
	using COMPILE so finding warning positions works when using C-c C-c.
	(compute-backtrace): Don't display frames without a function.
	(apropos-list-for-emacs): Implement APROPOS.
	(who-calls): Implement WHO-CALLS.
	(completions): Implement COMPLETIONS.
	Use NIL instead of zero so FRESH-LINE does the right thing.

	* slime.el (slime-maybe-compile-swank): Removed function---compile
	the backend using 'swank-loader.lisp' instead.
	(slime-backend): Changed default backend to 'slime-loader'.
	(slime-lisp-binary-extension): Deleted as this is no longer needed.

	* swank-loader.lisp: New file.

2003-10-17  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-net-connect): Check that
	`set-process-coding-system' is fbound before calling it. This is
	needed in the XEmacs I built from sources.

2003-10-17  Daniel Barlow  <dan@telent.net>

	* swank-sbcl.lisp: Transplanted Helmut's serve-event server to
	replace the existing thread-using server.  SLIME now has no
	dependency on SB-THREAD

	* slime.el (slime-find-buffer-package): handle errors from (read)
	for the case where the buffer ends before the in-package form does
	(slime-set-package): insert missing comma
	(slime-goto-source-location): sbcl has a disagreement with emacs
	over the meaning of a character position.  Level up with
	C-M-f C-M-b

	* assorted typo fixes

2003-10-16  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-forward-source-path): Improved somewhat. Seems
	to work for all common cases except backquote. Backquote is
	tricky, because the source-paths are based on the reader's
	expansion, e.g.:
	* (let ((*print-pretty* nil))
	    (print (read-from-string "`(a ,@(b c) d)")))
	  -->
	  (COMMON-LISP::BACKQ-CONS (QUOTE A)
	                           (COMMON-LISP::BACKQ-APPEND (B C)
			                                      (QUOTE (D))))
	Must investigate whether we need to write a hairy
	backquote-traversing state machine or whether this is something
	that could be fixed in CMUCL.

	* swank*.lisp (with-trapping-compiler-notes): This macro is now
	defined here, and expands to a call to the backend-defined
	`call-trapping-compiler-notes' with the body wrapped in a
	lambda. This is to avoid swank.lisp referring to macros in the
	backends -- it gets compiled first so it thinks they're functions.

	* slime.el (slime-swank-connection-retries): New default value is
	`nil', which means unlimited retries (until user aborts). Retry
	interval also reduced from once per second to four times per
	second.

2003-10-16  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank-cmucl.lisp, swank.lisp: Fix CMUCL support.

2003-10-15  Daniel Barlow  <dan@telent.net>

	* swank.lisp: rearrange the backends.  rename swank.lisp to
	swank-cmucl.lisp, then create new swank.lisp which loads an
	appropriate backend according to *features*.  Next up,
	identify common functions in the backends and move them
	into swank.lisp

2003-10-15  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* slime.el: Inspector support.  list-callers, list-callees
	implemented without xref.

	* swank.lisp: Lisp side for inspector and list-callers,
	list-calees.  Better fdefinition finding for struct-accessors.


2003-10-15  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-point-moves-p): Macro for executing subforms and
	returning true if they move the point.

	* test.sh: New file to run the test suite in batch-mode. Will need
	a little extending to allow configuring the right variables to
	work with non-CMUCL backends.

	* slime.el: Set `indent-tabs-mode' to nil. This makes diffs look
	better.
	(slime-start-swank-server): Now passing the port number to
	SWANK:START-SERVER.
	(slime-evaluating-state): Debugging synchronous evaluations with
	recursive edits now works.
	(slime-forward-sexp): Added support for #|...|# reader comments.
	(sldb-hook): New hook for entry to the debugger (used for the test
	suite).
	(slime-run-tests): Reworked the testing framework. Now presents
	results in an outline-mode buffer, with only the subtrees
	containing failed tests expanded initially.
	(slime-check): Check-name can now be a string or
	format-control. (Test cases have been updated to take advantage of
	this.)
	(compile-defun): This test case now works for the case containing
	#|..|#
	(async-eval-debugging): New test case for recursively debugging
	asynchronous evaluation.

2003-10-15  Daniel Barlow  <dan@telent.net>

	* README.sbcl: new file

	* README: update for new backends, change of hosting provider

	* swank-sbcl.lisp: new file.
	New SWANK backend for Steel Bank Common Lisp, adapted from
	swank.lisp with bits of swank-openmcl.lisp

2003-10-12  Daniel Barlow  <dan@telent.net>

	* slime.el (sldb-mode-map): add mouse-2 clickability for areas
	in sldb buffers covered by the sldb-default-action property:
	restarts can now be mouse-activated

2003-09-28  James Bielman  <jamesjb@jamesjb.com>

	* swank-openmcl.lisp: New file, a Slime backend for OpenMCL 0.14.x.
	(condition-function-name): Figure out the name of methods correctly
	instead of passing a list to Emacs.

	* slime.el (slime-goto-location): Try to position notes based on
	some (questionable) regex searching if the :FUNCTION-NAME property
	is set.  Used in the OpenMCL backend which does not support source
	paths.

2003-09-29  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Fairly major hacking.
	Rewrote the evaluation mechanics: similar design but some macros
	to make it look more like a push-down automaton (which it really
	was!). Debugging Lisp no longer uses recursive edits, partly as a
	side-effect and partly to see if it's better this way.
	Removed the asynchronous-communication test cases that tested
	something we decided not to do.
	(slime-eval-string-async): Give a meaningful error message when
	trying to make a request while already busy.
	(slime-lisp-binary-extension): Uh oh, time to start taking out
	gratuitous CMUCL-isms. This variable renamed from
	`slime-cmucl-binary-extension'.
	(slime-backend): Name of the Lisp backend file, defaulting to
	"swank", but can be set to e.g. "swank-openmcl".

	* swank.lisp: Minor protocol changes to accomodate slime.el's
	changes above.

2003-09-28  Helmut Eller  <e9626484@stud3.tuwien.ac.at>

	* swank.lisp
	(getpid, set-package, set-default-directory): New functions.
	(slime-out-misc): Don't send empty strings.
	(*redirect-output*, read-from-emacs): A new switch to turn output
	redirection off. Useful for debugging.
	(interactive-eval, interactive-eval-region, pprint-eval,
	re-evaluate-defvar): Bind *package* to *buffer-package*.
	(with-trapping-compilation-notes): Add a dummy argument for better
	indentation.
	(measure-time-intervall, call-with-compilation-hooks): Measure
	compilation time.
	(frame-locals): Use di::debug-function-debug-variables instead of
	di:ambiguous-debug-variables. Don't access non-valid variables.

	* slime.el
	(slime-display-message-or-view): Delete old multi-line windows.
	(slime-read-package-name): Added an optional initial-value
	argument.  slime-pid: New variable.
	(slime-init-dispatcher): Initialize slime-pid.
	(slime-send-sigint): Use slime-pid instead of inferior-lisp-proc.
	(slime-eval): Accept debug-condition messages.
	(slime-output-buffer): Turn slime-mode on.
	(slime-switch-to-output-buffer): New command.  Bound to C-c C-z.
	(slime-show-note-counts): Display compilation time.
	(slime-untrace-all, slime-set-package, slime-set-default-directory
	slime-sync-package-and-default-directory): New commands.
	(slime-princ-locals): Don't access non-valid variables.  This may
	cause segfaults and severely confuse CMUCL.
	(slime-define-keys): New macro.

2003-09-28  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (create-swank-server): Bind the listen-socket on the
	loopback interface by default, so that remote machines can't
	connect to the Swank server.

2003-09-27  Luke Gorrie  <luke@bluetail.com>

	* swank.lisp (with-trapping-compilation-notes): New macro for
	bindings the handlers to record compiler notes. Now being used in
	`compile-string', which I had broken when removing the compilation
	hook.

	* slime.el (slime-function-called-at-point): Rewritten to work
	better. Now considers "((foo ..." _not_ to be a function call to
	foo because of the double ('s - this will keep it from misfiring
	in e.g. LET bindings.
	(def-slime-test): All tests now being with (slime-sync). This
	fixes some accidental/bogus test failures.

	* swank.lisp (handle-notification-condition): Rewrote
	compiler-note collection. Now it uses lower-level condition
	handlers instead of c:*compiler-notification-function*. This way
	the error messages are tailored to omit redundant information,
	like the filename and original source text (which are displayed
	and highlighted in Emacs already). Much nicer.
	(sort-contexts-by-source-path): Now sorting xref results by
	lexical source-path order, so that you're always jumping in the
	same direction.
	(*debug-definition-finding*): New variable. You can set this to
	true if you want to be popped into the debugger when M-. fails to
	find a definition (for debugging the
	definition-finding). Otherwise it reports the error to Emacs as a
	message, like "Error: SETQ is a special form."

	* slime.el (slime-fetch-features-list): New command to fetch the
	*FEATURES* list from Lisp and store it away. This is done
	automatically upon connection, but can also be called manually to
	update.
	(slime-forward-reader-conditional): Now does the right things with
	reader-conditionals (#+ and #-) based on the Lisp features.

2003-09-26  Luke Gorrie  <luke@bluetail.com>

	* slime.el (sldb-setup): Setting `truncate-lines' to t in the
	debug buffer. I like having the backtrace take strictly one line
	per frame, since otherwise a few ugly arguments (e.g. streams) can
	chew up a lot of space. (Can make this a configurable on request
	if tastes differ :-)

	* swank.lisp: Did a little defensive programming so that asking
	for the definition of an unbound function will return nil to Emacs
	instead of entering the debugger.
	(format-frame-for-emacs): Binding *PRETTY-PRINT* to nil when
	formatting frames (due to truncate-lines change above).

2003-09-24  Helmut Eller <e9626484@stud3.tuwien.ac.at>

	* swank.lisp:
	Support for stream redirection.
	slime-output-stream: New structure.
	(slime-out-misc): New function.
	*slime-output*: New variable.
	(read-from-emacs): Redirect output to *slime-output*.
	(read-form): Bind *package* inside the standard-io-syntax macro.
	(eval-string): Read the string with read-form.
	(completions): Support for keyword completion.

	* slime.el (slime-process-available-input, slime-eval): Rewritten
	once again.  Don't use unwind-protect anymore. Didn't work
	properly when the Lisp side aborted due to too many debug
	levels. "Continuing" from the Emacs debugger aborts one level on
	the Lisp side. "Quitting" from the Emacs debugger quits the Lisp
	side too. Increase stack sizes before entering the recursive edit.
	(slime-eval-async-state, slime-eval, sldb-state): Support for stream
	output.
	slime-last-output-start: New variable.
	(slime-output-buffer, slime-output-buffer-position,
	 slime-insert-transcript-delimiter, slime-show-last-output,
	 slime-output-string): New functions.
	(slime-show-evaluation-result,
	slime-show-evaluation-result-continuation): Use them.
	(slime-use-inf-lisp-p, slime-insert-transcript-delimiter,
	 slime-inferior-lisp-marker-position,
	 slime-inferior-lisp-show-last-output): Deleted.
	(slime-use-tty-debugger, slime-debugger-hook,
	slime-enter-tty-debugger, slime-tty-debugger-state): Deleted. Removed
	tty debugger support.
	(def-sldb-invoke-restart): Renamed.
	(define-sldb-invoke-restart-key, define-sldb-invoke-restart-keys):
	Version without eval.
	(defun-if-undefined): New macro.
	Many indentation fixes.

2003-09-23  Helmut Eller <e9626484@stud3.tuwien.ac.at>

	* swank.lisp (completions):
	Moved most of the completion code to Lisp.
	(string-prefix-p): Be case insensitive.

	* slime.el:
	Make sure define-minor-mode is defined before we use it.
	(slime-completing-read-internal, slime-completing-read-symbol-name,
	slime-read-from-minibuffer, slime-completions, slime-complete-symbol):
	Support for reading symbols and expressions with completion.
	(slime-read-symbol-name): New function.
	(slime-read-symbol): Use it.
	(slime-read-package-name): Case insensitive completion.

	(slime-edit-symbol-fdefinition, slime-edit-fdefinition): Rename
	slime-edit-symbol-fdefinition to slime-edit-fdefinition.

2003-09-23  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-show-xrefs): Improved the xrefs buffer, now
	using a custom minor mode.
	(slime-next-location): This function goes to the next "something"
	by funcall'ing slime-next-location-function. Currently that
	variable is set by xref commands like who-calls to go to the next
	matching reference. In future it can also be used to go to the
	next function definition for a generic-function-understanding
	version of edit-fdefinition. Bound to C-M-. and C-c C-SPC, until
	we see which binding is better.

2003-09-22  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-symbol-at-point): Now returns a symbol, as the
	name suggests.
	(slime-symbol-name-at-point): This one returns a string.
	(slime-read-symbol): New function for taking the symbol at point,
	or prompting if there isn't one.
	(slime-edit-fdefinition): Now uses looks up the symbol at point,
	not the function being called at point.

	* swank.lisp (who-calls, who-references, who-binds, who-sets,
	who-macroexpands): New function.
	(present-symbol-before-p): Use `*buffer-package*' when checking
	accessibility of symbols.

	* slime.el (slime-restore-window-configuration): New command to
	put the Emacs window configuration back the way it was before
	SLIME last changed it.
	(slime-who-calls, etc): Very basic WHO-{CALLS,..} support. Not
	finished, wrestling around trying to make `view-mode' or
	`help-mode' help me (I just want to hijack RET and C-m). Bound to
	"C-c C-w ...".

2003-09-21  Luke Gorrie  <luke@bluetail.com>

	* slime.el: Rearranged the `outline-mode' structure slightly.
	(slime-check-connected): Using new function to give a helpful
	error message if you try to use commands before establishing a
	connection to CMUCL.
	(sldb-mode): Keys 0-9 are now shortcuts to invoke restarts.

	* README, swank.el: Updated commentary.

2003-09-20  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-choose-overlay-region): Tweaked overlay
	placement.

	* swank.lisp (handle-notification): Skipping null
	notifications. For some reason CMUCL occasionally calls us with
	NIL as each argument.

2003-09-19  Helmut Eller <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-connect): Propose default values when called
	interactively.
	(slime-process-available-input): If possible, use while rather than
	recursion.
	(slime-compilation-finished-continuation): New function.
	(slime-compile-file, slime-compile-defun): Use it.
	(slime-forward-source-path): Id an error is encounter move back to the
	last valid point.
	(slime-eval-region): Use append COND.  Send the entire string to the
	Lisp side and read&evaluate it there.
	(slime-eval-buffer): New function.
	(sldb-sugar-move, sldb-details-up, sldb-details-down): New functions.

	* swank.lisp (interactive-eval-region): New function.
	(re-evaluate-defvar): New function.
	(compile-defun): Install handler for compiler-errors.
	(function-first-code-location): Simplified.

2003-09-17  Helmut Eller <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-apropos-all): New command, bound to C-c M-a.
	(slime-eval): Simplified.
	(swank:arglist-string): Send a string and not a symbol.  It easier
	to package related thins in CL.
	(slime-edit-symbol-fdefinition): Prompt when called with
	prefix-argument.
	(slime-eval-region): New function.
	(slime-load-file): New function.
	(slime-show-description): Set slime minor mode in Help buffer.

	* swank.lisp: (read-string, from-string): Renamed read-string to
	from-string.
	(to-string) New function.
	(arglist-string): Catch reader errors.
	(sldb-loop): Also bind *readstrable*.


2003-09-16  Helmut Eller <e9626484@stud3.tuwien.ac.at>

	* slime.el (slime-toggle-trace-fdefinition): New command.
	(slime-symbol-at-point, slime-sexp-at-point): New utility functions.
	(slime-edit-symbol-fdefinition): Similar to slime-edit-fdefinition but
	uses swank:function-source-location-for-emacs.
	(slime-goto-source-location): New function.
	(sldb-show-source): Use it.
	(slime-read-package-name): Completing read for package names.
	(slime-apropos): Use it.

	* swank.lisp (function-source-location,
	function-source-location-for-emacs): New functions to extract
	source locations from compiled code.  For struct-accessors we try
	to find the source location of the corresponding constructor.
	(list-all-package-names): New function.
	(toggle-trace-fdefinition, tracedp): New functions.

2003-09-15  Helmut Eller <e9626484@stud3.tuwien.ac.at>

	* slime.el: Moved many CL fragments from slime.el to swank.lisp.
	(slime-compile-file, slime-compile-defun, slime-goto-location):
	Compiler notes are now represented with a property list.  To find
	the source expression first move to the file offset of the
	top-level form and then use the source path to find the
	expression.  This should avoid many reader issues.  For
	compile-defun store the start position of the top-level expression
	from the buffer in the compiler notes and use that to locate error
	messages.  Add error overlays for notes without context to the
	first available expression.

	* swank.lisp: Moved many CL fragments from slime.el to swank.lisp.
	(defslimefun): New macro.

2003-09-15  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-setup-command-hooks): Removed post-command-hook
	that was used for cleaning up input that was unprocessed due to an
	error breaking out of the process filter. This is now handled by
	an `unwind-protect' in the filter.

	* swank.lisp (apropos-list-for-emacs): Hacked the apropos listing
	to accept more options and to specially sort results.

	* slime.el (slime-net-send): Added newlines to messages over the
	wire. This makes the protocol nicely readable in Ethereal.
	(slime-sync): New function for blocking until asynchronous
	requests are complete.
	(slime-apropos): Hacked the apropos command: by default, only
	external symbols are shown. With a prefix argument you have the
	option to include internal symbols and to specify a package.
	(slime-run-tests): Extended the test suite. Use `M-x
	slime-run-tests' to run it.

2003-09-14  Luke Gorrie  <luke@bluetail.com>

	* slime.el, swank.lisp: Added the debugger written by Helmut.

	* cmucl-wire.el: Removed. The WIRE communication protocol has been
	replaced by a simple custom TCP protocol based on READ/PRIN1 to
	send sexps as ascii text. This simplifies the code, makes the
	protocol nicely debugable with ethereal, and should ease porting
	to other Lisps. Incremented TCP port number to 4005 in honor of
	the new protocol.

	In addition, Lisp now always uses *print-case* of :DOWNCASE when
	preparing sexps for Emacs. This is in reaction to a bug with Emacs
	reading the empty list as `NIL' instead of `nil'.

	* slime.el (slime-net-connect): The Emacs end of the new
	communication protocol.

	* swank.lisp (create-swank-server): The Lisp end of the new
	communication protocol.

2003-09-11  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-mode): Added Helmut's commands to the mode
	description.
	(slime-show-apropos): Setting `truncate-lines' to t in apropos
	listings, to avoid line-wrapping on overly long descriptions.
	(slime-run-tests): Added the beginnings of an automated test
	suite. (This is most useful for testing cross-Emacsen
	compatibility before releases.)

	* swank.lisp (symbol-external-p): Put back this function which was
	lost in a merge.

2003-09-10  Luke Gorrie  <luke@bluetail.com>

	* slime.el, cmucl-wire.el, swank.lisp: Large patch from Helmut
	Eller. Includes: apropos, describe, compile-defun, fully
	asynchronous continuation-based wire interface, interactive
	evaluation, and more. Very nice :-)

2003-09-08  Luke Gorrie  <luke@bluetail.com>

	* cmucl-wire.el (wire-symbol-name, wire-symbol-package): Fixed to
	handle internal references (pkg::name).

	* slime.el (slime-swank-connection-retries): Increased default
	number of connection retries from 5 to ten.

	* swank.lisp (find-fdefinition): Support for finding
	function/macro definitions for Emacs.

	* slime.el: Indentation "cleanups": somehow I was using
	`common-lisp-indent-function' for Emacs Lisp code previously.
	(slime-edit-fdefinition): Added M-. (edit definition) and M-, (pop
	definition stack) commands. Definitions are found in much the same
	way Hemlock does it. The user-interface is not the same as TAGS,
	because I like this one better. We can add TAGS-compatibility as
	an optional feature in future.

2003-09-04  Luke Gorrie  <luke@bluetail.com>

	* slime.el (slime-completions): Now supports completing
	package-internal symbols with "pkg::prefix" syntax.

	* Everything: imported slime-0.2 sources.

;; Local Variables:
;; coding: latin-1
;; End:

This file has been placed in the public domain.