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
|
Changes for vile 9.7 (released ??? ??? ?? ????)
20080508 (m)
> Mark Robinson:
+ build-fix for eightbit.c without iconv functions.
> Tom Dickey:
+ update input-method code, from xterm.
+ add xvile resource setting "openIm" to control whether it tries to
open input-method.
+ change order of tests for iconv availability and configure option
"--with-iconv" to avoid adding iconv library to build unnecessarily
(report by Mark Robinson).
+ modify prompt for new mode value to consistently show the mode's full
name.
+ add "fk" alias for file-encoding mode.
+ modify mktbls to allow special-case alias for modes which have no
convenient abbreviation.
+ update config.guess, config.sub
20080426 (l)
> Tom Dickey:
+ minor fixes to perl syntax highlighter:
+ add double-quote to quote-delimitors.
+ show interpreted symbols in double-quoted regular expressions.
+ if "/e" modifier is set for regular expression, show interpreted
symbols for that.
+ show regular expression modifiers in keyword-attribute, not string
+ correct a loop expression in wrapword (report by Chris Green).
+ correct a byte- versus character-count in wrapword() (report by
Chris Green).
+ add $buf-encoding symbol, to show the actual encoding used by the
current buffer vs the file-encoding which is one of vile's internal
names such as "8bit" or "locale".
+ add a "locale" value for file-encoding, use that as the default
(discussion with Paul Van Tilburg and Chris Green).
20080410 (k)
> Tom Dickey:
+ remove obsolete lex-filters for perl and ruby (only the C versions
have been supported).
+ update list of filters in doc/config.doc
+ improve locale initialization, checking if there is no installed
narrow locale corresponding to the given (wide) locale. In that
case, default to either ISO-8859-1 or ASCII, depending on whether
there was actually a wide locale whose encoding is UTF-8 or
ISO-8859-1, or neither (report by Paul Van Tilburg).
+ force the [Printable Chars] buffer to use file-encoding=8bit,
makes it display consistently legal codes in the second column.
+ modify xvile to use imdying() to handle runtime X errors, which
will attempt to save buffers (prompted by discussion with Steven
Lembark).
+ flush the standard output before writing version message using the
standard error, in case there was some output pending (report by
Chris Green).
+ improve bytes_before() behavior on illegal bytes; it was returning
the length of all illegal bytes adjacent to the current position
rather than just one.
+ modify vl_conv_to_utf32() to use consistent error-return code when
continuation byte of UTF-8 fails check. This is needed in some
cases to make ISO-8859-1 data display consistently in UTF-8 buffer
as "\?xx".
+ fix display of ISO-8859-1 encoded file when file-encoding is set
to utf-8 (report by Chris Green).
20080325 (j)
> Tom Dickey:
+ modify curses-driver to avoid a curses-refresh (repainting the
whole screen) between a shell command and the "Press return to
continue" message.
+ make transpose-characters work for wide-characters.
+ make "~" (flip-character) and related case-conversion work for
Unicode in 0..255 range.
+ modify behavior of ":ww!" to act like ":w!", allowing it to write
all files.
+ modify the vl_init_8bit() to use vile's built-in UTF-8 decoder for
cases where iconv() sees that the result will not fit into the narrow
encoding.
+ correct bytes versus characters for inserting/replacing text in
utf-8 buffers (reports by Chris Green, Paul Van Tilburg).
+ amend fix for recomputing list of modes used for name-completion
from 9.6e, to also force reallocation of an associated index.
+ fix a missing #define in trace.h for GCC_PRINTFLIKE.
20080313 (i)
> Tom Dickey:
+ change class color of parentheses in lisp syntax filter to "Action"
to make them easier to distinguish from "String".
+ improve lisp syntax filter by coloring binary, octal and hexadecimal
constants, as well as parsing the "#\" patterns.
+ remove ".scm" from c-suffixes pattern (report by Brendan MacDonell).
> Brendan MacDonell
+ add schememode and keywords based on
http://community.schemewiki.org/?scheme-keywords
20080311 (h)
> Tom Dickey:
+ minor fix to configure --with-iconv to handle failure to find iconv.
+ compiler warnings for DJGPP 2.04 with gcc 4.2.3 (report by
Rugxulo).
20080224 (g)
> Tom Dickey:
+ correct conversion of facename for wide-character winvile's $font
symbol (report by George Eccles).
20080217 (f)
> Tom Dickey:
+ minor improvement to vbmode's fence-if to ignore lines with
continuations.
+ correct a pattern in latexflt.l, making it parse this pattern:
\foo{$\{a, b\}$}.
(report by Paul van Tilburg).
+ modify perl syntax filter to color &foo as a variable.
+ modify perl syntax filter to color both class and member in variables
such as $foo::bar (request by Steven Lembark).
20080207 (e)
> Tom Dickey:
+ reinitialize, rather than free the TBUFF result in run_func(), in
case some caller reuses that value.
+ correct limit-check in xvile's really_draw() function (noted by
valgrind).
+ recompute a list of modes used for name-completion after removing
a submode definition (from test data by Steven Lembark).
+ modify getcol() to compensate for 9.6b change to next_column().
That fix prevents increasing the next-column computation past the
end of the line; while getcol()'s alttabpos computation assumes it
can get the column value of the next character.
+ fix an incorrect reference in chgd_fences() which was exposed by
changing fence-pairs more than once in .vilerc, dating from 5.3l
(report by Steven Lembark).
20080124 (d)
> Tom Dickey:
+ documentation improvements (suggested by Steven Lembark).
+ add ".t" to perlmode, using $mode-pathname, noting that while perl
uses it, other programs do also (request by Steven Lembark).
+ strip redundant "mode" from majormode names, avoiding the potential
for creating foomodemode when the script says
define-majormode foomode
(prompted by report by Steven Lembark).
+ make vile's symbol-tables accessible to vilemode in winvile. This
required some renaming to avoid symbol conflicts:
+ rename TEXT and PATTERN states in filters to sTEXT and sPATTERN
+ rename RECTANGLE to rgn_RECTANGLE, and the other region-shapes
to match.
+ add stub for vl_check_cmd() to filterio.c, to work when the some
filters are external, and the selected built-in or loadable filters
did not include vilefilt.l (reports by Adam Denton, Steven Lembark).
20080113 (c)
> Tom Dickey:
+ another fix for offs2col0(), to reduce an off-by-one limit check.
+ workaround for HPUX lex, whose YYSTATE variable is unusable.
+ cleanup/reduce g++ warnings.
+ improve configure check for iconv.
+ add workaround in eightbit.c for systems without
nl_langinfo(CODESET)), e.g., OpenBSD.
+ make memory leak-checking work for filters.
20080106 (b)
> Tom Dickey:
+ fix an out-of-bounds error reported by valgrind in next_column().
+ modify treatment of ":setl dos" to behave the same as ":set-dos".
That makes it possible to put a "vile:dos" in a modeline and make
vile convert the line-endings.
+ trim trailing blanks from text handled in modelines in case there
was a ^M.
20071231 (a)
> Tom Dickey:
+ add a null-pointer check in offs2col0().
+ fix an arithmetic overflow on HPUX which caused mis-encoding of
files read via slowreadf(), e.g., in [Output].
Changes for vile 9.6 (released Thu Dec 27 2007)
> Tom Dickey:
+ update makefile.blc, adding charsets.c, eightbit.c and wcwidth.c
+ build-fix for OS/2 IBM CSet (define a delay function for catnap).
+ minor build-fixes for VMS:
+ modify vmsbuild.com to simplify workaround for broken MMS 3.8
+ provide dummy variables for xvile to reflect modularization changes
with respect to vmsvt.c
+ documentation updates.
+ minor fix to manfilt.c to pass-through UTF-8 codes by testing with
both iswprint() and isprint().
20071224 (u)
> Tom Dickey:
+ separate vile's ttputc from termcap prototype to pass integer param
rather than just a char on Solaris.
+ fix computation of columns needed to show UTF-8 codes in POSIX
locale.
+ modify manfilt.c to provide UTF-8 output in a UTF-8 locale.
+ minor fix to CF_FUNC_ICONV to link iconv on cygwin (noting that
cygwin has no useful locale support, it may someday).
20071202 (t)
> Tom Dickey:
+ modify filters makefile "clean" rule to accommodate OSF/1 4.0D
whose make program leaves intermediate ".c" files for each lexer.
+ change order of restore-flags and switch-buffer in
restore_buffer_state, avoiding an unnecessary prompt to discard
changes when attempting to read a buffer that cannot be read.
+ increase a few table sizes to work with AIX 5.1 lex.
+ modify check for lex version to avoid hanging on older platforms
where it would try to read from standard input even if it does not
recognize the option.
20071125 (s)
> Tom Dickey:
+ several changes to provide usable Unicode support:
+ add mode percent-utf8 to set a threshold for file-encoding mode
"auto" detection of UTF-16/UTF-32 files.
+ file-encoding mode can be set to "auto", to detect UTF-16 files,
which are loaded as UTF-8.
+ UTF-8 files are detected based on the file-encoding mode as well.
+ Unicode values are displayed (where no locale controls) as "\uXXXX"
in 4 hexadecimal digits.
+ add unicode-as-hex mode to override locale, forcing Unicode values
to display as "\uXXXX".
+ for buffers with UTF-8 encoding, show illegal bytes as "\?XX".
+ Unicode values can be inserted into buffers using ^VuXXXX form.
Limitations:
+ terminal drivers support Unicode display in varying degrees:
+ winvile - multicolumn characters, depends on font selection
+ termcap/terminfo - relies on terminal emulator, knows about
multicolumn characters
+ xvile - displays only single-column characters
+ curses - depends on the curses library, e.g., ncursesw
+ win32 console - not yet implemented
+ combining characters are not combined.
+ registers hold byte data, will show the UTF-8 encoding for data
rather than a \uXXXX (unless the file-encoding for [Registers]
is changed).
+ some "characters" such as the report for yanked text is still
really a byte-count.
+ inserting a \uXXXX into the minibuffer will display the UTF-8
encoding.
+ regular expressions are not wide-character aware.
+ UTF-16 and UTF-32 files are detected based on BOM and/or the
contents of the first line of the file.
+ external syntax filters do not handle BOM or UTF-16, UTF-32.
+ improve name-completion by saving/restoring the original window and
buffer when [Completions] closes, rather than the closest window.
+ add output from rcshist to diffmode.
+ add ".vbp" files to inimode.
+ modify configure script to omit lex-filt.l from build if lex is not
really flex, since the tables are too large for the older program.
+ modify spell.pm to use a temporary file to work with newer Perl's
that do not handle tied variables exactly as filehandles.
+ update Kevin Buettner's email address.
+ add -class option to xvile.
+ remove a redundant XtDestroyWidget() from x_close() to quiet a
warning from XtRemoveGrab() when doing a ":q" from Xm-vile
(report by Chris Green).
+ use va_copy() in dofmt() to work with Linux on powerpc
(report by Paul van Tilburg).
+ add docbookmode
+ improve 9.5m/9.5q check for file ownership, adding a warning message
for files which are ignored (report by Chris Green).
+ change default for --with-locale configure option to mesh with
--disable-extensions.
+ improve paste-performance in winvile by passing whole-line chunks
to the insert-function.
+ improved cppmode's identifier-expr (report by Gerry Fredette).
+ correct order of evaluation from 9.4w when setting record-separator,
which was setting "crlf" ending temporarily when computing the buffer
size, even when "lf" was intended. That would cause an immediate
write from winvile (without change) for a buffer to write too many
characters.
+ add syntax filter conffilt.l, for "ordinary" config-files.
+ add "rectangle-insert-mode".
+ fill in several omitted items in init_mode_value().
+ add "describe-&functions" and "describe-$variables" commands.
(The latter is a stub for later).
+ improve repainting in winvile while processing external command.
also modify keyboard handling to provide type-ahead while processing
external command.
+ remove obsolete $tpause variable.
+ modify majormode inferencing to check preamble for [Standard Input]
and [Output] buffers.
+ add ">motion" function for scripts.
+ improve handling of enumerated values by forcing all to lowercase,
e.g., to eliminate the need for the special case in 9.1x to handle
"TRUE" and "true".
+ revise lstrinsert() and associated logic which implements changes
to rectangles, e.g., with c^Aq, to ensure that it pads the change
with blanks rather than nulls (report by Paul van Tilburg).
+ improve modeline support by ignoring strict "vi" modeline options
that are not recognized by vile, rather than reporting an error.
+ use new module blist (binary search of lists) to reduce linear
searches in the places where btree is not already used.
+ change rename-other-buffer command to other-buffer-rename, to avoid
name-completion conflict with rename-command (feedback from Steven
Lembark).
+ remove obsolete check for ANSI qsort.
+ improve vilefilt.l, highlighting mode names and displaying error
for unknown mode, function and state variables.
+ fix typo in manpage.rc which broke use of pod2man in 9.5m
+ add &pquote in manpage.rc, to allow it to format html output when
vile-manfilt, etc., reside in directories containing spaces in their
name.
+ add ".reg" filetypes to inimode.
+ add several package-related suffixes to sqlmode.
+ add xpmmode
20070603 (r)
> Tom Dickey:
+ amend makefile.in change for $(SRC) to use a translation rule that
works with IRIX64 (and some broken BSD) make programs.
+ correct parsing/removal of "-i" option in winvile, taking into
account double-quoting of parameters and also options which have
parameters.
+ make configure --with-no-leaks work for external filters, e.g., using
valgrind.
+ add configure script check for tdelete(), provide a replacement if
not found (report by Gary Jennejohn).
20070528 (q)
> Tom Dickey:
+ change configure script to check for ispell before aspell; Fedora 5's
problem with aspell was eventually fixed.
+ make cursor-adjustment after paste in xvile dependent on whether the
pasted text ended with a newline (request by Eric Krohn).
+ cleanup the bottom line on the screen when exiting the curses driver,
to match the termcap/terminfo driver (report by Chris Green).
+ fixes for pl-filt.c, the perl highlighter:
+ allow blanks before tag for here-document, e.g.,
cat << 'TAG'
+ allow '~' as a quote-delimiter (this is used by linklint).
+ modify CF_IMAKE_CFLAGS to work with Solaris sed, which (unlike a
standard UNIX implementation) does not honor nested subexpressions.
+ add rename-other-buffer command, use that to modify spell.rc so it
can work with scratch buffers which otherwise would be lost, e.g.,
"[Help]".
+ add modelines for winvile.rc and w32ole.rc to set the majormode to
rcmode, and modify a special case in main.c to make "vile winvile.rc"
get the corresponding majormode.
+ add some null-pointer checks in filters for result from flt_alloc().
+ add a check in flt_alloc() in case the pointer has not been
allocated.
+ derive $(SRC) from $(OBJ) in makefile.in, to avoid losing trace.c
in tags rule.
+ check for empty/default "put" in line.c's PutChar() to avoid
attempting to remove a trailing newline from that, since the
corresponding line has already been freed as part of the undo process
(report by Paul Fox).
+ use O_NONBLOCK if O_NDELAY is undefined, needed for a few platforms
which have the POSIX definition but not the legacy, e.g., Minix and
OS X.
+ make autocolor work for curses-driver, e.g., --with-screen=ncurses
(report by Chris Green).
+ widen the check for "winvile" in vileinit's initialization for win32
shifted cursor bind-key's.
+ modify spell filter so that it can get VILE_SPELL_FILT from the
registry on win32.
+ improve spell filter camelcasing that when parsing things like
"UXTerm" it splits off the "Term" as a possible word.
+ amend 9.5m change to check for file ownership to ensure this is
only done for files that might be source'd. It was checking files
for read/write too.
+ correct syntax highlighting for end of JavaScript embedded in HTML,
which did not allow for the marker in an inline comment.
+ modify "filename" shown in :show-filtermsgs to use the buffer name
if no filename is available.
+ modify preamble patterns for shell modes such as awk, etc., to allow
for programs without an absolute pathname, e.g., "#! awk".
+ modify the symbol-table lookup in filters.c to use tsearch() when
available. For an 8Mb rtf file this improved performance by about
a factor of two (on Linux - Visual C++ has no tsearch).
+ add configure check for getc_unlocked(), putc_unlocked() and
tsearch() to use in performance improvements for syntax filters.
+ add syntax filter for RTF files.
+ improve autocolor on win32 by not allowing the cursor to be repainted
while autocoloring is in progress.
+ modify winvile's command-line parsing, adding "-i" option to perform
the case used for "Send To": use the part of the command line after
options as the filename and change working directory to match
(request by Larry Gensch).
20070425 (p)
> Tom Dickey:
+ modify spell- and txt-filters to allow users to add words to their
respective ".keywords" files to override the builtin highlighting.
+ correct check of return of ffread() in spellflt.l's workaround for
platforms such as win32 which have no usable popen(). That made
spelling checks require two ^X-i presses.
+ modify spellflt.l to chop words according to Camel-case, so
tokens such as "ChopWords" are treated by the spell checker as
multiple words.
+ fix a limit check in argc/argv[] parsing for winvile (report by
Larry Gensch).
+ modify wvwrap.exe to work with pathnames containing "$", "&" and "'".
+ change OPT_MULTIBYTE definition to depend on OPT_LOCALE.
20070115 (o)
> Tom Dickey:
+ change Inno Setup script to not put version numbers on the SendTo
and context-menu entries.
+ start adding support for UTF-8 (modes "byteorder-mark" and
"file-encoding"). The byteorder-mark is workable, but the
file-encoding is a stub. This works to strip the BOM from files
as they are loaded, making syntax highlighting work for XML files.
+ correct two places in exec.c which used skip_blanks() rather than
skip_space_tab() from 9.5l changes. This caused the command
parser to treat ^K as a blank, breaking digraph.rc which uses
that character (report by Gary Jennejohn).
20070108 (n)
> Tom Dickey:
+ add a character-class check to find_b_file() to prevent names such
as "<vile.1>" from being canonicalized into "vile.1" on win32 via
FindFirstFile(). This fixes a problem where ^X-n would sometimes
display the wrong buffer.
+ add shifted-cursor-key bindings for winvile, like xterm.
+ amend cursor-tokens mode so that ^X-e in a directory-buffer always
uses the whole line (no regular expressions).
+ fix a null-pointer dereference in the cursor-tokens mode.
+ minor fix to sh-filt.l to handle lines like
: ${BUILD_CC:='${CC}'}
+ improve iss-flt.l to highlight preprocessor lines.
+ improve winvile.iss (Inno Setup):
+ use values in patchlev.h to set the package version information.
+ add context menu and Send To shortcuts
+ install the keyword files
+ add configure --with-valgrind option.
20061212 (m)
> Tom Dickey:
+ add showvariables mode, for testing expressions used in [Variables].
+ correct comparisons used for handling bounds in regular expressions,
e.g., the "2" in "\(this\|[l-m]\)\{2\}".
+ change behavior of regular expression OR'd alternatives - only the
first match was used rather than the longest one.
+ fix configure script macros which omitted X_EXTRA_LIBS in one case,
and repeated libs in another.
+ fill in complete list of event names for xres.key from Xt/TMParse.c
+ make ShowFormatted macro more configurable by allowing environment
variables $VILE_NROFF_FILT and $VILE_TABLE_FILT to override the
choice of programs therein.
+ disallow source'ing from the current directory if the source'd file
might be writable by other users.
+ improve fences in vbs- and vbmode.
+ fix xresfilt.l; X resource files do not have embedded comments.
+ minor improvements/fixes to &default, to allow it to assume that
'$' is implied for modes.
+ modify locale initialization to work with koi8rxterm.
+ add character classes [:ident:], [:octal:] and [:path:], and change
the association of \w and \W to [:ident:], making [:alnum:] no longer
include "_".
+ add cursor-tokens mode to control whether vile uses regular
expressions, character classes or a combination to obtain tokens
from the screen.
+ add $buf-fname-expr to show the combined bufname-expr, pathname-expr
used to interpret ^X-e.
+ add bufname-expr, identifier-expr and pathname-expr buffer modes to
provide regular expression parsing of $bufname, $identifier and
$pathname in the show-variables command as well as for the related
expansion of tokens from the cursor position. If the expressions are
empty, the code falls through to use the corresponding older
character-class parsing. Default values are provided for each *-expr
mode.
+ fix a case where set-window might remove the only window before
attempting to put a file in it.
+ quote "$HOME" in CF_SUBDIR_PATH, for cygwin users.
20061107 (l)
> Tom Dickey:
+ modify ":describe-bindings" to show whether the command accepts a
range, and whether it is undoable.
+ add ":goto-percent" function.
+ add (nvi/vim) ex-commands: a!, c!, i!
+ add ":c" as alias for ":change-til" (nvi/vim).
+ change unimplemented ":c" to ":co" (reference O'Reilly vi-book)
+ fix makefile dependency for tags
+ review/update use of "CNT" in describe-bindings
+ revised command-line option parsing to use scripting more effectively:
+ multiple startup files are allowed.
+ most command-line options are translated to their equivalent script
and executed, rather than saving state for the most recent of each
option. This makes the -s, -S, -g, -G options obsolete (but still
accepted).
+ add "-c" option (the POSIX form of "+").
+ modify configure script to use ncurses5-config, etc., if found when
handling the --with-screen=ncurses or --with-screen=ncursesw options.
It also is checked when handling the --with-ncurses option for the
termcap/terminfo driver.
+ add suffix/name rules for "Jam" files.
+ fix preamble pattern for pymode so it does not match a ":" line
which should be shmode.
+ implement patterns as line-specifiers in ex-mode.
(this does not work with history-scrolling yet).
+ remove incorrect check for empty parameter from which-menu from 9.4m
changes.
+ check xvile menu to ensure that "C" header is given, adding a
dummy one if not (report by Chris Green).
+ add checks to ensure that neither modelines nor majormodes can alter
these modes: all, crypt, readonly, viewonly.
+ implement vi-style modeline, limited to setting buffer- and window-
modes, or majormodes.
+ add "#" as an alias for number-lines-til
+ improve highlighting of comment-lines (denoted by "--") in txtmode.
+ fixes for termcap syntax highlighter, i.e., tcmode:
+ allow description field to be empty
+ color the "|" between aliases.
+ improve string- and escape-parsing
+ fixes for terminfo syntax highlighter, i.e., timode:
+ allow description field to be empty
+ color the "|" between aliases.
+ allow aliases to contain blanks.
20060924 (k)
> Paul van Tilburg
+ add syntax filter (mcrl) for mCRL/mCRL2 modeling language.
> Tom Dickey:
+ modify fileread() to ensure that the error-buffer is reset after
reading (or re-reading) a shell/pipe command, e.g., using ":e!".
+ fix configure --disable-largefile option, from ncurses.
+ minor fixes for nroff filter to improve rendition of groff's macros.
+ add configure check for ncurses 5.2(sic) on FreeBSD, which was broken
by an incomplete set of changes to wchar.h (report by Chris Green).
+ add configure check for aspell, whose attempt at a compatibility
script for ispell does not recognize ispell's options.
+ workaround for breakage in FreeBSD's header files: updates to wchar.h
were not reflected in updates to curses.h (report by Chris Green).
+ remove reference to obsolete http://www.vile.cx from README (report
by Paul Fox).
+ update config.guess, config.sub
20060625 (j)
> Tom Dickey:
+ fix expression for shmode $mode-filename to match ".profile".
+ various small build-fixes (prompted by reports by Paul Fox, Clark
Morgan).
+ amend 20050214 change to set_files_to_edit(), which caused partly-
read buffer to be discarded if ffgetline() was interrupted, e.g.,
by a ^C during a slow pipe read. Now the buffer contents are
retained.
+ update config.guess, config.sub
20060531 (i)
> Tom Dickey:
+ fix error-reporting for a "~break" without a preceding "~while"
(report by Clark Morgan).
+ minor fixes for tc-filt.l (termcap mode).
+ fix x11.c for Motif broken in 9.5f cleanup (reported by Paul Fox).
+ improve bas-filt.l by not highlighting incidental matches in the
attribute section of a Visual Basic form-file.
+ correct parsing of hexadecimal constants in bas-filt.l
+ add .ctl suffix for vbmode
+ fix a case in bsizes() which subtracted line-ending from zero-sized
buffer when nonewline mode was set (Debian #368007).
20060521 (h)
> Clark Morgan:
+ document write-all-buffers command.
+ add echo-to-clipboard mode for Win32 hosts:
all text selected with the mouse is automatically
copied to the Windows clipboard. (U)
> Paul Fox:
+ updated contact information in README, vile.1 and vile.hlp
> Tom Dickey:
+ allow a version number in rbmode (ruby) preamble.
+ add check in m4-filt.c for unbalanced quote, show the affected area
as an error.
+ add ".ddl" suffix to sqlmode.
+ add ".dsr" suffix to vbmode.
+ fix makefile.blc, broken in 9.5f cleanup.
+ fixes for 64-bit warnings of Visual Studio .NET 2003:
+ modify Member_Offset() macro to cast the difference between
addresses to a long rather than casting a pointer to a long.
Use this flavor for Visual C++.
+ size_t is not necessarily the same size as unsigned - modify code
to use size_t where it is consistent, otherwise cast as needed.
+ updated for python keywords
+ modify some lex filters, e.g., sql, to exclude \r in the places that
exclude \n, since \r should not be colored.
+ fix for tb_enquote(); a value pointed to memory that had been
reallocated.
+ make OBJEXT configure feature work for optional objects such as api.o
+ updated configure macros CF_CURSES_CPPFLAGS, CF_CURSES_LIBS,
CF_NCURSES_CPPFLAGS, CF_PATH_SYNTAX, CF_WITH_IMAKE_CFLAGS,
CF_XOPEN_SOURCE.
+ update config.guess, config.sub
20060402 (g)
> Tom Dickey:
+ minor fixes to make most of the lex filters build with "old" lex,
e.g.,
http://heirloom.sourceforge.net/devtools.html
Note: the lex-filt.l file is too complex for some older lex's.
+ add lua mode
+ save/restore curgoal variable in b2vprintf() to avoid side effects
when invoking "backward-row" or "forward-row" commands (report
by Chris Green).
+ add delphi mode
+ add "*.cs" files to grep macros on win32 platform
+ improve csmode by making the section macros look for function
headers.
20060219 (f)
> Clark Morgan:
+ update vile.hlp for %n and %N title format changes.
> Tom Dickey:
+ fix sh-filt.l for parameter substitutions containing an escaped
quote, e.g.,
VERSION=${VERSION#*VERSION \"}
VERSION=${VERSION%\"*}
+ add csmode (for C# ".cs" files) and cs.key, using vile-c-filter for
parsing.
+ modify ntwinio.c to invoke build_recent_file_and_folder_menus() in
the WM_INITMENUPOPUP event rather than WM_SYSCOMMAND. This makes
winvile initialize the recent-folders and recent-files if one uses a
right-click on the title of the window.
+ change winvile's registry subkey for recent-folders and recent-files
to match environment variable settings from 9.4r, e.g., change
"Software\winvile\MRUFiles"
to
"Software\VI Like Emacs\MRUFiles"
+ add new symbols $return and $_ which can be used to implement simple
functions (request by William James).
+ fix filters/makefile.2nd to allow build for gcov
+ improve majormodes for complex fences by initializing the (non-string)
buffer mode values for submode groups according to the values in
the submode. This makes ignorecase work as expected in the complex
fence matching for vbmode.
+ add complex fences to vbmode.
+ minor fix to bat-filt.l to avoid highlighting ".bat" as a string in
call foo.bat
+ change htmlfilt.l to highlight character- and URI-references as
numbers to make them distinct from strings with ordinary text.
+ add makefile rules for installing/uninstalling files from doc
directory:
install-doc
uninstall-doc
as well as installing/uninstalling macros
install-macros
uninstall-macros
uninstall-perl
+ correct logic for goto-char, broken in 9.4za (report by William
James).
+ fix change to cpp.key in 9.5e, which put the C keywords in the wrong
table.
+ add spell.rc to makefile.wnt install rule.
+ add test_io.exe rule to vmsbuild.com
+ add TERM.clean(), TERM.unclean(), TERM.openup() to help move diverse
code out of termio.c
+ modify var_TITLEFORMAT() only call set_editor_title() when setting
$title-format, and modify get_statevar_val() to handle some limited
recursion just in case there are other cases where it could be called
from the statevar.c module while retrieving a value. This fixes a
bug introduced in 9.5e (report by Clark Morgan).
+ update title when doing a "cd", in case it uses %r substitution.
+ change %n in modeline substitutions to use file name (pathleaf)
rather than relative path (shorten_path). Use %r for the latter.
(request by Clark Morgan).
+ move VMS-specific code from termio.c to vmsvt.c
+ remove unused start_debug_log() and mallocdbg() from main.c
+ correct typo in ifdef for Visual Studio C++ 6.0 ifdef in w32ole.cpp
from 9.5e changes.
+ move 9.5c check for stdout not a tty on startup to allow "vile -V"
to pipe to other programs.
+ split-out nullterm.c
+ add test_io stub, to help isolate dependencies of the I/O drivers.
20060109 (e)
> Clark Morgan:
+ improved winvile's "flash".
+ several changes to w32reg.c:
+ if at all possible, don't register ole-enabled winvile using the
path ".\winvile.exe" (obscure cygwin corner case).
+ remove use of toUpper(), which is not legit for winvile in this
context because the underlying mapping array is apparently _not_
initialized. With this fix, "winvile -Ou" now displays the
editor's name in MessageBox text (rather than "").
+ fixed lots of misuses of registry APIs (not properly testing return
code). With fixes in place, winvile -Ou/-Or now properly reports
an error when registration/unregistration is attempted by an
account with insufficient privileges.
+ add section definitions to vbmode.
+ fix: wvwrap caused winvile to show an 8.3 folder name in Recent
Folders list.
+ fix: when CD'ing to a directory stored in winvile's "recent folders"
list, the cursor stayed in the mini-buffer following a call to pwd().
> Tom Dickey:
+ adjust makefile dependencies to allow "make -j4" when building the
loadable filter configuration (report by Ciaran McCreesh).
+ add "+", ",", "&", "@" and ";" to URL patterns in filters.
+ modify nr-filt.l to allow for optional blanks between the leading
"." and the command. This is common in nroff library macros, not
in manpages, etc.
+ improve lex-filt.l, allowing for some flex extensions:
+ allow code in action rules to not have curly braces
+ allow curly-braces to surround chunks of flex actions
+ "*" as a state name.
+ add named marks for decimal digits (request by George Eccles).
+ fix stray ^@'s on the winvile popup menu resulting from changes to
kcod2prc() for xterm-fkeys mode (report by Clark Morgan).
+ add a call to set_editor_title() at the end of swbuffer_lfl() to
make title updates work properly with termcap configuration.
+ add %n and %N substitutions for $title-format (prompted by Clark
Morgan comments).
+ modify FreeBuffer() to clear window's buffer-pointers that point to
the freed buffer, e.g., to prevent reference to free memory in title
updates (report by Clark Morgan).
+ check file descriptors in stdin_data_available() to avoid doing a
fdopen() on an invalid descriptor.
+ add "#import" in cpp.key
+ modify preamble for xml- and html-modes to ensure that the first
tag determines the type.
+ fixes to makefile.wnt and mkprlenv.wnt to work with Visual C++ 7.
+ correct padding of subtitle line for "Temporary variables" in
[Variables] buffer, which was applied to all temporary variable
lines.
20051129 (d)
> Tom Dickey:
+ fix vl_ctype.h to avoid redefinition of UCHAR (reports by Clark
Morgan, Mark Robinson).
+ fix lex-filt.l to build with lex (report by Dave Rolfe).
+ fix include-path in makefile.wnt, makefile.djg makefile.icc to work
with split-out headers for regexp.c
+ remove code for DISP_IBMPC
+ remove makefile.emx and config.emx (obsolete).
+ remove makefile.wat and makefile.tbc, since they used ibmpc.c
20051123 (c)
> Clark Morgan:
+ remove an obsolete comment in macros.doc regarding underscore in
macro names.
> Paul Fox:
+ correct logic for check_percent_crlf(), ensuring that empty buffers
are not counted as having CRLF endings.
> Tom Dickey:
+ fix to_tabstop() function used for :describe-bindings to ensure that
a binding that happens to be 8 columns will still have a tab after
it.
+ add a fflush() to ensure that the control string to reset xterm mouse
mode is written during ^Z handling (report by Fabien Coutant).
+ add a call to term.kopen() in rtfrmshell(), making ^Z/resume work
properly with the curses driver (report by Fabien Coutant).
+ make mouse work for curses driver just like the termcap/terminfo
driver.
+ split xterm-specific code out of tcap.c as xterm.c, to share with
curses.c
+ indent'd borland.c
+ remove ibmpc.c (obsolete)
+ check if stdout is not a tty on startup, print error message and
exit (request by Paul Fox).
+ add mode xterm-fkeys, to allow termcap driver to generate
shift/control/alt modifiers for function keys.
+ modify regexp.c so tab is not matched by \p or [[:print:]] for
consistency with POSIX regular expressions.
+ modified regexp.c, add headers vl_regex.h, vl_alloc.h and vl_ctype.h
to allow it to be easily built outside vile (request by Adrian Kole).
+ add KEY_BackTab to the output of show-key-names
+ fix kcod2prc() so that a shifted-tab is converted to "Shift+^I"
rather than emitting a literal tab in the result.
+ update vilemenu.rc fonts to work on Debian/testing.
+ improve scrollbar/cursor tracking in winvile by calling
gui_update_scrollbar() when WFMOVE flag is set (report by Deraj
Puma).
+ add a simple csvmode for ".csv" files.
+ add ".ebuild" suffix for shmode.
+ improve mode-pathname for xresmode to handle things like KOI8Term.
20051002 (b)
> Tom Dickey:
+ update config.guess, config.sub
+ improve os2vio.c, adding a check to distinguish between fullscreen
and VIO to allow using bright background colors in the latter (report
by George Eccles).
+ add KEY_xxx definitions to OS/2 and Win32 drivers, defining up to
KEY_F35 for the former and KEY_F24 for the latter (report by George
Eccles).
+ several improvements and fixes to lex-filt.l
+ expressions for regular expression parsing are more complete, which
allows separating patterns from state lists. That allows some
error-checking in the rules section to flag spurious whitespace
after a regular expression. The more-complete regular expressions
make the parser much larger (about 5 times the original size).
A rewrite in C might be shorter.
+ ignore case of "%s" vs "%S" or "%state", etc.
+ parse the pattern names, applying highlighting to the names where
they are embedded in regular expressions.
+ parse the "%s" (state) lists, applying highlighting to the states.
+ handle flex's <<EOF>> token.
+ handle character classes in the RANGE pattern.
+ remove an update() call from the logic in input.c which decodes
hex/octal input after a ^V. That caused the screen to move the view
according to the address in the command, e.g.,
:%s/^Vx12
would scroll to the bottom on entry of the "x" (report by Daniel L
Ashbrook).
+ correct behavior of set-dos command, which did not recompute the
buffer-size.
+ make end-of-token test for store-proc consistent with bind-key,
i.e., alphanumerics and hyphen. Amend that test to allow underscore
(report by George Eccles).
20050905 (a)
> Tom Dickey:
+ review/improve vl-filt.l based on Verilog LRM draft
+ add configure check for lex's which support character classes, and
add filters/noclass.sh to work around those which do not.
+ improvements to configure script from ncurses:
+ improve check for Intel compiler warnings
+ improve check for gcc version
+ define _QNX_SOURCE for QNX
+ revert part of 9.4n, which caused readin() to return false if there
was no filename associated with the buffer. Doing this broke some
macros such as which-keywords (using buffer constructed by the
macro). Previously it returned true, indicating success.
+ improve parsing of range expressions in lex-filt.l, fixes a case
exposed by css-filt.l
+ correct a case where slowread() in dosmode would compute an incorrect
buffer size.
+ modify bat-filt.l to highlight "echo." consistently with M$ usage.
+ modify bat-filt.l to highlight "%*".
+ add syntax filters for bnf, css, midl, php and wbt, for WinBatch.
+ modify syntax filters to use flex's character classes.
Changes for vile 9.5 (released Mon Jul 25 2005)
20050717 (zb)
> Clark Morgan:
+ if winvile is minimized, don't resize client rectangle. This fixes
a case where minimizing the editor with more than one window, then
restoring it, only one window was shown.
+ amend change from 9.4p which changes the pointer symbol; fixes a case
where the pointer is not restored when moving along a mode line onto
the scrollbar.
> Tom Dickey:
+ rename spawn() to vl_spawn(), since QNX has a conflicting symbol.
Doing this makes shell and pipe commands work for QNX.
+ amend change made in 9.4za to check if the compiler can support
the -U/-D combination.
+ fix sign-extension problem in ldelete() caused by B_COUNT change
in 9.4u (report/analysis by Clark Morgan).
+ remove a chunk in tcap.c which assumed that all xterms implement
scrolling. Since the test-variable could be set when the terminal
implements xterm-mouse (termcap Km or terminfo kmous), then this
could cause misbehavior.
+ fix an ifdef for O_NDELAY in termio.c that broke BeOS build in 9.3e
+ amend test for struct dirent64 to ensure it is used only when it is
part of the prototype for readdir().
+ apply change used in 9.4x for built-in filters to fix redefinition
to use this in loadable and external filters.
+ compiler-warning fixes for various platforms.
20050710 (za)
> Peter Prymmer:
+ fixes for building on VMS
> Tom Dickey:
+ suppress a check for VMS from changes to quickreadf() in 9.4u which
made vile unable to read VFC files.
+ improve configure checks for _XOPEN_SOURCE and _POSIX_C_SOURCE by
not adding a -U option to cancel conflicting -D's, but by stripping
the conflicting option from $CFLAGS and $CPPFLAGS. This addresses
compilers that do not process options left-to-right (report by Urs
Jansen).
+ update list of warning options for Intel C compiler for 9.0 running
on 64-bit platform.
+ modify configure script to allow it to define _GNU_SOURCE for Intel
compiler (report by Urs Jansen).
+ deprecate TYPECAST() macro by using it only for gcc
+ add ".asp" to jspmode suffixes
20050626 (z)
> Tom Dickey:
+ add ".dcl" filetype for dclmode.
+ add ".cls" filetype for vbmode, add symbols for Visual Basic class
modules to vb.key
+ fix to ntwinio.c change from 9.4y which broke parsing of multiple
filenames on the command-line.
20050618 (y)
> Tom Dickey:
+ revert 9.4p change to vilefilt.l
+ add ".mm" to nroff mode.
+ modify ShowFormatted macro to support "-mm" macros.
+ modify dequoting of winvile's command-line in ntwinio.c to allow for
quoting to be within parameters, e.g.,
winvile +"100" makefile
+ fix a pointer for tgetstr() result which was not initialized for the
termcap driver. The corresponding terminfo call does not use the
pointer (since 9.3d).
20050612 (x)
> Tom Dickey:
+ fix a problem with curses driver where doing
:r !date
would result in garbage screen display.
+ workaround for redefinition via includes generated by flex before
filters.h was included, by prepending that include to flex's output.
20050608 (w)
> Tom Dickey:
+ eliminate some strlen() calls to improve performance by caching the
record separator value and its length in BUFFER.
+ fix inconsistent use of dummy value for DIRECTIVE in filterio.c
(report by Clark Morgan).
+ change TILDE to CH_TILDE to avoid symbol conflict on AIX.
+ improve largefile support by ensuring that _LARGE_FILES and/or
_LARGEFILE_SOURCE are defined before including any header file.
20050530 (v)
> Tom Dickey:
+ add reader-policy mode, which allows one to control whether vile will
fall-back to slowreadf() if it encounters an error. The case where
quickreadf() would fail that slowreadf() might succeed is for reading
a very large file when memory was also fragmented. But using
slowreadf() would (besides being much slower), also use even more
memory in this case, making it unlikely that it would succeed in any
case (discussion with Dave Kristol).
+ fixes to build clean(er) with Intel compiler:
+ adjust ifdef's for fallback prototype for open() in case it is
really open64().
+ add a "%u" format type to dofmt(), use it to display file-sizes.
+ define DIRENT to struct dirent64 for the case where
_FILE_OFFSET_BITS is 64 and _LP64 is not defined. Use a configure
script check to ensure the type exists.
+ add/use function bpadc() to replace "%P" and "%Q" formats in
dofmt().
+ add/use function format_int() to replace "%r" format in dofmt().
+ modify name-completion to allow completion of filenames containing
a '$':
+ modify shell_complete() to only try to expand $variables if the
'$' is not escaped.
+ modify glob's expansion of $variables to ignore a trailing '$' or a
'$' not followed by a name-character, as well as a '$' preceded by
a backslash.
+ split string_has_wildcards() into two parts; the new part (called
from the old) string_has_globs() checks only for wildcards that are
processed after expanding tilde and environment variables.
+ escape backslashes and $'s in expand_wild_args() to account for the
checks for backslashes added in this change.
+ restore default search for buffer by number omitted in changes to
use for-buffer mode, e.g., ":ki 1".
20050522 (u)
> Paul Fox:
+ relax a check in ":w" by checking if the given name differs from
the current filename. If so, do not require ":w!" to write a
readonly file to a different location. This allows one to reuse
the filename history for ":w".
> Tom Dickey:
+ add mode for-buffers, which specifies whether kill-buffer (and
for-buffers) command use globbing or regular expressions (request
by Clark Morgan).
+ fix ifdef's in filters.h to allow configuring --with-no-leaks when
no built-in filters are used.
+ add configure script option for largefile support.
+ modify computed percentages in ruler and ^G command to avoid overflow
(report by Dave Kristol)
+ modify interfaces of ffread() and ffsize() to allow results to be
returned as ULONG.
+ change B_COUNT to an unsigned type (ULONG), to allow for reading
files larger than a signed value would allow (report by Dave
Kristol).
+ add command for-buffers, which performs the same command for the
specified buffers.
20050515 (t)
> Tom Dickey:
+ add --disable-imake option to configure script, from xterm.
+ skip some unnecessary checks in configure script if imake is not
found.
+ add ".ph" and ".pph" to esqlmode suffixes.
+ add parsing in perl filter for range operator ".." (reported by
H C Dickey).
+ correct definition of nmakemode, which left fence operations out
since they were assigned to makemode.
+ add syntax filters for iss- and ini-modes.
+ add iss-, nsis- and ini-modes
+ improved the winvile.iss script, allowing installer to set system-
or user-environment variables, or to put the corresponding paths
in the system- or user-registry settings.
+ correct parameters of "~local" in pictmode.rc, which omitted the
"%" designating local variables.
20050324 (s)
> Tom Dickey:
+ improve rubyfilt.c
+ check for token beginning here-document cannot begin with a digit.
+ improve operator-parsing, use that to fix a case where "<<"
operator was confused with the beginning of a here-document.
+ treat newline as a statement terminator (report by Paul van
Tilburg).
+ correct a loop limit in on_double_click(), used by winvile. Double
clicking on the first line of a file would (depending on content and
the build configuration) set the beginning of the region before the
line.
+ add VILE_HELP_FILE to the list of environment variables managed by the
Inno Setup script.
+ fix a missing include for w32vile.h needed to compile filters on
win32 (also reported by Larry Gensch).
+ correct extent of highlighting in update_line_attrs() when number
mode is active.
20050313 (r)
> Tom Dickey:
+ modify environment variable lookup for win32 to look in the registry
for the VILE* environment variables:
VILEINIT
VILE_HELP_FILE
VILE_LIBDIR_PATH
VILE_STARTUP_PATH
VILE_ERROR_ABORT
This change is made to make it more easily installable; Windows
changes to environment variables apparently do not take effect until
the machine is rebooted. Registry changes take effect immediately.
+ improve checks for _XOPEN_SOURCE, _POSIX_C_SOURCE in configure script.
+ improve sql-filt.l's parsing of SQL*PLUS
+ modify spellflt.l to allow it to be used in winvile, using npopen,
etc.
+ add package script for winvile using Inno Setup.
+ rename PATCHLEVEL to VILE_PATCHLEVEL to avoid conflict with Perl's
symbol.
+ move the version definition from edef.h to patchlev.h to reduce the
number of places to change.
+ modify manpage.rc to check if txtmode exists before attempting to use
it.
+ add parsing in rubyfilt.c for %x, like %Q. Change parsing for
backtic to match %x (report by Paul van Tilburg).
+ correct quoting for here-document beginning in rb-filt.l (report by
Paul van Tilburg).
+ modify interpretation of ~local, ~with, ~elsewith and ~endwith so
they are within the normal ~if/~endif hierarchy. This makes the
9.4q change for SpellFilter work as intended.
+ fixes for tbuff.c to ensure TBUFF is updated properly when cancelling
a macro prompt, e.g., with ESC (report by Paul Fox).
+ add configure check for popen(), use corresponding ifdef's to enable
console version of vile-spell-filt.exe on win32.
20050213 (q)
> Tom Dickey:
+ several improvements to rubyfilt.c:
+ show variable-expansion within generalized double-quote %Q.
+ implement [] ranges in regular expressions.
+ fix handling of escaped characters, which were not always ignored.
+ correct logic for regular expression options, which used the wrong
location (noticeable if there was a newline nearby).
+ add check to distinguish '/' operator from regular expression.
+ add parsing for alias statements.
+ add parsing for def statements.
+ add parsing for class definitions to avoid conflict with
here-documents.
+ add parsing for "$1" and similar symbols
+ add parsing for "1.upto(n)" and similar operators applied to
constants.
+ add vbsmode using ".vbs" suffix based on basmode.
+ fix two issues related to rbmode (Debian #292652):
+ correct order in flt_lookup(), which tested filtername value after
checking against built-in modes. Since rbmode should use
vile-ruby-filt, that caused it to use vile-rb-filt instead.
+ rb-filt.l (vile-rb-filt) had a "?" in the expression which begins
here-document that applied to the "<<-" string. It should have
applied to optional whitespace after that.
With the combination of the two, files containing a quoted name were
treated as a here-document. This bug was exposed by a difference in
order of evaluation that came from quoting the "<<-" to work with an
old version of flex.
+ change highlighting for misspelled words to Error class.
+ remove "-x" option from fallback definition of SPELL_PIPE, since that
is only useful if ispell happened to be installed as "spell". For
Solaris, "-x" means something entirely different.
+ add environment variable VILE_SPELL_FILT to vile-spell-filt, to allow
overriding the compiled-in program and options used for performing
the lookup.
+ move ~local declaration for SpellFilter inside ~if statement where
they are used; otherwise using external filter does not work.
+ add limit-check for kcod2escape_seq().
+ correct mode-filename for vilemode, which needs an optional "." to
match ".vilerc".
+ correct sql-filt.l, which did not restore default symbol table after
processing an token with the sqlplus symbol table.
20050202 (p)
> Clark Morgan:
+ make ":w! cygwin_rdonly_ntfs-based_file" work. Tested as follows:
win98 -- fat32
win2k -- fat32 and ntfs
winxp -- fat32 and ntfs (with administrator privs and no privs)
+ when selecting text, show I-beam cursor (winvile only).
+ when selecting a movable mode line, show a double-headed, north-south
cursor (winvile only).
+ when moving the mouse over a movable mode line, show a double-headed,
north-south cursor (winvile only).
+ don't allow mouse capture if LMB is pressed in the area encompassing
the editor's last two lines (message line and nonmovable mode line).
Don't allow mouse capture if LMB is pressed on movable mode line.
Corrects long-standing winvile bugs.
+ add graphical CD to [win]vile via new command "wincd". The graphical
CD is also accessible via winvile's system menu and right mouse popup
menu.
+ ensure that files created via winvile's "Save As" and vile's ":f"
commands are remembered in winvile's "Recent Files" list.
+ winvile uses status return of edit_recent_file()/cd_recent_folder()
as negated argument to update(), which subsequently moves cursor out
of message line if either function reports an error.
General comments:
- the editor's bottom mode line is not movable.
- I tried making similar cursor shape changes for console vile (when
LMB is clicked) but Windows XP would not allow the vile process to
change the cursor of the parent window, as returned by
GetForegroundWindow().
> Tom Dickey:
+ correct state-switching in sh-filt.l for backtic's; it was not
flushing the buffer used to build up quoted text (since 9.3e).
+ add a null-pointer check in write_states() of lex-filt.l which did
not appear to be needed (since 9.3q).
+ ".jsp" files are really (close to) a variety of HTML files. Add
simple support for JSP in htmlfilt.l
+ fix pl.filt.c to check for arrows inside parenthesis, e.g.,
if ($a->y != $b->y) {return $a->y <=> $b->y}
+ modify vilefilt.l to disallow escaped single-quote in single-quoted
strings, and to flag unterminated strings as an error.
+ modify tb_enquote() and tb_dequote(), eliminating feature that
allowed single-quotes to be escaped in a single-quoted string. That
led to inconsistent results when a string contained a trailing
backslash. Noticed this when using shifts.rc on an X app-defaults
file, this also appears to fix a related report by Clark Morgan.
+ correct mode-filename for RCSmode from 9.4o changes.
+ review/update some beginDisplay/endofDisplay checks, making these
use assert's whenever tracing is compiled-in.
+ add check in vl_restore_modes() to ensure that it does nothing if
vl_save_modes() was not called. For some platforms, that would cause
screen or script to die if the output of "vile -V" were redirected.
20050124 (o)
> Tom Dickey:
+ correct change to tb_error() which freed data buffer without also
resetting the corresponding size recorded for the buffer.
20050124 (n)
> Clark Morgan:
+ remove deprecated SHGetMalloc() from w32oo.cpp, tested on WinXP, 2K,
98.
+ fix a case where spawned winvile console would sometimes be missing
error message. For example, if winvile is invoked from a cygwin
shell command line and a command is spawned like so:
:!command_that_generates_error
Then _no_ error text appeared in the spawned console window.
:!mkdir name_of_existing_dir
Tested on win2K, xp, win98.
+ several changes to allow winvile to remember recent files and folders
+ winvile remembers up to 20 of the files it has recently
opened/created (feature disabled by default).
+ winvile remembers up to 20 of the folders it has recently visited
via an implicit or explicit cd (feature disabled by default).
+ Remembered files/folders are accessible and "replayable" from
winvile's system menu.
+ Two new modes: recent-folders and recent-files specify maximum
number of folders/files that may appear in winvile's system menu.
Range is 0-20; a value of 0 disables feature. (U)
+ Two new commands: purge-recent-folders and purge-recent-files
clear the list of folders/files that appear in winvile's system
menu.
+ modes and commands work in console mode (minimizes conflicts when
sharing a single vile.rc), but the files/folders that console vile
accesses are _not_ remembered.
+ tested on win98, win2k, XP. Changes test-compiled on linux.
+ tested with multiple users on XP, as well as in the context of an
unprivileged user.
+ improve the winvile resize/status window:
+ make resize window wide enough to show geometries that exceed 99
columns
+ make resize window continually center itself over the editor's
frame (NT and XP only).
+ Tested on a variety of screen geometries on NT and XP using both
large and small fonts. Cross-checked on win98.
+ amend oleauto.doc to tell how to make wvwrap work with XP service
pack 2.
+ update vile.hlp to describe new modes.rc file.
> Tom Dickey:
+ review/correct places where result of malloc is not checked for null.
Test using small memory limit (addresses report by Emil Rojas for
processing very large tags files, and earlier report by George
Eccles).
+ change gutter width for line-numbers from 2 to 1.
+ work around for Borland C++ 5.5 to ignore EPIPE on an end-of-file.
+ work around in mlwarn() to report system errors with Borland C++ 5.5,
whose strerror() values have trailing newlines.
+ indent'd btree.c
+ change return-value of readin() to false if the given filename is
empty (report by Clark Morgan).
+ ensure that all mode-filename values are anchored to avoid confusing
them with piped commands.
+ modify diffmode to use pipe output as a mode-filename value, and
modify mode inference to allow this special case. Pipe output is
not checked for suffixes, since its filename value may contain
many filenames.
20041215 (m)
> Tom Dickey:
+ modify x11.c, ntconio.c and ntwinio.c to make modifiers work with tab
key, e.g., to add shift-key as a back-tab key.
+ add macro show-each-buffer (file showeach.rc), which splits up the
screen into equal chunks to display as many of the non-scratch
buffers as possible.
+ modify macro parameter evaluation so it does not attempt to compute
a value for function tokens or goto-labels. Otherwise pathnames such
as "~\foo" look like macro directives and produce an error.
+ correct slash/backslash translation (win32, etc) for some of the
built-in functions; the translated result was not actually the return
value: &path and &pcat.
+ correct flags in modetbl used to annotate trace of &seq and a few
other operators.
+ correct length computed for $bflags variable; an empty string was
returned.
+ add a section on command-line options to doc/filters.doc
+ add macro which-filter to show which locations would be checked for
an external filter. If the filter happens to be built-in, this is
also noted, in the message line.
+ improve 'eval' command, provide for mixture of functions and other
tokens which are passed to the script interpreter.
+ modify SpellFilter macro to use the results from [Filter Messages]
with the error-finder to step through the misspellings.
+ add macro show-filtermsgs to show syntax filter messages, setting the
list to the error-buffer to provide simple stepping through the
errors which are found.
+ add commands popup-buffer and popdown-buffer, which open/close
windows for the given buffer rather than changing the current window
to show a different buffer. The popup-buffer command is a wrapper
for the existing logic used for help and similar commands. The
popdown-buffer command differs from delete-window by closing all
windows for the given buffer.
+ remove the pre-9.4e workarounds for set-highlighting and
which-keywords macros.
+ modify kdb_reply() to shift the minibuffer left/right as needed after
doing the initial tab of a name-completion, in case that left the
cursor position past the end of the line (report by Paul Fox).
+ add new operators to make it simpler for macros to check for
features: &isa, &classof and &mclass.
+ modify historical-buffer to allow tab/back-tab to cycle through the
first 9 buffers, solves the problem of seeing more than the first
few possibilities on the message line. Toggling with the repeated
'_' selects the first buffer shown.
+ add back-tab to termcap/terminfo driver as a bindable key.
+ modify configure script to make builtflt.h part of $(BUILTHDRS) to
simplify "make sources" rule.
+ modify htmlfilt.l to match </script> in the middle of a line to
accommodate pages where the script is given by a "src=".
+ add filtermsgs mode, for built-in filters to report syntax errors
into [Filter Messages] buffer so that one may use the error finder to
locate these (motivated by a 200,000 line xml file).
+ correct state manipulation in xml-filt.l, which was confused by
CDATA pattern.
+ correct $CPPFLAGS for linting configurations with built-in filters.
+ correct typo in configure script from 9.4k fixes for iconv_open().
20041207 (l)
> Clark Morgan:
+ modify special treatment of "#" which prevents it from being shifted
with ">>" by disabling that when cindent is unset.
+ reenable SHIFT+INSERT in the win32 mini-buffer (for both vile.exe and
winvile.exe). Unfortunately, the cygwin shell eats SHIFT+INSERT for
console vile (mini-buffer input only), but I don't think I can do
much about that. So, now, it's once again possible to:
$ vile somefile
/<shift+insert> <- search for string sitting on clipboard
> Tom Dickey:
+ correct computation for 0-based versus 1-based column/line values in
the error-finder; the values were computed but not saved in the
compiled error expression's state.
+ improve complex fences for adamode.
+ add ".termcap" and ".terminfo" suffixes for respective majormodes.
+ add ".jad" suffix for javamode for Java Disassembler.
+ add a few ex-commands: nu, j!, wq!
+ change kbd_reply() to check if the current value is the ERROR token,
and to clear it in that case. This fixes a bug which would show the
trailing null (since the computed length for ERROR ignores the TBUFF
length), e.g.,
setv $title=ERROR\^@
+ modify statevars.c to make read/write of $title consistent, i.e.,
will warn that it cannot be set in the termcap configuration.
+ correct logic for changing the xterm-mouse via the termcap driver.
It was not opening or closing the keyboard, not both, which would
leave xterm switched from the alternate screen.
+ modify [Messages] buffer so that it is only invisible, not a scratch
buffer. The latter makes it be automatically removed after viewing
and closing the window.
+ fix search scanner to know about left-margin property.
+ review/repair logic for OPT_CACHE_VCOL in dot_to_vcol(), in
particular making it work properly with [Registers] and similar
buffers having a left-margin property (reported by Paul Fox).
+ fixes to build with Intel 8.0 compiler on Linux:
+ add check for _XOPEN_SOURCE, _POSIX_C_SOURCE in configure script.
+ add macros DECL_EXTERN_CONST() and DECL_EXTERN().
+ turn off its so-called default gcc-compatibility and set compiler
warnings specially.
+ fixes to build with Borland C++BuilderX 1.0. It requires a rename
of regexec/regcomp to avoid calling like-named functions in a DLL.
+ fixes to build with lcc-win32 (though its makefile-generator is
limited and requires one to edit the makefile).
+ correct configure script macro CF_FUNC_ICONV so the script does not
exit with an error if the system does not happen to have iconv.
+ some fixes to compile filters with Tru64 4.0g's lex/flex:
+ ensure angle brackets in patterns are quoted
+ put whitespace between command/value in options such as "%o3000".
+ add pattern for "ant" (Java make-program) to a few of the patterns
in finderr.c
+ modify ".table" command in filters parsing to read the user's color
definitions, e.g., from .vile.keywords, as is done in a ".source"
command.
+ add a ".brief" to filters parsing, which uses "?" to match zero or
all of the following characters, in contrast to ".abbrev" which uses
"*" to match zero or more of the following characters.
+ modify sql-filt.l to distinguish between SQL*PLUS and SQL, PL/SQL.
The latter delimit statements with semicolons, while the former makes
that optional, using newlines.
+ modify call on insert_keyword() to use the given name, e.g., a class
rather than its attribute. This fixes a bug exposed in sql-filt.l
by changing sql.key to use ".default" to simplify it.
+ add check for setlocale() returning null.
20041107 (k)
> Tom Dickey:
+ modify glob_match_leaf() to work with 8-bit characters.
+ correct loop in glob_match_leaf(), which did not handle strings such
as "[!strings xyz-]".
+ correct expression in filters.rc for %filters-modes (report by
Duncan Sargeant).
+ fix conflict between DECWindows Motif/Xt libraries and the non-Motif
Xt library in vmsbuild.com
+ make xvile compile properly on VMS by defining XTSTRINGDEFINES.
+ modify catnap() function to use IEEE floating point on IA64, since
that platform does not support F-floats.
+ modify vmsbuild.com and descrip.mms to work with IA64.
+ add $goal-column variable for debugging.
+ fix quoting and parameter list for iconv_open() in configure macro
CF_ICONV_FUNC.
20041031 (j)
> Clark Morgan:
+ add "explicit" and "typename" to cpp.key
+ correct parameter lists for chgd_icursor() and chgd_popupmenu()
in ntconio.c and ntwinio.c which were not updated in 9.4b, which
added a BUFFER* parameter.
> Tom Dickey:
+ add parameter to hst_append() to control logic which is used to build
up shell commands for replay. Use this parameter to suppress shell
command construction when prompting for regular expressions and other
strings that cannot be shell commands (report by Daniel L Ashbrook).
+ save/restore MK in kbd_reply() to work around lost value of MK when
swbuffer() is called as a side-effect of name-completion. This
caused commands such as
!Gls /tmp/<tab><tab>
to report a "BUG: no mark" (report by Daniel L Ashbrook).
+ modify PromptAndSet() to allow a cancelled prompt for variable's
value to store an ERROR token, which can be tested in scripts with
&error (request by Clark Morgan).
+ modify filters.rc, modes.rc and vileinit.rc as follows (reports by
Clark Morgan and J Chris Coppic):
+ filters.rc turns on automatic syntax highlighting only if both
builtin-filters and colors are available. Before 9.4i, vileinit.rc
turned on automatic syntax highlighting.
NOTE: if you are using external syntax filters, vileinit.rc no
longer automatically enables highlighting for this case. The
builtin or loadable filters perform better for most systems.
+ add a variable %filters-modes, set in modes.rc to be tested by
filters.rc to ensure that modes.rc is source'd if needed. Both of
these files are sourced by vileinit.rc in 9.4i, but not everyone
uses vileinit.rc
+ update vile.hlp to reflect these changes.
+ ensure values for $bchars and $blines are up-to-date, e.g., if
which-keywords is called twice in succession in the same macro the
values were not, causing the [Which Keywords] content to be repeated.
+ indent'd vmsvt.c, vms2unix.c
+ add VMS mode record-attrs, modify logic in vms_creat() to use this
information to make the default VFC files written from DCL editable.
Those use PRN (print file format) record attributes (report by
Jordan Henderson).
+ modify terminal settings for VMS to improve type-ahead.
+ add xterm-style bindings for F1-F5 to vmsvt.c
+ modify which.rc to use &pcat rather than $pathname-separator, since
the latter is ambiguous on VMS.
+ modify infer_majormode() to work with VMS pathnames.
+ correct logic for VMS pathnames so that a directory buffer will,
as on Unix, give the same buffer name as the directory leaf.
+ improve fakevms test-driver and related OPT_VMS_PATH code for VMS
pathnames, making name-completion work for VMS pathnames on Unix.
+ fix a memory leak in old_namebst().
+ modify tb_bappend() to avoid memcpy() with the same source/target
address (valgrind warning).
+ add/use CAN_TRACE symbol to allow configure --with-no-leaks, since
the unfilter program otherwise fails to link in that configuration.
+ add some discussion of character classes to vile.hlp
+ fixes for vile-9.4.spec, adds vile-pager to list of installed files
and installs manpage in the normal man-directory (patch by Radek
Liboska).
+ add configure option --with-iconv, use that to extend termcap driver
to allow it to handle encodings other than Latin-1, e.g., Latin-2
(request by Radek Liboska).
+ extend workaround for UTF-8 locale in termcap driver to translate
UTF-8 input to Latin-1.
+ improve/extend checks for locales which correspond to 8-bit character
encoding, resetting to POSIX locale (ASCII) if the nl_langinfo()
function returns a value that does not look like ASCII or ISO-8859-x.
This change applies to the termcap/terminfo and X11 drivers.
+ show locale and encoding values in header of [Printable Chars].
+ add $encoding and $locale variables to show what vile's internal
8-bit encoding and locale are set to.
+ turn on locale feature on win32
+ workaround for broken locale table on Solaris8 and Windows2000, etc.,
which shows tab as both as printable and a control character. The
ISO C standard states that control characters are not printable.
+ add nmakemode, for special cases such as M$'s ".dsp" files.
+ add syntax filter for AutoIt version 3 and majormode au3mode.
+ correct pattern for HEX in bas-filt.l
20040808 (i)
> Mark Robinson:
+ split-out modes.rc from filters.rc to make configuration more
flexible, e.g., for --disable-filters.
> Tom Dickey:
+ add named operators (eq, ge, gt, le, lt, ne, or, and, cmp, not, xor)
to perl syntax highlighter check for tokens that may precede a
pattern (report by Daniel L Ashbrook).
+ fix escaping within strings for tcmode; it was looking only for ":"
or newline, but any character could be escaped.
+ fix highlighting of aliases without description in tcmode and timode.
+ add ".tic" as a suffix for timode.
20040620 (h)
> Tom Dickey:
+ correct which-keywords to work with 9.4e change that appends "mode"
to majormode parameters of procedures.
+ rename utility macro which-filename to WhichFilename, to avoid
conflict with which-filter.
+ add/use tb_setlen() in run_func() to update the lengths of TBUFF's
which are built by unusual methods, e.g., allocating a large TBUFF
and using lengthen_path() to rewrite its contents. This was not
a noticeable problem until run_func() called tb_enquote(), which
assumed the TBUFF length was correct.
+ modify FindMode() in perl.xs to dequote results from evaluating
a function, since 9.4f changes cause string results of functions to
always be quoted.
20040617 (g)
> Clark Morgan:
+ modify manpage.rc and color-ls.rc to avoid showing their guts if
aborted.
+ vile.hlp changes:
+ add discussion of mode-pathname and mode-filename to the section
on Majormodes.
+ add notes about optimizing suffixes for C versus C++ editing.
> Fabien Coutant:
+ add experimental plugin support and example.
> Tom Dickey:
+ indent'd ansi.c
+ configure-script fixes:
+ change prerequisite to autoconf 2.13.20030927 patch, mainly for
OS/2 EMX. Other systems use the 2.52-generated configure script.
+ modify --with-Xaw3d, --with-neXtaw and --with-XawPlus options to
avoid being confused by options such as --without-Xaw3d.
+ several fixes to accommodate quoted string definitions introduced
in some imake configurations, which did not work with the
CF_ADD_CFLAGS macro's parsing.
+ modify CF_X_TOOLKIT to remove the checks for clix (obsolete) and
move the call to AC_PATH_XTRA to the beginning - which it
essentially was anyway. Now it simply calls AC_PATH_XTRA and
ensures that I can get -lXt and -lX11. Reading the code, it seems
that the IRIX6/IRIX5 issue was taken care of in autoconf 2.13.
+ modify CF_NCURSES_LIBS to only look for -lmytinfo when building
with ncurses. This works around FreeBSD's broken linker semantics
when configuring for ncursesw.
+ add $error-tabstop variable, to allow changing the tabstop value
used when interpreting %C results in the error finder. Most programs
assume 8, and that does not work well when editing buffers with other
tabstops such as 4.
+ correct perl highlighting of subscripts which happen to be the same
as quote-operator names, e.g.,
$foo{y}
(report by Daniel L Ashbrook).
+ correct perl highlighting of variables within double quotes, ignoring
single-quotes which may happen to follow, e.g.,
"foo = '$foo'"
(report by Daniel L Ashbrook).
+ correct logic in vl_lookup_func(), which did not allow match on
">", since that appeared to conflict with ">seq" (report by
Clark Morgan).
+ change TPRINTF() macro so that if debugging trace is turned on, the
same text that would be written to [Trace] is also written to the
Trace.out file.
+ modify dofmt() to handle "%*.*s" and "%.*s" formats, removed "%*S"
format.
+ replace doc/indent.pro with ncu-indent, a script which allows preview
of the indent changes. Note that preview relies on bug-fixes which
are not in "official" indent. See the indent section in
http://invisible-island.net/gnu-patches/gnu-patches.html
+ modify needQuotes() to return true only if both conditions apply
(the token needs quoting and it is not the first token) rather than either.
This makes [History] show things like
set tags=foo
set tags="foo bar"
rather than
set "tags"="foo"
set "tags"="foo bar"
+ revise quoting of strings returned by run_func(), using new
functions tb_enquote() and tb_dequote(). This fixes case such as
set tags=''
write-message &cat "tags: " $tags
which lost one of the single-quotes when the "set" command was
interactive (report by Clark Morgan).
+ modify cppmode's suffixes to look for .C, .H and .CC only on systems
where filenames are case-sensitive.
+ call attrib_matches() at the end of attribute_directly() to restore
highlighting due to visual-matches. This fixes a bug where autocolor
might wipe that highlighting away (report by Clark Morgan).
+ modify pattern for logmode to allow filenames such as gmake.out
+ modify latexflt.l to not color "|" in TEXT state.
+ add map's for newer XFree86 xterm shifted cursor-keys (see
+ improve label-expression in dcl-filt.l
+ modify dcl-filt.l to recognize $DECK / $EOD literal lines.
+ modify c-filt.c to recognize Java double suffix, e.g., 1.0e1d
+ revise/extend js.key based on ECMA-262 and other online information.
+ add a mode-pathname setting for cppmode, so files under (for example)
/usr/include/g++ will be treated as C++. Newer C++ headers have
no suffixes.
+ add ".hpp" to suffixes for cppmode.
+ add ".el" to suffixes for lispmode.
+ add an "-s" option to c-filt.c, for JavaScript (to support jsmode).
Use this to control whether to allow regular expressions in certain
cases.
20040411 (f)
> Clark Morgan:
+ modify vilemode, adding "sections" expression.
+ vile.hlp changes:
+ modify syntax coloring topic to remove prerequisites that refer to
features from long, long ago ("nocmode" and old copies of c syntax
coloring files) that most users won't remember or encounter.
+ revamped "Editor modes" section, in particular, moving discussion
of majormodes to a point in the help file that directly follows
syntax coloring.
+ added mode flavor tags (B, U, W, M) to modes that lacked same.
+ documented that "suffixes" is tested against a filename's complete
path.
+ stripped c-tabstop from vile startup example.
+ explicitly emphasized ignoresuffix's behavior.
+ for cindent, tabstop and shiftwidth modes, documented cmode's
default local mode values.
+ added a "Majormodes" section. Added a subsection entitled
"cmode: the original vile builtin majormode"
> Tom Dickey:
+ indent'd csrch.c, globals.c, map.c, wordmov.c
+ modify logic for RS_AUTO to treat it consistently as the "default"
keyword for record separator (report by Clark Morgan).
+ remove an unnecessary message from makelist.sh (report by Clark
Morgan).
+ modify mac_tokval() to avoid calling tb_scopy() if the result from
tokval() is the original pointer plus one (for stripping a leading
quote), fixes an overlapping memcpy warning from valgrind.
+ correct logic in test_by_suffix(), which was not obtaining the
submode value for "ignoresuffix" as intended (discussion with Clark
Morgan).
+ modify comparison for maplength to use at least 25. Very small
values make vile unusable (report by Clark Morgan).
+ revert part of the initialization in substreg1() so the replacement
pattern is reset rather than copied (report by Brendan O'Dea, 9.3n).
+ make "TODO" a txtmode file.
+ add ".shar" to shmode suffixes.
+ add "&match" and "&cmatch" functions for checking if a given regular
expression matches a string (request by Clark Morgan).
+ split up the majormode "suffixes" into suffixes, mode-filename and
mode-pathname to make it clearer how to associated regular
expressions with the filename for majormodes (discussion with Clark
Morgan).
+ remove explicit assignment to DESTDIR in makefile.in's, since newer
GNU make program does not allow command-line to override it (it
apparently did work with some version of GNU make in 1999 for 8.3i).
+ correct logic in perl.xs from 9.4d which parses $VILE_LIBDIR_PATH;
it used the wrong variable for storing an intermediate result.
20040321 (e)
> Clark Morgan:
+ document set-highlighting macro in vile.hlp
+ update/revise some details in doc/modes.doc relating to cmode:
+ remove any mention of "set cmode" as a (presently) useful command.
+ list "setl [no]{majormode}" as essential majormode features [as
near as I can tell, "setl {majormode}" is the only mechanism
available for a user to explicitly attach a majormode to a buffer]
+ update the history of majormodes to reflect the way things were in
the past, but not now. This is done primarily by changing the
grammatical tense of various sentences.
> Tom Dickey:
+ add mode "ignoresuffix", which tells vile to strip the given pattern
from a filename before matching majormode suffixes against it.
+ add mode "showchar", which turns on a field in the modeline that
tells what the character value is at the current editing position.
+ modify pregion() to reset the "counted" state on the buffer, to work
around a case on win32, where CRLF_LINES is set, the "p" command's
output did not count the extra byte per line for ^M's. When saving
[p-lines] to a file, it was truncated.
+ modify isMiniEdit() to always return true if miniedit mode is set.
That allows one to use ^Ga to toggle miniedit mode and append to
the buffer shown from a previous command rather than having it
erased (discussion with George Eccles).
+ modify mac_tokval() to avoid calling tb_scopy() if the result from
tokval() is the original pointer, fixes an overlapping memcpy warning
from valgrind.
+ fix incremental-search's initialization, broken in 9.3l (report by
Richard Mitchell).
+ improve COMMENT expression in txt-filt.l to include the lines of
dashes in vile.hlp (report by Clark Morgan).
+ fix to avoid putting dummy entries into the list of all modes when
a corresponding short modename does not exist for a given submode of
a majormode. That was making ":set <tab><tab>" show names such as
"RCSX" and "cppX".
+ fix a couple of places reported by gcc -Wundef on OS/2, e.g., the
OPT_WORKING macro.
+ modify htmlfilt.l to use caseless comparison for HTML keywords.
+ improve configure-script checks for dbmalloc and dmalloc.
+ modify preamble pattern for pymode to work with
"#!/usr/bin/python2.3 -S"
+ modified [a-z] expression to [\a] in preamble for awkmode, cshmode,
sedmode, shmode, tclmode to allow uppercase options.
+ add ".jsp" to jsmode suffixes.
+ fix imake filter to handle a case where XCOMM comment contained a
colon; it was highlighted as if it were a makefile target.
+ modify name-completion for majormode names used as macro parameters
to use the long name (with "mode" ending) rather than the short
name, for consistency (suggested by Clark Morgan).
+ modify filters/*.awk to ensure that space-separated lists for the
--with-builtin-filters, etc., options are handled properly. Both
comma-separated and space-separated lists are permitted now (report
by Clark Morgan).
+ fix missing assignments from 9.4b changes to $builtins and $loadable
variables in configure script, which caused build to fail if explicit
list was given for --with-builtin-filters or --with-loadable-filters
(report by Clark Morgan).
20031220 (d)
> Tom Dickey:
+ modify pl-filt.c to handle
sub y { }
i.e., not treat the "y" as the beginning of a pattern.
+ modify perl.xs to allow for $VILE_LIBDIR_PATH to be a list of paths.
Only add the corresponding xxx/perl names to @INC if they correspond
to a real directory.
+ rewrote pascal syntax filter in lex, adding highlighting for numbers,
and TurboC, Delphi comments.
+ improve pascal keywords.
+ relax check for dlopen() by assuming that at least RTLD_LAZY is
defined. This works for SunOS 4.1.4.
+ add a check in de_extend_lines() for a null wp->w_line.l, recover
by resetting to the buffer-head (report by George Eccles).
+ add some more debugging code, calls to valid_buffer(), valid_window()
and new functions valid_line_bp(), valid_line_wp().
+ change minimum/maximum repeat counts for regular expressions from a
byte to an integer (report by George Eccles).
+ modify "dist" rule in makefile.wnt to make it set the name of the
zip-file based on the executable. Add a ".map" file to the zip file.
20031105 (c)
> Tom Dickey:
+ improved check for dlsym to make loadable filters work on Solaris and
IRIX64 (tested with gcc).
+ make "--disable-echo" apply to making the loadable filters.
+ use EXEEXT and OBJEXT in generated makefiles.
+ corrected parameter to lookup_filter(); it did not account for the
$filtername symbol, e.g., as used for cshmode to invoke vile-sh-filt.
+ corrected ifdef's in cfgopts() used to build xvile's $cfgopts values.
The ifdef's used "#ifdef" rather than "#if", causing all possible
values to be shown (problem introduced in 9.3e).
20031102 (b)
> Brendan O'Dea:
+ add code to support dynamic loading of syntax filters which are
compiled as a shared object.
> Tom Dickey:
+ modify is_ESCAPED() in pl-filt.c to not treat backslash before
double-quote specially. This fixes man2html, which contains a line
*bs = \"\b";
+ modify latexflt.l to recognize strings such as "\def$", which begin
a redefinition of "$".
+ remove suffix conflict between latex and tex modes.
+ modify check in set_vilemode() so that buffers other than the current
one can be set, provided that they are not scratch buffers. A
change in 20030630 had suppressed set_vilemode() for buffers other
than the current one, from noting odd error messages when the current
buffer was [Buffer List], which is a scratch buffer and therefore
cannot have a majormode assigned to it.
+ add "--with-loadable-filters" option to configure script and modified
related files to integrate Brendan O'Dea's patch for dynamic loading.
Timed filtering of vile's larger source-files to compare the three
schemes. Loadable filters ran about 50% slower than the builtin
filters, while external filters ran about 5 times slower (ymmv).
+ use AC_EXEEXT in configure script.
+ modify configure script check for imake's $CFLAGS to ensure that
imake or xmkmf was found.
20031008 (a)
> Daniel L Ashbrook:
+ add lispmode, to use vile-lisp-filt.
> Mark Robinson:
+ add cygwin to OPT_CASELESS
+ modify xvile's wheelScrollAmount resource to scroll by pages if the
resource value is negative.
> Tom Dickey:
+ correct suffix pattern for xresmode, which did not match ".Xdefaults"
(see 9.2p).
+ add macro "which-menu" to which.rc, which shows the locations that
xvile checks for a menu-file.
+ revise lookup for xvile's menu file to look for dotnames in the
current and home-directories, while non-dotnames may be found there
and in $HOME/.vile and on $startup-path. Combine this with changing
the default for $menu-file back to ".vilemenu" as documented rather
than "vilemenu.rc". The latter name is used in the non-dotname
locations if $menu-file is a dot-name (report by Alf Pearce noted
that the default for $menu-file no longer matched the documented
".vilemenu").
+ change order of charinit() and global_val_init() so that mkupper()
works, e.g., for use in computing the value of $XVILE_MENU (report by
Alf Pearce <alfp@unimelb.edu.au> noted that the environment variable
did not work).
+ improve lisp syntax highlighting (reports by Daniel L Ashbrook,
used the HyperSpec for reference):
+ recognize "#|"..."|#" comments.
+ revise patterns for numbers.
+ allow decimal digits embedded in identifiers
+ change makefile.djg to use zip rather than pkzip, and go32-v2.exe
rather than go32.exe
+ improve configure check for <term.h>, which may be <ncursesw/term.h>.
+ correct highlighting of sh construct
${#variable}
(report by Michael Finken).
Changes for vile 9.4 (released Mon Aug 04 2003)
20030727 (v)
> Kevin Buettner, Paul Fox:
+ fix include-path in filters/makefile.in to allow compiling with
separate src/build trees.
> Tom Dickey:
+ set regionshape to EXACT in editMiniBuffer() before executing
editing commands.
+ review/fix several places where a negative value could be converted
to unsigned, or a zero value might be used as a malloc-size (report
by Paul Fox dealt with a negative length passed to tb_bappend).
+ add "profile$" and "\.bash_[a-z]\+$" to shmode suffixes.
+ modify print_usage() to exit with non-error status if only the usage
message was requested.
20030708 (u)
> Tom Dickey:
+ modify parsing of here-document tags in sh-filt.l to allow '-', '<'
and '>' characters if the tag is quoted. This is used in some recent
shar-files, e.g., cone.shar
+ modify filters.h to allow HP's lex program to be used:
+ put declarations for yylex() and yywrap() in gcc-specific ifdef
+ add definition of YYCHAR_ARRAY to prevent redefinition of yytext[]
which caused failure to compile because HP's compiler refused to
compare char* and unsigned char* pointers.
+ correct a missing dependency for neproto.h in descrip.mms
20030630 (t)
> Tom Dickey:
+ add VMS to the OPT_CASELESS ifdef's, allowing majormodes to be
recognized.
+ reorganized vmsbuild.com to allow the first parameter to be used as
a goto-target (which it was originally). VMS DCL does not allow a
goto target to match when within an if-then-else block.
+ restore selection-highlighting at the end of attribute-directly.
+ add a check in update() to avoid calling newscreensize() when it
would not really be able to adjust the screensize. Otherwise,
update's while-loop would not terminate.
+ guard vtinit() against interrupt to ensure that a SIGWINCH does not
cause newscreensize() to recur into it.
+ set "vilemode" for [History] buffer.
+ modify vilefilt.l to highlight shell commands.
+ fix an ifdef in main.c so valid_buffer() and valid_window() compile
with Visual C++.
20030618 (s)
> Tom Dickey:
+ modify detach_attrib() to ensure that its parameter is still a valid
buffer pointer.
+ add debug functions valid_buffer() and valid_window() and non-debug
macros to replace null-pointer checks on BUFFER* and WINDOW* pointers
with more extensive sanity checking.
20030611 (r)
> Tom Dickey:
+ add a dummy entry to table in siginit() for VMS, which has no signal
handlers.
+ correct a sign-extension problem with SAME() macro in regexp.c, which
made searches for upper-128 characters fail.
20030526 (q)
> Danny Zerkel:
+ revert part of regexp.c changes in regmatch(), which caused pattern
"^ *case"
to not match lines with more than one blank.
> Paul Fox:
+ modify ansi.c to get screensize from system.
+ modify display.c to ensure default $modeline-format is interpreted
when building with SMALLER.
> Tom Dickey:
+ correct logic in hst_display(), which did not check for the case
where a shell command was being appended to an empty result. The
code only checked if the result was not a shell command before
splitting the source into tokens. This would happen for a sequence
of commands such as
:!ls foo
:!mv bar foo
:e!
:!<uparrow>
Then scrolling back through history would show only "!mv" and "!ls"
rather than the complete command.
+ indent'd termio.c
+ removed ifdef's for SYS_APOLLO.
+ minor fix to imdying(), shows the list of files only if 'wrote' was
set, just in case none could be written.
+ modify imdying() so email is always sent on a failure if
VILE_ERROR_ABORT is defined. This helps distinguish accidentally
typing 'Q' versus a failure.
+ modify ExitProgram() to reset fatal-error signals back to default,
so abort() will work properly, i.e., make a core dump. Modify
imdying() so that if VILE_ERROR_ABORT is defined, ExitProgram()
is called rather than abort(). The latter calls abort() if the
environment variable $VILE_ERROR_ABORT is set.
+ add cases for 'u', 'U', 'x' and 'X' to RegStrChr2(), making the
[:upper:] and [:xdigit:] regular expression character classes work.
+ modify configure script to suppress -Winline if using gcc 3.3, since
that feature is broken.
+ tested with gcc 3.3 and g++ 3.3, modifying several interfaces to use
'const'. gcc 3.x also introduces more nonstandard name-pollution.
+ add configure check/warning for flex 2.5.31, which has broken support
for the "-P" option used for built-in filters.
+ reorder lex-based filters to allow building with flex 2.5.31, which
introduces several incompatibilities with respect to flex 2.5.4
and lex (report by Brendan O'Dea).
+ add makefile rules to generate test-programs for btree.c, regexp.c
20030510 (p)
> Danny Zerkel:
+ revert 9.3o change for pl-filt.c, since "!" should be allowed as
a pattern delimiter.
+ add a limit check in pl-filt.c
> Tom Dickey:
+ modify manpage.rc to check if the current buffer is perl, and if so,
to render contents using pod2man or pod2text.
+ several fixes for pl-filt.c, i.e., vile-perl-filt:
+ check for a leading POD area, i.e., the first line is "=head",
with no preceding blank lines.
+ allow floating-point numbers without a decimal point.
+ add "@", ";", "=" to QUOTE_DELIMS
+ add preprocessor keywords such as __END__ to perl.key
+ check for __DATA__ keyword, which ends the script like __END__.
+ add "grep", "unless", "until", "while" to the keywords which may
have a pattern following not in parenthesis.
+ improve logic in is_QIDENT, testing for a quoted string in addition
to an identifier for here-document marker.
+ check for identifier after "$#".
+ check for typeglob, i.e, a "*" preceding an identifier, e.g,. "*x".
+ add check in add_to_PATTERN() for nested parenthesis, e.g., when
parenthesis are the pattern delimiters.
+ modify add_to_PATTERN() to accommodate multiple delimiters in a
substitute command, e.g., "s{a}(b)".
+ check for pattern immediately after a left curly-brace.
+ modify check for operators to allow "||", etc., not within
parentheses.
+ make buffer-checks more readable with macros MORE() and ATLEAST().
+ check for "..." in pattern, which makes a range of expressions.
+ parse backtic expressions.
+ parse file glob expressions.
+ parse format-statements.
+ suppress highlighting of variables inside single-quotes.
+ show variables highlighted inside double-quoted here-documents.
+ correct count returned from is_ESCAPED(), which did not count the
character after the backslash if it was a quote character.
+ correct logic in encode_attributes(), which did not recompute region
size for a buffer attribute that started on the current line, but did
not end there.
+ add un-filters (atr2ansi, atr2html, atr2text) which convert encoded
control/A text to different forms.
+ modify "decode-attributes-til" to allow multiple regions to start
at the same point.
+ modify "encode-attributes-til" to set local nohighlight mode on the
modified buffer (was global).
+ modify a limit-check in add_line_attrib(), in case an external
filter provides a region that extends beyond the line. In that
case, it continued to set attributes beyond the allocated space.
+ modify "encode-attributes-til" to render selected text with "R"
attribute. It would be more consistent to use "S", but there would
be no proper way to read the attribute back into vile.
+ rename a 'lvalue' variable in display.c to avoid conflict with macro
preventing compile with unproto on SunOS 4.1.
20030504 (o)
> Danny Zerkel:
+ modify perl filters to disallow a blank between "<<" and the
identifier for a here-document.
> Tom Dickey:
+ fix for pl-filt.c, make it treat "!" as an operator rather than a
pattern delimiter.
+ modify support for ^X-e to make it use the whole line if the current
buffer is a directory.
+ use realpath() rather than resolve_directory() if it is available,
and "$VILE_PWD" environment variable rather than "." as parameter to
getcwd() if it is valid, to speed up operation on quasi-filesystems
such as ClearCase (adapted from patch by Danny Zerkel).
+ add ".PL" to suffixes for perl mode, e.g., for Makefile.PL
+ add no_minimsgs variable, check in mlmsg() to allow editMiniBuffer()
to keep editing commands from overwriting the minibuffer with a
message.
+ improved editMiniBuffer(), correcting treatment of commands which
would modify the result. Overlooked in 9.3k, this copies the result
from calls on execute() back to the TBUFF passed to editMiniBuffer().
+ use insert-mode bindings in editMiniBuffer() when mini-edit mode is
active. Use insert-key to toggle, rather than set mini-edit mode
(adapted from patch by Mark Robinson).
+ modify latexflt.l to suppress treatment of "|" as a quoting character
when within curly braces (report by Paul van Tilburg).
+ correct highlighting of "+=" in makefilt.l
+ move a comment out of the pattern section of latexflt.l to work
around bug in HPUX lex (report by Adam Denton).
+ increase output- and state transitions-limits for latexflt.l,
rpm-filt.l, sh-filt.l and vilefilt.l to compile with Solaris and HPUX
lex programs (report by Adam Denton).
+ make configure check for flex's version contingent on ensuring that
it is really flex (report by Adam Denton indicates that HPUX lex
is confused by "--version", and requires further input).
+ modify vile-manfilt to decode UTF-8 emitted by groff 1.18
20030318 (n)
> Tom Dickey:
+ fix typo in CF_WCTYPE macro, needed to add "-lw" to $LIBS.
+ workaround for bug in autoconf 2.52 which made it not show help
text for "--with-locale" option, since it was quoted to pass it as
a parameter to CF_LOCALE.
+ modify delins() to work with text that contains nulls.
+ fixes to make replacepat (the variable that holds the value supplied
as a replacement pattern, e.g., when "~" is typed) work with embedded
nulls.
+ move upper/lower case-conversion into tables vl_uppercase[] and
vl_lowercase[], so that locale support can replace the DIFCASE
variable.
+ fix an infinite loop in c-filt.c, from 9.3k changes (-j option).
20030310 (m)
> Tom Dickey:
+ revise lgettext() and screen_string() to use TBUFF's directly, fixing
the ^X-, macro broken in 9.3k.
+ fixes to avoid adding a trailing null to the "$search" variable.
+ correct parenthesis in dfputf(), which truncated "%f" format used to
display "count-words" result.
+ implement logic for hypertext commands in "encode-attributes-til".
+ fix misplaced ":" appended in "encode-attributes-til".
+ add mode overlap-matches, to control whether highlighting for the
visual-matches mode should skip to the next character, or past the
current match when checking.
+ correct comparison in EXACTLY case of regrepeat(), which broke logic
for " *$" pattern - two blanks (reported by Danny Zerkel).
+ correct limit check in regrepeat(), which must account for the
operand size directly since it is no longer null-terminated.
Fixes match for patterns such as "X*$" (reported by Danny Zerkel).
20030226 (l)
> Tom Dickey:
+ remove special check in kbd_putc() to advance the cursor, since fix
in 9.3k using after_linsert() function duplicated this, making the
cursor move twice for each character inserted in the minibuffer.
+ fix a sign-extension in hash_function() (filters.c), which could make
a negative hash code.
+ modify regexp.c and callers to pass length into regcomp(), making
its interface not rely upon whether the pattern is a null-terminated
string (prompted by recent change for KBD_0CHAR, which dated from
980312).
+ add more keywords for js.key
+ correct handling of backtic in here-document by sh-filt.l when
command-substitution happens to be disabled.
+ modify imdying() to always exit with an error status.
+ amend changes to editMiniBuffer(), which did not allow arrow-key
movement unless the ^G toggle was used.
20030217 (k)
> Clark Morgan:
+ make ^X-s reflect the documentation in vile.hlp by implementing a
new command substitute-all-til.
> Paul van Tilburg
+ add Ruby syntax filter (rb-filt.l, rb.key).
> Tom Dickey:
+ add -j option to c-filt.c, to implement some java-specific features
such as "$" as part of an identifier, and \u escapes.
+ fix: java has no 'operator' keyword.
+ suppress KBD_0CHAR flag in kbd_string() function, since it is only
designed to handle null-terminated strings. This plugs a hole which
would allow
:%s/^@/!/g
to have unexpected results (report by Clark Morgan).
+ correct return from kbd_reply() used in scripts; sometimes it would
add an extra null to the result.
+ correct an overlap between bits used to denote NOMINI (now MINIBUF)
and FROM (part of RANGE) which caused some commands to be incorrectly
treated as minibuffer editing commands when logic was changed to
allow MINIBUF to be treated this way.
+ implement a few new editing commands in the minibuffer: r, ~, x, X.
Other editing commands such as R would require special handling;
these are implemented by setting the appropriate flag in cmdtbl.
+ change cmdtbl to use MINIBUF rather than NOMINI, to implement
encoding of editing commands which are limited to the minibuffer.
+ modify buffer- and filename-completion on Unix to escape backslashes
which are stored in the [Completions] buffer. Doing this allows one
to complete a buffer or filename containing a backslash (Debian
#164593).
+ add configure check for -lw library, needed for Solaris <wctype.h>
functions.
+ correct logic of CF_X_ATHENA_LIBS, which did not really add extra X
libraries.
+ use CF_LOCALE, CF_WITH_DBMALLOC and CF_DMALLOC macros to simplify
configure.in
+ use fltstack.h in sccs filter.
+ highlight expanded and unexpanded sccs keywords in sccs files.
+ add texmode, as a variation of latexmode.
+ add .ltx, .sty suffixes for latexmode.
+ review/revise latex filter (reports by Daniel L Ashbrook
<njiro@cc.gatech.edu>). It still does not implement \[ \] and \( \)
toggles for math mode, but is improved.
+ cleanup display of whitespace in key-filt.c using new functions
chop_newline() and flt_put_blanks() (report by Clark Morgan).
+ add case for "abbrev" to key-filt.c
+ improve state stacking in yacc highlighting filter, correcting some
problems introduced by fltstack.h changes.
+ modify lex syntax filter to accept C-style comments in the RULES
state; apparently flex allows this.
+ add a C version of Ruby syntax filter.
+ add new commands encode-attributes-til and write-encoded-til to
convert the syntax highlighting in a region back to control/A
sequences, or to write the corresponding data to a file. Added a
corresponding alias decode-attributes-til for
attribute-cntl_a-sequences-til.
+ change lrepltext() to use a given length rather than assume its
parameter is null-terminated.
20030102 (j)
> Clark Morgan:
+ fix a couple of compile-problems.
> Tom Dickey:
+ correct operation of chgreg() when no text is present in the buffer
before inserting the replacement. This makes a command such as
1GcG<esc>
work properly (report by Paul Fox).
+ modify tracing code to show names of CMDFUNC's.
+ modify ifile() to mark a buffer changed only if data were read from
the inserted file. Otherwise an error was reported when trying to
undo the modified state.
+ modify getregion() to check if the buffer is empty, and in that case
return an empty region with status indicating there is a region.
That allows filtering of empty buffers (report by Paul Fox).
+ trim a leading quote from internal arguments in run_func(), to make
this type of construct work properly:
setv %w='*.[Cchis] llib-l*'
use-reg f load-reg &cat "^X!grep -n -w : " &cat %w "^M"
+ modify sh-filt.l to handle escaped newlines within quotes.
+ change some quoted includes in filters to bracketed form (report by
Paul Fox).
+ more fixes to ncurses configure-script check.
+ add a configure option for XawPlus (see homepage
http://people.freenet.de/kra/XawPlus/)
20021223 (i)
> Adam Denton:
+ implement xml-filter based on html-filter.
> Clark Morgan:
+ fix: if winvile is in insert mode when wvwrap opens a new file, the
"remote" editing commands used to open said file were inserted into
curbuf. This is a bug in the original implementation.
+ update doc/filters.doc for 9.3h
> Mark Robinson:
+ modify perform_dobuf() to allow multiple occurrences of directives
such as "~force" on a line.
> Paul Fox:
+ add mode parameter to open() call in ffwopen() used by imdying().
> Tom Dickey:
+ add configure check for wctype functions, to work around defect in
glibc's ctype functions: in UTF-8 locale, the latter return useless
information on character classes. This works on Solaris.
+ add configure option --with-screen=ncursesw to allow building the
curses driver using the wide-character version of ncurses.
+ in UTF-8 locale, adjust termcap driver to use UTF-8 to display codes
in the 160-255 range, setting vile's locale to non-UTF-8 locale.
(yes, this is a short-term fix).
+ modify logic in set_mode_value() to fix a memory leak of changes to
global mode values (see 9.2o, which made those consistently
allocated rather than some constants).
+ modified filters.h and some filters to include estruct.h, thereby
using definitions for no-leaks checking in trace.h
+ add more beginDisplay/endofDisplay macros to work with the assertions
in trace.c (basic.c, finderr.c, modes.c, select.c, tags.c).
+ split-out fltstack.h to simplify state-stacks in filters.
+ modify yaccfilt.l to use %keywords in yacc.key
+ modify xml-filt.l to handle CDATA and inline DTD's. Add some other
features based on patch from Mark Robinson.
+ change term.set_title() calls so they are only executed in update(),
to make it more efficient, e.g., when [Buffer List] is visible, the
internal buffer-switching for that was causing 2 title updates for
each character modified in the current buffer.
+ implement xterm-title mode.
+ correct a "&" to "&&" in ifdef's generated by mktbls
+ remove 'termdef' symbol, since it was redundant.
+ change typeallocplus() to use calloc().
+ add configure option --with-curses-dir
+ altered search-lists for configure script to find ncurses in more
unusual places, such as the user's home directory.
+ change default for --with-locale option to yes. Note that this
option is only tested if locale support is found, and it is becoming
less common to encounter systems with broken locale support.
+ update config.guess, config.sub
+ add ".S" to asmode suffixes.
+ add ".C" and ".cc" to cppmode suffixes.
+ add "locale" to the $cfgopts variable if vile is compiled with
locale support.
20021105 (h)
> Clark Morgan:
+ change home_dir() function to check for $HOME before $HOMEPATH, etc.,
on win32. Otherwise home_dir() may return something like
c:\/usr/cmorgan, which performs badly.
> Danny Zerkel:
+ add a few Perl 5.6 reserved words, highlight binary values, and
version numbers.
> Tom Dickey:
+ modify logic of compute_majormodes_order() to avoid skipping items
in the list of majormodes. This fixes the relative ordering of
"rc" versus "vile" modes. Because some items were skipped, the
"nr" after "sh"
"rc" after "vile"
rules caused the second one to be ignored (reported by Clark Morgan).
+ modify pathcat() so the MS-DOS configuration will not attempt to
supply an extra slash when concatenating strings such as "c:" and
"/usr/cmorgan" (report by Clark Morgan).
+ correct allocation size of argv in ntwinio.c, which did not allow
enough space.
+ correct handling of escaped backtic in sh-filt.l
+ add syntax filters and corresponding modes for assembler (GNU and M$),
info and texinfo.
+ add beginDisplay/endofDisplay macros in several places to work with
the assertions in trace.c
+ add assertions to trace.c in doalloc/dofree to check for places where
beginDisplay/endofDisplay should be used to prevent the OPT_WORKING
code from interrupting malloc/free calls.
+ improve error-checking for numbers in perl filter.
+ implement pot-filt.l, to highlight ".po" files. Using sh-filt.l was
not satisfactory since the quoting rules were not close enough.
+ modify configure script to fix existence-style ifdef's for crypt,
setbuffer, strerror.
20021027 (g)
> Tom Dickey:
+ improve perl filter by recognizing q[] and q() quote-like operators.
+ improve rpm filter to avoid exiting text area on embedded "%" names,
added several keywords to rpm.key
+ modify suffix rule for terminfo (timode) to allow nrmode to pick up
ncurses' terminfo.tail, and corrected preamble for nrmode, which used
the wrong quote character.
+ add yankmotion mode, to control whether the cursor should be moved
as in vi after yanking text (discussion with George Eccles and Paul
Fox).
+ modify ifdef's to allow builtin-filters to be tested with the
configure --no-leaks code.
+ improved perl filter by recognizing a pattern at the beginning of
a statement, or after the word "split" (the latter was reported by
Duncan Sargeant).
+ fix a place where 9.3f changes quoted a token which was already a
quoted string (report by George Eccles).
20021023 (f)
> Clark Morgan:
+ update list of filters in config.doc
> Tom Dickey:
+ correct a check in builtflt.c that had the effect of making some
keyword files only work if the -v option was given in the filtername
string (broken in 9.2y).
+ small fix to argument parsing in builtflt.c, to avoid going past the
end of the string (found with valgrind).
+ documented the filtername majormode value in modes.doc
+ correct initialization of which.rc, so it can be run more than once.
+ improve/complete XtArgVal casts using macros Nval() and Sval().
+ modify x11.c to make scrolling always use mvupwind() - one place used
forwline(), and to fix some cases where horizontal resizing would
change the width of the Xaw scrollbar (patch by D J Hawkey Jr).
+ modify run_func() to quote string-results, to ensure that they are
not mistaken for other token types such as directives. This change
is needed to make "which.rc" work on win32.
+ implemented tilde-expansion on win32. Actually it was present, but
globbing did not work, and the environment variables did not match
the Windows 2000 configuration.
+ modify debug traces to allow Trace() to make an indented listing,
according to the function-nesting level. This is done, originally in
ncurses by prefixing the format string with T_CALLED or T_RETURN
strings. Used this feature to help debug changes for which.rc on
win32. Not all functions are traced this way, but all that call
swbuffer() are, as well as some others that were useful.
+ adjust ifdef's so VILE_ERROR_ABORT and VILE_OLE can be defined at
the same time.
20021016 (e)
> Clark Morgan:
+ correction to 9.3d change: @<register> was busted (command mode) and
:write-message "@stuff" caused vile to complain when '@' was pressed.
+ I noticed recently that I could not use vile's file/directory
traversal feature (on linux) to find the value of an errno.h macro
(e.g., EINVAL). As it turns out, linux puts these definitions in a
directory that's referenced via a symbolic link resident within
/usr/include (other features such as the X11 includes files are
handled similarly). Seems that GNU's find won't traverse symbolic
links without specifying an explicit option (it appears SunOS 5.7
exhibits similar behavior and uses the exact same option name). The
enclosed patch adds "-follow" as an optional parameter to vile's
file/directory traversal repertoire.
> Duncan Sargeant:
+ fix a small bug in the perl filter where pod code starting with
"=cut" would not be filtered (it's a valid start and end marker for
pod).
> Paul Fox:
+ make filters/makefile.in's LDFLAGS variable the same as in the
top-level makefile to fix a case where flex libraries were not found
in a nonstandard location.
> Tom Dickey:
+ add b_procname field to BUFFER, use that to save the given procedure
name when storing a macro. This fixes a problem when removing
procedures whose name is longer than NBUFN-2, which could leave the
key binding table pointing to a non-existent buffer, e.g., ^X-, for
next-cur-identifier.
+ documented ~elsewith in doc/modes.doc (report by Adam Denton).
+ correct handling of "uc" keyword for perl filter in this line:
if ($diagType =~ uc $widgetType)
It was being treated as a pattern delimiter.
+ add several short-named relational operators "&geq", ">", "&leq",
"<", "&neq", "&sgeq", "&sgt", "&sleq", "&slt", "&sneq" to reduce
the need for "¬" (suggested by Adam Denton).
+ change UFxxx variables to an enum, using this to check for unhandled
cases in eval.c
+ repair missing mktemp() call in imydying(), broken in 9.3d changes
(reports by George Eccles and Paul Fox).
+ add syntax filter for rpm ".spec" files.
+ add syntax filter for PostScript ".ps" files.
+ add syntax filter for enscript ".st" files.
+ make cursor-movement on a yank command match vi's, tested for various
left/up motions such as yk, yh, yH, y1G, y0, y-, yb (report by
George Eccles).
+ correct order of initialization in operyank() from 9.3b changes,
which could cause a core dump (reported by George Eccles).
+ modify check for renaming the unnamed-buffer when writing it; do not
rename it if the write was to a pipe (report by Paul Fox).
+ add definition for OWTOOLKIT_WARNING_DISABLED to x11.c, without which
the Xol version cannot be compiled under Solaris 8.
+ add -Wundef flag for gcc warnings, modified ifdef's to make SYS_xxx,
CC_xxx, DISP_xxx variables always defined as 0/1, and use #ifdef to
check for the HAVE_xxx and similar variables rather than #if.
+ modify configure check for Athena (Xaw, etc) libraries to include
Xpm, on which XFree86 4.x Xaw depends. That allows xvile to be
built on cygwin.
+ modify logic of pop_fake_win() to allow for the possibility that the
current buffer is not related to the current window. This can/did
happen in tprintf(), for example, but could happen in one of the
other calls. In particular, if ~trace was enabled, that resulted in
making ":ww" fail to write files which had no current window.
+ add pattern for hexadecimal character codes in htmlfilt.l
+ modify configure script to use '%' consistently as sed delimiter,
rather than sometimes '@', to avoid problems with AFS.
+ update config.guess, config.sub
20020902 (d)
> Brendan O'Dea:
+ updates to allow vile to build with perl 5.8.0 (ifdef's checked for
5.6.1, 5.5.3 and 5.4.5).
> Clark Morgan:
+ modify ntconio.c and ntwinio.c to recognize control/@ as a null,
to allow inserting null characters.
+ config.doc:
- correct erroneous statement; namely, vile build only creates as many
external filters as necessary, not all filters.
- restructure doc/config.doc's builtin-filter prose for improved clarity.
+ vile.hlp:
- fix ispell macro so that users avoid a "warn-reread" prompt.
- remove ShowManpage macro from vile.hlp; it's long and complex.
Interested readers can read the macro directly by browsing
manpage.rc .
- documented builtin filters. One of the more notable changes here
is that I dumped the description of how to optimally build vile on
a Unix host when disk space is limited. I don't think that's much
of an issue these days and it substantially simplifies the prose.
> Tom Dickey:
+ add which-keywords, as a macro.
+ add $pathname-separator variable.
+ implement edit-buffer command, to simplify which-keywords macro.
In turn, this required modifying readin() to allow us to treat
an empty filename as a non-error condition, and adding the KBD_OPTIONS
flags to the DONE_ARGS to propagate this down to kbd_complete(),
to make the code which does name-completion of buffer-names allow
a partial match.
+ put nrmode after shmode to allow scripts such as "with-perl-5.8.0".
+ reorganize decode_prefix() to allow parsing of bindings such as
^X-#-a (report by Christian Neumann <jarva@t-online.de>)
+ reset, if possible, real uid/gid values to match effective uid/gid
values, to appease Perl's check for setuid scripts. This fixes a
problem where vileperl.rc would stop during initialization because
fcron's fcrontab program would run the editor process with the group
id's not matching (reported by Clemens Fischer).
+ change test in fscan(), aka forward-char-scan to an inequality to
allow for the case where the line is empty (report by Adam Denton).
+ correct logic of label2bp(), which did not skip leading blanks on the
line before checking for a label. This happened to work until 9.2u
indented macros as they are stored (reportd by Adam Denton).
+ modify built-in spell filter to work with encrypted files.
+ improve check for flex's version (patch by Danny Zerkel
<dzerkel@cas.org>).
+ correct check for mkdtemp() in create_save_dir() (reported by
D J Hawkey Jr <hawkeyd@visi.com>).
+ add vile's patches to RPM spec (patch by Mark Milhollan
<mlm@mlm.ath.cx>).
+ correct parsing of '+' in prc2kcod(), so one can bind that key
to a command, e.g.,
bind-key next-buffer +
(patch by Brian T. Schellenberger <bts@babbleon.org>).
+ add x11menu to descrip.mms and vmsbuild.com (patch by Jouk Jansen
<joukj@hrem.stm.tudelft.nl>).
+ use XtArgVal casts on data passed by XtVaSetValues() calls. This is
needed to make xvile run reliably on an LP64 platform, since Xt
uses a long for this value.
+ add an #error in perl.xs to flag instances where patchlevel.h is
included from places other than Perl's directory (report by Clemens
Fischer).
20020704 (c)
> Tom Dickey:
+ add calls to file_stat() to make vile's cache obsolete when spawning
and external shell process or when handing ^Z (suspend). This fixes
a problem where the subprocess may have removed a file. Vile would
thereafter be unwilling to write the corresponding buffer to disk
(reported by Clark Morgan).
+ omit double-quote in finderr expression for weblint, to avoid a
conflict with some of ncurses' messages.
+ make vile syntax filter recognize hexadecimal constants.
+ add a -t option to filters, to pass tabstop value. Use this in
makefilt.l to provide better highlighting of problems with leading
whitespace.
+ supply install-rule in makefile.in for gnugpg.rc, search.rc and
shifts.rc
20020703 (b)
> Tom Dickey:
+ correct missing limit-check in repaint_window(), which caused winvile
to GPF if resizing beyond its initially allocated 256x128 size.
+ add a dummy log-file majormode, to distinguish some makefiles from
logfiles.
+ add some features of GNU make to makefilt.l and make.key that are
useful in conditional evaluation.
+ add percent-crlf mode, which controls the threshold at which the
whole file will be considered DOS-format (CRLF record separators)
if the given percentage already ends with CR/LF.
+ save/restore window modes such as linewrap when rereading a file,
or when executing a shell command.
+ amend change to operyank() to also set the cursor position to the
beginning of the yanked region when it is before the current position,
e.g., by typing y?pattern or y1G (reported by Clark Morgan).
20020630 (a)
> Clark Morgan:
+ document configure-script options for color syntax highlighting.
> Tom Dickey:
+ correct change made to operyank() to handle y0p command in 9.2za by
not moving the cursor when there is no motion associated with the
yank, e.g., when typing yy or Y (reported by Clark Morgan).
+ fix esqlfilt.l to start with C symbol table rather than SQL.
+ fix esqlfilt.l to allow a blank between "#" and "include".
+ add check in tcap.c for terminfo kmous capability like xterm, in case
we are running in screen, which also supports xterm mouse protocol.
+ modify sed-filt.c to allow semicolon as an address separator.
+ modify spell.rc, spellflt.l and select.c to allow spell filter to
work as a built-in filter (reported by Clark Morgan).
+ corrected misleading description of rc-filt.l (reported by Clark
Morgan).
+ rewrote spell.rc to make it work properly if the spell-filter is
built-in (reported by Clark Morgan).
+ remove a spurious call to flt_bfr_append() in sh-filt.l which broke
highlighting of quoted symbols such as "${foo+bar}".
+ correct ifdef's in estruct.h and fileio.c so that DJGPP version
builds.
Changes for vile 9.3 (released Tue Jun 25 2002)
20020625 (ze)
> Clark Morgan:
+ more trouble shooting tips for syntax coloring to vile.hlp
+ update README.PC to cover platforms that have been tested.
+ update README file to cover 9.3 changes.
> Gary Jennejohn <garyj@jennejohn.org>:
+ add ".S" to default C suffixes on Unix. The difference between ".s"
and ".S" is that the latter may have C-preprocessor statements.
> Tom Dickey:
+ update list of macros in makefile.in and makefile.wnt to include
gnugpg.rc, search.rc and shifts.rc
+ add macro loaderrs.rc to illustrate how to extend the built-in
error expressions (request by Neil Milne <ngm@orange.net>).
20020521 (zd)
> Tom Dickey:
+ move save/restore of dotcmdactive and pre_op_dot variables from
autocolor() to run_a_hook() so they are restored if any hook calls
would modify them. This fixes a case where the "." command did not
work when [Buffer List] was visible while a $buffer-hook was used to
set xvile's title (report by David Letcher <David.Letcher@ot.com.au>).
+ add itb_visible() to trace.c
20020514 (zc)
> Tom Dickey:
+ modify fallback definitions in path.c to work with CSet compiler,
which did not define S_IFMT in <sys/stat.h>
+ modify mktbls.c to provide workaround for OS/2 CSet compiler, which
does not accept struct-offsets as switch-statement case values, e.g.,
as used in implementing the &default builtin function.
+ add an ifdef'd version of ExitProgram() to main.c which will call
abort() rather than exit if the environment variable VILE_ERROR_ABORT
is set to a nonempty value. This is useful for debugging.
+ modify insert.c to rename 'leave' to 'leave_loop', avoiding symbol
defined in Visual C++ 4.1
+ modify vileinit.rc to disable resolve-links on cygwin
20020511 (zb)
> Clark Morgan:
+ more documentation tweaks.
+ add example macro underline-currline to vile.hlp, based on submission
from Daniel L Ashbrook.
> Tom Dickey:
+ updated buglist
+ add Help.pm and CaptHook.pm to makefile.wnt
+ add a check to prevent runaway recursion in a case where a dynamic
buffer such as [Variables] was visible when a $buffer-hook is used.
When reading from a pipe, the buffer hook would activate and then
attempt to switch back to [Output], which was not yet marked active.
So it would attempt to re-read the pipe, which then repeated the
whole process indefinitely. The check uses a new flag BFISREAD,
and macro b_is_reading().
+ more fixes for pl-filt.c
+ add 'grep' to the quote-like operator list, and in doing so make
is_QUOTE() simpler.
+ modify check for blank lines in begin_POD() to allow for DOS-style
line endings.
+ correct computation of number of blanks before a comment
+ add/use isBlank() macro to treat tabs and spaces more alike, e.g.,
before embedded comments in a quoted list.
+ modify test for end-delimiter of a quoted list which specified
a curly-brace to allow the square bracket and parenthesis pairs
that Perl recognizes.
20020507 (za)
> Clark Morgan:
+ remove pointers to foxharp host.
+ update copyrights.
+ remove duplicate use of $(CFLWIN32) from makefile.wnt
> J Chris Coppick:
+ tcl files were being edited in shmod since .*sh was matching 'wish',
and we weren't catching files with tclsh, wishx, or tcl preambles,
unless the file suffix was '.tcl'.
+ update Breadcrumbs.pm to version 0.4
> Paul Fox:
+ add 'directory' to modeline for directory buffers.
+ change file-mode test in 9.2y to check for FIFO's rather than
character-devices.
+ modify ifile() to avoid marking the current buffer as modified when
attempting to insert the contents of a file which fails the "not a
file" test.
> Tom Dickey:
+ disable "working..." when writing to a pipe, but not reading from it.
In that case, the pipe may be an interactive process, and we do not
want to pollute its display (reported by Clark Morgan).
+ restore 'working()' mode at the end of directory.pm's dir() function,
which is required to allow xvile to resume processing mouse
double-clicks for hyperlink selection. Reviewed/updated a few other
scripts which had the same issue (report by J Chris Coppick).
+ disable autosave for readonly files.
+ add check in main loop for failure in repeat-last-cmd, which may
have terminated in the middle of a change-command. If a failure is
detected, discard the remaining characters in the replay (report by
Kevin Buettner).
+ modify logic of operyank() to set DOT to the beginning of the region,
so that y0p will move the cursor to the beginning of the line just
like vi.
+ improve perl filter's handling of quote-like operators.
+ show filenames opened for read or write in [Trace], to make it
simpler to see which scripts are used.
+ add check in finderr.c to ensure that line numbers past the end of
the buffer result in going to the end of the buffer rather than
wrapping around to the beginning.
+ correct configure script CF_HEADER_PATH macro, which did not look in
the proper directories under $HOME.
+ update config.guess, config.sub
+ add expectk to programs in tclmode preamble.
+ highlight TPU files like DCL (.com) files. The available keywords
are different, but the syntax looks the same.
+ move the list of majormodes from [Settings] to [Major Modes], to
reduce clutter in the former.
+ indent'd (with updated patch against 2.0) api.c, fences.c, glob.c,
input.c, isearch.c itbuff.c, lckfiles.c, msgs.c, npopen.c, spawn.c,
statevar.c, tcap.c, window.c, as well as the .c files in filters.
20020228 (z)
> Clark Morgan:
+ makefiles converted to DevStudio V6.0
+ visvile modified to pop winvile to foreground on Win2K/XP
+ fix clipped text in configuration dialog (at various geometries)
+ if the build log from an unsuccessful build is placed in winvile's
error buffer (visvile config option), the editor's CWD is changed to
match the build log's parent directory. Without this change,
visvile's CWD defaults to <WinDir>\system32 on a Win2K host.
+ remove compiler warnings from w32reg.c
+ wheelmouse didn't work on my wife's laptop (uses an el cheapo USB
mouse) so I'm submitting an official patch to enable WM_WHEELMOUSE
support. Adding this support requires mucking with the makefile a
bit.
+ added a static child window that shows winvile row/col geometry as
winvile is resized (Win2K/NT/XP only). I could only test this on a
single screen geometry (i.e., laptop's 1024 x 768). Someone should
try resizing winvile on a 2K/NT/XP host with these screen settings:
800x600, 1280 x 1024, 1115 x 864 . Let me know if you see text
clipping in the child window under these conditions.
+ following tested on WinME/98 and Win2K:
+ remove all but one warning from automation-based modules.
+ add get_MainHwnd() method to automation-based version of winvile.
+ modify wvwrap to pop winvile to foreground on a Win2K host.
+ modify wvwrap to restore winvile window if minimized
+ vile.hlp tweaks (typos, omissions, and minor formatting).
> Tom Dickey:
+ split-out specialized logic for cindent's character list as
cindent-chars mode so appropriate pieces can be applied to other
modes such as esqlmode and cppmode.
+ filter scrollbar-tracking events to make winvile's scrollbars work
for files longer than 65536 lines.
20020217 (y)
> Tom Dickey:
+ indent'd tags.c
+ make xvile -rv work by adding reverseVideo resource to its
application resources, and interpreting that.
+ add new selection for showformat, "foreign". Change default of
showformat to this, to reduce clutter (discussion with Paul Fox).
+ do not infer majormodes for directory buffers, e.g., vile-9.2 would
be inferred as nrmode (reported by Paul Fox).
+ remove an empty section of the suffixes pattern for cppmode which
made it match files ending with ".".
+ add a call to show_mark_is_set() in updatelistbuffers() so the
[Marks] buffer will be recomputed anytime it is visible and the
[Buffer List] is updated. Usually that is when one of the buffers
changes size, which means that marks may have moved.
+ repair logic for cleanup after pipes: mods for directory buffer lost
the cleanup after writing a pipe because ffstatus is reset now in
ffclose() before it was tested in CleanAfterPipe(). Moved related
state & logic into CleanToPipe(), CleanAfterPipe() to make them
simpler to understand (reported by Clark Morgan).
+ use catnap() rather than sleep() in softfork(), since the former is
less likely to get spurious SIGALRM's.
+ correct tprintf() to fix a core-dump when using ^X-, in [Trace],
i.e., set DOT.o to zero. Also prevent tprintf() from being called
recursively.
+ add TPRINTF calls to show in [Trace] why a particular majormode was
chosen, i.e., whether the suffix or preamble matched, or both.
+ add command-line -D option which turns on macro tracing (~trace on).
+ simplify argument processing a little, removing the non-XTOOLKIT code.
+ modify lremove() to fixup the bp->b_wline value. This fixes a hole
exposed by the directory-buffer changes, e.g.,
vile
isomething<esc>
:e /
__
:r /
__
(crash)
(reported by Paul Fox).
+ avoid calling both mktemp() and mkdir() in create_save_dir(). Only
one flavor should be used (reported by Paul Fox).
+ modify ffwopen(), ffclose() and ffputc() to avoid using buffered I/O
when called from imdying(). Recent versions of glibc make the
process lockup when using ElectricFence in this situation. It is
not POSIX, anyway, to use buffered I/O or malloc in a signal handler.
+ modify checks for non-file to allow character devices, e.g., a
named pipe for people who use that feature to randomly generate an
email signature (reported by Paul Fox).
20020213 (x)
> Tom Dickey:
+ improve describe-key so it displays bindings for named procedures
and perl commands.
+ add fence-patterns to sqlmode, for PL/SQL.
+ implement extended command-line options for filters, allowing them
to specify which options (other than -k, -q, -v) are recognized for
their own use. Use this to add -p option to c-filt.c, which tells
vile-c-filt to mark '#' (preprocessor) as an error.
+ correct two bugs in sh-filt.l
a) add/use return value from embed_or_append() to decide whether to
switch to SUBST state.
b) emit token that does not match EOF-marker for here-document.
+ add cursor-attributes and other keywords from Oracle 7.
+ modify sql filter to flag "remark" as an error if it is not the
first token on a line.
+ correct highlighting of "remark" keyword in sql filter, which did
not allow for "REMARK".
20020203 (w)
> Tom Dickey:
+ indent'd line.c, oneliner.c, opers.c
+ implemented '< and '> marks, which denote the limits of the
selection.
+ add ".ac" as a suffix for m4-files.
+ disallow attempts to re-read [p-lines] by making fileread() use the
is_internalname() function rather than simply checking the length
of the filename.
+ add commands leading-detab-til and leading-entab-til, binding those
to ^X-' ' and ^X-^I. Most of the logic was available internally.
+ modify ifile() to avoid infinite loop when reading a directory buffer
into itself, e.g.,
:e /
:r /
This still has a minor problem: the window scrolls up by one line
each time the ":r" is performed.
+ modify sortMyBuff() to avoid corrupting DOT when reconstructing
linked list, e.g., if reading a directory buffer into itself.
+ modify file.c to print the number of lines read from a directory.
+ modify makename() to check if the result buffer name is empty,
setting it to NoName if that happens, e.g., when editing the root
directory "/".
+ modify current_directory() and pathcat() to ensure their result
cannot be longer than NFILEN.
+ replace several strncpy() and strcpy() calls by vl_strncpy().
+ modify fileuid_get() to discard file_stat's cache.
+ modify append_to_path_list() to use file_stat(), to check if a given
file or directory exists before adding it to the list.
20020121 (v)
> Tom Dickey:
+ indent'd menu.c, x11.c
+ add commands for manipulating menus: hide-menus, show-menus,
load-menus and remove-menus.
+ add $menu-file variable.
+ modify menu-file lookup to look for $VILE_MENU as well as $XVILE_MENU,
making the latter derived from $progname, to make it more extensible.
+ changed install rule for vilemenu to be consistent with other config
files, i.e., as vilemenu.rc rather than .vilemenu -- xvile will still
search for .vilemenu if vilemenu.rc is not found, however.
+ split-out X11-specific part of menu support as x11menu.c
+ add call to set_editor_title() at the end of set_buffer_name(), so
that if the filename changes as a result of writing to a file, the
window title is updated correspondingly.
+ implemented bindings for shift/control/alt modifiers for function
keys in xvile and winvile by extending Clark Morgan's 9.1c changes.
This does not support remapping.
+ modify prc2engl() so it may return an error_val, making the &bind
builtin function report any error in this function.
+ correct logic in parse_filtername(), which could index out of bounds
when processing a manpage buffer.
+ correct/improve highlighting of delimiters for here-documents, by
flagging places where the quoted delimiter includes a newline, and
by eliminating a spurious repeat of the ending delimiter.
+ correct highlighting of variable in perl files where a pattern would
be expected, e.g.,
if ( $c !~ $DST )
+ add undo-dos-trim mode, which when true causes vile to make the
trimming of ^M's done as part of setting dosmode or set-dos, set-unix
commands undoable. Also, trim ^Z character if it is the last line
in the buffer (suggested by Clark Morgan).
+ remove spurious b_set_counted() from rewritten quickreadf(), which
had the effect of making bsizes() count crlf conversion twice.
+ correct resync of CF_CURSES_TERMCAP, needed to make curses.h included
in some configurations.
20020112 (u)
> Clark Morgan:
+ add example of --with-cflags to doc/config.doc
> Paul Fox:
+ modify c-filt.c to make it simpler to find unterminated quotes from
preprocessor lines.
> Tom Dickey:
+ indent'd basic.c, filec.c, insert.c, region.c
+ cache stat() results for files to improve performance on systems that
do not do this automatically.
+ modified treatment of attempt to read directory by reusing logic in
filec.c which builds a sorted list of the directory's contents, to
make a corresponding non-hidden buffer.
+ add error checking to ensure vile does not open non-files such as
/dev/tty.
+ modified directory.pm to limit the filename by the page width rather
than to a hardcoded 14. The directory names are limited to 14 to
make the layout work.
+ check in lremove() to avoid removing the buf_head() line. Otherwise,
infinite loops would result in iterating over lines in the buffer.
This could happen if the cursor was placed on the next to last
line of a buffer, and the command y<return>ddp were given (report
by Clemens Fischer).
+ correct an off-by-one that allowed a very long mode value to touch
the next column in [Settings] if the next column contained a boolean
set to "no".
+ correct calculation in next_column(), which did not take into account
the HIGHBIT effect on cell width.
+ correct $bflags value, which was only one character rather than a
combination.
+ correct macro next-alt-identifier, which declared $identifier as a
local, which had the side-effect of marking the file as modified.
+ moved array used for file- or directory-completion into BUFFER
struct, to make code in filec.c more reusable.
+ eliminated symbols SIZE_T and ALLOC_T, replacing them by size_t.
+ eliminated global curtabval. Like curswval, it is not really
possible to update it properly everywhere.
+ change beginDisplay() and endofDisplay() to macros, no need for
functions.
+ indent macros as they are stored, making complex ones easier to
read and debug.
+ add "noshell" to $cfgopts if shell is disabled in the current config.
+ add --disable-filters option to configure script, to allow building
just the editor.
+ eliminate a duplicated $(LIBS) in $(FILTER_LIBS) variable in makefile
+ improved CF_TERM_H configure macro, to look for ncurses/term.h for
platforms where ncurses is an add-on.
+ modify configure script to print message showing result of the
--disable-extensions and --disable-shell options.
+ correct guess_recordseparator() to set the number of lines to at
least one if the file is not empty. A binary file containing no CR's
or LF's would cause a core dump from 9.2s changes.
+ modify logic of charinit() so that if one sets printing-high but not
printing-low, the latter defaults to 160.
20011230 (t)
> Tom Dickey:
+ force screen to repaint if stripping ^M's as part of set-dos
command, overlooked in 9.2s.
+ modify set-highlighting macro, using "~force" to prevent vile from
switching to show the macro buffer if the "setl" fails, e.g., if
one attempts to set the majormode of [Output].
+ add "showformat" mode, to control when the recordseparator is shown
in the status line. Choices are local, differs, always or never.
+ add &stoken function, which searches for a token in a string, e.g.,
"perl" in $cfgopts by
&stoken "perl" "," $cfgopts
+ add &translate function, e.g.,
&trans "," " " "a,b"
to change commas to spaces
+ add backslash as a possible quote character in determining type of
here-documents for perl filter.
+ add xvile configuration types to $cfgopts: openlook, motif, athena,
xaw, xaw3d and nextaw.
+ ifdef'd $prompt string if extensions are disabled.
+ indent'd display.c, version.c
+ trim trailing blanks from some source files. lispfilt.l did not
compile with Solaris lex because it was confused by a trailing blank.
+ modify configure script to check $CFLAGS values obtained from perl or
imake with a test-compile to ensure that we do not try to use options
for a different compiler, e.g., gcc versus cc (report by Steven
Lembark <lembark@wrkhors.com>).
+ update several configure macros to use AC_CACHE_CHECK to replace
AC_MSG_CHECKING and AC_CACHE_VAL, except those which are not
compatible, e.g., CF_MISSING_CHECK.
+ updates for configure macros CF_CHECK_CACHE and CF_CURSES_CPPFLAGS
20011225 (s)
> Tom Dickey:
+ fix a memory leak in vars_complete(), as well as make it faster by
caching the sorted list of temporary variables until one is added or
removed.
+ modify modeline display to show local recordseparator values (cr, lf,
crlf) rather than dos mode, since the latter is redundant in that
context.
+ implemented support for reading/writing Macintosh files, i.e.,
recordseparator=cr. New commands set-rs-cr, set-rs-lf, set-rs-crlf
extend the set-unix-mode and set-dos-mode commands to include Mac's.
+ indent'd fileio.c, mktbls.c, tbuff.c
+ modify ntconio.c so that default fcolor is 7 (request by Walter
Kennedy <wkennedy@softintegration.com>).
+ modify ntconio.c so that "reverse" color scheme works.
+ add $prompt variable, to allow changing the command-line prompt.
+ fix an infinite loop in sh-filt.c (reported by Paul Fox).
+ add a configure check for mkdtemp().
+ regenerate configure script, overlooked in 9.2r after resyncing
macros in aclocal.m4
20011216 (r)
> Paul Fox:
+ fix a problem where repeated ":!cmd" invocations (with no intervening
carriage return) cause the "Press return..." message to be
suppressed. (The problem is that mlforce suppresses its output if
sgarbf is set. The first shell invocation sets sgarbf, so the prompt
after the second shell command never comes out.)
> Tom Dickey:
+ change warning level in makefile.wnt to "-W4"
+ modify ntconio.c to use the original attributes when erasing the last
line of the screen when closing the console. This works around a bug
in w95/.../win-me that would leave vile's color settings in effect
after vile exited (reported by Walter Kennedy
<wkennedy@softintegration.com>).
+ modify pl-filt.c to handle pattern immediately after "if" keyword,
e.g.,
if /SHLIB_VERSION_NUMBER *"([^"]+)"/; # "
+ modify sh-filt.l to handle quotes in substitutions, e.g.,
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
+ update config.guess and config.sub from
http://subversions.gnu.org/cgi-bin/viewcvs/config/config/
+ regenerate configure script with autoconf 2.52, patched with
autoconf-2.52-20011201.patch.gz
at
ftp://invisible-island.net/autoconf/
+ check for $ac_top_srcdir in configure.in, to work with autoconf 2.5x,
which renamed this variable from $top_srcdir in 2.13.
+ modify CF_PROG_PERL to work with autoconf 2.5x, which does not permit
unbalanced brackets, using a sed expression to obtain the "$]" token.
+ modify configure.in to avoid using changequote(), which is broken
in autoconf 2.5x
+ updated install.sh from tin.
+ updated some configure script macros from changes for tin/lynx:
CF_HEADER_PATH, CF_LIBRARY_PATH, CF_MKSTEMP, CF_NCURSES_CPPFLAGS,
CF_NCURSES_LIBS, CF_PATH_SYNTAX.
20011205 (q)
> Clark Morgan:
+ fix: the new builtin find feature makes it relatively easy to
construct arbitarily long pipe commands. Such long commands could
overflow a number of vile's internal temp vars.
+ Some win2k cleanups:
- on a win2k host, if $shell is bogus, read pipes don't display an
error message. Instead, the editor would just hang.
- on a win2k host, the shell process spawned via ":!cmd" was usually
not executed in the foreground window.
+ add a pattern to finderr.c to handle this case: When using visvile
under developer studio, the compiler can generate (HTML-based)
messages have leading tabs before the filename.
+ doc/config.doc - numbered macros noted as an anachronism
+ doc/macros.doc - mention that numbered macros are allocated from fixed
pool and describe their (as far as I can tell) single
advantage.
+ vile.hlp:
+ fix typo where #-<c> binding was attempted in insertmode.
+ reorganize discussion of macros to mimic (in a very
abbreviated form) the key information from
doc/macros.doc .
> J Chris Coppick:
+ various fixes to Vileserv.pm:
+ various code and documentation tweaks
+ Vileserv now automatically installs a $write-hook
(for "vileget -w"), unless you tell it not to (details in the doc).
+ Vileget used to start xvile if needed. Now it tries 'xvile', then
'vile'.
+ If you hand Vileget a directory name, it will try to do something
useful with it.
+ handle old Vileserv sockets more gracefully, in theory...
+ minor fixes to Breadcrumbs.pm
+ add perl/Help.pm
+ add perl/CaptHook.pm, which provides useful wrappers for Vile's
"hook" variables.
> Tom Dickey:
+ correct a state in sed-filt.c after parsing a substitute command,
which caused alternate lines to not be highlighted.
+ indent'd trace.c
+ modify trace.c to make Trace() thread-safe on win32.
+ correct small bug in ntwinio.c which would allow repaint_window() to
be called for a scrollbar. This normally will not occur because of
the way the event queue is processed, but was apparent in debugging.
20010925 (p)
> Clark Morgan:
+ Removed an ugly wart from win32 vile (dated September 11). Tested on
WinME (bash and command.com), Win98 (Thompson Toolkit and
command.com), Win2K (cmd.exe).
+ makefile.wnt and makefile.blc no longer use npopen.c -- all
equivalent functionality has been moved into w32pipe.c
+ w32pipe.c
- added completely new approach for temp-files-based pipes (required
when using command.com as shell).
- force-console code removed (see next bullet)
- during testing noticed cases where winvile writes last ditch error
messages to stdout. Uses popup-msgs now.
+ force-console mode is now a no-op for winvile (retained solely to
prevent breaking existing config files).
+ spawn.c:
- npflush() no longer called if using native win32 pipes (the
original call was always a nop for native pipes).
- win32 hosts call npflush() _after_ closing write pipe file
descriptor (important for the temp files implementation).
+ filters.rc no longer worries about the setting of w32pipes.
+ gnugpg.rc no longer mentions w32pipes.
+ macros.doc: remove force-console from example config file
+ delete doc/w32modes.doc
+ vile.hlp:
- w32pipes and force-console updates.
- mention macros/gnugpg.rc wrt encryption (updated in vile.1 as well)
- documented interaction between cygwin's bash, console vile, and
interrupts.
- updated $os description to mirror Tom's changes in doc/macros.doc
- within the "Color basics" topic, discuss custom winvile colors
+ explain how to build filters via makefile.wnt (README.PC).
+ update vile.hlp's install dir and be more specific regarding vile's
installation components (doc/config.doc).
> J Chris Coppick:
+ implement perl/Breadcrumbs.pm (request by Clemens Fischer).
> Kuntal Daftary:
+ two new perl extensions for vile:
1. man.pm is a Unix manual pages viewer in vile.
2. dict.pm is a dictionary/thesaurus interface (uses the DICT protocol)
Drop both the files in the appropriate path ($HOME/.vile/perl for
Unix) and add the following lines in your .vilerc
perl "use dict"
perl "use man"
> Mark Robinson:
+ modify selection in winvile so that DOT is not moved.
+ improve paste-by-right-mouse-click operation in winvile by NOT
setting the insertion point at the position where the mouse happens
to be when executing the right-click, but rather pasting at the
current DOT (i.e. right-mouse-click never sets DOT).
+ change paste in winvile to insert at DOT rather than after. Also,
when pasting in insert mode, set DOT to the end of the inserted
text.
> Tom Dickey:
+ modify the check in glueBufferToResult() so that parameters of
search-commands can have quote-characters escaped, for consistency
with the logic that strips them.
+ extend insert-exec to allow ^A and ^X prefixes to be interpreted
in insert mode (based on a patch by Mark Robinson).
+ corrected binding in dates.rc that demonstrates insert-mode bindings.
+ add a show-key-names command to show the #-style coding for function-
and cursor-keys.
+ correct number of arguments for &ftime (incorrect number of arguments
caused the increased error-checking in 9.2o to break this function).
+ extend support for alternate bindings by duplicating the default
special-key bindings at initialization so they can be customized
independently. For example, this lets one define in vileinit.rc a
different home/end key binding for command-mode than for the default
(prompted by a patch by Mark Robinson).
+ modify support for alternate bindings to use different buffer names
for describe-xxx-bindings commands, i.e., [Command-Bindings],
[Insert-Bindings] and [Select-Bindings], to make it simpler to
distinguish them.
+ add a configure check for working mkstemp() function, use this for
spell filter to quiet linker warnings (corresponding warnings for
file.c are bogus).
+ modify configure script for VILE_LIBDIR_PATH and VILE_STARTUP_PATH
to double backslashes, just in case the user has defined the
corresponding environment variables in DOS-pathname syntax (request
by Mark Robinson).
+ modify adjvalset() to allow an empty response for the mode value if
running in a macro.
+ modify push_variable(), which implements "~local", to check if a
given symbol requires quoting to avoid interpreting meta characters
when restoring its value (reported by Clark Morgan, e.g., for
$paragraph).
+ add C preprocessor parsing to xresmode, for files that use xrdb.
+ extend xresmode suffix pattern to add .Xdefaults-hostname
+ correct parsing of single-line "remark" comments in sql filter, which
did not work unless some character followed the "rem" or "remark"
keyword (report by Chris Green).
+ split-out include of <windows.h> into w32vile.h, adding some pragmas
which stifle warnings emitted by Visual C++ for M$ header files when
compiling with -W4 warning level. Changed default warning level in
makefile.wnt to -W4.
20010826 (o)
> Clark Morgan:
+ correct return code from set_files_to_edit() when no buffer can be
found or created.
+ updates to vile.hlp:
a) refine w32pipes description as well as adding updates for
WinME/W2K
b) documented unmark-buffer
+ doc/w32modes.doc now mentions WinME and W2K.
+ add macros/gnugpg.rc, examples of using GNU gpg to encrypt/decrypt
a buffer.
+ added &qpasswd, which solicits a password string from the keyboard.
Each typed character is echoed as '*'. The password is not
recallable via vile's usual history mechanism. This feature enhances
the security of the gpg macro wrappers (which have been successfully
tested on Unix and Windows). The only fly in the ointment is the
brief time the passphrase is visible at the top of the buffer that's
being encrypted/decrypted.
> Shawn Halpenny:
+ add lisp syntax highlighter (lispfilt.l)
> Tom Dickey:
+ indent'd history.c, main.c, search.c
+ add search.rc macro (based on discussion with clemens fischer
<rabat@web.de>).
+ change a few places (search.c, eval.c) which used mlforce() to
display "Aborted" messages to use mlwarn().
+ several changes to improve error handling in macros (prompted by
reports by Clark Morgan):
+ modify run_func() to ensure that the pointer error_val is returned
on an error condition. Previously the corresponding string "ERROR"
was returned rather than the special pointer value, preventing
run_func() from detecting operations on erroneous data.
+ return error_val from run_func() if the built-in function
parameters were error_val, except for special cases such as the
&error function.
+ add error-checking for divide-by-zero in ÷, and &modulo.
+ return error_val from run_func() for built-in functions &dquery,
&qpasswd, &query if the user presses ESC to abort the input.
+ check for ABORT return in prompts for missing macro parameters,
to cancel execution of the corresponding macro.
+ modify hst_append() and related logic to store quoted tokens in
[History] if the eolchar is whitespace, and if the token contains
embedded whitespace or quote characters. The tokens presented for
editing command history are dequoted.
+ modify hst_append() to ensure that if the glue character is a return
or newline, then vile will interpret that as a blank to insert
between tokens. This case happens when prompting for macro
parameters (reported by Clark Morgan).
+ set umask before calling mkdir, in case user's umask has been
mistreated, e.g., by certain mail programs that remove execute-flags
from the umask.
+ minor updates to configure script macros, for ncurses
(i.e., macros CF_CURSES_CPPFLAGS, CF_MAKEFLAGS, CF_NCURSES_CPPFLAGS,
CF_NCURSES_VERSION, CF_PROG_EXT).
+ modify logic of popup-msgs to keep it from popping up [Messages]
before the end of initialization. This would happen for example
if $pagelen were altered, since 9.2m change to set need_update
flag rather than call vile_refresh() for mode-settings which affect
the screen (report by Clark Morgan).
+ add 'buffer' to the types of parameters which may be given in a
macro template (report by Clark Morgan).
+ add logic to pl-filt.c to handle case such as the second pattern in
if(/pat1/ || /pat2/)
+ correct implementation of is_PREPRO() in pl-filt.c, which matched
"#!" rather than the documented C-style "# line <number> <filename>".
+ correct two problems in write_PATTERN() in pl-filt.c, noticed in
check_po script:
a) parse square-bracketed ranges
b) correct string address at the end of the loop.
+ corrected expressions for strings in rexxfilt.l; backslash does not
act as an escape character.
+ corrected special cases for $endtext and $rem in fdl-filt.l
+ adjust ifdef's for strftime() to use it on win32.
+ add several null-pointer checks in statevar.c
+ use &default function to make vile-pager script a little more
portable with respect to the start-filename (report by Clark Morgan).
+ implement &default built-in function, which returns the initial or
default value for modes and some state variables.
+ rewrote global_val_init(), splitting out functions init_mode_value()
and init_state_value() to implement &default functions, which return
the initial/default value of the corresponding mode or state variable.
+ reduce casts, fix signed/unsigned mismatch in prc2kcod().
+ add missing ifdef around vl_atoul() in case no strtoul() is available
(report by Larry Gensch, on Tru64 5.1).
+ modify ntwinio.c to check if the given argument list matches an
existing filename, and open that if so. This allows one to use
SendTo to open files with blanks in their names.
20010613 (n)
> Tom Dickey:
+ indent'd modes.c and os2vio.c
+ implement show-error-expressions command, which shows more complete
information about the [Error Expressions] buffer.
+ modify shmode preamble to accept a line such as
#!/bin/sh --
+ add a message to stderr in os2vio.c telling how to exit vile. If the
OS/2 console version is run via telnet, it does not display anything,
and none of the screen-related functions return an error. A message
is needed to guide a user to gracefully exit vile w/o rebooting the
system. There is a small flicker when starting normally.
+ add 'mouse' mode for OS/2 (CSet), to disable mouse when not wanted.
Modify logic in os2vio.c to sleep briefly in the loop polling the
keyboard and mouse, thereby reducing CPU time for that (report by
Paul Marwick <paulm@waitrose.com>).
+ widened ifdef for CSet error-expression, to make it useful when
building CSet applications with the OS/2 EMX version of vile.
+ include <io.h> in file.c to make this build on OS/2 with CSet.
20010523 (m)
> Mark Robinson <mark.robinson@baltimore.com>:
+ when popup-menu is inactive, if text is selected, right-click copies
to w32clipboard; otherwise right-click pastes from w32clipboard.
> Tom Dickey:
+ replace the vile_refresh() calls in modes.c with need_update flag,
since vile_refresh() set sgarbf, which prevented _all_ screen updates
including messages.
+ implement a simple example of macros to insert or display timestamps
for the current buffer (macros/dates.rc).
+ modify prc2kcod() to recognize "M-" (meta) in combination with
other prefixes such as "#-", needed to parse KEY_F21 to KEY_F35 with
the termcap driver.
+ change the octal character constants used in KEY_F21 to KEY_F35 to
decimal to avoid sign-extension.
+ implement three functions for working with timestamps: &ftime, &stime,
and &date, respectively for file modification time, system time, and
formatted date/time.
+ disable 'working' in writeall() while writing the output.
+ two fixes for writeall() function: (a) don't use for_each_buffer()
macro to iterate, since the item referred to by the loop index moves,
making it possible to get an infinite loop, and (b) don't try to
write buffers which have not been loaded (the first was reported by
Brendan O'Dea; both bugs date to 1996).
+ add commands "ww!" and "wall!", to respectively write all changed
buffers and write all buffers, using the "w!" behavior of ignoring
readonly file permissions.
+ correct an out-of-order buffer flush for the strip_tabs logic in
sh-filt.l, which made the end of a here-document incorrectly colored.
+ add a simple xml majormode.
+ format lynx output in ShowFormatted to the screen width rather than
the default of 80 columns.
+ improved perl syntax highlighting (pl-filt.c) by relaxing the
check for "=cut" to match perl's code rather than its documentation,
allowing for "{" "}" grouping around a regular expression, and
showing variables with Ident2 class.
+ add a null-pointer check to slconv(), just in case (report by Mark
Robinson).
+ implement bold/italic/underlined fonts in winvile (this is a first
cut, which occasionally has pixel trash when a bold or italic
character extends too far out of the normal font's bounding box).
+ add a null-pointer check in sl_to_bsl(), since that is used, for
example, with a parameter from cfg_locate() which may return a null.
+ indent'd path.c
20010429 (l)
> Clark Morgan:
+ expanded description of "Favorites" in win32 section of vile.hlp
+ if a multi-char map sequence includes a long timeoutlen-user value,
turn on the winvile cursor while waiting for keyboard input (bug
reported by Jason.D.Karney@clev.frb.org).
+ modify ntwinio.c so that custom cursor manipulation code does not
show the cursor if the editor does not have focus. This change is
required to support the aforementioned bug fix. I've also seen
infrequent occasions where winvile still emits stray cursor glyphs.
This often occurs when I'm changing focus from some other app to the
editor via a mouse click. I hope this latter change eliminates a
race condition within the editor.
+ modify check in HighlightFilter macro to ensure that vile.exe also
must have w32pipes set to enable syntax highlighting. This is a
necessary condition on W95/W98/WinME.
> Tom Dickey
+ indent'd buffer.c, file.c
+ reimplement ":args" command to accept a filename expression. If no
filename is given, as before it will show the buffer list, but if a
filename is given, it will replace the list of visible buffers with
those matching the expression. Use ":args!" to discard changes
pending to one or more buffers (request by Vicki Brown).
+ add hst_reset() function, called from main loop to reinitialize data
used for gluing portions of a command together for the [History]
buffer. This addresses a problem reported by Clark Morgan where the
first time a ^WG!ls command was given, vile reported "No match for"
ls in the current directory. This change by itself makes vile report
no matches all the time, because it was attempting to do
filename-completion on the "ls" string.
+ add a special case in kbd_reply(), setting KBD_REGLUE to ensure that
when given the command ^WG!ls does not attempt to do
filename-completion on the "ls" string. Though KBD_REGLUE was added
in 9.2c, it was not used, since the ^R fix relies on a different
part of the change. This change uses KBD_REGLUE.
+ fix highlighting of include's in c-filt.c, which did not allow a
blank in the filename. Modify highlighting of filename to Literal.
+ add a configure check for strtoul(), which was not available on
SunOS 4.x.
+ updates to configure script macros: CF_CURSES_LIBS (split-out
CF_CURSES_CPPFLAGS, add check for SunOS curses), CF_IMAKE_CFLAGS
(disable CDPATH during test), CF_NCURSES_CPPFLAGS (improve check for
ncurses headers), CF_NCURSES_VERSION, CF_TERMCAP_LIBS, as well as
newer config.guess, config.sub scripts.
+ correct handling of backslash in htmlfilt.l, and highlight numbers
in that filter.
+ fix a trailing comma in an enum in sed-filt.c
+ quote filename in manpage.rc when it is used in shell commands, in
case it contains blanks or other special characters.
20010407 (k)
> Clark Morgan:
+ update note in README.PC about problems with ActivePerl.
> Tom Dickey
+ add a check in zotbuf() to prevent a buffer from being deleted while
it is being executed as a macro (report by Paul Fox).
+ fix a potential overflow of linebuf[] in ntconio.c
+ fixes for ntwinio.c and ntconio.c to handle default color codes
properly. The logic did not mask out unrelated bits from the
attribute field, did not apply bold and italic codes in the right
order to work with default colors.
+ make manpage.rc work on win32, etc., assuming cawf is available as
a substitute for nroff.
+ check imakemode before defmode.
+ modify ntconio.c so control/@ is translated to ^@ on insertions
(reported by Clark Morgan).
+ use SL_TO_BSL() to convert path separators to native form on DOS
and similar systems in the return values of builtin functions such
as &lookup, needed this to port manpage.rc
+ improve bas-filt.l's rules for hexadecimal constants, add action
highlight for "_" used as a continuation marker, and show #date#
constructs as a string.
+ accept ".cmd" as a suffix for batmode, resolving conflict with OS/2
by making it specific to the system.
+ modify bat-filt.l to highlight the portion labels past 8 characters.
Only the first 8 are significant.
+ modify bat-filt.l to handle '@' before any command, e.g., @rem.
+ adjust ifdef's for OPT_FINDPATH to build with configure
--disable-extensions.
+ modify ntwinio.c to recognize control/@ or control/2 as ^@.
+ add ".exp" to tclmode, for 'expect' scripts.
+ refine suffixes for rcmode to avoid conflict with names such as
.lynxrc
20010322 (j)
> Clark Morgan:
+ added $findpath and $find-cmd state variables.
+ on win32 and unix hosts, modified capturecmd (aka ^X-!) to support
find operations that span directory tree(s). This feature is enabled
via a find-cfg mode.
+ added a section to the help file entitled:
Working in a project hierarchy
which describes several features that enable quick access to many
files spread over a directory hierarchy. Features discussed include:
- Directory navigation (the pushd, popd, et. al. commands).
- Hierarchical tags
- File/Directory traversal (win32/Unix hosts only)
+ w32ole.cpp compiler warning fix.
+ put ntwinio/ntconio msg strings in proper format.
+ eliminate a couple of atoi() calls in random.c
> Kevin Buettner:
+ workaround for a Perl 5.005 bug in perl_prompt().
+ several changes to shell.pm:
+ some documentation updates
+ bug fixes
+ a new command called "xterm". which starts a shell in one of
vile's buffers just as "start-shell" already does, but also
starts an xterm through which one may (also) interact with the
shell. The shell output (and echoed input) is displayed in both
the xterm and a vile buffer.
> Paul Fox:
+ fix a typo in vile.hlp's example using bind-key for a space (report
by Clark Morgan).
> Tom Dickey:
+ change an inequality in read_quoted() which had the effect of
changing a null (^@) entered after ^V to a -1, preventing user from
inserting a null character (reported by Clark Morgan).
+ correct a loop condition in put_majormode_after(), which caused a
core dump when an "after" qualifier referred to a majormode which was
not defined.
+ add $majormode-hook, which can override the suffix/preamble rules
for choosing a majormode for the current buffer. If the associated
script sets the majormode, the other rules are not run.
+ implement new majormode submode "qualifiers", which can be set to
"all" to specify that both suffix and preamble must match. This is
used to keep rcmode and vilemode from conflicting.
+ add null-pointer checks to choice_to_code() and choice_to_name(),
guarding against unimplemented enum-tables.
+ add syntax filters for Windows ".def" and ".rc" files.
+ add Visual Basic majormode (vbmode).
+ add syntax filter for BASIC, and majormode basicmode.
20010304 (i)
> Clark Morgan:
+ elaborated on "apropos" and "describe-key" in macros.doc
> Paul Fox:
+ extended check-modtimes mode, necessitated by an interaction between
the new unique-buffers mode and check-modtimes. The problem is this:
my current project lives in a tree that makes copious use of
symlinks. This means that the name by which I edit a file may not
match the name by which "make" refers to the file when it reports an
error. "unique-buffers" normally guarantees that I won't edit the
file twice in this case. but if the file gets replaced, for example
with ":!co -l file.c"), then the inode will change on disk, but
vile's notion of the inode will not change. this causes vile to
create a new buffer the next time make reports an error on it (with a
different pathname). With this patch, if check-modtimes is on, then
when the file is reread, the inode (fileuid) info is updated, and
vile is again in-sync with the filesystem.
> Tom Dickey:
+ add/use code FILEC_WRITE2 to use in mlreply_file() to avoid getting
prompted about overwriting a file when using ":w! filename".
+ add definitions so winvile.exe and vile.exe use utime() to set the
proper date on backup files.
+ modify writereg() so that if the user specifies ":w!", and the file
is not writable, it will (try to) temporarily chmod the file for
writable access. Note that the view-only mode overrides this
behavior, unlike vim (request by Igor Schein <igor@txc.com>).
+ modify logic of read_argument() to force interactive input of
parameters which have not been specified in the command. This allows
a user to write a macro which can be bound to a function key and
still prompt for parameter values. Unlike the '@' response token,
parameters can be something more than an untyped string, e.g.,
file/directory completion (report by <rick_wessell@email.com>).
+ add a "directory" parameter type.
+ change mlsave to a TBUFF, so popup-msgs will not show messages
truncated to NSTRING (143) columns.
+ add $with-prefix variable which shows the prefix string in effect
from a "~with" or "~elsewith" directive.
+ add $title-format variable which can be used to specify a customized
title for xvile or winvile.
+ make swap-title option apply to any platform that sets window-title.
+ modify makefile.wnt to check PROGNAME variable, which can be set
to override the target name, and the $progname state variable.
+ add missing braces around a chunk of logic in api_command_cleanup(),
reported by antic.
+ add ".vile" to suffixes for vilemode.
20010224 (h)
> Clark Morgan:
+ fix some compiler warnings highlighted by change in 9.2g to use "-W3"
warning level in makefile.wnt (mktbls.c, ntwinio.c, w32oo.cpp,
wvwrap.cpp).
+ fix bug introduced in getfile2bp() in 9.2g by compiler-warning
cleanup which broke ^X-e command.
> Tom Dickey:
+ modify definition of $progname so it can be redefined at build time,
allowing multiple versions of winvile to coexist.
+ minor tweak to Clark's fix for getfile2bp() to fix the compiler
warning too.
+ improved expressions for $filename-expr to avoid picking up ':'
unnecessarily.
+ add an error expression for 'antic', which uses line and column
numbers, and correct column placement to account for tabs. The
other expressions using columns were applied to listing files with
tabs already converted.
20010217 (g)
> Clark Morgan:
+ rewrote much of the internals of winprint() and associated functions
were for better clarity and documentation (for the next person who
wanders through this code). Corrected bugs and many FIXME's.
+ text selection printing is now supported.
+ if a formfeed is encountered in the text, the current page is
ejected.
+ the "copies" and "collation" print dialog box options are now
supported regardless of the associated printer driver's capabilities
(or lack thereof). The one exception is that uncollated text
selection copies are not permitted unless the printer driver provides
"native" multiple copy support. In the event it's not possible to
print uncollated text selection copies, a message box is displayed
that notes the restriction and then offers a chance to continue with
collated copies.
+ finish win32 copyright updates for 2001.
+ if winvile's ntgetch() ignores a WM_TIMER message, dispatch the
message to a window proc that "cares".
+ noticed that when incanting ":!ls | less" from within winvile, the
spawned console's close button is _not_ disabled if the shell
modifies the console title (a la bash). Fixed for win9x hosts. I
assume that the fix applies equally to NT and W2K.
+ added bulletproof "string to [unsigned] long" conversion routines to
random.c (vl_atol and vl_atoul).
+ substantially changed the implementation of vile's insertion cursor
interface. Insertion cursor state changes are now handled in
update().
+ added icursor (insertion cursor) mode for win32 hosts.
+ added a boolean swap-title mode (win32 only). If set, the editor's
title is displayed as "<buffer_name> - <editor_name>" instead of the
usual "<editor_name> - <buffer_name>". The former conforms with the
behavior of many win32 apps and is also much more useful, e.g., from
a screen real estate point of view, when many apps are resident in
the task bar.
> Juan Carlos Gil Montoro <jcgil@gmv.es>
+ modify store_tag() function in tags.c to accept tags with qident
class rather than ident, that is, including colons as part of the
identifier.
> Paul Fox:
+ add setenv (set-environment-variable) command.
> Tom Dickey:
+ make current_undo_cookie have the same type as LINE.l_undo_cookie to
avoid spurious matches.
+ add checks to finderr.c to ensure that line and column number are
actually numbers.
+ correct logic in finderr.c which did not work properly if pattern
contained \( and \) delimiters.
+ add pattern to finderr.c for Solaris lex.
+ add patterns to finderr.c for Borland C++ (reported by Manish Bhobe
<mjbhobe@vsnl.com>).
+ fix various minor things to make vile and winvile compile with
Borland C++ 5.5
+ fix several unused-assignments reported by Borland C++ 5.5
+ make statevar.c more compact using new functions any_rw_BOOL(),
any_ro_BOOL(), any_ro_INT() and any_ro_STR().
+ change ifdef's for vl_atol() and vl_atoul() to make them independent
of __STDC__ value.
+ indent'd undo.c
+ reindented ntconio.c, ntwinio.c, random.c undo.c
+ change most instances of 'unsigned long' to ULONG, etc., for
consistency.
+ workaround in configure script macros to allow testing with autoconf
2.49c, which has broken the changequote() feature.
+ fix a check in CF_CURSES_LIBS which caused the configure script to
assume it had found ncurses when it had not.
+ update config.guess/config.sub to subversions version, which finally
includes OS/2 EMX.
+ fix sh-filt.l to compile with lex that uses yytext array rather
than char* pointer, e.g., SCO OpenServer.
20010122 (f)
> Tom Dickey:
+ several related changes to regexp.c:
+ add first cut of logic for bounds (but see buglist).
+ implement POSIX character classes and analogous escapes like \d to
make them more vile-like (prompted by discussion with George
Eccles).
+ remove fallback for strcspn().
+ indent'd
+ work around NetBSD 1.5's use of MK symbol in curses.h (reported by
Matthias Buelow).
+ add syntax filter for ECLiPSe, a dialect of Prolog (from Joachim
Schimpf <j.schimpf@icparc.ic.ac.uk>).
+ modify sh-filt.l to recognize "<<-" marker beginning a here-document.
That tells ksh and similar shells to ignore leading tabs, including
when matching the final word of the here-document.
+ fix some of the staircasing problems with curses.c driver by saving
and restoring the tty modes explicitly, so we can separate that
effect from the screen initialization that curses does (fixes a
staircasing in the usage message reported by Mikel Finch
<Mikel.Finch@med.ge.com>).
+ add Verlog filter and corresponding majormode vlogmode (request by
Balekudru Krishna <bkrishna@asicdesigners.com>).
+ correct an 'awk' in configure.in that should have been $AWK.
20010106 (e)
> Clark Morgan:
+ workaround for a bug in wvwrap observed on win96/winme. wvwrap uses
COM to send this stream of commands to winvile:
:cd <path>\n:e <file>\n
Playing with this a bit, I found that I could reproduce this problem
using these commands (sans wvwrap):
[win]vile
:cd \\remote_node\share_drive_name
:e autoexec.bat ; for example
[win]vile could not "open" the specified file and treated it as a new
file. The problem persists even if forward slashes are used as an
argument to the cd command. I don't know if this problem exists on
NT or W2K. The fix is to pass filenames to fopen() in canonical
Win32/DOS format (i.e., paths include backslash delimiters). I've
heard several developers say that the win32 version of fopen()
supports both forward and backward slashes. Well, using VC5.0++
(SP3), I know of at least one case where that assertion is false. In
addition, it was also necessary to ripple SL_TO_BSL() changes through
various system calls in write_backup_file(), due to the same observed
behavior.
+ modify sh-filt.l to avoid coloring the white space that precedes the
':' command.
+ added basic win32 printing for winvile via these two new commands:
winprint winpage-setup
This feature is not currently available for console vile. _Missing_
printing features include:
+ ability to set printing font (distinct from display font),
+ header/footer strings (footer currently hardwired as centered page #)
+ printing of current selection
+ collation for printer drivers that don't support this feature
+ N copies for printer drivers that don't support this feature
+ color and visual attributes
Tested on Win98/95 using an HP LJ4Plus and an HP DJ870CSe.
+ added "Print..." and "Page setup..." selections to winvile system
menu.
+ when win32 common open/save dialog boxes are dismissed during a
console vile editing session, attempt to re-establish window focus
for the editor.
+ found a way to disable a spawned console's close button (significant
winvile hole closed). Thank you, Mr. Petzold.
+ clean out a couple of bugs in buglist that were fixed long ago.
+ in ntwinio_font_frm_str(), report win32 error(s) before making another
win32 API call (doh).
+ in the remarks section of a number of Win32 API calls, I noticed
verbiage similar to this:
"Resources associated with a menu that is assigned to a window
are freed automatically. If the menu is not assigned to a
window, an application must free system resources associated with
the menu before closing. An application frees menu resources by
calling the DestroyMenu function."
Since winvile's popup menu is not assigned to a window, I added code
to clean it up. If the verbiage above is to be believed, then
apparently "modern" Windows apps (i.e., post-Win 3.11) can still leak
system resources. Oh my.
> Tom Dickey:
+ make check in filesave() for missing filename consistent with
writereg, which checked for internal filenames rather than simply a
missing name.
+ add check in writeall() for attempt to write internal buffer such
as [unnamed], and show the buffer name rather than the empty filename
in the resulting warning message.
+ add write-all-buffers command, to attempt to write all buffers
whether or not modified (request by Clark Morgan).
+ modify adjvalueset() to allow users to set strings and patterns to an
empty value with 'unset'. Previously, an 'unset' would always prompt
for a value, which had the effect of treating an empty response as
keeping the current global buffer or window value. Note that
'unsetl' is unaffected.
+ modify var_LCOLS() to avoid having the sideways value subtracted from
$lcols. This is used in ^G (reported by Clark Morgan).
+ change several entries in dcl.key to shorter abbreviations.
+ add configure check for existence of /dev/tty, to work around broken
pty implementation on QNX: if one su's from root, /dev/tty is usable
while the pty (which ttyname() cites) is not.
+ implement x-modifier parsing for perl expressions. According to the
perl documentation, the '#' markers in Jim Crigler's example would be
treated as comments if there was a /x modifier. vim does not check
for this.
+ fix an infinite loop in pl-filt.c when parsing this example:
$rest =~ /^1\s+ # first action
(\S+)\s+ # date
(\S+)\s+ # time
((?:\w|\s)+)\b\s+
The code was expecting the first "\s" on the last line to be
followed by a "+" sign or other meta character, and dithered between
eCODE and ePATTERN cases (reported by Jim Crigler).
+ correct winvile command-line parsing: single-quotes should
be considered part of the parameter. Also, ignore empty
parameters, to allow scripts to use double-quoted
parameters, though note that SendTo under W2K automatically
double-quotes pathnames that require this.
+ correct filtername compiled into vile-nr-filt, which did not match
nrmode.
+ add popup-menu mode for winvile (patch by Mark Robinson
<Mrobinson@baltimore.com>).
+ modify value for bindir in filters/makefile to exclude paths past
the first in $VILE_LIBDIR_PATH (reported by Chris Green
<chris@areti.co.uk>).
+ apply $CFLAGS/$CPPFLAGS change to CF_X_TOOLKIT configure macro.
+ correct allocation size in OpenKeywords(), which was not long enough
(patch by Joachim Schimpf <j.schimpf@icparc.ic.ac.uk>).
+ fixes to build on Windows 2000 (win2k) with perl 5.6.0, Visual C++
5.0 (mkprlenv.wnt, filters/makefile.wnt).
20001206 (d)
> Kevin Buettner:
+ change default for $XSHELLFLAGS from "-c" to "-e", which matches the
documentation for $xshell-flags.
+ make updlineattrs() even more efficient and also fixes a problem
with attributes not always being displayed correctly across adjacent
rows.
> Tom Dickey:
+ revert part of the PutChar() change from 9.2c, since it incorrectly
puts the cursor at the first character of a line after a "put"
(reported by Paul Fox).
+ add/use BUFFER.b_inuse value to ensure that we do not recreate a
stored procedure that is currently being executed (reported by
George Eccles, Clark Morgan).
+ add dummy parameters to invocation of tparm() to make this build on
HPUX and AIX which use the X/Open non-varargs prototype for that
function (reported by Jordan Henderson
<jhenderson@daynt1.daas.dla.mil>).
20001115 (c)
> Clark Morgan:
+ minor updates to vile.hlp, macros.doc
+ added select-all and selection-clear commands. The former command
selects, highlights, and yanks all text in the current buffer to the
unnamed register. The latter command removes a selection's
highlighted attributes. Select-all is only available on hosts where
vile provides integrated mouse support.
+ added "Select All" to winvile's right-mouse-button menu.
+ added text to properly describe win32 bindings that use VK_DELETE
(delete key). This is a bug fix.
+ winvile's right-mouse-button displays the key bindings of all menu
items that are bound to vile commands (previously, only some bindings
were displayed). The menu's key binding text is synthesized at
runtime. This synthesis code was modified so that if there is no
binding, winvile displays nothing, rather than garbage (bug fix).
+ stub in some commands for win32 printing.
+ fixes for this problem reported by Richard Hussong
<rhussong@ciena.com>:
"Winvile sometimes appears to receive and process cursor-motion
events when the cursor is not in the window, even when it does not
have the focus. The effect is that the Vile window scrolls. I
have even seen this happen when the cursor was moved from one half
of a split Winvile window to the other - the window that the cursor
had just left started scrolling spontaneously. Note that this
happens with no mouse buttons pressed."
* implement mouse capture a la Petzold's "Programming Windows 95".
* make sure timer is allocated before starting autoscroll.
* only autoscroll if WM_TIMER timer ID matches that of timer created
during autoscroll init.
> Kevin Buettner:
+ improve performance for very long syntax-highlighted lines
essentially converts a quadratic algorithm into a linear one. It
also fixes the crasher you get when you change from linewrap mode to
nolinewrap mode where the first line won't fit on the screen.
(report by Clark Morgan).
+ fix related problem where VASPCOL code was interpreted incorrectly as
VASPCOL | VASEL | VAREV, making add_line_attribute() consider this to
be a selection (due to VASEL being set) and forcing the attribute to
a buffer attribute (which it needs to be for selections.)
+ add check in update() to make sure that movements in very long
wrapped lines get updated properly (reported by Clark Morgan).
> Paul Fox:
+ modify handling of select() in ttgetc() to check for out-of-band
conditions, to avoid looping on errors in stdin.
> Tom Dickey:
+ add check in vileperl.rc in case the server is still running, to
avoid error message (reported by Bruno Betro <bruno@iami.mi.cnr.it>,
discussion by J Chris Coppick and Clark Morgan).
+ make corresponding changes for poll() in ttgetc(), as noted by Paul
Fox.
+ fix two quirks of PutChar(), in line.c:
+ yanking all of vile.hlp with yG, then putting (p) into an empty
buffer would put an empty line on the end, but remove the initial
empty line (reported by Clark Morgan).
+ restore DOT to the original location after putting the text.
+ modify treatment of pushed_back flag in kbd_reply() so it will force
the given partial result to be glued to the pushed-back string.
This fixes a problem using ^R to read the result of a shell command
(reported by George Eccles <gbeccles@a-znet.com>).
+ modify form of includes to be consistent, e.g., quoted includes for
vile's source files other than config.h which should always use
brackets (reported by Clark Morgan).
20001104 (b)
> Clark Morgan:
+ add command dirs-clear, which clears dirstack and kills dirstack
buffer.
+ add command dirs-add, which adds a directory to dirstack[top -1]; cwd
remains unchanged. This command permits initialization of dirstack
via a macro and/or startup file.
+ remove a state variable from ntgetch(), which could conceivably fall
out of sync due to calls to winvile_cursor_state() by other vile
modules. This appears to fix a bug which would cause winvile's
cursor to vanish. Switching to a different window would eventually
allow winvile's cursor to reappear (reported by Richard Hussong
<rhussong@ciena.com>).
+ update README for 9.2
+ add caveat in doc/macros.doc regarding inline comments for commands
that accept optional parameters.
+ update vile.1: Add -i, -R, and -k to invocation switches. Add a new
encryption section. Note that vile's encryption is not compatible
with vim. Remove reference to nonexistent -m switch (which was
supposed to encrypt/decrypt mail messages).
+ document that write-file accepts an optional filename argument
+ change $crypt variable so attempts to read it return the string
"[write only]" rather than the ERROR token.
+ if last element is popped off dirstack and [DirStack] is the only
visible buffer, be sure to update [DirStack].
+ add consistent error message delimiters for modules that I regularly
modify.
+ when winvile spawns a dynamic console, the parent process ignores all
win32-supported signals until the console exits. This prevents a
Ctrl+Break in the console window (for example) from rolling up
winvile. Patch is based on code I recently noticed in the vim
sources.
> Tom Dickey:
+ add configure check for ispell or spell program, use that in spell
filter.
+ add double-quote character to those not treated as part of a filename
in the default for $filename-expr
+ add/use CharOf() macro to suppress sign-extension of char type on
platforms where this is a problem in ctype macros, e.g., Solaris.
+ add variables $error-expr and $error-match, which show the last error
expression and the text it matched.
+ expand ifdef's for pop_fake_win()/push_fake_win() to include the
tprintf() logic, making 9.2 build on VMS.
+ change several configure macros to use $CPPFLAGS consistently for
preprocessor options rather than $CFLAGS.
20001026 (a)
> Clark Morgan:
+ expanded description of 00-10-11 item in buglist (:!ls in winvile)
> Tom Dickey:
+ minor fix to sh-filt.l, adding default action for <HEREDOC>, which
is needed to match $'s.
+ rename getcchar() to vl_getcchar() to avoid conflict with X/Open
curses function.
+ correct change to imply_buf (9.1x), which resulted in reading each
file twice if implybuf was set true. Only files that are being
written should be reread.
+ update config.guess, config.sub to reflect changes at
subversions.gnu.org
+ update some details in doc/dir.doc to reflect renaming, etc (reported
by Kevin Luu <kevin@islanddata.com>).
+ correct substitution of path to filters source-directory in
mk-2nd.awk, which did not take in account that 'configure' might be
invoked with an absolute path, so the $top_srcdir value also would
be absolute (reported by Kevin Buettner).
+ correct regular expressions for configure script's option value of
--with-builtin-filters, probably broken in 9.1p when changing
genmake.mak to 3-column format (reported by Michael Finken).
Changes for vile 9.2 (released Tue Oct 17 2000)
20001015 (za)
> Clark Morgan:
+ added pushd, popd, dirs.
+ added ~trace/$debug documentation (taken from doc/macros.doc) to
Debug section of help file.
+ made paragraph spacing in macros.doc consistent. Fixed an instance
where the formatted text exceeded 80 cols with tabstops set at 8.
+ when winvile is started from a shell, there are times when stdout and
stdin (and maybe stderr) have been redirected to handles that can't
be accessed by the running (GUI) process. This is known to occur
with the CYGWIN shell(s) on a WinNT host. Add code to get the proper
stdin/stdout handles, as well as ensure that the dynamically
allocated console doesn't use black text on black background.
+ documentation updates: buglist item for winvile with :!ls
> Brendan O'Dea:
+ fix a couple more places with untying handles for Perl.
> Tom Dickey:
+ document known problems with curses.c driver
20001010 (z)
> Clark Morgan:
+ fix a display glitch in w32_keybrd_reopen().
> Brendan O'Dea:
+ problem: in Perl 5.6.0, some changes to the tied filehandle
mechanism break anything which attempts to re-open STDOUT/STDERR,
such as shell.pm as that now attempts to invoke the non-existent
method Vile::Buffer::OPEN .
Workaround: untie the handles before re-opening.
> Tom Dickey:
+ use new function SamePixel() to treat Pixel values as equivalent if
the difference between each of their RGB components is relatively
small. Add a check for the default resource value of fcolor0,
forcing that to black if xvile's foreground does not look different
from white. This makes some of the color palette commands, e.g.,
:set cs=black
work properly.
+ correct computation of 'diff' variable in tcapattr(), and add a check
for coincidence between strings that are used to turn off
corresponding video attributes. The first error made vile turn off
the wrong attributes under some conditions, and the second would
cause it to omit turning back on attributes that it had inadvertently
turned off (reported by Clark Morgan).
+ add imakeflt.l, to highlight Imakefile's. Using c-filt.c was not
satisfactory because it did not treat quotes properly on comment
lines.
+ minor fix to makefilt.l to treat "#include" as a comment.
+ minor fix to vilefilt.l to prevent double-quoted text from spanning
multiple lines.
20001005 (y)
> Clark Morgan:
+ update makefile.blc, add w32oo.obj
+ when pasting to clipboard, use a less ambiguous status message.
+ change global var that's used to detect when minibuffer is active.
Keying on "bminip" doesn't work in all cases.
+ for winvile, allow clipboard paste via RMB menu into minibuffer.
+ when pasting into minibuffer, don't report an error if an attempt is
made to paste more than one line. Instead, clip the paste to a
single line. This behavior mimics the action taken under similar
circumstances by nontrivial windows apps (e.g., Outlook and IE).
+ initialize the winvile "Save As" dialog with the name of the current
open file.
+ modify 'setv' logic to provide the current value of a variable when
setting it (request by Pedro Gomes).
+ added the state variable $favorites, which returns the path to the Windows
Favorites directory. On a Win95/98 host, this feature affects
console vile. When console vile starts, the "launch cursor"
(combined pointer/hour glass cursor) is displayed for ~15 seconds on
a 166 MHz Classic Pentium host. I would presume this is because the
console app is now linked with OLE32.LIB . During this 15-sec
interval, normal vile operations are unaffected. This effect does
not occur on NT hosts available for my tests (although they are a tad
faster than 166 MHz :-).
+ added new file w32oo.cpp to vile's distribution. This module
comprises a collection of Win32-specific functions that require a C++
(OO) compilation.
+ winopen, winopen-nocd, winsave, and winsave-nocd now each take an
optional directory argument, which specifies the initial directory
opened by the Open/Save Win32 common dialogs. If the optional
directory is not specified, cwd is used by default.
+ added a "Favorites" menu selection to winvile's RMB menu, which
executes the command "winopen $favorites".
+ shorten the path in set_directory()'s "Couldn't change" error message
if the complete text won't fit in the message line.
+ on a win32 host, ":cd<CR>" is mapped to ":cd ~". This change makes
win32 hosts compatble with VMS and Unix.
> Tom Dickey:
+ modify flt_putc() in builtflt.c to avoid incrementing line pointer
twice if the filter emits a newline before the actual end of line.
That could make the program count a line twice, for instance.
+ implement name-completion for user variables, e.g., %foo.
+ rephrase loop in purge_line_attribs() to handle the case where the
ending line-pointer is at the end of the buffer. This makes the
^A-NG command (clear-attributes-til) work when the cursor is on the
first line (reported by Christian Lindig).
+ modify sh-filt.l to allow here-document tags such as containing
punctuation characters, e.g., "eof/".
20000926 (x)
> Clark Morgan:
+ prevent autocolor from overwriting the message-line when '_' or ^X-_
have been pressed, but the subsequent buffer selection key has not
yet been pressed.
+ for several select cases, when a long path causes message line text
to exceed the current window width, that path is shortened on the
left until the message text fits (if possible). Those select cases
include failure to save a file, reading in a new file, and writing
out (or appending to) a file.
+ document ":w >>filename" in vile.hlp
+ report errors if user attempts to copy from mini-buffer. The error
message only shows up if "pm" is enabled, since there's currently no
graceful way for a vile command to unwind execution from the
minibuffer context.
+ allow pasting of one line of text into mini-buffer.
+ improve makefile.l, don't add syntax attributes to the whitespace
embedded within these token sequences:
([<white>]<name>[<white>]|\\\n)+(:|=)
> Tom Dickey:
+ correct default attribute in key-filt.c's color_of() function, which
made newlines colored as "Error".
+ modify behavior of imply_alt() so that if the buffer already exists
and is not modified, it will be automatically reread.
+ correct behavior of imply_alt() when the specified file is being
appended to. Given ":w >>foo", it was making a buffer named ">>foo".
+ add uppercase "TRUE" and "FALSE" to fsm_bool_choices[], so
assignments to boolean modes works properly within a macro (reported
by Clark Morgan).
+ add %c and %l format types to finderr.c, which use 0-based offsets
rather than 1-based offsets (prompted by comments by Christian Lindig
<lindig@eecs.harvard.edu> that some tools use 0-based offsets).
+ modify logic for name-completion in kbd_reply() to force the cursor
to the end of the input buffer before attempting to complete.
Otherwise, partial completions could be written in the middle of the
buffer.
+ modify handling of motion commands in editMiniBuffer() to use NOMINI
flag rather than guess which commands with MOTION flag should not be
applied (fixes a bug report by Jim Crigler, which noted that 'h'
following '^G' was not treated as a cursor motion).
+ add/use NOMINI flag to indicate commands that cannot be used in
minibuffer editing motions.
+ use DisplayHeight() rather than 1000 for paneMaximum of scrollbars
in Motif version of xvile (report/analysis by Larry Gensch).
+ add 'prefix=$(prefix)' to makefile.in where it recurs to filters
directory to accommodate older 'make' programs which do not inherit
options (request by Michael Finken).
+ show unterminated quotes in sh, make and perl filters as "Error".
+ correct handling of QUOTED (double-quote) state in sh-filt.l, which
did not interpret escaped double-quote or identifiers since one
pattern was too greedy. Show escaped double-quote as "Action".
+ correct SSTRING expression in sh-filt.l, which was assuming backslash
would quote other characters in a single-quoted string.
+ change mapping in vileinit.rc for ToggleList and ToggleTabs to omit
the "execute-procedure" since that is no longer needed, and makes
the :history less useful.
20000914 (w)
> Clark Morgan
+ macros.doc: expand description regarding comment delimiters in
macros.
+ fix vilefilt.l: syntax attributes should not applied to leading
white space that precedes a macro keyword
+ fix vilefilt.l: most cases of trailing comments are rendered in the
"Comment" class attribute (new functionality). There is one corner
case that's not handled, as described in block comments added to
vilefilt.l .
> Tom Dickey
+ modify htmlfilt.l to parse comments line-by-line, making it work
properly with Solaris' lex program which does not match newlines in a
pattern. Solaris lex also is easily confused by RE's that look like
ranges but are not, such as "[^-\n"], and can only apply '+' to a
single-character RE (report by Jenny Brown <jenny@cyberdesic.com>).
+ add functions flt_begin(), etc., to filters.c to consolidate logic
in filters for attributing multi-line text as a single region.
Use this to simplify bat, make, perl, py, tbl, txt, xres filters.
+ add a check for an empty table in fill_partial() to avoid buffer
overrun if caller provides incorrect parameter.
+ correct a case in editMinibuffer() which did not completely restore
the buffer position when an error was found. This led to passing
an empty buffer with an associated nonzero position to fill_partial(),
which dumped core.
+ add &dquery function which prompts for input with a given default
value (request by George Eccles).
+ indent'd exec.c
+ modify logic in kbd_reply() a different manner, by adding a parameter
to get_token() which returns the actual eolchar matched, so that for
expressions such as "foo=x", we use '=' rather than 'x' for the
parameter to set_end_string() (reported by Clark Morgan).
+ add a check for line length in editMinibuffer(), in case an
unexpected message such as the one in kbd_complete() from 9.1v wipes
out the current minibuffer. The combination of the two caused a GPF
when typing ":set vis=<return>off<return>" (reported by Pedro Gomes
<Pedro.Gomes@lis2.siemens.pt>.
+ modify kbd_complete() to only show the 'No match for ...' message if
it is run via a macro. Interactive mismatches will just beep,
because a message would get in the way.
+ modified bat-filt.l and tcl-filt.l to build with Solaris lex. The
latter requires a larger tablesize (reported by Jim Crigler).
20000905 (v)
> Tom Dickey
+ add check in CF_CURSES_LIBS in case $LIBS is already set to something
like "-lcurses -ltermcap".
+ update config.guess, config.sub to 20000819 patch.
+ modify tcl-filt.l based on examples by Juan Carlos Gil Montoro
<jcgil@gmv.es>:
+ add namespace syntax to IDENT rule, and apply this to the IDENT1
rule as well.
+ allow comments to have continuation lines.
+ flag errors for badly-formatted numbers.
+ treat {"} and \" specially (not as string literals).
+ handle unterminated string, i.e., a newline ends a string even if
no quote is found.
+ highlight trailing backslash as "Action".
+ make a new class, "Braces" to control how curly braces are
highlighted, so this is not part of tcl-filt.l, but specified in
tcl.key
+ modify logic in kbd_reply() to set last_eolchar from the given
eolchar, e.g., '=', rather than the current contents of execstr,
since that may contain an arbitrary character such as the first
one of an identifier. That made commands such as
setl autowrite=false
in a macro not work, since 'f' (false) was used (reported by
Clark Morgan).
+ modify kbd_complete() to show a message when it fails to find a
match.
+ relaxed suffix rule for vilemode to ensure that vile.rc is always
interpreted in that mode, even if it does not reside in a directory
named "vile" (reported by Clark Morgan).
+ implement new Perl syntax filter, pl-filt.c (the older one is still
available for comparison, but is internally renamed to "pl" rather
than "perl").
+ use tgoto() to simplify alternative to tparm() when formatting
escape sequence for colors in tcap.c
+ suppress logic in tcap.c that resets colors when the terminal does
not support color. Otherwise, reverse video and other non-color
attributes do not work (reported by Clark Morgan).
20000828 (u)
> Tom Dickey
+ add error checks in sed-filt.c for unbalanced curly or square
brackets.
+ make regular expresion delimiters easier to read in sedmode by
coloring them with Action class.
+ modify preamble expressions that match a pathname (e.g., "#!/bin/sh")
to allow trailing blanks on that line.
+ correct preamble expression for sedmode, which interfered with shmode.
+ correct syntax error in filters/filterio.c for stub functions used
for vilemode symbols (reported by Pedro Miguel Marrecas Gomes
<GomeZ@netc.pt> and Jim Crigler <criglerj@yahoo.com>).
20000828 (t)
> Tom Dickey
+ add stubs for dname_to_dirnum(), vl_lookup_func() and engl2fnc() to
filters/filterio.c, use those to provide hooks for vilemode when
configured for builtin filters to highlight unknown keywords.
+ modify dname_to_dirnum() to treat any negative return from
choice_to_code() as D_UNKNOWN, restoring logic that warns about
unknown directives (reported by Clark Morgan).
+ add sedmode, and corresponding syntax filter.
+ rename some functions (line_count, filename, cd, help, source) to
use "vl_" prefix to avoid shadow-warnings from gcc.
+ indent'd eval.c
+ implement function &error, which returns true if its argument was
an ERROR token (i.e., internally error_val).
+ add new TBUFF-oriented functions mlreply2(), kbd_string2() to wrap
kbd_reply(). These are needed to support &error, but would be useful
in making vile able to handle input data with nulls.
+ modify TBUFF functions to check if error_val is copied to a TBUFF.
In that case, set a flag which makes tb_values() return error_val.
+ fixes to recover if a 'source' command results in runaway recursion,
e.g., if foo.rc contains the line "source foo.rc". In
perform_dobuf(), ensure that the line pointer we are using to restore
the buffer/window current line is actually in them, and add a
reference count in dofile() to avoid removing a buffer which is in
use for sourcing.
+ corrected some places in makefilt.l and mms-filt.l which were writing
via yyout, which caused spurious characters to be printed with
builtin-filters.
20000820 (s)
> Clark Morgan:
+ make Ian Jamison's change to w32pipe.c the default on all hosts,
tested in W95 and NT.
> Tom Dickey:
+ minor fixes to IDENT and VARIABLE definitions in bat-filt.l
+ modify win32 scripts to eliminate redirecting standard output as
part of generating portions of makefiles, since that simply does
not work on w95 (reported by Clark Morgan).
+ modify configure script to avoid using 'find', since OS/2 EMX's
'find' utility is a different program altogether (like grep).
+ add configure --with-ncurses option, mainly for OS/2 EMX which has
an unusable termcap library.
+ updated config.guess, config.sub from lynx 2.8.4dev.7 (now on my
ftp area as autoconf 2.13 patch 200000819, since I resync'd the
OS/2 EMX patch as well).
+ refine fence-elif expression in shmode's "case" group, which allowed
a right parenthesis with only spaces before it to match (reported by
Clark Morgan).
20000816 (r)
> Tom Dickey:
+ add logic to m4-filt.c to handle argument lists that span multiple
lines.
+ highlight unbalanced quote in m4-filt.c as an error.
+ modify majormode suffix matching to use the ignorecase mode values
for those systems that are normally case-sensitive, making this work
for names such as "FOO.BAT" which happen to be uppercase.
+ suppress autocolor when doingsweep is true, e.g., in multimotion().
+ add variable $filter-list to show all of the builtin-filters.
+ modify win32 scripts to avoid redirecting the output of 'echo',
which apparently goes to stderr on w95 (reported by Clark Morgan).
+ minor fixes for configure script macro CF_CURSES_LIBS,
CF_CURSES_TERMCAP, CF_SIZECHANGE, CF_TYPE_OUTCHAR, CF_UPPER,
CF_X_ATHENA from lynx, xterm and tin.
+ newer config.guess, config.sub, from lynx 2.8.4dev.7
+ fix starting condition of STRING in tc-filt.l
+ add pcmode, for printcap.
+ refine xresmode to require that mixed-case names match only in an
app-defaults directory, to avoid matching things such as MD5sums.
20000809 (q)
> J. Chris Coppick, with some advice from Brendan O'Dea:
+ cleanup of Vileserv.pm and vileget (version 1.2)
+ Vileserv now uses the registry, so 'perl "use Vileserv"' in
your .vilerc automagically adds the commands startserv, stopserv,
and vileserv-help.
+ Vileserv tries to be smarter about finding your perl binary. The
Vile variable %vileserv-perl-path can be used for customization.
+ Vileserv tries to be smarter about the socket path that it uses. The
env. variable VILESOCK, as well as the Vile variable
%vileserv-socket-path can be used. Also, vileget supports an option
for overriding the socket path. The default location is still
~/.vilesock. With a little scheming, you can now run and control
multiple XVile sessions on one host, or use Vileserv on multiple
hosts with a shared home dir.
+ Vileget now uses the -d option to change XVile's working directory.
This is an interface change from version 1.1, where the -c option
was used for this.
+ Vileget now uses the -c and -C options for passing arbitrary Vile
commands to a running XVile. See the vileget manual page ('perldoc
vileget') for more info on this. Please note the necessary Vile
variable %vileserv-accept-commands.
> Tom Dickey:
+ improve PATTERN definition in awk, lex and yacc to color unescaped
blanks within a bracketed range.
+ fix logic in flt_puts(), which did not ensure that regionshape was
set, and also remove spurious trailing blanks from attribute string.
+ initialize static variables in several filters to make them work
properly in the builtin-filters configuration.
+ change indent.pro to line up parentheses.
+ add example macro AddError to vile.hlp which illustrates how to add a
string to [Error Expressions] (request by Christian Lindig
<lindig@ips.cs.tu-bs.de>)
+ modify win32 scripts which generate portions of makefile.wnt to not
rely on WinNT's "enhanced" shell for-loop feature, using new utility
program genmake. Adjust generated builtflt.h on win32 to allow for
building C filters only, if no $(LEX) is specified. Also, modify
makefile.wnt to avoid using && in recursion to work around
limitations of w95 shell (reports by Clark Morgan).
> Ian Jamison:
+ add workaround for broken DuplicateHandle() function on WIN2K,
ifdef'd with DUP_HANDLE_BROKEN_ON_WIN2K. That caused
w32_inout_popen() to fail.
20000728 (p)
> Tom Dickey:
+ add a mode for the Standard ML language. There is also a minor tweak
to cpp.key (patch by Felix Advantage <felixadv@access.net.au>).
+ modify builtflt.c to treat record separators as newlines, consistent
with filter logic.
+ rewrote filters/makefile.wnt to generate lists and rules using
scripts reading genmake.mak, to facilitate building internal or
external filters.
+ change 1-or-more blanks in one of the error-finder expresssions to
0-or-more to make this work with weblint.
20000725 (o)
> Clark Morgan:
+ add example macro to vile.hlp from this-file-dir by Richard Hussong
but renamed to cdcur like Alex Wetmore's variation as suggested by
Paul Fox.
+ if an NT console's display and buffer geometry are not the same, then
vile.exe's cursor defaults to the minimum size. Modify so that the
editor's cursor size is inherited from the parent console window.
+ correct glob test for "~" which can be expanded as user's home
directory for VMS and win32. The test allowed expansion of tilde at
points other than the beginning of a path component, which can happen
on win32.
> Tom Dickey:
+ modify decode_exp() to skip over null pointers in the list
of subexpressions in regexp struct which are set when a
nested group was parsed, e.g., in the $filename-expr for
hgrep on win32. The regular expresion code finds the proper
number of \( \) atoms, but the array indices do not match,
causing ^X^X to fail (reported by Clark Morgan).
+ correct missing check for backslash within a character range in
regatom(), which caused patterns such as "[^\[\]]" to match any
character other than left bracket which was followed by a right
bracket.
+ implement 'highlight' mode, which when disabled prevents the
corresponding buffers from being syntax-highlighted (request by
Moo Kim <kim@mailbox.elsegundoca.ncr.com>).
+ add newsrcmode to prevent ".newsrc" file from being treated as a
shell script; otherwise every number in the file will be highlighted,
which is very slow for long lines (reported by Clark Morgan).
20000710 (n)
> Clark Morgan:
+ enable tilde-expansion for win32 in glob.c
+ modify spawncli() for win32 to ensure that a console window is
created for the ":sh" command when winvile is invoked from a GUI
rather than the command-line.
+ add -console command-line option to win32 console vile to provide
workaround for make the mouse work when reading from stdin.
+ update some win32-specific features in help file.
+ copying to clipboard (via right mouse button) does not clear
selection (mimics expected win32 application behavior).
+ undo/redo selections (via right mouse button) are context sensitive.
> Tom Dickey:
+ move special case for literal ^A in syntax-highlighted text into
flt_putc() so other filters that happen to find a control/A will echo
it as two characters, to work with the logic in parse_attribute().
+ add reset-majormode command, which tells vile to recompute the
appropriate $majormode for the current buffer (prompted by a report
by Shawn Halpenny who was constructing a temporary buffer which had
no majormode associated -- setting the filename temporarily would
allow this command to set the majormode).
+ revert binding change in editMinibuffer() so that vi-like commands
such as B, e, $ will work again in ^G mode (reported by Jim Crigler
<criglerj@acm.org>).
+ small fix to allow sccsfilt.l to build with flex 2.4, which did not
define YYSTATE (on FreeBSD 2.1.5).
20000627 (m)
+ small fix for doc/macros.doc (Clark Morgan).
+ initialize $xshell-flags to empty string since xshell.sh does not
accept a "-c" parameter.
+ modify manpage.rc to unset the filename associated with the buffer so
it does not display. This ensures that the ruler is always visible.
+ add command unset-variable, which resets the given variable to a
null or default value. This is useful only for the $-variables,
since modes require a value.
+ modify color support in xvile to allow the pre-8.3s color scheme as a
special case: setting bcolor to fcolor makes xvile use the bcolorN
resources on syntax-highlighted text rather than the color selected
by bcolor (which is actually taken from the fcolorN resource in this
case). This uses a new function get_color_gc() to simplify caching
of GC's (report by Dave Turner <turner@ameslab.gov>)
+ remove some logic from x_fcol() from 8.3s (990914) which mirrored
x_bcol(). That broke the behavior of "set fcolor" (noted while
investigating Dave Turner's report).
+ adjust filters/mk-0th.awk to work with SGI's nawk.
+ fix typo in configure macro CF_CHECK_ERRNO (reported by John Coyne
<John.Coyne@ctbto.org>).
+ translate soft hyphens to '-' in manfilt.c
+ treat leading (unary) backslash in perlfilt.l as an operator, not
as an escape.
+ add makefile dependency so "make vile" works when --with-builtin-filters is
used.
20000617 (l)
+ updates to config.guess and config.sub and resync with version from
PCRE 3.2 (patch by Kevin Buettner)
+ update ftp and web-site pointers to reflect demise of ClarkNet
(reminder by Clark Morgan).
+ use new function search_mode_list() to make binary search of the
my_mode_list[] array, to make it faster, since strcmp calls when
searching this array were the largest component in initializing
majormodes.
+ correct length computation in finderr.c for %F token, which caused
heap corruption on win32 (cf: 9.1d).
+ use $majormode rather than file suffix in manpage.rc to check for
HTML files, since the suffix is too easily confused by double-dot
suffixes.
20000609 (k)
> Tom Dickey:
+ add command attribute-directly, to invoke internal filter on the
current buffer. External files are still used for the keywords, but
this can eliminate the subprocess and pipes for filters that are
built-in.
+ add built-in function &filter, to tell if the given majormode has
a built-in filter.
+ show majormode ordering in the subheaders of show-majormodes.
+ rewrite put_majormode_after() and put_majormode_before(), fixing
a potential infinite loop.
+ modify manpage.rc to use lynx to render html files. This uses the
development version of lynx (2.8.4dev.3, with the -stdin and
-with_backspaces options).
+ check timode suffixes before shmode.
20000529 (j)
> Tom Dickey:
+ fixes to make shell commands work properly with curses.c driver:
remove unneeded term.kclose from one version of ttunclean
+ allow whitespace after '<<' that begins here-document in perl filter.
+ modify suffix qualifiers for shmode and vilemode to make most dot
files that end in "rc" in shmode, unless the filename contains the
string "vile".
+ add error-checks for init_pair() calls in curses.c (bug report by
Brendan O'Dea).
20000519 (i)
> Tom Dickey:
+ use $cmd-count in AlignToCol to align more than one line at the
cursor's column.
+ modify logic of $cmd-count to increment only for the topmost level
of dobuf() nesting.
+ update ifdef's for building with SMALLER defined.
+ add key binding for select mode, use that rather than insert mode
binding.
+ correct parameter of bkgdset() in curses.c for Solaris curses.
20000517 (h)
> Tom Dickey:
+ add key binding functions for insert-mode and command-mode, making it
simpler to bind a space or tab to a given function without having it
confused for a function while in insert mode. New commands:
bind-cmdmode-key, bind-insmode-key, describe-cmdmode-bindings,
describe-cmdmode-key, describe-insmode-bindings,
describe-insmode-key, rebind-cmdmode-key, rebind-insmode-key,
unbind-cmdmode-key and unbind-insmode-key. (fixes problems
introduced in 9.1, reported by George Eccles and Sean Ahern)
+ implement a curses/ncurses terminal driver. Use --with-screen=curses
or --with-screen=ncurses to configure this. No mouse is supported
in this configuration. This version builds only with SVr4 curses
or ncurses.
+ accept -i option as an alias for -I, which has the added benefit of
allowing vile to be used as a $SHELL value for script, since that
passes a -i option to the "shell".
+ change logic of dobuf() to implement the repeat-count there, rather
than the callers.
+ add variable $cmd-count, which tracks the number of times a macro is
repeated by prefixing it with a repeat-count.
20000501 (g)
> Brendan O'Dea:
+ prefix the "source ~/.vilerc" in vile-pager with "~force" in case
a user has no such file.
> Tom Dickey:
+ add macros/shifts.rc, which implements left/right shifting of words
in the current line to align with the cursor.
+ reset DOT.o after calling deltoeol() in lrepltext(). This fixes a
problem with setting $line; the reinserted newline would fall after
the first character of the following line.
+ save/restore window traits, setting DOT to the end of [Trace] when
writing into it with tprintf(). Otherwise tracing was writing at
the current location, and the buffer would scroll as data was written.
+ two fixes for vile_op(): correct parameter for no_such_function()
when processing a macro, and consistently use f_godotplus to handle
missing or unknown motion parameters in a macro.
+ set/clear reading_msg_line in pressreturn() to avoid autocolor
repainting the screen just after a shell command.
+ add color-ls.rc, example using improved manfilt.c to display color
ls output in a buffer.
+ improve decoding of ANSI escape sequences in manfilt.c, including
parsing of foreground colors.
+ add $xshell-flags variable to allow customising $xshell (request by
Ian Jamison).
+ remove $(LIBS) from filters/makefile.in to fix linking problem on
Debian. The alternative is to add $(X_LIBS), which seems unneeded
for ecrypt.c and manfilt.c, which use only standard C library
functions.
20000425 (f)
> Brendan O'Dea:
+ fix unquoted '^' character from 9.1e configure script changes.
+ mods to build with Perl 5.6.0, which now requires that all perl
globals need a PL_ prefix (which affects `errgv', `na' and `sv_undef'
in perl.xs/ptypemap). The change is backward compatible to 5.005 and
*should* be to 5.004 (untested).
> Clark Morgan:
+ modify joinregion() to refrain from modifying an empty region, i.e.,
where the start/end lines are the same.
> Tom Dickey:
+ add reset-rgb-palette command for winvile.
+ add set-rgb-palette command for winvile (adapted from a patch by Ian
Jamison <IJamison@iss-dsp.com>).
+ install Vileserv.pm without executable permissions (reported and
suggested solution by Brendan O'Dea).
+ change an "ls -1" to "find" in configure script, to work around
nonportability to SVr3 (reported by Brendan O'Dea).
+ add :g! and :v! as synonyms for :v and :g, respectively.
+ modify bat-filt.l to highlight variables that are set or used in
a script. also, highlight quoted strings.
+ fix double-quotes with continuation lines in esqlfilt.l
+ corrected wildcard patterns for dos/win32 in vileinit.rc
+ add '#' to URL patterns in syntax filters.
+ implement abbreviations for syntax keywords, using '*' as the
default delimiter.
+ add vimmode, for vim syntax files
+ implement $filename-ic, to use in filters.rc to avoid matching
xresmode for systems that have case-independent matching for
filenames.
+ make configure macros that search for header- and library-paths a
little more general, e.g., searching under /usr/foo/lib or $HOME/foo,
from tin updates (i.e., macros CF_FIND_LIBRARY, CF_HEADER_PATH,
CF_LIBRARY_PATH, CF_NCURSES_LIBS).
+ update config.guess, config.sub
+ add a 'depend' rule to makefile.in
+ update ne*.h rules in makefile.blc
20000318 (e)
> Tom Dickey:
+ add configure --with-builtin-filters option. This is only to test
the build scripts; the builtin filters are stubs.
+ add cindent to awkmode.
+ correct awk-filt.l - it did not echo curly braces.
+ add '^' at beginning of pattern for hgrep in finderr.c
+ correct index for W_FILE in finderr.c for %F token, omitted in
changes for 9.1d (reported by Clark Morgan).
20000314 (d)
+ Brendan O'Dea:
+ modify perl.xs to allow perl operators to be used with a range. Also
clears the VIEWOK flag for operators.
> Clark Morgan:
+ winvile: turn off cursor during menu-based cut/delete/paste ops
(avoid stray cursor glyphs).
+ winvile: fix repaint bug that was introduced when "fixing" the
occluded notepad update bug in 9.1a.
+ fix winvile ":sh" command, which used to pop up a separate window,
but does not as of 9.1 In 9.1, ":sh" on a win32 host is executed as
"$shell {-c|/c} $shell" . As it turns out, cmd.exe's intrepretation
of the /c switch is to run the specified command and exit
immediately. The fix is to simply launch $shell via CreateProcess().
> Tom Dickey:
+ modify SetVarValue() to make it handle mode values, which were being
ignored. This makes
~local report
work properly (reported by Clark Morgan).
+ add variable $filename-expr, to specify the actual pattern used for
%F in [Error Expressions]. On DOS and Win32, this is initialized to
a more complex pattern, to accommodate drive letters.
+ allow invisible buffers such as [Trace] to be the error-buffer.
+ add macro command "~trace", which sets or reports the value of the
$debug variable.
+ modify treatment of $debug to trace into internal buffer [Trace].
+ fix ifdef's in btree.c to disable assert's when not debugging.
+ improve sqlmode preamble, making it more distinct from batmode.
+ improve cshmode complex fence patterns for foreach and switch.
+ revert the change to ffgetline(). For some reason, fread() runs more
slowly when vile is rendering a manpage than fgetc(). Change all
fgetc() and fputc() calls to getc() and putc(), since as macros they
generally will run faster than the functions, as noted by Clark
Morgan.
+ correction to 9.1c's change for shpreamble: it omitted a '?' (0/1)
around the options pattern.
20000228 (c)
> Clark Morgan:
+ added cut-to-clipboard (windows Cut) and delete-text-selection
(windows Delete) to [win]vile. The former is bound to Shift+Delete,
the latter to Alt+Delete. Both commands require a current text
selection.
+ bug fix: winvile geometry only shown when window is resized :-).
Prior to bug fix, geometry also shown during a window move.
+ added a winvile `about' box (available from the System Menu).
+ winvile's right mouse menu includes these new commands:
cmd name bound to txt slctn txt slctn must
rqd? be in curbuf?
-------- -------- --------- -------------
undo undo-changes-backward
redo redo-changes-forward
cut cut-to-clipboard X X
copy copy-unnamed-reg-to-clipboard X
paste paste-from-clipboard
delete delete-text-selection X X
All but undo and redo are context sensitive.
+ documented that ~local doesn't save/restore mode vars (this is an
assumption on my part).
+ beefed up example vile.rc with more macros and removed outdated
color syntax macro.
+ optimize ffgetline(), buffering data read from fread() rather than
via fgetc().
+ add to vile.hlp more information about installing vile, particularly
the effect of $VILE_STARTUP_PATH and $VILE_LIBDIR_PATH
+ fix a redundant screen repaint for this scenario with the termcap
configuration:
$ vile /etc/termcap
:stop
$ fg %1
> Tom Dickey:
+ converted most occurrences of yyout in the filters to calls into
filterio.c that do not specify a FILE*.
+ split-out main program and I/O from filters.c as filterio.c
+ modify filters.c to avoid concatenating $HOMEDRIVE when $HOME already
specifies the device in home_dir() (reported by Richard Hussong
<rhussong@ma.ultranet.com>).
+ further narrow the scope of insert-exec by excluding all whitespace,
to avoid interpreting tab and formfeed.
+ add mode insert-exec to control logic in ins_any_time() which
interprets control characters which are bound to GOAL or MOTION
commands rather than inserting them without quoting (see 9.0a and
9.0b changes). This restores the default behavior, since some users
had control characters bound to a function which was then executed
(reported by George Eccles and Christian Lindig).
+ modify which-source and which-exec to always show the places where
vile searches, even if not found (suggested by Clark Morgan).
+ modify shmode prefix pattern to allow "-" alone as an option, rather
than requiring it to be followed by a letter. This is done in
Linux's MAKEDEV script. Also, corrected parenthesis in the pattern
to make a ":" line recognized as a shell comment.
+ correct logic for &left and &middle functions, which returned one too
many characters after 8.3d changes to use TBUFF's (reported by
(William Yuan <yuan@bucket.its.unimelb.edu.au>)
+ correct modetbl entry for &sless function, which was returning a
string rather than a boolean (this was broken between 8.2 and 8.3).
+ add a check for the base parameter of mk_to_vcol(), in case it is
negative (reported by Clark Morgan).
20000210 (b)
> Kevin Buettner:
+ x11.c (x_preparse_args): Set window manager resize hints.
(x_configure_window): Removed code for setting window manager
resize hints. Also added code to avoid BadMatch errors
when window is too small.
> Paul Fox:
+ implement a new mode, "unique-buffers", which does dev/inode checking
to be sure files aren't edited more than once. this differs from
"resolve-links" in that a) the "true" filename may never be
discovered -- vile will use the first name its given for a given
file, b) it detects hard links, and c) it's a lot faster.
+ shorten the confirmation questions/messages that result from modtime
checking. with very long buffernames the current messages extend
past the 80 column boundary, making the tail end of the question
invisible in some cases.
> Clark Morgan:
+ add a pin-tagstack mode, which prevents the editor from switching
windows during a tag/push operation (i.e., all tag ops are pinned to
the current window). By default, this mode is not enabled, which
ensures backward compatibility with previous editor behavior.
+ modify ntwinio.c to continuously show the geometry during a resize.
+ ifdef'd use of auto_set_title to compile x11.c on VMS.
+ update README.PC's description of vile search-paths.
> Tom Dickey:
+ annotate the verbose form of which-source and which-exec, showing
the corresponding variable for each path which is tested, e.g.,
"$PATH" when checking items in $PATH.
+ add $exec-path variable
+ modify filter modules so they export only one variable (filter_def)
to simplify building a library for built-in filters.
+ change ntscroll() to use RedrawWindow() to repaint the update-region
after ScrollWindowEx() - works no worse on my home machine, will
re-test at work: the problem to fix is incorrectly-shifted text when
scrolling via repeat-keying j/k.
+ change position (^G) command to show "File is empty" if the current
buffer is empty, rather than "Line 1 of 0 ..." (reported by Clark
Morgan).
+ correct char_no() function to use record-separator length, so
$curchar is evaluated properly for dos files (reported by Clark
Morgan, for ^G command).
20000130 (a)
> Kevin Buettner:
+ gdb.pm: New file. Runs gdb in a vile window and tracks changes in
editor. (Must be used with shell.pm.)
+ shell.pm (terminal_emulation): Fixed bug which was preventing
ESC [ Pn B from moving down lines.
(shell, clean_resume_sub): Improve workaround for perl crasher.
(dead): Fetch parameters.
+ estruct.h (OPT_LINE_ATTRS): Define.
(LINE): Added new member l_attrs.
(LINE_ATTR_ENTRY): New structure typedef.
+ edef.h (line_attr_tbl): Hash table for line-based attributes.
+ proto.h (lattr_shift): New function.
+ select.c (lattr_shift, free_line_attribs, add_line_attrib,
purge_line_attribs, init_line_attr_tbl, find_line_attr_idx): New
functions which implement the guts of the new line-based attribution
mechanism.
(free_attribs): Call free_line_attribs().
(attributeregion): Call add_line_attrib() and purge_line_attribs()
as appropriate. Also reindented this function. [I thought I was
going to have to make more extensive modifications than I did.]
+ file.c (quickreadf): Initialize l_attrs.
+ line.c (lalloc): Likewise.
(linsert, ldelete): Call lattr_shift() to adjust l_attrs.
(ltextfree, lnewline, ldelnewline): Free (and null) l_attrs.
+ undo.c (lineundo, repointstuff): Likewise.
+ api.c (lreplace): Likewise.
+ display.c (updattrs): Call updlineattrs(). Also split out code into
which sets the attributes in vscreen into...
(mergeattr): New function.
(updlineattrs): New function which decodes attributes associated
with the l_attr member of the LINE structure.
+ makefile.in (gdb.pm): New perl file to install.
+ select.c (attributeregion, add_line_attrib): Fix bugs preventing
hypertext commands from working.
+ display.c (updlineattrs): Stop processing attributes if end of
buffer is reached.
> Clark Morgan:
+ fix the winvile repaint bug that I reported last week. Problem was
caused by code in ntscroll() that was clearing 95% of the ClientRect
after the scroll operation. I would never have figured this out
except by looking at traces generated by the extremely useful TRACE
facility (I find it impossible to debug paint problems using a local
debugger).
+ additionally, unhandled/ignored scrollbar messages don't trigger an
update(), thus precluding two updates for each scrollbar operation
(e.g., one update for SB_LINEUP, followed immediately by another
update for SB_ENDSCROLL).
+ implementation of term.typahead for ntwinio.c
+ remove apparently unused kbhit and khit functionality. in ntwinio.c
(amended by Russ Schnapp).
+ clarify build instructions for win32+perl configuration in README.PC
(from report by Russ Schnapp <rschnapp@ACM.org>).
+ documented some of the new 9.1 features (which included adding a new
Debugging section)
+ fixed some typos in vile.hlp
+ expanded/corrected some old features in vile.hlp
+ integrated "Command files" topic a bit more with "Invocation" topic
and streamlined the latter in vile.hlp
+ used more precise wording in Credits (which triggered a large change).
+ update buglist to reflect vms_ffexists() changes.
+ fix bogus comment in w32reg.c
+ win32 console vile now has "true" autoscroll support (this feature
based on Ed Henderson's work).
+ win32 console vile's mouse-based text selection (via LMB) modified to
fairly closely mirror winvile's features, except that a single click
does not clear the current text selection (a la notepad). The most
significant change is that text selection is not initiated until the
mouse has moved at least one character cell in either the X or Y
coordinate. This change precludes the editor from discarding the
contents of the unnamed register due to a simple mouse click, as
opposed to an actual mouse move.
+ fix: If the user releases the left mouse button (LMB) outside
winvile's main window following an autoscroll operation, no text is
copied to the unnamed register.
This patch doesn't yank to the unnamed register if the user resizes a
window via a mode line drag. In addition, this patch fixes another
problem: if the mouse cursor is moved to the message line and then
LMB is held down, autoscroll starts in the current window _and_
cursor glyphs are dropped in same during the scrolling.
+ document $error-buffer in macros.doc
+ update README for 9.1 release.
> Tom Dickey
+ modify which-source, which-exec to be consistent with other commands
that use the existence of a repeat count as a flag, not whether it
it bigger than one (reported by Clark Morgan).
+ modify filters, eliminating write_string() function which
accommodated pre-9.1 restriction of vile for completing each
attribute on one line. Now, filters attribute multi-line regions
when appropriate, e.g., multi-line comments in C.
+ correct a typo in txtmode's suffix qualifier for ChangeLog.
Changes for vile 9.1 (released Sat Jan 15 2000)
20000115 (t)
+ Clark Morgan:
+ fix a file-descriptor leak in win32 pipes.
> Tom Dickey:
+ small compiler warnings (using 'antic' and SGI's lint)
20000114 (s)
> Kevin Buettner:
+ perl.xs (do_perl_cmd): Partially revert changes from 9.0p regarding
the clexec/isnamedcmd/no_msgs flags. We (once again) set isnamedcmd
to TRUE in order to cause mlreply_dir and mlreply_file to prompt the
user when a perl command is invoked via a key binding.
(mlreply_no_opts): Remove.
(mlreply): Make mlreply_no_opts and mlreply_shell aliases with
slightly different functionality.
+ perl/capture.pm:
+ New documentation.
+ New command, async-capture-command, for displaying
the documentation.
+ Use mlreply_shell in order to provide the appropriate shell
completions (requested by Paul Fox)
+ Remember last command run (requested by Paul Fox)
+ Added work-around to prevent [Buffer not found] message from
displaying when Vile::Buffer::edit is asked to find an internal
buffer. (Does getfile2bp really need to call mlforce() to print
this message out?)
+ perl/shell.pm:
+ New documentation.
+ New command, shell-help, for displaying the documentation.
+ Handle partial (incomplete) terminal control sequences.
[Fixes bugs reported by Paul Fox.]
+ gdb annotation support. (Use --fullname with gdb to make
use of this.)
+ Facilities for supporting upcoming gdb.pm.
+ Revise mechanism for escaping from shell. (Expect it to
be revised even more though.)
> Clark Morgan:
+ modify mailmode to support mutt's temporary file names
+ modify nttypahead() to exit immediately during an autocolor operation.
+ add section on 'Color Basics' to vile.hlp, integrated/revised with
description of color syntax highlighting (with feedback from Brendan
O'Dea and Paul Fox).
> Tom Dickey:
+ modify suffix qualifiers of cshmode and mailmode to avoid matching
directory names.
+ corrected status checks on return from prompt_scheme_name(), which
may be ABORT (reported by Paul Fox).
20000112 (r)
> Kevin Buettner:
+ correct two variables in perl.xs which were incorrectly typed as
'int', and passed by reference which is a problem on Tru64 Unix 5.0
(Alpha) where the prototype specified 'unsigned long' (reported by
Larry Gensch <larry.gensch@compaq.com>)
> Clark Morgan:
+ update credits in vile.hlp (with additions from Paul Fox).
+ updated w32modes.doc
+ remove very stale documentation/comment from c-filt.c .
+ add -q switch to filters.c, which forces the filter to exit as soon
as it reads its first line of input. Useful in conjunction with -v
and -vv switches. Necessary for Unix vile (but not win32 vile) if
you want to do this:
^X-!~/.vile/vile-c-filt -vvq
without hanging the editor's keyboard and forcing the user to type ^C
to kill the child process.
+ fix a 250 millisecond dead spot built into the winvile autoscrolling
computations, and also throttle back the initial rate of scrolling so
that the user has a chance to read the text as it moves up/down the
screen.
+ reword/correct the description of searching for .keywords files in
doc/filters.doc
> Tom Dickey:
+ modify ins_anytime(), allowing undoable commands to be executed
within an insertion (Clark Morgan stated that the winvile
paste-from-clipboard used to work in insertion mode).
+ correct logic of gotoeosent(), which would skip past the end of the
current sentence (which ended at the end of a line), over following
blank lines, to the end of the next text line. Now it skips into the
beginning of the first line following the sentence. A following call
will skip the blank lines to the beginning of the next text line
(reported by Clark Morgan).
+ add README*, CHANGES*, ChangeLog* and COPYING to txtmode suffix
qualifier.
+ modify makefilt.l to flag as an error lines that start a quote but
do not end it. Some make programs allow this.
+ modify suffix qualifiers for imake, mail, make, vile majormodes to ensure
they do not match directory names such as /mail/.
+ modify directive_arg_eval() to expand "~/" expressions for non-UNIX
systems, making "so ~/vile.rc" work within a source'd file on WinNT
(reported by Clark Morgan).
+ modify install rule for Vileserv.pm to ensure we update the path
of the perl program embedded in that script.
+ modify vileperl.rc so the terminfo/termcap version does not start
the edit-server.
+ add a null-pointer check for wp in AutoScroll().
+ modify previndent() to refrain from copying previous indent over a
line beginning with '#' if cindent is disabled (reported by Clark
Morgan).
+ change show-colors command to reflect limited number of colors if
$ncolors is set to 2, 8 or 16.
+ modify set_colors() to allow initializing to white/black if termcap
or terminfo has no color specified. This makes the list shown for
visual-matches limited to the available colors (reported by Clark
Morgan).
20000109 (q)
> Ed Henderson <evhendrs@micron.net>:
+ implement autoscrolling feature for winvile, which makes the buffer
scroll in the direction where the mouse leaves the window,
automatically extending selection highlighting.
+ make the scroll speed increase over time, rather than distance
above/below the window (suggested by Clark Morgan).
> Clark Morgan:
+ fix build with dbg=1 for winvile (reported by Ed Henderson).
+ update doc/modes.doc, using ~with to simplify perlmode example, and
adding cindent to cmode description.
> Brendan O'Dea:
+ back out change that attempted to make the .pl files use "#!/bin/echo"
to work around a warning from the Debian package checker - but it now
adds a different warning.
> Tom Dickey:
+ modify configure --with-xpm option to allow builder to specify path
of Xpm library in the configure --with-xpm option (adapted from patch
by Albert Chin-A-Young <china@thewrittenword.com>).
+ modify sh-filt.c to mark ':' lines as Action (should be ':'
statements, but we do not parse statements yet).
+ modify key-filt.c to show color codes in Action color rather than
Literal, to make it simpler to distinguish special constants such
as m4's LeftQuote.
+ document show-colors and show-color-schemes in vile.hlp
+ modify the [Color Palette] buffer created by show-colors to make it
clearer that the internal codes used in the syntax filters are a
single hexadecimal digit (suggested by Clark Morgan).
+ comment-out the perlmode "while" group, since perl's ambiguities make
it not very useful. Retained the default (if) group, since there are
usually more if/elsif/else statements than the others (feedback from
Kevin Buettner).
+ add table entries to tcap.c for terminfo italic mode (sitm/ritm),
with terminfo's termcap equivalences (ZH/ZR). If not found, we
continue to fallback to underlining.
20000104 (p)
> Kevin Buettner:
+ window.c (push_fake_win, pop_fake_win): Set curbp.
+ api.c, select.c: Change callers of push_fake_win and pop_fake_win to
not set curbp. Actually, it wouldn't hurt, but you'd have to be
careful to make sure the setting and restoring is done in the proper
order. [Fixes bug reported by Clark Morgan in which only one dirty
window would get colored at a time.]
+ perl.xs: Minor doc fixes.
> Clark Morgan:
+ implement autocolor for win32 console and GUI.
+ fix some stale doc in doc/macros.doc
+ fix compiler warnings in ntwinio.c
> Brendan O'Dea:
+ remove the clexec/isnamedcmd/no_msgs tweaking in perl.xs for perl
commands. These flags were changed to allow mlreply* to work
interactively when perl subs such as hgrep were called from a wrapper
macro, although this makes using a registered perl extension
non-interactively impossible.
> Tom Dickey:
+ minor correction to perl filter, special cases of backslashing to
handle perl5's MM_Win32.pm, which incidentally contains a syntax
error right after "UNINSTALL =".
+ modify DrawMenuBar() to use HWND parameter rather than HMENU, as
documented (reported by Rick Sladkey).
+ correct a couple of missing characters after backslashes in perl and
sql modes (reported by Kevin Buettner).
+ add pattern to finderr.c for SGI 7.3 SGI MIPSpro 7.3 compilers (from
Anton Koning <anton@sara.nl>).
+ minor keyword additions for C and Java.
20000104 (o)
> Kevin Buettner:
+ modify updattrs() and offs2col() to fix an extra highlighted
character at the end of the line.
+ add a check to update() to ensure the current window is visible,
fixes a case where autocoloring would pick up a buffer with negativa
row value (reported by Clark Morgan).
> Brendan O'Dea:
+ uncomment line in directory.pm which keeps vile's $cwd variable
updated, so hypertext links will work better.
+ remove doc/hilite.doc, since the corresponding script is gone.
> Clark Morgan:
+ miscellaneous updates to vile.hlp
> Tom Dickey:
+ fix a null-pointer reference in make_current() (reported by Clark
Morgan).
+ modify autocolor() to refrain from coloring buffers that are not
associated with a majormode, e.g., [Buffer List] (reported by
Clark Morgan).
+ minor optimization of offs2col(), moved expressions out of loop.
+ set/clear 'reading_msg_line' in mlyesno() and mlquickask() to make
them behave more like mlreply(). This prevents autocolor from wiping
out the highlighting set by substitutions such as
:%s/pat/replacement/gc
(reported by Kevin Buettner).
20000102 (n)
> Kevin Buettner:
+ perl/shell.pm: Better terminal emulation; several bugs fixed.
+ perl.xs (do_perl_cmd): Make sure that curwp is visible on the way
out.
> Brendan O'Dea:
+ improve Manual.pm, getting highlighting as perldoc does, using nroff
and vile-manfilt.
+ corrections to 9.0m changes to make directory.pm and dirlist.pm work
on win32 (comparison for $os was not against proper types, besides
Perl has $^O to identify the operating system)
> Tom Dickey:
+ modify xvile so that if the -title option is given, xvile will not
automatically set the window's title. Setting $title explicitly will
still work (reported by Eric Krohn).
+ correct usage-message for xvile's options, i.e., -title is used
rather than -wm and -T option is used to specify a tag.
(kev) 991231 (m)
+ doc/macros.doc, macros/vileperl.rc, perl.xs, vile.hlp: Fix hgrep
references; hgrep.pl is now hgrep.pm. Also, fixed usage examples.
+ makefile.in: Added perl modules Glob2re.pm, Vile/Manual.pm,
Visit.pm, dirlist.pm. Removed glob2re.pl and visit.pl.
+ perl/Glob2re.pm, perl/Visit.pm: Renamed and revised from the .pl
versions.
+ perl/glob2re.pl, perl/visit.pl: Removed these files.
+ perl/Vile/Manual.pm: New file for displaying embedded POD
documentation.
+ perl/dirlist.pm: New file; creates a flat hierarchical directory
listing.
+ perl/hgrep.pm: Moved introductory comments to end of file and
rewrote in POD format. Added binding hgrep-help which will display
the POD documenation. Fixed problem with backslashes in the buffer
name given to the error-buffer command.
+ perl.xs:
+ (newVBrv): Revert change in "l" which was supposed to prevent
circular structure from being created.
+ (perl_free_handle): Instead, break circular structure here so
handle will get freed properly. [Analysis by Brendan O'Dea.]
> Brendan O'Dea:
+ Vileserv now also works for vile.
+ registration commands are a bit more efficient when the module is
already loaded.
+ hgrep now sets error-buffer internally.
+ add perl "use capture".
> Tom Dickey:
+ modify Vile::get() method to accept functions, used to replace use
of `pwd` in perl scripts to make them portable to win32 [Brendan
O'Dea points out that there is Cwd.pm for this sort of thing].
+ modify directory.pm and dirlist.pm to make them work on win32, i.e.,
by not executing portions that will not work (such as mime types) and
using vile's builtin functions to workaround deficiencies in perl.
+ add check in vileperl.rc to avoid registering scripts that will not
work on win32.
(tom) 991229 (l)
+ save/restore selection highlighting in attribute-from-filter, so that
autocolor does not clear the current selection.
+ add OS/2 EMX to list of platforms that must open text files in binary
mode, to see trailing carriage-returns on a line in vileinit.rc
+ modify makefile.wnt to copy the .rc files to $VILE_STARTUP_PATH
during build, as the Perl files already were.
+ update makefile.wnt to install renamed/new Perl scripts
+ modify tc-filt.l to flag as an error an unescaped newline within
a description.
+ modify c-filt.c to flag as an error a multi-line literal which is
missing a backslashed newline. This is allowed by gcc, but the
C standard is explicit.
+ modify c-filt.c to not treat a line beginning with a '#' if the
previous line ended with a backslash. This is needed to not flag as
an error tokens in a macro which are quoted with '#'.
+ update vileperl.rc to work with Brendan's renaming/simplification.
> Paul Fox:
+ add cc and reply-to to the list of recognized mail headers, and makes
them all caseless.
+ also added '+' as a valid character in email names, since more and
more people are using the user+foo style convention mail sorting.
> Kevin Buettner:
+ buffer.c (killbuffer): When attempting to free more than one buffer
by use of a glob expression, don't use recently freed memory after a
buffer kill to obtain the next buffer to check.
+ perl/hgrep.pl: Change "rgrep" to "hgrep". Also, don't allow buffer
to be autocolor'd.
+ perl.xs (PDEBUG): Added/revised code for debugging reference counts.
+ (newVBrv): Pass NULL for the obj (second) parameter to sv_magic().
This prevents a circular structure from being created which was
quite difficult for Perl to free properly. (newVBrv): Removed
extraneous calls to SvREFCNT_inc(). [Analysis by Brendan O'Dea.]
+ (do_perl_cmd, svcurbuf_set): Don't use sv_2mortal() on the new SV
passed to newVBrv(). Instead, explicitly call SvREFCNT_dec() on it
after svcurbuf assignment. [Analysis by Brendan O'Dea.]
+ (do_perl_cmd): Instead of doing an explicit SvREFCNT_dec() on
svcurbuf, assign undef to this variable. This will still decrement
the reference count. I think this is the reason we needed the
extra SvREFCNT_inc() statements. We would decrement the reference
count here without also removing the reference. As a result, when
svcurbuf was assigned to again, the reference count was decremented
again on the thing being replaced.
+ makefile.in: Look for perl .pm files in the perl subdirectory.
+ hgrep.pl: Set up the error finder.
> Brendan O'Dea:
+ Deletes hilight.pl, manfilt.pl, syntax.pl and tailf.pl.
+ rename most .pl files to .pm (makefile.in).
+ add an Exporter-like mechanism to Perl5 interface, although instead
of exposing a module's functions to the caller, it exposes them to
vile as registered commands. By renaming the extensions as `.pm',
and making some minor changes to use Vile::Exporter, an extension
becomes visible by simply adding:
use extension;
to vileinit.pl. There is also provision for only including some
commands provided by the extension, and for overriding the keybinding
defined by the developer (documented in the attached module).
Of course you can still say:
require extension;
and do the registering yourself if you so choose.
(tom) 991226 (k)
+ disable autocolor in manpage.rc macros, which have txtmode set.
+ suppress autocolor when 'working...' message is active.
+ modify filters.c to always initialize predefined classes whenever
a symbol table is created. It was done before only for the first
symbol table, which meant that some filters using multiple symbol
tables were not able to use class names for keyword attributes.
+ change cpp.key's inclusion of c.key to ".include" to avoid forcing
cweb filter, which includes cpp.key, to keep track of C and C++
tables.
+ split-out cweb.key, install vile-cweb-filt
+ add syntax filter for embedded SQL (esqlfilt.l)
+ add syntax filter for REXX (rexxfilt.l)
+ minor fix to c-filt.l in write_number(): recognize "..." string.
+ correct some missing .key files in the install rule for makefile.wnt
+ correct some forward references from 9.0j (ntconio.c, ntwinio.c).
(tom) 991224 (j)
+ add cygwin to list of platforms that must open text files in binary
mode, to see trailing carriage-returns on a line in vileinit.rc
+ restore Kevin's change to main.c, which calls term.close() within
tidy_exit() after perl_exit(), to ensure that ".vilesock" is removed.
At the same time, call ExitProgram() directly from newprocessgroup()
so that xvile does not exit prematurely when invoked w/o forking
(analysis by Kevin Buettner).
+ more fixes for special case numbers in c-filt.c, e.g., ".1", "..1"
(err), "0x.p1" (err).
+ implement special attribute code 'N' to allow users to disable syntax
highlighting for a given class.
+ indent'd random.c
+ indent'd ntconio.c and ntwinio.c, reordering some chunks to eliminate
forward-references.
+ correct an off-by-one in repaint_window() from 9.0g changes that left
debris after an exposure event (ntwinio.c).
+ add rules to makefile.wnt for compiling all filters, not merely those
which are normally installed.
+ correct a minor formatting error in describe-bindings for command
names longer than 31 characters using new function quote_and_pad().
+ change TRACE macro usage to put a ';' on the end, since it works
better that way with 'indent'.
+ fix some places where K&R/unproto combination on SunOS could not
compile, e.g., aggregate initialization in bind.c, termio.c.
> Kevin Buettner:
+ buffer.c (swbuffer_lfl): Set MK to nullmark. Since we're switching
buffers here, we want to make sure that MK doesn't refer to a line in
a buffer different than curbp. This fixes the "BUG: hit buf end in
getregion" message that would frequently pop up when using the perl
facilities.
+ perl.xs (set_curwp0): New function. Use this instead of set_curwp()
in many of the Vile::Window methods to prevent the buffer tracking
list from getting updated. [Reported by Paul Fox.]
+ random.c (autocolor): Save/restore dotcmdactive. This fixes the bug
with "." (repeat-last-cmd) in which an autocolor() call would shut
off the dot recording. As a result, "." would replay some earlier
command than the one you thought you were repeating.
(kev) 991222 (i)
+ makefile.in (capture.pl, winops.pl): New files/targets.
+ perl.xs (perl_exit): Clear perl_interp variable so that
we get out early if we're called twice. This won't
presently happen, but we want to be prepared if it does.
(stringify_coderef): Fixed situation in which the coderef
was getting pushed on @Vile::CRs twice -- and also
incrementing the reference count twice which was preventing
the code ref from being freed up.
(perl_free_deferred): New code to work around perl bug
in which parts of the coderef are getting freed too
early causing memory corruption.
(perl_free_callback): Ditto. Also added a comment
regarding a (now removed) call to SvREFCNT_dec() and why it
shouldn't be there. Also, don't increment the reference
count on a newly created integer (newSViv). It's already
incremented when allocated.
+ proto.h (perl_free_deferred): Declared.
(perl_free_callback): Change return type. This is so
that the GROW macro may be used to increase the size
of the vector of Sv's to deallocate in perl_free_deferred().
+ api.c (api_command_cleanup): Call perl_free_deferred() in order
to work around perl bug. I didn't ifdef it because we may
someday find some other deferred allocations which need to
be performed.
+ main.c (quit): Don't shut down X11's display here.
(tidy_exit): Shut it down here instead.
Fixes bug reported by Sean Ahern in which .vilesock was
not getting removed properly. Thanks also to Brendan
O'Dea for additional insight into the problem.
+ npopen.c (pipe_pid2): New static variable.
(npclose): Wait on both pids associated with a filtering
operation. This cleans up the zombies (and there were a lot
of them) associated with automatic syntax coloring.
(softfork): Set pipe_pid2 for callers who are too lazy
to remember the pid. [Note: I consider this to be an
ugly hack. Please feel free to improve upon it.]
+ modetbl (loading): New mode.
+ display.c (modeline_modes): Added code for "loading" mode.
+ capture.pl: Some improvements:
+ Error finder now hooked up
+ [loading] message on modeline when loading a file
+ New name for the binding: async-capture-command instead
of perl-capture-command
+ New keybinding ^A-!. Think of the ^A as "asynchronous".
+ Prettier header
+ Dot reset to top of new buffer contents if appropriate
(If you're browsing the buffer, it won't interfere with
your browsing.)
+ Lots of new comments in the code
+ watch.c (dowatchcallback): Do not run watch callbacks when
user is typing on the message line. (This cures a nasty
abort that I encountered while using async-capture-command.)
> Tom Dickey:
+ revert Kev's change to main.c - this made xvile not run when it
forks on startup.
+ compiler warnings in x11.c (reported by Michael Finken
<finkenm@hotmail.com>)
+ improve attribute_from_filter() by draining a pipe that has data;
if the filter program incorrectly sends more data than vile expects,
vile would not be able to close the pipe.
+ correct check in c-filt.c from 9.0g for nested comments; it flagged
adjacent comments.
+ modify m4-filt.c to test multi-line attributes by writing Literal's
as a single token rather than each piece split by lines.
+ improve attribute-from-filter and attribute-cntl_a-sequences-til to
allow lengths beyond the end of the current line (Kevin & I were
aware of this - report by Christian Lindig <lindig@ips.cs.tu-bs.de>).
+ modify c-filt.c to highlight C9X hexadecimal floating constants
+ add new C9X keywords to c.key: inline, restrict, _Bool, _Complex,
_Imaginary, _Pragma, __STDC_VERSION__, __VA_ARGS__, __func__.
+ correction to c-filt.c's parsing of floating-point constants (missed
a toupper).
(kev) 991220 (h)
+ perl/capture.pl: New perl script which implements a perl version
of capture-command. This version incrementally updates the
window however.
+ perl/winops.pl: New perl script which implements various window
related operations. Good for testing implementation of the
Vile::Window API.
+ perl.xs: Documentation fixes.
(package Vile::Window): Documentation and implementation of
Vile::Window API.
(perl_free_callback): Disable deallocation of the coderef since
this causes problems when called from within the subroutine
being deallocated. Added a FIXME comment noting the problem.
(set_selection, selection_buffer): Fixed croak messages.
(dotq): New Vile::Buffer method.
+ api.c (api_dotinsert): Set changed flag. This fixes a bug
where perl would add characters to the buffer, but they
wouldn't appear until the user did something else to force
a hard update.
(api_command_cleanup): Make sure results of unmark operation
get propagated back to the editor.
+ api.h (VileWin): Declare.
+ buffer.c (swbuffer_lfl): Don't call undispbuff() unless all
windows associated with the buffer are gone.
+ estruct.h (WINDOW): Added w_id as a new field to this structure.
+ window.c, proto.h (id2win, win2id, index2win, win2index):
New functions.
+ window.c (w_id_next): New static global.
(FAKE_WINDOW_ID): New define.
(splitw, winit, push_fake_win): Set/initialize w_id field in
WINDOW structure.
+ ptypemap (T_VileWin): New type in typemap.
+ x11.c (x_autocolor_timeout): Send a null message to ourselves
to prevent stalling in the event loop. This fixes the bug
in which a keypress while the filter was running would
cause the keypress to be noticed at the next X event.
(paste_from_primary): New function.
+ cmdtbl (paste-from-primary): New command. (Requested by Sean
Ahern.)
(kev) 991219 (g)
+ cmdtbl, buffer.c: Added binding / support for ^X-_ aka
"historical-buffer-to-current-window". [Requested by Mike J. Bell.]
+ random.c (autocolor): Save/restore pre_op_dot. Fixes bug reported
by Paul Fox: "if autocoloring kicks in between an operation and the
motion that completes it (e.g. 'd' and 'w'), the operation acts on
the wrong selected region -- i think it acts on 'dot to top of
buffer'."
+ improve set-window (actually swbuffer()) by initializing a window's
traits, e.g., position, from the buffer's traits.
+ buffer.c (swbuffer_lfl): Make sure window count gets decremented for
the window being replaced even if buffer we're replacing it with is
already on-screen (fixes a core dump in set-window, reported by Clark
Morgan).
+ fileio.c (ffclose): Use mlwrite() instead of mlforce().
+ edef.h (in_autocolor): New variable.
+ display.c (mlerase, mlwrite): Use in_autocolor to determine whether
or not to position the cursor on the message line.
+ random.c (autocolor): Set autocolor as appropriate.
+ macros/vileinit.rc, vile.hlp: Revise so that autocolor timeouts are
in milliseconds.
+ termio.c (ttgetc): Likewise.
+ x11.c (x_start_autocolor_timer): Ditto.
> Clark Morgan:
+ ifdef'd autocolor mode and logic with OPT_COLOR to accommodate VMS,
which does not support syntax highlighting anyway.
+ fix vmsbuild.com for the case of building xvile.exe with VAXC, adding
menu.obj to vms_link.opt _before_ the CRT. That ensures that the
linker looks for menu.obj in the cwd, not in sys$library.
> Tom Dickey:
+ improve logic of repaint_window(), so it paints long chunks rather
than single characters. This makes the screen paint properly when
switching to an Italic font.
+ refine logic for gui_resize_in_progress in ntwinio.c so that it
only affects the case where a font-sizechange is in progress.
This restores the behavior of 8.3d, which allows a user to specify
$pagewid and $pagelen in vile.rc to control the initial screensize
(reported by George Young <gryoung@nortelnetworks.com>).
+ add $brightness variable to winvile, allowing users to customize the
overall intensity of colors, to accommodate different monitors
(prompted by Chris Green <cgreen@x-1.net>).
+ modify backspacelimit mode to allow backspacing through a newline
when nobackspacelimit is specified (request by Todd Moody
<tmoody@mailhost.sju.edu>).
+ change Kevin's use of in_autocolor which suppresses message-output to
make that part of ~hidden behavior.
+ remove elif/else clauses from m4mode "do" group, since they interfere
too much with balancing square brackets intermixed with parentheses.
+ implement poll()-based watchfd/autocolor support.
+ implement BeOS-specific watchfd/autocolor support, by rearranging
logic used for catnap(): beos_has_input(), beos_can_output() and
beos_napms().
+ make repeat-count apply to @register commands. This repeats the
entire command, and is not necessarily compatible with vi: some
implementations do not recognize a repeat count, and other, e.g.,
SVr3 repeat the last command in the register contents. elvis does
the former, nvi does the latter, and vim repeats the entire string.
It's fortunate that the simpler implementation is more useful
(requested by Ed Henderson).
+ modify vilefilt.l to recognize .vilemenu syntax.
+ modify menu.c to allow double-quote as comment-marker.
+ remove full-line behavior from goto-char command.
+ correct behavior of "Clear Highlighting (below)" menu entry in sample
vilemenu.rc which did not clear the final line of a buffer.
+ add some pointer checks to swbuffer(), getcol() and gocol(), so
piping to vile works properly when trying to initialize window's
traits.
+ add a note about set-window to vile.hlp
+ improve coloring of literals in vilefilt.l by interpreting strings
beginning with ^A, ^X or escape.
+ modify c-filt.c show nested-comment as error.
+ fix c-filt.c to highlight properly a number immediately after a
leading "#", to accommodate non-standard usage by GCC's preprocessor.
(kev) 991214 (f)
+ buffer.c (chg_buff, unchg_buff): Set the "recently changed"
flag for syntax coloring purposes.
+ edef.h (autocolorhook): Declare.
+ macros/vileinit.rc: Added example code for automatic syntax
coloring.
+ main.c (global_val_init): Initialize VAL_AUTOCOLOR.
+ modetbl (AUTOCOLOR): New mode.
(autocolor-hook): New hook.
+ perl/shell.pl: Revised to use IO:Pty instead of Comm.pl (which
seems to be no longer maintained).
+ proto.h (autocolor, ttwatchfd, ttunwatchfd): New declarations.
+ random.c (run_a_hook): Return status from running the command
instead of unconditionally returning TRUE.
(autocolor): New function.
+ statevar.c (var_AUTOCOLORHOOK): New function.
+ tcap.c (term): Use ttwatchfd and ttunwatchfd instead of the
nullterm versions.
+ termio.c (USE_SELECT): New alternative to USE_FCNTL and
USE_FIONREAD. Preferred over both of these methods for
determining if there are new characters to be read from
the keyboard.
(watchfd_read_fds, watchfd_write_fds, watchfd_maxfd): New
static variables.
(ttwatchfd, ttunwatchfd): New functions.
(ttgetc): Added new USE_SELECT code for reading a character.
This new code also watches for activity on file descriptors
registered with watchfd() and will invoke the automatic
syntax coloring function, autocolor, as appropriate.
+ vile.hlp: Documented new autocolor mechanism.
+ x11.c (x_start_autocolor_timer, x_autocolor_timeout,
x_stop_autocolor_timer): New functions.
(x_getc): Call x_start_autocolor_timer and x_stop_autocolor_timer
as appropriate.
(x_key_press): Call x_start_autocolor_timer to reset the timer
on each keystroke.
> patches by Tom Dickey:
+ color continued comment-lines in makemode.
+ correct c-filt.c parsing of numbers such as 0.0, from 9.0e rewrite.
+ correct display of termcap numbers, which were highlighted as errors
after allowing '#' in capability-names.
(tom) 991212 (e)
+ improve c-filt.c's parsing of numbers to flag spuriously-repeated
suffixes as errors (request by Kevin Buettner).
+ indent'd word.c, add a special case to avoid putting two spaces after
"i.e." or "e.g." to accommodate some European usage.
+ add several perl5 keywords to perl.key (listed by <abigail@delanet.com>)
+ remove "unsetl view" logic from :f command, since it is an obscure
and not desirable side-effect. Appeared in filename() and
commdlg_save_file() (reported by Clark Morgan).
+ modify HighlightFilter to check if user is trying to run this with
winvile w/o w32pipes set. That combination does not work, so don't
try it.
+ update CF_ANSI_CC_CHECK to match that in tin, which now uses -Ae
option for HPUX (patch by Urs Jansen).
+ modify config.sub to recognize ia64 machine (patch by Kevin Buettner).
+ allow '_' and '.' in terminfo aliases.
+ correct a file-descriptor leak in npflush for win32, which showed up
as undeleted temp-files. This would happen when opening read/write
pipes, e.g., for syntax filtering, when now32pipe was specified.
+ remove obsolete/unused Win31 ifdef's (reported by Clark Morgan).
> patch by Clark Morgan:
+ changed the VMS build document (README.VMS) to specify exclusive use
of vmsbuild.com rather than MMS directly.
+ changed vmsbuild.com to accept a compiler specification on the
command line, which is much more convenient than editing the build
script by hand. compiler defaults to VAXC on Vax hosts and DECC on
Alpha hosts.
(tom) 991209 (d)
+ implement "before" and "after" qualifiers for majormodes.
+ add C++ majormode cppmode,
+ change prompt for majormode in procedure parameter lists to allow
mixed case.
+ add ".table" and ".default" to filter interpreter.
+ add a syntax filter for vile's .key files, use that to fix some
errors in make.key, tcl.key .
+ add a syntax filter for Lynx config file.
+ add '_' to URL patterns, used in txt and mail filters.
+ corrected DSTRINGS definition in awk syntax filter, which did not
handle quoted backslash.
+ allow '+' in alias in termcap syntax filter.
+ add variable $error-buffer, use this in manpage.rc to avoid losing
the setting when creating a manpage buffer.
+ add error-patterns for ncurses tic and atac.
+ implement ".merge" in filter keyword files, needed for C and HTML
filters.
+ improve C syntax filter:
+ marking misspelled preprocessor keywords as an error.
+ marking numbers run-on to names as an error,
+ marking unexpected escapes as an error,
+ minor fixes of ifdef's for glob_match_leaf(), for building with
configure --disable-extensions.
> patches by Clark Morgan:
+ add the Win32 common dialog "save as" feature to both console
vile and winvile.
+ update vile.hlp was updated to reflect recent
questions about macros.doc
+ split-out the win32 command-specific code (e.g., winopen, winsave,
etc) from w32misc.c to a new file called w32cmd.c
+ add a note about obscure "unsetl view" side-effect of the :f command
+ add special case to expand_wild_args() for VMS to handle +/string
syntax.
+ update README.VMS for building xvile
+ fix for VAXC to include icons/vile.xbm
(tom) 991202 (c)
+ modified vmsbuild.com and descrip.mms (untested) to build the Motif
version with menus, the X toolkit version without (based on discussion
with Clark Morgan and Jonathan Ridler).
+ fix ttclean() function for xvile on VMS (Clark Morgan, from problem
report by Jonathan Ridler <JONATHAN@rubens.its.unimelb.edu.au>).
+ add .Xdefaults to xresmode.
+ add backslashes as needed to digraph.rc, to work with the new single
quote interpretation (reported by Paul Fox).
+ correct a place where expression evaluation result was overwritten
with the nested result in a complex expression from 8.3d (reported
by George Eccles).
+ highlight whitespace in makefiles between backspace and newline as
an error.
+ define "Error" class for syntax filters.
+ correct make filter's handling of escaped newline: '.' does not match
newline.
(tom) 991127 (b)
+ add "case" and "do" groups to m4mode.
+ add ".ms" and ".me" suffixes for nrmode.
+ add ``quote'' quoting to txt filter.
+ refine treatment of double-quote in txt filter so it can be quoted
by single-quote or parenthesis.
+ allow "~" in URL patterns for txt and mail filters, omitted in 9.0a.
+ correct some missing backslashes before vertical bar and parentheses
in filters.rc, made apparent by the change to use single-quoted
strings.
+ restore handling of special control characters such as ^D, ^T in
insert mode which happened to be GOAL or MOTION commands (reported by
Clark Morgan).
(tom) 991124 (a)
+ add single-quoted strings, which eliminate the need for escaping
backslash (suggested by Paul Fox).
+ modify logic in ins_any_time() to interpret control characters which
are bound to GOAL or MOTION commands rather than inserting them
without quoting. This allows ^E and ^Y as commands within an insert
(request by Quang Ngo <quang@usa.net>).
+ change several commands to use GOAL flag, which tells vile that they
may move to a new line, but try to keep the column constant. Doing
this has the side-effect that they are usable in quoted-motion:
grow-window, move-next-window-down, move-next-window-up,
position-window (z), redraw-display, scroll-next-window-down,
scroll-next-window-up and shrink-window, as well as api_motion().
+ modify quoted-motion so that commands with the GOAL flag are allowed,
since those do not change the buffer contents.
+ change handling of status return from readpattern() so that an abort
is passed up to the caller. In execute-named-procedure, check for
abort, and restore DOT to the value before evaluating addresses
(reported by Clark Morgan).
+ correct bug in wrapmargin/fillcol logic which did not split a line
when a newline was inserted into a string containing no blanks
after the fillcol position. Instead, an empty line was inserted
(reported by Clark Morgan).
+ correct missing allocation of default help-string for user-defined
procedures, which could cause core dump if a procedure were redefined,
e.g., by source'ing .vilerc (reported by Paul Fox).
+ add tags syntax filter and majormode tagsmode.
+ add X resource syntax filter and majormode xresmode.
+ improve URL pattern in mail and txt filters, to allow it to match
ftp and other URL types, as well as limited the pattern to avoid
picking up things like trailing '>' characters.
+ correct some syntax filters' expressions for REAL, which were
expecting two digits after the decimal point, rather one.
> patches by Clark Morgan:
+ enable "kill-buffer <wildcard-expr>" on VMS.
+ fix to allow accessing multiple versions of DECNET-based files.
That is, this now works:
$ vile node::dir:log.txt;* <- open all copies of log.txt
+ eliminate stray cursor glyphs in the message buffer (most often
happens when a Win32 dialog is dismissed at the "same time" that a
winvile command writes status text).
This change log started on Friday Nov 19, 1999.
|