/usr/share/jed/doc/hlp/jedfuns.hlp is in jed-common 1:0.99.19-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 | abbrev_table_p
SYNOPSIS
Test whether an abbreviation table "name" exists
USAGE
Integer abbrev_table_p (String name)
DESCRIPTION
Returns non-zero if an abbreviation table with called `name' exists. If
the table does not exist, it returns zero.
--------------------------------------------------------------
create_abbrev_table
SYNOPSIS
Create an abbreviation table "name"
USAGE
Void create_abbrev_table (String name, String word)
DESCRIPTION
Create an abbreviation table with name `name'. The second parameter
`word' is the list of characters used to represent a word for the
table. If the empty string is passed for `word', the characters that
currently constitute a word are used.
--------------------------------------------------------------
define_abbrev
SYNOPSIS
Define an abbreviation
USAGE
Void define_abbrev (String tbl, String abbrv, String expans)
DESCRIPTION
This function is used to define an abbreviation `abbrv' that will be
expanded to `expans'. The definition will be placed in the table with
name `tbl'.
--------------------------------------------------------------
delete_abbrev_table
SYNOPSIS
Delete the abbrev table "name"
USAGE
Void delete_abbrev_table (String name)
DESCRIPTION
Delete the abbrev table specified by `name'.
--------------------------------------------------------------
dump_abbrev_table
SYNOPSIS
Insert the abbreviation table "name"
USAGE
Void dump_abbrev_table (String name)
DESCRIPTION
This function inserts the contents of the abbreviation table called
`name' into the current buffer.
--------------------------------------------------------------
list_abbrev_tables
SYNOPSIS
Return the names of all defined abbreviation tables
USAGE
Integer list_abbrev_tables ()
DESCRIPTION
This function returns the names of all currently defined
abbreviation tables. The top item on the stack will be the number of
tables followed by the names of the tables.
--------------------------------------------------------------
use_abbrev_table
SYNOPSIS
Use the abbreviation table "table" for the current buffer
USAGE
Void use_abbrev_table (String table)
DESCRIPTION
Use the abbreviation table named `table' as the abbreviation table for
the current buffer. By default, the "Global" table is used.
--------------------------------------------------------------
what_abbrev_table
SYNOPSIS
Return info about the current abbreviation table
USAGE
(String, String) what_abbrev_table ()
DESCRIPTION
This functions returns both the name of the abbreviation table and the
definition of the word for the table currently associated with the
current buffer. If none is defined it returns two empty strings.
--------------------------------------------------------------
blocal_var_exists
SYNOPSIS
Determine whether a buffer-local variable exists
USAGE
Int_Type blocal_var_exists (String_Type name)
DESCRIPTION
The `blocal_var_exists' function returns non-zero if the
specified buffer-local variable exists. It returns zero of the
variable does not exists.
SEE ALSO
get_blocal_var, create_blocal_var, set_blocal_var, define_blocal_var
--------------------------------------------------------------
create_blocal_var
SYNOPSIS
Create a buffer local variable "name"
USAGE
Void create_blocal_var (String name)
DESCRIPTION
This function is used to create a buffer local variable named
`name'. A buffer local variable is a variable whose value is
local to the current buffer.
SEE ALSO
get_blocal_var, set_blocal_var, define_blocal_var
--------------------------------------------------------------
set_blocal_var
SYNOPSIS
Set the buffer local variable "v" to value "val"
USAGE
Void set_blocal_var (val, String v)
DESCRIPTION
This function sets the value of the buffer local variable with name `v'
to value `val'. The buffer local variable specified by `v' must have
been previously created by the `create_blocal_var' function. `val' must
have the type that was declared when `create_blocal_var' was called.
SEE ALSO
get_blocal_var, create_blocal_var
--------------------------------------------------------------
ADD_NEWLINE
SYNOPSIS
Add a newline to a buffer when saving
USAGE
Int_Type ADD_NEWLINE
DESCRIPTION
If the value of `ADD_NEWLINE' is non-zero and the buffer if the
buffer does not end with a newline character, a newline character
will be silently added to the end of a buffer when the buffer is
written out to a file.
--------------------------------------------------------------
MAX_HITS
SYNOPSIS
Set the Autosave Interval
USAGE
Int_Type MAX_HITS
DESCRIPTION
The value of the `MAX_HITS' variable specifies how many ``hits''
a buffer can take before it is autosaved. A hit is defined as a
single key sequence that could modify the buffer.
SEE ALSO
--------------------------------------------------------------
autosave
SYNOPSIS
Save the current buffer to an autosave file
USAGE
Void autosave ()
DESCRIPTION
The `autosave' function saves the current buffer in an auto save file
if the buffer has been marked for the auto save operation.
SEE ALSO
setbuf_info, autosaveall
SEE ALSO
MAX_HITS
--------------------------------------------------------------
autosaveall
SYNOPSIS
Save all buffers to autosave files
USAGE
Void autosaveall ()
DESCRIPTION
This function is like `autosave' except that it causes all files
marked for the auto save operation to be auto-saved.
SEE ALSO
autosave, setbuf_info
SEE ALSO
MAX_HITS
--------------------------------------------------------------
buffer_list
SYNOPSIS
Return the names of buffers
USAGE
Integer buffer_list ()
DESCRIPTION
This function returns an integer indicating the number of buffers and
leaves the names of the buffers on the stack. For example, the
following function displays the names of all buffers attached to
files:
define show_buffers ()
{
variable b, str = "", file;
loop (buffer_list ())
{
b = ();
(file,,,) = getbuf_info (b);
if (strlen (file)) str = strcat (str, strcat (" ", b));
}
message (str);
}
SEE ALSO
getbuf_info, whatbuf
--------------------------------------------------------------
buffer_visible
SYNOPSIS
Return the number of windows containing a specified buffer
USAGE
Integer buffer_visible (String buf)
DESCRIPTION
This function is used to determine whether or not a buffer with name
specified by the string `buf' is in a window or not. More explicitly,
it returns the number of windows containing `buf'. This means that if
`buf' does not occupy a window, it returns zero. For Example,
define find_buffer_in_window (buf)
{
!if (buffer_visible (buf)) return 0;
pop2buf (buf);
return 1;
}
is a function that moves to the window containing `buf' if `buf' is in
a window.
SEE ALSO
bufferp, nwindows
--------------------------------------------------------------
bufferp
SYNOPSIS
Test if a buffer exists or not
USAGE
Integer bufferp (String buf)
DESCRIPTION
This function is used to see if a buffer exists or not. If a buffer with
name `buf' exists, it returns a non-zero value. If it does not exist,
it returns zero.
SEE ALSO
setbuf, getbuf_info
--------------------------------------------------------------
bury_buffer
SYNOPSIS
Make it unlikely for a specified buffer to appear in a window
USAGE
Void bury_buffer (String name)
DESCRIPTION
The `bury_buffer' function may be used to make it unlikely for the
buffer specified by the paramter `name' to appear in a window.
SEE ALSO
sw2buf, getbuf_info
--------------------------------------------------------------
check_buffers
SYNOPSIS
Check if any buffers have been changed on disk
USAGE
check_buffers ()
DESCRIPTION
The `check_buffers' function checks to see whether or not any of
the disk files that are associated with the editor's buffers have been
modified since the assocation was made. The buffer flags are
updated accordingly.
SEE ALSO
file_time_compare, file_changed_on_disk
--------------------------------------------------------------
delbuf
SYNOPSIS
Delete a named buffer
USAGE
Void delbuf (String buf)
DESCRIPTION
`delbuf' may be used to delete a buffer with the name specified by
`buf'. If the buffer does not exist, a S-Lang error will be generated.
SEE ALSO
whatbuf, bufferp, sw2buf
--------------------------------------------------------------
getbuf_info
SYNOPSIS
Get basic information about a buffer
USAGE
(file, dir, name, flags) = getbuf_info ([ buf ])
String_Type buf; % optional argument -- name of buffer
Int_Type flags; % buffer flags
String_Type name; % name of buffer
String_Type dir; % directory associated with buffer
String_Type file; % name of file associated with buffer (if any).
DESCRIPTION
This function may be used to get some basic information about a
specified buffer. If the optional argument `buf' is not
present, the current buffer will be used, otherwise `buf' must
be the name of an existing buffer.
The integer that corresponds to the buffer flags are encoded as:
bit 0: (0x001) buffer modified
bit 1: (0x002) auto save mode
bit 2: (0x004) file on disk modified
bit 3: (0x008) read only bit
bit 4: (0x010) overwrite mode
bit 5: (0x020) undo enabled
bit 6: (0x040) buffer buried
bit 7: (0x080) Force save upon exit.
bit 8: (0x100) Do not backup
bit 9: (0x200) File associated with buffer is a binary file
bit 10: (0x400) Add CR to end of lines when writing buffer to disk.
bit 11: (0x800) Abbrev mode
For example,
(file,,,flags) = getbuf_info();
returns the file and the flags associated with the current buffer.
SEE ALSO
setbuf_info, whatbuf
--------------------------------------------------------------
pop2buf
SYNOPSIS
Open a specified buffer in a second window
USAGE
Void pop2buf (String buf)
DESCRIPTION
The `pop2buf' function will switch to another window and display the
buffer specified by `buf' in it. If `buf' does not exist, it will be
created. If `buf' already exists in a window, the window containing
`buf' will become the active one. This function will create a new
window if necessary. All that is guaranteed is that the current
window will continue to display the same buffer before and after the
call to `pop2buf'.
SEE ALSO
whatbuf, pop2buf_whatbuf, setbuf, sw2buf, nwindows
--------------------------------------------------------------
pop2buf_whatbuf
SYNOPSIS
pop2buf and return the old buffers name
USAGE
String pop2buf_whatbuf (String buf)
DESCRIPTION
This function performs the same function as `pop2buf' except that the
name of the buffer that `buf' replaced in the window is returned.
This allows one to restore the buffer in window to what it was before
the call to `pop2buf_whatbuf'.
SEE ALSO
pop2buf, whatbuf
--------------------------------------------------------------
set_buffer_umask
SYNOPSIS
Set the process file creation mask for the current buffer
USAGE
Integer set_buffer_umask (Integer cmask)
DESCRIPTION
The function may be used to set the process file creation mask
for the appropriate operations associated with the current
buffer. This makes it possible to have a buffer-dependent
umask setting. The function takes the desired umask setting and
returns the previous setting. If `cmask' is zero, the default
process umask setting will be used for operations while the buffer
is current. If `cmask' is -1, the umask associated with the buffer
will not be changed.
--------------------------------------------------------------
set_mode
SYNOPSIS
Set mode flags and name
USAGE
Void set_mode(String mode, Integer flags)
DESCRIPTION
This function sets buffer mode flags and status line mode name. `mode'
is a string which is displayed on the status line if the `%m' status
line format specifier is used. The second argument, `flags' is an
integer with the possible values:
0 : no mode. Very generic
1 : Wrap mode. Lines are automatically wrapped at wrap column.
2 : C mode.
4 : Language mode. Mode does not wrap but is useful for computer
languages.
8 : S-Lang mode
16: Fortran mode highlighting
32: TeX mode highlighting
SEE ALSO
whatmode, getbuf_info, setbuf_info.
--------------------------------------------------------------
setbuf
SYNOPSIS
Temporary change the default buffer to another
USAGE
Void setbuf(String buf)
DESCRIPTION
Changes the default buffer to one named `buf'. If the buffer does not
exist, it will be created.
Note: This change only lasts until top
level of editor loop is reached at which point the the buffer
associated with current window will be made the default. That is this
change should only be considered as temporary. To make a long lasting
change, use the function `sw2buf'.
SEE ALSO
sw2buf, pop2buf, whatbuf, pop2buf_whatbuf
--------------------------------------------------------------
setbuf_info
SYNOPSIS
Change attributes for a buffer
USAGE
setbuf_info([ buf, ] file, dir, name, flags)
String_Type buf; % optional argument -- name of buffer
Int_Type flags; % buffer flags
String_Type name; % name of buffer
String_Type dir; % directory associated with buffer
String_Type file; % name of file associated with buffer (if any).
DESCRIPTION
This function may be used to change attributes regarding the buffer
`buf'. If the optional argument `buf' is not present, the
current buffer will be used.
`setbuf_info' performs the opposite function of the related
function `getbuf_info'. Here `file' is the name of the file
to be associated with the buffer; `dir' is the directory to be
associated with the buffer; `buf' is the name to be assigned to
the buffer, and `flags' describe the buffer attributes. See
`getbuf_info' for a discussion of `flags'. Note that the
actual file associated with the buffer is located in directory
`dir' with the name `file'. For example, the function
define set_overwrite_mode ()
{
variable dir, file, flags, name;
(file, dir, name, flags) = getbuf_info ();
flags = flags | (1 shl 4);
setbuf_info (file, dir, name, flags);
}
may be used to turn on overwrite mode for the current buffer.
Advanced S-Lang programmers exploit the fact that S-Lang is a stack
based language and simply write the above function as:
define set_overwrite_mode ()
{
setbuf_info (getbuf_info () | 0x10);
}
Here, `(1 shl 4)' has been written as the hexidecimal number
`0x10'.
SEE ALSO
getbuf_info, setbuf, whatbuf
--------------------------------------------------------------
sw2buf
SYNOPSIS
Switch to a buffer (more permanent than setbuf)
USAGE
Void sw2buf (String buf)
DESCRIPTION
This function is used to switch to another buffer whose name is
specified by the parameter `buf'. If the buffer specified by `buf'
does not exist, one will be created.
Note: Unlike `setbuf', the change
to the new buffer is more permanent in the sense that when control
passed back out of S-Lang to the main editor loop, if the current
buffer at that time is the buffer specified here, this buffer will be
attached to the window.
SEE ALSO
setbuf, pop2buf, bufferp
--------------------------------------------------------------
what_mode
SYNOPSIS
Get mode flags and name of the current buffer
USAGE
(String name, Integer flags) = Integer what_mode ()
DESCRIPTION
This function may be used to obtain the mode flags and mode name of the
current buffer. See `set_mode' for more details.
SEE ALSO
set_mode, getbuf_info, setbuf_info
--------------------------------------------------------------
whatbuf
SYNOPSIS
Return the name of the current buffer
USAGE
String what_buffer()
DESCRIPTION
`whatbuf' returns the name of the current buffer. It is usually used
in functions when one wants to work with more than one buffer. The
function `setbuf_info' may be used to change the name of the buffer.
SEE ALSO
getbuf_info, bufferp
--------------------------------------------------------------
write_buffer
SYNOPSIS
Write the current buffer to a file
USAGE
Integer write_buffer (String filename)
DESCRIPTION
This function may be used to write the current buffer out to a file
specified by `filename'. The buffer will then become associated with
that file. The number of lines written to the file is returned. An
error condition will be signaled upon error.
SEE ALSO
write_region_to_file, setbuf_info
--------------------------------------------------------------
add_color_object
SYNOPSIS
Return the object number associated with "obj"
USAGE
add_color_object (String_Type name)
DESCRIPTION
This function creates a new color object with a specified name. See
the `set_color' documentation for pre-defined color objects.
SEE ALSO
set_color, get_color, color_number
--------------------------------------------------------------
color_number
SYNOPSIS
Return the object number associated with "obj"
USAGE
Integer color_number (String obj)
DESCRIPTION
This function returns the object number associated with the
string `obj'. Valid names for `obj' are as per `set_color'.
SEE ALSO
set_color, set_column_colors
SEE ALSO
WANT_SYNTAX_HIGHLIGHT, USE_ANSI_COLORS
--------------------------------------------------------------
get_color
SYNOPSIS
Return the foreground and background color of an object
USAGE
(String_Type fg, String_Type bg) = get_color (String_Type name)
DESCRIPTION
This function returns the foreground and background colors of the
specified color object.
SEE ALSO
set_color, color_number, add_color_object
--------------------------------------------------------------
set_color
SYNOPSIS
Set fore- and background colors of an object
USAGE
set_color (String_Type obj, String_Type fg, String_Type bg)
DESCRIPTION
This function sets the foreground and background colors of an object
specified by the string `obj' to `fg' and `bg'. The exact values of
the strings `fg' and `bg' are system dependent. For the X-Window
system, they can be any string that the server understands, e.g.,
`"SteelBlue"'. For other systems, the color must be one of the
following:
"black" "gray"
"red" "brightred"
"green" "brightgreen"
"brown" "yellow"
"blue" "brightblue"
"magenta" "brightmagenta"
"cyan" "brightcyan"
"lightgray" "white"
"default"
One most terminals, the values in the second column have no affect
when used as the background color.
Using "default" as a foreground or background color instructs the
editor to tell the terminal to use the default foreground and
background colors of the window. If you use a terminal that uses a
transparant background, then you need to specify "default" as the
background color. Not all terminals support the notion of the
"default" color.
The valid names for `obj' are:
"normal" Default foreground/background
"status" The status window line
"region" Highlighted Regions
"cursor" Text Cursor (X-Windows)
"cursorovr" Text Cursor in overwrite mode (X-Windows)
"menu" The menu bar
"error" Error messages
"message" Other messages
"dollar" Color of the indicator that text extends beyond the
boundary of the window.
"linenum" Line number field
If color syntax highlighting is enabled, the following object names
are also meaningful:
"number" Numbers in C-mode and Equations in TeX-mode
"delimiter" Commas, semi-colons, etc...
"keyword" Language dependent
"keyword1" Language dependent
"keyword2" Language dependent
"keyword3" Language dependent
"keyword4" Language dependent
"keyword5" Language dependent
"keyword6" Language dependent
"keyword7" Language dependent
"keyword8" Language dependent
"keyword9" Language dependent
"string" Literal strings
"comment" Comments
"operator" Such as +, -, etc...
"preprocess" Preprocessor lines
"tab"
"trailing_whitespace"
"html" <html> and '<' syntax objects.
If line attributes are available, then you may also specifiy the color
of the hidden line indicator:
"..." Hidden line indicator
The color of the menu objects may be specified via
"menu_char" Menu item key-shortcut color
"menu_shadow" Color of the shadow
"menu_selection" Selected menu-item color
"menu_popup" Color of the popup box
"menu_selection_char" Selected menu item key-shortcut color
Xjed defines the following objects:
"mouse" Mouse cursor color
"border" Window borde color
SEE ALSO
define_syntax, set_color_esc, set_column_colors, set_color_object
SEE ALSO
WANT_SYNTAX_HIGHLIGHT, USE_ANSI_COLORS
--------------------------------------------------------------
set_color_esc
SYNOPSIS
associate an escape sequence with an object
USAGE
Void set_color_esc (String object, String esc_seq)
DESCRIPTION
This function may be used to associate an escape sequence with an
object. The escape sequence will be sent to the terminal prior to
sending updating the object. It may be used on mono terminals to
underline objects, etc... The object names are the same names used by
the `set_color' function.
Note: Care should be exercised when using
this function. Also, one may need to experiment around a little to
get escape sequences that work together.
SEE ALSO
set_color
--------------------------------------------------------------
set_color_object
SYNOPSIS
Associate colors "fg" and "bg" with object "obj"
USAGE
Void set_color_object (Integer obj, String fg, String bg)
DESCRIPTION
Associate colors `fg' and `bg' with object `obj'. Valid values for `obj'
are in the range 30 to 128. All other values are reserved. Values for
the strings `fg' and `bg' are as given by the description for `set_color'.
SEE ALSO
set_column_colors, set_color
--------------------------------------------------------------
set_column_colors
SYNOPSIS
Associate a color with columns `c0' through `c1'
USAGE
Void set_column_colors (Integer color, Integer c0, Integer c1)
DESCRIPTION
This function associates a color with columns `c0' through `c1' in the
current buffer. That is, if there is no syntax highlighting already
defined for the current buffer, when the current buffer is displayed,
columns `c0' through `c1' will be displayed with the attributes of the
`color' object. The parameters `c0' and `c1' are restricted to the range
1 through `SCREEN_WIDTH'. Use the function `set_color_object' to assign
attributes to the `color' object.
SEE ALSO
set_color_object
--------------------------------------------------------------
_autoload
SYNOPSIS
Specify multiple functions to autoload
USAGE
Void _autoload (String fun, String fn, ..., Integer n)
DESCRIPTION
The `_autoload' function is like the `autoload' function except that
it takes `n' pairs of function name (`fun') / filename (`fn') pairs.
For example,
_autoload ("fun_a", "file_a", "fun_b", "file_b", 2);
is equivalent to
autoload ("fun_a", "file_a");
autoload ("fun_b", "file_b");
SEE ALSO
autoload
--------------------------------------------------------------
evalbuffer
SYNOPSIS
Eval the current buffer as S-Lang script
USAGE
Void evalbuffer ([String_Type namespace])
DESCRIPTION
This function causes the current buffer to be sent to the S-Lang
interpreter for evaluation. If the optional namespace argument is
given, the buffer will be evaluated in the specified namespace. If an
error is encountered while parsing the buffer, the cursor will be
placed at the location of the error.
SEE ALSO
evalfile, require
--------------------------------------------------------------
get_jed_library_path
SYNOPSIS
Return the current search path for jed library files
USAGE
String get_jed_library_path ()
DESCRIPTION
This function returns the current search path for jed library files.
The path may be set using the function `set_jed_library_path'.
SEE ALSO
set_jed_library_path
--------------------------------------------------------------
set_jed_library_path
SYNOPSIS
Set the search path for library files
USAGE
Void set_jed_library_path (String p)
DESCRIPTION
This function may be used to set the search path for library files.
Its parameter `p' may be a comma separated list of directories to
search. When the editor is first started, the path is initialized
from the `JED_ROOT', or `JED_LIBRARY' environment variables.
SEE ALSO
get_jed_library_path
--------------------------------------------------------------
BACKUP_BY_COPYING
SYNOPSIS
Set the backup mode
USAGE
Int_Type BACKUP_BY_COPYING
DESCRIPTION
If non-zero, backup files will be made by copying the original file
to the backup file. If zero, the backup file will be created by
renaming the original file to the backup file. The default for
`BACKUP_BY_COPYING' is zero because it is fastest.
SEE ALSO
rename_file, copy_file
--------------------------------------------------------------
IsHPFSFileSystem
SYNOPSIS
Test if drive of "path" is HPFS
USAGE
Int_Type IsHPFSFileSystem(String_Type path)
DESCRIPTION
Returns non-zero if drive of `path' (possibly the default drive) is
HPFS.
--------------------------------------------------------------
change_default_dir
SYNOPSIS
Change the current working directory
USAGE
Int_Type change_default_dir (String_Type new_dir)
DESCRIPTION
This function may be used to change the current working directory
of the editor to `new_dir'. It returns zero upon success or `-1' upon
failure.
Note: Each buffer has its own working directory. This function does not
change the working directory of the buffer. Rather, it changes the
working directory of the whole editor. This has an effect on functions
such as `rename_file' when such functions are passed relative filenames.
SEE ALSO
setbuf_info, getbuf_info, rename_file
--------------------------------------------------------------
copy_file
SYNOPSIS
Copy a file "src" to "dest"
USAGE
Int_Type copy_file (String_Type src, String_Type dest)
DESCRIPTION
This function may be used to copy a file named `src' to a new file
named `dest'. It attempts to preserve the file access and modification
times as well as the ownership and protection.
It returns `0' upon success and `-1' upon failure.
SEE ALSO
rename_file, file_status
--------------------------------------------------------------
delete_file
SYNOPSIS
Delete the file "file"
USAGE
Int_Type delete_file (String_Type file)
DESCRIPTION
This function may be used to delete a file specified by the `file'
parameter. It returns non-zero if the file was sucessfully deleted
or zero otherwise.
SEE ALSO
rmdir
--------------------------------------------------------------
directory
SYNOPSIS
Return number of files and list of files matching filename
DESCRIPTION
returns the number of files and a list of files which match filename.
On unix, this defaults to filename*. It is primarily useful for
DOS and VMS to expand wildcard filenames
--------------------------------------------------------------
expand_filename
SYNOPSIS
Expand a file name to a canonical form
USAGE
String_Type expand_filename (String_Type file)
DESCRIPTION
The `expand_filename' function expands a file to a canonical form.
For example, under Unix, if `file' has the value `"/a/b/../c/d"', it
returns `"/a/c/d"'. Similarly, if `file' has the value
`"/a/b/c//d/e"', `"/d/e"' is returned.
SEE ALSO
expand_symlink, path_concat
--------------------------------------------------------------
expand_symlink
SYNOPSIS
Expand a symbolic link
USAGE
String_Type expand_symlink (String_Type pathname)
DESCRIPTION
The `expand_symlink' is like the `expand_filename' function
except that it also expands components of the pathname that are
symbolic links.
SEE ALSO
expand_filename, path_concat, readlink
--------------------------------------------------------------
extract_filename
SYNOPSIS
Separate the file name from "filespec"
USAGE
String_Type extract_filename (String_Type filespec)
DESCRIPTION
This function may be used to separate the file name from the path of
of a file specified by `filespec'. For example, under Unix, the
expression
extract_filename ("/tmp/name");
returns the string `"name"'.
SEE ALSO
expand_filename
--------------------------------------------------------------
file_changed_on_disk
SYNOPSIS
Test if file "fn" is more recent than the current buffer
USAGE
Int_Type file_changed_on_disk (String_Type fn)
DESCRIPTION
This function may be used to determine if the disk file specified by the
parameter `fn' is more recent than the current buffer.
SEE ALSO
file_time_compare, check_buffers
--------------------------------------------------------------
file_status
SYNOPSIS
Return information about file "filename"
USAGE
Int_Type file_status (String_Type filename)
DESCRIPTION
The `file_status' function returns information about a file specified
by the name `filename'. It returns an integer describing the file
type:
2 file is a directory
1 file exists and is not a directory
0 file does not exist.
-1 no access.
-2 path invalid
-3 unknown error
--------------------------------------------------------------
file_time_compare
SYNOPSIS
Compares the modification times of two files
USAGE
Int_Type file_time_cmp (String_Type file1, String_Type file2)
DESCRIPTION
This function compares the modification times of two files,
`file1' and `file2'. It returns an integer that is either
positive, negative, or zero integer for `file1 > file2',
`file1 < file2', or `file1 == file2', respectively. In
this context, the comparison operators are comparing file
modification times. That is, the operator `>' should be read
``is more recent than''. The convention adopted by this routine is
that if a file does not exist, its modification time is taken to be
at the beginning of time. Thus, if `f' exists, but `g' does
not, the `file_time_compare (f, g)' will return a positive
number.
SEE ALSO
file_status, time
--------------------------------------------------------------
find_file
SYNOPSIS
Open the file "name" in a buffer (or just goto buffer)
USAGE
Int_Type find_file (String_Type name)
DESCRIPTION
The `find_file' function switches to the buffer associated with the
file specified by `name'. If no such buffer exists, one is created
and the file specified by `name' is read from the disk and associated
with the new buffer. The buffer will also become attached to the
current window. Use the `read_file' function to find a file but not
associate it with the current window.
SEE ALSO
read_file
--------------------------------------------------------------
insert_file
SYNOPSIS
Insert a file "f" into the current buffer
USAGE
Int_Type insert_file (String_Type f)
DESCRIPTION
This function may be used to insert the contents of a file named `f'
into the buffer at the current position. The current editing point
will be placed at the end of the inserted text. The function returns
`-1' if the file was unable to be opened; otherwise it returns the
number of lines inserted. This number can be zero if the file is empty.
SEE ALSO
read_file, find_file, insert
--------------------------------------------------------------
msdos_fixup_dirspec
SYNOPSIS
remove trailing backslash from "dir"
USAGE
String_Type msdos_fixup_dirspec (String_Type dir)
DESCRIPTION
The motivation behind this is that DOS does not like a trailing
backslash except if it is for the root dir. This function makes
`dir' conform to that.
--------------------------------------------------------------
read_file
SYNOPSIS
Read file "fn" but don't open in a window
USAGE
Int_Type read_file (string fn)
DESCRIPTION
The `read_file' function may be used to read a file specified by `fn'
into its own buffer. It returns a non-zero value upon success and
signals an error upon failure. The hook `find_file_hook' is called
after the file is read in. Unlike the related function, `find_file',
this function does not create a window for the newly created buffer.
SEE ALSO
find_file, file_status, write_buffer
--------------------------------------------------------------
rename_file
SYNOPSIS
Change the name of a file
USAGE
Int_Type rename_file (String_Type old_name, String_Type new_name)
DESCRIPTION
This function may be used to change the name of a disk file from
`old_name' to `new_name'. Upon success, zero is returned. Any other
value indicates failure.
Note: Both filenames must refer to the same file system.
SEE ALSO
file_status, stat_file
--------------------------------------------------------------
set_file_translation
SYNOPSIS
Set the way the next file is opened: 1 binary, 0 text mode
USAGE
set_file_translation (Int_Type n)
DESCRIPTION
This function affects only the way the next file is opened. Its
affect does not last beyond that. If it the value of the parameter
is 1, the next file will be opened in binary mode. If the parameter is
zero, the file will be opened in text mode.
--------------------------------------------------------------
is_line_hidden
SYNOPSIS
Test if the current line is hidden
USAGE
Integer is_line_hidden ()
DESCRIPTION
This function returns a non-zero value if the current line is hidden. It
will return zero if the current line is visible.
SEE ALSO
set_line_hidden
--------------------------------------------------------------
set_line_hidden
SYNOPSIS
Set the hidden attribute: 1 hidden, 0 visible
USAGE
Void set_line_hidden (Integer flag)
DESCRIPTION
If the parameter `flag' is non-zero, the current line will be given
the hidden attribute. This means that it will not be displayed. If the
parameter is zero, the hidden attribute will be turned off.
SEE ALSO
set_region_hidden, is_line_hidden
--------------------------------------------------------------
set_region_hidden
SYNOPSIS
Set the hidden attribute for all lines in a region
USAGE
Void set_region_hidden (Integer flag)
DESCRIPTION
This function may be used to hide the lines in a region. If `flag' is
non-zero, all lines in the region will be hidden. If it is zero, the
lines in the region will be made visible.
SEE ALSO
set_line_hidden, is_line_hidden, skip_hidden_lines_forward
--------------------------------------------------------------
skip_hidden_lines_backward
SYNOPSIS
Move backward across either hidden or non-hidden lines
USAGE
Void skip_hidden_lines_backward (Integer type)
DESCRIPTION
This function may be used to move backward across either hidden or non-hidden
lines depending upon whether the parameter `type' is non-zero or zero.
If `type' is non-zero, the Point is moved backward across hidden lines
until a visible line is reached. If `type' is zero, visible lines will
be skipped instead. If the top of the buffer is reached before the
appropriate line is reached, the Point will be left there.
Note: The functions `up' and `down' are insensitive to whether or not
a line is hidden.
SEE ALSO
skip_hidden_lines_forward, is_line_hidden
--------------------------------------------------------------
skip_hidden_lines_forward
SYNOPSIS
Move forward across either hidden or non-hidden lines
USAGE
Void skip_hidden_lines_forward (Integer type)
DESCRIPTION
This function may be used to move forward across either hidden or non-hidden
lines depending upon whether the parameter `type' is non-zero or zero.
If `type' is non-zero, the Point is moved forward across hidden lines
until a visible line is reached. If `type' is zero, visible lines will
be skipped instead. If the end of the buffer is reached before the
appropriate line is reached, the Point will be left there.
Note: The functions `up' and `down' are insensitive to whether or not
a line is hidden.
SEE ALSO
skip_hidden_lines_backward, is_line_hidden
--------------------------------------------------------------
add_to_hook
SYNOPSIS
Add a function to a hook (as first one)
USAGE
add_to_hook (String_Type hook_name, Ref_Type funct)
DESCRIPTION
`add_to_hook' adds the function `funct' to the beginnning of the
list of hooks associated with `hook_name'. The currently
supported hooks include:
_jed_append_region_hooks
_jed_exit_hooks
_jed_find_file_after_hooks
_jed_find_file_before_hooks
_jed_init_display_hooks
_jed_insert_file_hooks
_jed_quit_hooks
_jed_read_file_hooks
_jed_reset_display_hooks
_jed_resume_hooks
_jed_save_buffer_after_hooks
_jed_save_buffer_before_hooks
_jed_set_mode_hooks
_jed_switch_active_buffer_hooks
_jed_suspend_hooks
_jed_write_region_hooks
See the file `hooks.txt' in the main jed distribution for more
information.
SEE ALSO
append_to_hook, remove_from_hook
--------------------------------------------------------------
append_to_hook
SYNOPSIS
Append a function to a hook
USAGE
append_to_hook (String_Type hook_name, Ref_Type funct)
DESCRIPTION
`append_to_hook' adds the function `funct' to the end of the
list of hooks associated with `hook_name'. See
`add_to_hook' for more information.
SEE ALSO
add_to_hook, remove_from_hook
--------------------------------------------------------------
remove_from_hook
SYNOPSIS
Remove a function from a list of hooks
USAGE
remove_from_hook (String_Type hook_name, Ref_Type funct)
DESCRIPTION
`remove_from_hook' removes the function `funct' from the
list of hooks associated with `hook_name'.
SEE ALSO
add_to_hook, append_to_hook
--------------------------------------------------------------
_jed_run_hooks
SYNOPSIS
Execute the functions in a hook chain
USAGE
_jed_run_hooks (String_Type hook_name, Integer_Type mode [,Array_Type args])
DESCRIPTION
`_jed_run_hooks' executes the functions registered for `hook_name'.
The argument `mode' defines which functions are called:
JED_HOOKS_RUN_ALL
all functions; no function should return a value.
JED_HOOKS_RUN_UNTIL_0
Run until a function returns the value 0; every function must return
an integer value.
JED_HOOKS_RUN_UNTIL_NON_0
Run until a function returns a non-zero
value; every function must return an integer value.
If the third argument is given, then it must be an array of strings
to be passed as arguments to the the hook-functions.
SEE ALSO
append_to_hook, add_to_hook
--------------------------------------------------------------
get_buffer_hook
SYNOPSIS
Get the value of a specified buffer hook
USAGE
Ref_Type get_buffer_hook (String_Type hook_name)
DESCRIPTION
The `get_buffer_hook' function returns the value of the
specified hook name as a function reference. If no hook was defined
or the hook does not exist, then NULL will be returned. See the
documentation for `set_buffer_hook' for a list of hook-names.
EXAMPLE
% temporarily unset the indent hook
fun = get_buffer_hook ("indent_hook");
unset_buffer_hook ("indent_hook");
.
.
% restore the indent hook
if (fun != NULL)
set_buffer_hook ("indent_hook", fun);
SEE ALSO
set_buffer_hook, unset_buffer_hook
--------------------------------------------------------------
set_buffer_hook
SYNOPSIS
Set a specified buffer hook
USAGE
set_buffer_hook (String_Type hook_name, Ref_Type func)
DESCRIPTION
This function sets the specified hook for the current buffer to the
function `func'. The value of `func' may either be a
string or a function reference (e.g., `&my_hook'). The use of
a function reference is preferred since that allows hooks to be
static or private functions.
Currently supported hooks include:
"par_sep" -- returns zero if the current line does not
constitute the beginning or end of a paragraph.
It returns non-zero otherwise. The default value of hook is
is_paragraph_separator.
"indent_hook" -- returns nothing. It is called by the indent line
routines.
"wrap_hook" hook that is called after a line is wrapped. Returns
nothing.
"wrapok_hook" hook that is called prior to wrapping a line.
If it returns non-zero, the line will be wrapped,
otherwise the line will not be wrapped.
"newline_indent_hook" --- returns nothing. If this hook is defined,
it will be called instead of the internal function
newline_and_indent is called.
"bob_eob_error_hook" --- returns nothing. If this hook is defined,
it will be called whenever an error one of the internal cursor
movement functions would have generated an end of buffer or beginning of
buffer error. It is passed an integer that indicates which function
would have generated the error. Specifically:
-1 previous_line_cmd
-2 previous_char_cmd
-3 page_up
1 next_line_cmd
2 next_char_cmd
3 page_down
"mouse_down", "mouse_up", "mouse_drag" "mouse_2click" "mouse_3click"
These hooks are used to override default hooks defined by the
mouse_set_default_hook function.
"mark_paragraph_hook"
This hook hook is called by the format_paragraph
function to mark a paragraph.
"forward_paragraph_hook", "backward_paragraph_hook"
"format_paragraph_hook"
See the file jed/doc/hooks.txt for more information and examples.
SEE ALSO
unset_buffer_hook, mouse_set_default_hook, get_buffer_hook
--------------------------------------------------------------
unset_buffer_hook
SYNOPSIS
Remove a buffer hook
USAGE
unset_buffer_hook (String_Type name)
DESCRIPTION
The `unset_buffer_hook' function removes a specified buffer hook
from the current buffer. If `name' is the empty string, then
all the buffer hooks of the current buffer will be unset. See the
documentation for `set_buffer_hook' for a list of hook-names.
SEE ALSO
set_buffer_hook, get_buffer_hook
--------------------------------------------------------------
bobp
SYNOPSIS
Test if the current position is at the beginning of the buffer
USAGE
Integer bobp ();
DESCRIPTION
The `bolp' function is used to determine if the current position is at
the beginning of the buffer or not. If so, it returns a non-zero
value. However, if it is not, it returns zero. This simple example,
define is_buffer_empty ()
{
return bobp () and eobp ();
}
returns non-zero if the buffer is empty; otherwise, it returns zero.
SEE ALSO
bob, eobp, bolp, eolp
--------------------------------------------------------------
bolp
SYNOPSIS
Test if the current position is at the beginning of the line
USAGE
Integer bolp ();
DESCRIPTION
`bolp' is used to test if the current position is at the beginning of
a line or not. It returns non-zero if the position is at the
beginning of a line or zero if not.
SEE ALSO
bol, eolp, bobp, eobp
--------------------------------------------------------------
count_chars
SYNOPSIS
Return information about size of and position in the buffer
USAGE
String count_chars ();
DESCRIPTION
This function returns information about the size of the current buffer
and current position in the buffer. The string returned is of the form:
'h'=104/0x68/0150, point 90876 of 127057
SEE ALSO
what_char
--------------------------------------------------------------
eobp
SYNOPSIS
Test if the current position is at the end of the buffer
USAGE
Integer eobp ();
DESCRIPTION
The functio `eobp' is used to determine if the current position is at
the end of the buffer or not. It returns a non-zero value if at the
end of the buffer or zero if not.
SEE ALSO
eob, bolp, eolp
--------------------------------------------------------------
eolp
SYNOPSIS
Test if the current position is at the end of the line
USAGE
Integer eolp ();
DESCRIPTION
This function may be used to determine whether or not the current
position is at the end of a line ot not. If it is, the routine
returns a non-zero value; otherwise it returns zero.
SEE ALSO
eol, bolp, eobp, bobp
--------------------------------------------------------------
get_word_chars
SYNOPSIS
Get the currently defined word range
USAGE
String_Type get_word_chars ()
DESCRIPTION
The `get_word_chars' returns the currently defined set of
characters that constitute a word. The set may be returned as a
character range.
SEE ALSO
define_word
--------------------------------------------------------------
what_char
SYNOPSIS
Return the ASCII-value of the character at the current position
USAGE
ULong_Type what_char ()
DESCRIPTION
The `what_char' function returns the value of the character at the
current position as an unsigned long value. If UTF-8 mode is active
and the current character is part of an illegal byte sequence, then
the function returns a negative value equal in magnitude to the
value of the byte.
EXAMPLE
while (not (eolp ()))
{
if (what_char () == '_')
{
del (); insert ("\\_");
continue;
}
go_right (1);
}
has the effect of replacing all underscore characters on the current
line with a backslash-underscore combination.
SEE ALSO
looking_at
--------------------------------------------------------------
what_column
SYNOPSIS
Return the current column number
USAGE
Integer what_column ();
DESCRIPTION
The `what_column' function returns the current column number expanding
tabs, control characters, etc... The beginning of the line is at
column number one.
SEE ALSO
whatline, whatpos, goto_column, bolp, eolp
--------------------------------------------------------------
what_line
SYNOPSIS
Get the current line number
USAGE
Int_Type what_line
DESCRIPTION
The value of the `what_line' specifies the current line number.
Lines are numbered from one.
NOTES
This is a read-only variable.
The actual number is measured from the top of the buffer which is
itself is affected by whether the buffer is narrowed or not. For
example,
define one ()
{
push_mark (); narrow ();
return what_line;
}
always returns 1.
SEE ALSO
what_column, goto_line
--------------------------------------------------------------
USE_TABS
SYNOPSIS
Control use of tabs in whitespace
USAGE
Int_Type USE_TABS
DESCRIPTION
If `USE_TABS' is non-zero, the editor may use tab characters
when creating whitespace. If the value of this variable is zero, no
tabs will be used.
SEE ALSO
TAB, TAB_DEFAULT
--------------------------------------------------------------
WRAP
SYNOPSIS
Set the column at which wrapping occurs
USAGE
Int_Type WRAP
DESCRIPTION
The `WRAP' variable determines the column number at which
wrapping will occur. When entering text, if the current point goes
beyond this column, the text will automatically wrap to the next
line. This will only happen for those buffers for which the wrap flag
is set.
SEE ALSO
WRAP_INDENTS, getbuf_info, set_mode
--------------------------------------------------------------
WRAP_INDENTS
SYNOPSIS
Control indentation after wrapping
USAGE
Int_Type WRAP_INDENTS
DESCRIPTION
If this variable is non-zero, after a line is wrapped, the new line
will start at the same indentation as the current one. On the other
hand, if the value of `WRAP_INDENTS' is zero, the new line will
begin in the first column.
--------------------------------------------------------------
del
SYNOPSIS
Delete the character at the current editing position
USAGE
Void del ()
DESCRIPTION
The `del' function deletes the character at the current editing
position. If the position is at the end of the buffer, nothing happens.
If the deletion occurs at the end of a line, the next line will be joined
with the current one.
SEE ALSO
eobp, erase_buffer, insert
--------------------------------------------------------------
del_region
SYNOPSIS
Delete the region
USAGE
Void del_region ()
DESCRIPTION
This function deletes the region defined by the mark and the current
editing point. For example,
define delete_this_line ()
{
bol (); push_mark (); eol ();
del_region ();
}
defines a function that deletes all characters on the current line
from the beginning of the line until the end of the line. It does not
delete the line itself.
SEE ALSO
push_mark, markp, check_region
--------------------------------------------------------------
erase_buffer
SYNOPSIS
Erase all text from the current buffer
USAGE
erase_buffer ()
DESCRIPTION
The `erase_buffer' function erases all text from the current buffer.
However, it does not delete the buffer itself.
Note: This function destroys all undo information associated with the
buffer making it impossible to undo the result of this function.
SEE ALSO
delbuf, del
--------------------------------------------------------------
indent_line
SYNOPSIS
Indent the current line (using the `indent_hook')
USAGE
Void indent_line ()
DESCRIPTION
The `indent_line' line function indents the current line in a manner
which depends upon the current buffer. The actual function that gets
called is set via a prior call the `set_buffer_hook' to set the indent
hook. The default value is to indent the line to the indentation
level of the previous line.
SEE ALSO
set_buffer_hook
--------------------------------------------------------------
insbuf
SYNOPSIS
Insert buffer "buf" into the current buffer
USAGE
Void insbuf (String buf)
DESCRIPTION
This function may be used to insert the contents of a buffer specified
by the name `buf' into the current buffer. The editing position is
advanced to the end of the insertion.
SEE ALSO
copy_region, narrow, narrow_to_region
--------------------------------------------------------------
insert
SYNOPSIS
Insert string "str" into buffer at the current position
USAGE
Void insert (String str)
DESCRIPTION
Inserts string `str' into buffer at the current position. The editing
point is moved to the end of the of the string that was inserted.
SEE ALSO
insert_char, del, insert_file, insbuf
--------------------------------------------------------------
insert_char
SYNOPSIS
Insert a character at the current position
USAGE
Void insert_char (ULong_Type ch)
DESCRIPTION
This function inserts the specified character into the buffer.
SEE ALSO
what_char, insert, insert_byte
--------------------------------------------------------------
insert_byte
SYNOPSIS
Insert a byte into the buffer
USAGE
Void insert_byte (UChar_Type ch)
DESCRIPTION
This function inserts the specified byte into the buffer at the
current position.
SEE ALSO
what_char, insert_char, insert
--------------------------------------------------------------
insert_file_region
SYNOPSIS
Insert a region of the file "file"
USAGE
Integer insert_file_region (String file, String beg, String end)
DESCRIPTION
This function may be used to insert a region specified by the strings
`beg' and `end' of the file with name `file' into the current buffer.
The file is scanned line by line until a line that begins with the
string given by `beg' is encountered. Then, that line and all
successive lines up to the one that starts with the string specified
by `end' is inserted into the buffer. The line beginning with the
value of `end' is not inserted although the one beginning with `beg' is.
The function returns the number of lines inserted or `-1' upon failure
to open the file.
Note that a zero length `beg' corresponds to the first line
and that a zero length `end' corresponds to the last line.
SEE ALSO
insert_file
--------------------------------------------------------------
insert_from_kill_array
SYNOPSIS
Insert the contents of element "n" of the kill array
USAGE
Void insert_from_kill_array (Integer n)
DESCRIPTION
This function inserts the contents of the nth element, specified by
`n', of an internal array of character strings.
Note: This function is not available on 16 bit systems.
SEE ALSO
insert_from_kill_array, copy_region_to_kill_array
SEE ALSO
KILL_ARRAY_SIZE
--------------------------------------------------------------
trim
SYNOPSIS
Remove all whitespace around the current editing point
USAGE
Void trim ()
DESCRIPTION
The `trim' function removes all whitespace around the current editing
point. In this context, whitespace is considered to be any
combination of tab and space characters. In particular, it does not
include the newline character. This means that the `trim' function
will not delete across lines.
SEE ALSO
skip_chars, skip_white, del, del_region
--------------------------------------------------------------
whitespace
SYNOPSIS
Insert white space of length "n"
USAGE
whitespace (Integer n)
DESCRIPTION
The `whitespace' function inserts white space of length `n' into the
current buffer using a combination of spaces and tabs. The actual
combination of spaces and tabs used depends upon the buffer local
variable `TAB'. In particular, if `TAB' is zero, no tab characters
will be used for the expansion.
SEE ALSO
insert, trim, goto_column
SEE ALSO
TAB,TAB_DEFAULT
--------------------------------------------------------------
ALT_CHAR
SYNOPSIS
Controls the Alt character prefix
USAGE
Int_Type ALT_CHAR
DESCRIPTION
If this variable is non-zero, characters pressed in combination the
`Alt' key will generate a two character sequence: the first
character is the value of `ALT_CHAR' itself followed by the
character pressed. For example, if `Alt-X' is pressed and
`ALT_CHAR' has a value of 27, the characters `ESC X' will be
generated.
NOTES
This variable may not be available on all platforms.
SEE ALSO
META_CHAR, FN_CHAR
--------------------------------------------------------------
CURRENT_KBD_COMMAND
SYNOPSIS
The currently executing keyboard command
USAGE
String_Type CURRENT_KBD_COMMAND
DESCRIPTION
The value of the `CURRENT_KBD_COMMAND' function represents the
name of the currently executing procedure bound to the currently
executing key sequence.
SEE ALSO
LASTKEY, LAST_KBD_COMMAND, _function_name
--------------------------------------------------------------
DEC_8BIT_HACK
SYNOPSIS
Set the input mode for 8 bit control characters
USAGE
Int_Type DEC_8BIT_HACK
DESCRIPTION
If set to a non-zero value, a input character between 128 and 160
will be converted into a two character sequence: `ESC' and the
character itself stripped of the high bit + 64. The motivation
behind this variable is to enable the editor to work with VTxxx
terminals that are in eight bit mode.
SEE ALSO
META_CHAR
--------------------------------------------------------------
DEFINING_MACRO
SYNOPSIS
Non-zero if defining a macro
USAGE
Int_Type DEFINING_MACRO
DESCRIPTION
The `DEFINING_MACRO' variable will be non-zero is a keyboard
macro definition is in progress.
SEE ALSO
EXECUTING_MACRO
--------------------------------------------------------------
EXECUTING_MACRO
SYNOPSIS
Non-zero if a keyboard macro is currently executing
USAGE
Int_Type EXECUTING_MACRO
DESCRIPTION
The `EXECUTING_MACRO' variable will be non-zero is a keyboard
macro is currently being executed.
SEE ALSO
--------------------------------------------------------------
FN_CHAR
SYNOPSIS
Set the function key prefix
USAGE
Int_Type FN_CHAR
DESCRIPTION
If this variable is non-zero, function keys presses will
generate a two character sequence: the first character is the
value of the `FN_CHAR' itself followed by the character pressed.
NOTES
This variable is available only for Microsoft window systems.
SEE ALSO
ALT_CHAR, META_CHAR
--------------------------------------------------------------
IGNORE_USER_ABORT
SYNOPSIS
Control keyboard interrupt processing
USAGE
Int_Type IGNORE_USER_ABORT
DESCRIPTION
If set to a non-zero value, the keyboard interrupt character, e.g.,
`Ctrl-G' will not trigger a S-Lang error. When JED starts up,
this value is set to 1 so that the user cannot interrupt the loading
of site.sl. Later, it is set to 0.
SEE ALSO
set_abort_char
--------------------------------------------------------------
KILL_LINE_FEATURE
SYNOPSIS
Configure the kill_line function
USAGE
Int_Type KILL_LINE_FEATURE
DESCRIPTION
If non-zero, kill_line will kill through end of line character if the
cursor is at the beginning of a line. Otherwise, it will kill only to
the end of the line.
SEE ALSO
bolp
--------------------------------------------------------------
LASTKEY
SYNOPSIS
The value of the current key sequence
USAGE
String_Type LASTKEY
DESCRIPTION
The value of the `LASTKEY' variable represents the currently
executing key sequence.
NOTES
Key sequences involving the null character may not be accurately
recorded.
SEE ALSO
LAST_KBD_COMMAND
--------------------------------------------------------------
LAST_CHAR
SYNOPSIS
The Last Character read from the keyboard
USAGE
Int_Type LAST_CHAR
DESCRIPTION
The value of `LAST_CHAR' will be the last character read from
the keyboard buffer.
SEE ALSO
--------------------------------------------------------------
META_CHAR
SYNOPSIS
Specify the meta-character
USAGE
Int_Type META_CHAR
DESCRIPTION
This variable determines how input characters with the high bit set
are to be treated. If `META_CHAR' is less than zero, the character
is passed through un-processed. However, if `META_CHAR' is greater
than or equal to zero, an input character with the high bit set is
mapped to a two character sequence. The first character of the
sequence is the character whose ascii value is `META_CHAR' and the
second character is the input with its high bit stripped off.
SEE ALSO
DISPLAY_EIGHT_BIT, DEC_8BIT_HACK
--------------------------------------------------------------
X_LAST_KEYSYM
SYNOPSIS
Keysym associated with the last key
USAGE
Int_Type X_LAST_KEYSYM
DESCRIPTION
The value of the `X_LAST_KEYSYM' variable represents the keysym
of the most previously processed key.
NOTES
This variable is availible only in the XWindows version of jed.
SEE ALSO
LASTKEY
--------------------------------------------------------------
buffer_keystring
SYNOPSIS
Append string "str" to the end of the input stream
USAGE
Void buffer_keystring (String str);
DESCRIPTION
Append string `str' to the end of the input stream to be read by JED's
getkey routines.
SEE ALSO
ungetkey, getkey
--------------------------------------------------------------
copy_keymap
SYNOPSIS
Create a new keymap by copying another
USAGE
copy_keymap (String_Type new_map, String_Type old_map)
DESCRIPTION
The `copy_keymap' creates a new keymap whose name is given by
`new_map' by copying an existing keymap specified by `old_map'.
SEE ALSO
make_keymap, keymap_p, use_keymap
--------------------------------------------------------------
definekey
SYNOPSIS
Bind keys to a function in a specific keymap
USAGE
Void definekey(String f, String key, String kmap);
DESCRIPTION
Unlike `setkey' which operates on the global keymap, this function is
used for binding keys to functions in a specific keymap. Here `f' is
the function to be bound, `key' is a string of characters that make up
the key sequence and `kmap' is the name of the keymap to be used. See
`setkey' for more information about the arguments.
SEE ALSO
setkey, undefinekey, make_keymap, use_keymap
--------------------------------------------------------------
dump_bindings
SYNOPSIS
Insert a list of keybindings for "map" into the buffer
USAGE
Void dump_bindings(String map);
DESCRIPTION
This functions inserts a formatted list of keybindings for the keymap
specified by `map' into the buffer at the current point.
SEE ALSO
get_key_binding
--------------------------------------------------------------
enable_flow_control
SYNOPSIS
Turn on XON/XOFF flow control
USAGE
Void enable_flow_control (Integer flag);
DESCRIPTION
This Unix specific function may be used to turn XON/XOFF flow control
on or off. If `flag' is non-zero, flow control is turned on; otherwise,
it is turned off.
--------------------------------------------------------------
flush_input
SYNOPSIS
Process all forms of queued input
USAGE
Void flush_input ();
DESCRIPTION
This function may be used to remove all forms of queued input.
SEE ALSO
input_pending, getkey
--------------------------------------------------------------
get_key_binding
SYNOPSIS
Return binding information about a key sequence
USAGE
(type, funct) = get_key_binding ([ keyseq ])
Int_Type type;
String_Type funct;
String_Type keyseq;
DESCRIPTION
`get_key_binding' returns binding information about a specified
key sequence. If the optional parameter `keyseq' is not
present, then `get_key_binding' will wait for the user to enter
a key sequence. If `keyseq' is present, then it denotes the key
sequence.
This function returns two values: a String_Type or
Ref_Type representing the key
sequence binding (`funct'), and an integer that indicates the
key binding type:
type description
-------------------------------------
-1 funct is NULL, which indicates that the key has no binding
0 funct is the name of a S-Lang function
1 funct is the name of an internal function
2 funct represents a macro ("@macro")
3 funct represents a string to be inserted (" STRING")
4 funct is a reference (Ref_Type) to the actual function
SEE ALSO
getkey, input_pending
--------------------------------------------------------------
_getkey
SYNOPSIS
Read an input byte from the keyboard
USAGE
Int_Type _getkey ()
DESCRIPTION
The `_getkey' function may be used to read a byte character from the
keyboard. It should be used instead of `getkey' when
byte-semantics are required.
SEE ALSO
input_pending, _ungetkey, getkey
--------------------------------------------------------------
getkey
SYNOPSIS
Read an input character from the keyboard
USAGE
Long_Type getkey ()
DESCRIPTION
The `getkey' function may be used to read an input character from the
keyboard. If UTF-8 mode is in effect, the value returned can be
negative if the key-sequence corresponds to an invalid UTF-8 encoded
sequence. In such a case, the value returned will correspond to the
first byte of the sequence, and will be equal in magnitude to the
value of byte.
SEE ALSO
input_pending, ungetkey, _getkey
--------------------------------------------------------------
input_pending
SYNOPSIS
Test whether there is pending keyboard input
USAGE
Integer input_pending (Integer tsecs);
DESCRIPTION
This function is used to see if keyboard input is available to be read
or not. The paramter `tsecs' is the amount of time to wait for input
before returning if input is not available. The time unit for `tsecs'
is one-tenth of a second. That is, to wait up to one second, pass a
value of ten to this routine. It returns zero if no input is
available, otherwise it returns non-zero. As an example,
define peek_key ()
{
variable ch;
!if (input_pending (0)) return -1;
ch = getkey ();
ungetkey (ch);
return ch;
}
returns the value of the next character to be read if one is
available; otherwise, it returns -1.
SEE ALSO
getkey, ungetkey
--------------------------------------------------------------
keymap_p
SYNOPSIS
Test if a keymap "kmap" exists
USAGE
Integer keymap_p (String kmap);
DESCRIPTION
The `keymap_p' function may be used to determine whether or not a
keymap with name `kmap' exists. If the keymap specified by `kmap'
exists, the function returns non-zero. It returns zero if the keymap
does not exist.
SEE ALSO
make_keymap, definekey
--------------------------------------------------------------
make_keymap
SYNOPSIS
Create a keymap with name "km"
USAGE
Void make_keymap (String km);
DESCRIPTION
The `make_keymap' function creates a keymap with a name specified by
the `km' parameter. The new keymap is an exact copy of the
pre-defined `"global"' keymap.
SEE ALSO
use_keymap, copy_keymap, keymap_p, definekey, setkey
--------------------------------------------------------------
map_input
SYNOPSIS
Remap an input character "x" to "y".
USAGE
Void map_input (Integer x, Integer y);
DESCRIPTION
The `map_input' function may be used to remap an input character with
ascii value `x' from the keyboard to a different character with ascii
value `y'. This mapping can be quite useful because it takes place
before the editor interprets the character. One simply use of this
function is to swap the backspace and delete characters. Since the
backspace character has an ascii value of `8' and the delete character
has ascii value `127', the statement
map_input (8, 127);
maps the backspace character to a delete character and
map_input (127, 8);
maps the delete character to a backspace character. Used together,
these two statement effectively swap the delete and backspace keys.
SEE ALSO
getkey
--------------------------------------------------------------
prefix_argument
SYNOPSIS
Test if the user has entered a prefix argument
USAGE
Int_Type prefix_argument ()
DESCRIPTION
This function may be used to determine whether or not the user has
entered a prefix argument from the keyboard. If a prefix argument
is present, its value is returned, otherwise NULL will be returned.
Calling this function cancels the prefix-argument.
EXAMPLE
This example displays the prefix argument in the message area:
arg = prefix_argument ();
if (arg == NULL)
message ("No Prefix Argument");
else
vmessage ("Prefix argument: %d", arg);
NOTES
The old semantics, which are still supported but deprecated allows
an integer argument to be passed to the function. This argument
will be returned instead of NULL if no prefix-argument is present.
Using the old semantics, the above example could be written as
arg = prefix_argument (-9999);
if (arg == -9999)
message ("No Prefix Argument");
else
vmessage ("Prefix argument: %d", arg);
SEE ALSO
set_prefix_argument
--------------------------------------------------------------
set_abort_char
SYNOPSIS
change the keyboard character that generates an S-Lang interrupt
USAGE
Void set_abort_char (Integer ch);
DESCRIPTION
This function may be used to change the keyboard character that
generates an S-Lang interrupt. The parameter `ch' is the ASCII value
of the character that will become the new abort character. The
default abort character `Ctrl-G' corresponds to `ch=7'.
--------------------------------------------------------------
set_current_kbd_command
SYNOPSIS
Do as if "s" were entered from the keybord
USAGE
Void set_current_kbd_command (String s);
DESCRIPTION
Undocumented
--------------------------------------------------------------
set_prefix_argument
SYNOPSIS
Set the prefix argument
USAGE
Void set_prefix_argument (Int_Type n)
DESCRIPTION
This function may be used to set the prefix argument to the value
specified by `n'. If `n' is less than zero, then the prefix
argument is cancelled.
SEE ALSO
prefix_argument
--------------------------------------------------------------
setkey
SYNOPSIS
Bind a key sequence "key" to the function "fun"
USAGE
Void setkey(String fun, String key);
DESCRIPTION
This function may be used to define a key sequence specified by the
string `key' to the function `fun'. `key' can contain the `^'
character which denotes that the following character is to be
interpreted as a control character, e.g.,
setkey("bob", "^Kt");
sets the key sequence `Ctrl-K t' to the function `bob'.
The `fun' argument is usually the name of an internal or a user
defined S-Lang function. However, if may also be a sequence of
functions or even another keysequence (a keyboard macro). For
example,
setkey ("bol;insert(string(whatline()))", "^Kw");
assigns the key sequence `Ctrl-K w' to move to the beginning of a line
and insert the current line number. For more information about this
important function, see the JED User Manual.
Note that `setkey' works on the "global" keymap.
SEE ALSO
unsetkey, definekey
--------------------------------------------------------------
undefinekey
SYNOPSIS
Remove a keybinding from "kmap"
USAGE
Void undefinekey (String key, String kmap);
DESCRIPTION
This function may be used to remove a keybinding from a specified
keymap. The key sequence is given by the parameter `key' and the
keymap is specified by the second parameter `kmap'.
SEE ALSO
unsetkey, definekey, what_keymap
--------------------------------------------------------------
_ungetkey
SYNOPSIS
Push a byte onto the input stream
USAGE
Void _ungetkey (Int_Type c)
DESCRIPTION
This function may be used to push a byte `c' onto the input
stream. This means that the next keyboard byte to be read will be
`c'.
SEE ALSO
buffer_keystring, _getkey, get_key_binding
--------------------------------------------------------------
ungetkey
SYNOPSIS
Push a character onto the input stream
USAGE
Void ungetkey (Integer c);
DESCRIPTION
This function may be used to push a character `c' represented by its
character code onto the input stream. This means that the next
keyboard character to be read will be `c'.
SEE ALSO
buffer_keystring, getkey, get_key_binding
--------------------------------------------------------------
unsetkey
SYNOPSIS
Remove the definition of "key" from the "global" keymap
USAGE
Void unsetkey(String key);
DESCRIPTION
This function is used to remove the definition of the key sequence
`key' from the "global" keymap. This is sometimes necessary to bind
new key sequences which conflict with other ones. For example, the
"global" keymap binds the keys `"^[[A"', `"^[[B"', `"^[[C"', and
`"^[[D"' to the character movement functions. Using
`unsetkey("^[[A")' will remove the binding of `"^[[A"' from the global
keymap but the other three will remain. However, `unsetkey("^[[")'
will remove the definition of all the above keys. This might be
necessary to bind, say, `"^[["' to some function.
SEE ALSO
setkey, undefinekey
--------------------------------------------------------------
use_keymap
SYNOPSIS
Set the keymap for the current buffer
USAGE
Void use_keymap (String km);
DESCRIPTION
This function may be used to dictate which keymap will be used by the
current buffer. `km' is a string value that corresponds to the name
of a keymap.
SEE ALSO
make_keymap, copy_keymap, keymap_p, what_keymap
--------------------------------------------------------------
what_keymap
SYNOPSIS
Return the name of the current buffer's keymap
USAGE
String what_keymap ();
DESCRIPTION
This function returns the name of the keymap associated with the
current buffer.
SEE ALSO
create_keymap, keymap_p
--------------------------------------------------------------
which_key
SYNOPSIS
Return the keys that are bound to the function "f"
USAGE
Integer which_key (String f);
DESCRIPTION
The `which_key' function returns the the number of keys that are
bound to the function `f' in the current keymap. It also returns
that number of key sequences with control characters expanded as the
two character sequence `^' and the the whose ascii value is the
control character + 64. For example,
define insert_key_bindings (f)
{
variable n, key;
n = which_key (f);
loop (n)
{
str = ();
insert (str);
insert ("\n");
}
}
inserts into the buffer all the key sequences that are bound to the
function `f'.
SEE ALSO
get_key_binding, setkey, what_keymap
--------------------------------------------------------------
create_line_mark
SYNOPSIS
Return a line mark (of the type User_Mark)
USAGE
User_Mark create_line_mark (Integer c)
DESCRIPTION
The function `create_line_mark' returns an object of the type
`User_Mark'. This object contains information regarding the current
position and current buffer. The parameter `c' is used to specify the
color to use when the line is displayed.
SEE ALSO
create_user_mark, set_color_object
--------------------------------------------------------------
create_user_mark
SYNOPSIS
Return an object of the type User_Mark
USAGE
User_Mark create_user_mark ()
DESCRIPTION
The function `create_user_mark' returns an object of the type
`User_Mark'. This object contains information regarding the current
position and current buffer.
SEE ALSO
move_user_mark, goto_user_mark, user_mark_buffer
--------------------------------------------------------------
dupmark
SYNOPSIS
Duplicate the mark (if set), return success
USAGE
Integer dupmark ()
DESCRIPTION
This function returns zero if the mark is not set or, if the mark is
set, a duplicate of it is pushed onto the mark stack and a non-zero
value is returned.
SEE ALSO
push_mark, markp, pop_mark
--------------------------------------------------------------
goto_user_mark
SYNOPSIS
Return to the position of the User Mark "mark"
USAGE
Void goto_user_mark (User_Mark mark)
DESCRIPTION
This function returns to the position of the User Mark `mark'. Before
this function may be called, the current buffer must be the buffer
associated with the makr.
SEE ALSO
move_user_mark, create_user_mark, user_mark_buffer
--------------------------------------------------------------
is_user_mark_in_narrow
SYNOPSIS
Test if the user mark "m" is within the narrowed buffer.
USAGE
Integer is_user_mark_in_narrow (User_Mark m)
DESCRIPTION
This function returns non-zero if the user mark `m' refers to a
position that is within the current narrow restriction of the current
buffer. It returns zero if the mark lies outside the restriction.
An error will be generated if `m' does not represent a mark for the current
buffer.
SEE ALSO
goto_user_mark, move_user_mark
--------------------------------------------------------------
is_visible_mark
SYNOPSIS
Test if the mark is a visible mark
USAGE
is_visible_mark ()
DESCRIPTION
This function may be used to test whether or not the mark is a visible
mark. A visible mar is one which causes the region defined by it to
be highlighted.
It returns `1' is the mark is visible, or `0' if the mark
is not visible or does not exist.
SEE ALSO
markp, push_mark
--------------------------------------------------------------
markp
SYNOPSIS
Test if a mark is set
USAGE
Void markp ()
DESCRIPTION
This function returns a non-zero value if the mark is set; otherwise, it
returns zero. If a mark is set, a region is defined.
SEE ALSO
push_mark, pop_mark, check_region, push_spot
--------------------------------------------------------------
move_user_mark
SYNOPSIS
Move the User Mark "mark" to the current position
USAGE
Void move_user_mark (User_Mark mark)
DESCRIPTION
This function call takes a previously created User Mark, `mark', and
moves it to the current position and buffer. This means that if one
subsequently calls `goto_user_mark' with this mark as an argument, the
the position will be set to the new position.
Note: This function call is not equivalent to simply using
mark = create_user_mark ();
because independent copies of a User Mark are not created upon
assignment. That is, if one has
variable mark1, mark2;
setbuf ("first");
mark1 = create_user_mark ();
mark2 = mark1;
setbuf ("second");
and then calls
move_user_mark (mark1);
both user marks, `mark1' and `mark2' will be moved since
they refer to the same mark.
SEE ALSO
goto_user_mark, create_user_mark, user_mark_buffer
--------------------------------------------------------------
pop_mark
SYNOPSIS
Pop the most recent mark (if "g" is non-zero, go there
USAGE
pop_mark (Integer g)
DESCRIPTION
`pop_mark' pops the most recent mark pushed onto the mark stack. If
the argument `g' is non-zero, the editing position will be moved to
the location of the mark. However, if `g' is zero, the editing
position will be unchanged.
SEE ALSO
push_mark, pop_spot, markp, check_region, goto_user_mark
--------------------------------------------------------------
pop_spot
SYNOPSIS
Pop the last spot (and go there)
USAGE
Void pop_spot ()
DESCRIPTION
This function is used after a call to `push_spot' to return to the
editing position at the last call to `push_spot' in the current buffer.
SEE ALSO
push_spot, pop_mark
--------------------------------------------------------------
push_mark
SYNOPSIS
Mark the current position as the beginning of a region
USAGE
Void push_mark()
DESCRIPTION
This function marks the current position as the beginning of a region.
and pushes other marks onto a stack. A region is defined by this
mark and the editing point. The mark is removed from the stack only
when the function `pop_mark' is called.
For example,
define mark_buffer ()
{
bob ();
push_mark ();
eob ();
}
marks the entire buffer as a region.
SEE ALSO
pop_mark, push_spot, markp, dupmark, check_region
--------------------------------------------------------------
push_spot
SYNOPSIS
Push the current buffer location onto a stack
USAGE
Void push_spot ()
DESCRIPTION
`push_spot' pushes the location of the current buffer location onto a
stack. This function does not set the mark. The function `push_mark'
should be used for that purpose. The spot can be returned to using the
function `pop_spot'.
Note: Spots are local to each buffer. It is not
possible to call `push_spot' from one buffer and then subsequently
call `pop_spot' from another buffer to return to the position in the
first buffer. For this purpose, one must use user marks instead.
SEE ALSO
pop_spot, push_mark, create_user_mark
--------------------------------------------------------------
user_mark_buffer
SYNOPSIS
Return the name of the buffer with User Mark "m"
USAGE
String user_mark_buffer (User_Mark m)
DESCRIPTION
This function returns the name of the buffer associated with the
User Mark specified by `m'.
SEE ALSO
goto_user_mark, create_user_mark, move_user_mark, is_user_mark_in_narrow
--------------------------------------------------------------
enable_top_status_line
SYNOPSIS
Set the top_status_line: 1 enabled, 0 hidden
USAGE
Void enable_top_status_line (Integer x);
DESCRIPTION
If x is non-zero, the top status line is enabled. If x is zero, the
top status line is disabled and hidden.
SEE ALSO
set_top_status_line
--------------------------------------------------------------
menu_append_item
SYNOPSIS
Append an entry to a menu
USAGE
menu_append_item (menu, name, fun [,client_data])
String_Type menu, name;
String_Type or Ref_Type fun;
Any_Type client_data
DESCRIPTION
The `menu_append_item' function appends a menu item called
`name' to the menu `menu'. If called with 3 arguments,
the third argument must be a string that will get executed or
called when the menu item is selected.
When called with 4 arguments, the `fun' argument may be either
a string or a reference to a function. When the item is selected,
the function will be called and `client_data' will be passed to
it.
SEE ALSO
menu_append_popup
--------------------------------------------------------------
menu_append_popup
SYNOPSIS
Append a popup menu to a menu
USAGE
menu_append_popup (String_Type parent_menu, String_Type popup_name)
DESCRIPTION
The `menu_append_popup' function may be used to append a new
popup menu with name `popup_name' to the menu `parent_menu',
which may either be another popup menu or a menu bar.
SEE ALSO
menu_append_item, menu_append_separator
--------------------------------------------------------------
menu_append_separator
SYNOPSIS
Append a separator to a menu
USAGE
menu_append_separator (String_Type menu)
DESCRIPTION
The `menu_append_separator' function appends a menu item
separator to the menu `menu'.
SEE ALSO
menu_append_item, menu_append_popup
--------------------------------------------------------------
menu_copy_menu
SYNOPSIS
Copy a menu to another
USAGE
menu_copy_menu (String_Type dest, String_Type src)
DESCRIPTION
Then `menu_copy_menu' function copies the menu item, which may
be another popup menu, to another popup menu.
SEE ALSO
menu_append_popup, menu_append_item
--------------------------------------------------------------
menu_create_menu_bar
SYNOPSIS
Create a menu bar
USAGE
menu_create_menu_bar (String_Type name)
DESCRIPTION
The `menu_create_menu_bar' function may be used to create a new
menu bar called `name'. The new menu bar may be associated with
a buffer via the `menu_use_menu_bar' function.
SEE ALSO
menu_use_menu_bar, menu_append_popup
--------------------------------------------------------------
menu_delete_item
SYNOPSIS
Delete a menu item
USAGE
menu_delete_item (String_Type name)
DESCRIPTION
The `menu_delete_item' function deletes the menu called
`name' and all of its submenus.
EXAMPLE
To delete the `System' menu from the global menu bar, use
menu_delete_item ("Global.S&ystem");
SEE ALSO
menu_delete_items
--------------------------------------------------------------
menu_delete_items
SYNOPSIS
Delete the items from a menu
USAGE
menu_delete_items (String_Type menu)
DESCRIPTION
The `menu_delete_items' function deletes all the menu items
attached to a specified popup menu. However, unlike the related
function `menu_delete_item', the popup menu itself will not be
removed.
SEE ALSO
menu_delete_item, menu_append_popup
--------------------------------------------------------------
menu_insert_item
SYNOPSIS
Insert an entry into a menu at a specified position
USAGE
menu_insert_item (position, menu, name, fun [,client_data])
Int_Type/String_Type position;
String_Type menu, name;
String_Type or Ref_Type fun;
Any_Type client_data;
DESCRIPTION
The `menu_insert_item' function inserts a menu item called
`name' to the menu `menu' at a specified position.
The insertion position may be specified as an integer, or as the
name of a menu item within `parent_menu'. When specified as an
integer, the insertion will take place at the corresponding
position of the menu, where zero denotes the first item. If the
position specifier is the name of a menu item, the the insertion
will take place before that item.
If called with 4 arguments, the third argument must be a string
that will get executed or called when the menu item is selected.
When called with 5 arguments, the `fun' argument may be either
a string or a reference to a function. When the item is selected,
the function will be called and `client_data' will be passed to
it.
SEE ALSO
menu_append_item, menu_insert_popup, menu_insert_separator
--------------------------------------------------------------
menu_insert_popup
SYNOPSIS
Inserts a popup menu into a menu at a specified position
USAGE
menu_insert_popup (position, parent_menu, popup_name)
Int_Type/String_Type position;
String_Type parent_menu, popup_name;
DESCRIPTION
The `menu_insert_popup' function will insert a popup menu with
name `popup_name' into a pre-existing popup menu or menu bar
with name given by {parent_menu}.
The insertion position may be specified as an integer, or as the
name of a menu item within `parent_menu'. When specified as an
integer, the insertion will take place at the corresponding
position of the menu, where zero denotes the first item. If the
position specifier is the name of a menu item, the the insertion
will take place before that item.
SEE ALSO
menu_append_popup, menu_insert_item, menu_insert_separator
--------------------------------------------------------------
menu_insert_separator
SYNOPSIS
Inserts a separator into a menu at a specified position
USAGE
menu_insert_separator (position, parent_menu)
Int_Type/String_Type position;
String_Type parent_menu;
DESCRIPTION
The `menu_insert_separator' function inserts a separator
into a pre-existing popup menu or menu bar with name given
by `parent_menu'.
The insertion position may be specified as an integer, or as the
name of a menu item within `parent_menu'. When specified as an
integer, the insertion will take place at the corresponding
position of the menu, where zero denotes the first item. If the
position specifier is the name of a menu item, the the insertion
will take place before that item.
SEE ALSO
menu_append_separator, menu_insert_item, menu_insert_popup
--------------------------------------------------------------
menu_select_menu
SYNOPSIS
Select a menu item
USAGE
menu_select_menu (String_Type menu)
DESCRIPTION
This function allows interpreter access to a specified menu it. If
the parameter specifies a popup menu, then the corresponding menu
will be invoked. Otherwise the function bound to the specified menu
will be called.
EXAMPLE
menu_select_menu ("Global.&File");
menu_select_menu ("Global.&File.Save &Buffers");
SEE ALSO
menu_insert_item
--------------------------------------------------------------
menu_set_init_menubar_callback
SYNOPSIS
Set the initialize menu bar callback
USAGE
menu_set_init_menubar_callback (Ref_Type cb)
DESCRIPTION
The `menu_set_init_menubar_callback' may be used to specify the
function that is to be called whenever a menu bar may need to be
updated. This may be necessary when the user switches buffers or
modes. The callback function must accept a single argument which is
the name of the menubar.
SEE ALSO
menu_set_select_menubar_callback, menu_create_menu_bar
--------------------------------------------------------------
menu_set_menu_bar_prefix
SYNOPSIS
Set the prefix string to be displayed on the menu bar
USAGE
menu_set_menu_bar_prefix (String_Type menubar, String_Type prefix)
DESCRIPTION
The `menu_set_menu_bar_prefix' specifies the string that is to
be displayed on the specified menu bar. The default prefix is
`"F10 key ==> "'.
SEE ALSO
menu_create_menu_bar
--------------------------------------------------------------
menu_set_object_available
SYNOPSIS
Set the availablity of a menu item
USAGE
menu_set_object_available (String_Type menuitem, Int_Type flag)
DESCRIPTION
The `menu_set_object_available' function may be used to activate
or inactivate the specified menu item, depending upon whether
`flag' is non-zero or zero, respectively.
SEE ALSO
menu_append_item
--------------------------------------------------------------
menu_set_select_menubar_callback
SYNOPSIS
Set the function to be called when the menu bar is activated
USAGE
menu_set_select_menubar_callback (String_Type menubar, Ref_Type f)
DESCRIPTION
The `menu_set_select_menubar_callback' function is used to
indicate that the function whose reference is `f' should be
called whenever the menu bar is selected. The callback function is
called with one argument: the name of the menu bar.
SEE ALSO
menu_set_init_menubar_callback, menu_set_select_popup_callback
--------------------------------------------------------------
menu_set_select_popup_callback
SYNOPSIS
Specify the function to be called prior to a popup
USAGE
menu_set_select_popup_callback (String_Type popup, Ref_Type f
DESCRIPTION
The `menu_set_select_popup_callback' function may be used to
specify a function that should be called just before a popup menu is
displayed. The callback function must be defined to take a single
argument, namely the name of the popup menu.
The basic purpose of this function is to allow the creation of a
dynamic popup menu. For this reason, the popup menu will have its
items deleted before the callback function is executed.
SEE ALSO
menu_set_select_menubar_callback, menu_append_item
--------------------------------------------------------------
menu_use_menu_bar
SYNOPSIS
Associate a menu bar with the current buffer
USAGE
menu_use_menu_bar (String_Type menubar)
DESCRIPTION
The `menu_use_menu_bar' function may be used to associate a
specified menu bar with the current buffer. If no menu bar has been
associated with a buffer, the `"Global"' menu bar will be used.
SEE ALSO
menu_create_menu_bar
--------------------------------------------------------------
set_top_status_line
SYNOPSIS
Set the string to be displayed at the top of the display
USAGE
String set_top_status_line (String str);
DESCRIPTION
This functions sets the string to be displayed at the top of the
display. It returns the value of the line that was previously
displayed.
SEE ALSO
enable_top_status_line
--------------------------------------------------------------
MESSAGE_BUFFER
SYNOPSIS
The Contents of the Message Buffer
USAGE
String_Type MESSAGE_BUFFER
DESCRIPTION
The `MESSAGE_BUFFER' variable is a read-only string variable
whose value indicates the text to be displayed or is currently
displayed in the message buffer.
SEE ALSO
message, vmessage, error, verror
--------------------------------------------------------------
beep
SYNOPSIS
Beep (according to the value of `IGNORE_BEEP')
USAGE
Void beep ();
DESCRIPTION
The `beep' function causes the terminal to beep according to the value
of the variable `IGNORE_BEEP'.
SEE ALSO
tt_send
SEE ALSO
IGNORE_BEEP
--------------------------------------------------------------
clear_message
SYNOPSIS
Clear the message line of the display
USAGE
Void clear_message ();
DESCRIPTION
This function may be used to clear the message line of the display.
SEE ALSO
message, update, error, flush
--------------------------------------------------------------
flush
SYNOPSIS
Immediately display "msg" as a message in the mini-buffer
USAGE
Void flush (String msg);
DESCRIPTION
The `flush' function behaves like `message' except that it immediately
displays its argument `msg' as a message in the mini-buffer. That is,
it is not necessary to call `update' to see the message appear.
SEE ALSO
message, error
--------------------------------------------------------------
tt_send
SYNOPSIS
Send "s" directly to the terminal
USAGE
Void tt_send (String s);
DESCRIPTION
This function may be used to send a string specified by `s' directly
to the terminal with no interference by the editor. One should
exercise caution when using this routine since it may interfere with
JED's screen management routines forcing one to redraw the screen.
Nevertheless, it can serve a useful purpose. For example, when run in
an XTerm window, using
tt_send ("\e[?9h");
will enable sending mouse click information to JED encoded as
keypresses.
SEE ALSO
beep
--------------------------------------------------------------
MINIBUFFER_ACTIVE
SYNOPSIS
Non-zero is the mini-buffer is in use
USAGE
Int_Type MINIBUFFER_ACTIVE
DESCRIPTION
The `MINIBUFFER_ACTIVE' variable will be non-zero if the
mini-buffer is in use.
SEE ALSO
read_mini
--------------------------------------------------------------
_add_completion
SYNOPSIS
"add_completion" for "n" names "f1", ... "fn"
USAGE
Void _add_completion (String f1, String f2, ..., Integer n);
DESCRIPTION
The `_add_completion' function is like the `add_completion' function
except that it takes `n' names `f1', ... `fn'.
For example,
_add_completion ("fun_a", "fun_b", 2);
is equivalent to
add_completion ("fun_a");
add_completion ("fun_b");
SEE ALSO
add_completion
--------------------------------------------------------------
add_completion
SYNOPSIS
Add the function "f" to the list for mini-buffer completion
USAGE
Void add_completion(String f);
DESCRIPTION
The `add_completion' function adds the user defined S-Lang function
with name specified by the string `f' to the list of functions that
are eligible for mini-buffer completion. The function specified by
`f' must be already defined before this function is called. The
S-Lang function `is_defined' may be used to test whether or not the
function is defined.
SEE ALSO
read_with_completion, _add_completion
--------------------------------------------------------------
get_mini_response
SYNOPSIS
Prompt for a key
USAGE
Int_Type get_mini_response (String_Type str)
DESCRIPTION
The `get_mini_response' function display the text `str' at
the bottom of the screen and waits for the user to press a key. The
key is returned.
SEE ALSO
read_mini, getkey, flush
--------------------------------------------------------------
get_y_or_n
SYNOPSIS
Prompt for a y or n response
USAGE
Int_Type get_y_or_n (String_Type str)
DESCRIPTION
The `get_y_or_n' function forms a y/n question by
concatenating `"? (y/n)"' to `str' and displays the result
at the bottom of the display. It returns 1 if the user responds
with `y', 0 with `n', or `-1' if the user cancelled
the prompt.
SEE ALSO
get_yes_no, get_mini_response
--------------------------------------------------------------
get_yes_no
SYNOPSIS
Get a yes or no response from the user
USAGE
Integer get_yes_no (String s);
DESCRIPTION
This function may be used to get a yes or no response from the
user. The string parameter `s' will be used to construct the prompt
by concating the string `"? (yes/no)"' to `s'.
It returns `1' if the answer is yes or `0' if the answer is no.
SEE ALSO
getkey, flush, message
--------------------------------------------------------------
read_mini
SYNOPSIS
Read input from the mini-buffer
USAGE
String read_mini (String prompt, String dflt, String init);
DESCRIPTION
The `read_mini' function reads a line of input from the user in the
mini-buffer. The first parameter, `prompt', is used to prompt the
user. The second parameter, `dflt', is what is returned as a default
value if the user simply presses the return key. The final parameter,
`init', is stuffed into the mini-buffer for editing by the user.
For example,
define search_whole_buffer ()
{
variable str;
str = read_mini ("Search for:", "", "");
!if (strlen (str)) return;
!if (fsearch (str))
{
push_mark (); bob ();
if (fsearch (str)) pop_mark (0);
else pop_mark (1);
{
pop_mark (1);
error ("Not found");
}
}
}
reads a string from the user and then searches forward for it and if
not found, it resumes the search from the beginning of the buffer.
NOTES
If the user aborts the function `mini_read' by pressing the
keyboard quit character (e.g., Ctrl-G), an error is signaled. This
error can be caught by a `try'-`catch' statement and the appropriate action
taken. Also if the mini-buffer is already in use, this function should
not be called. The variable `MINIBUFFER_ACTIVE' may be checked to
determine if this is the case or not.
SEE ALSO
read_with_completion, getkey, input_pending
SEE ALSO
MINIBUFFER_ACTIVE
--------------------------------------------------------------
read_with_completion
SYNOPSIS
Read input from the minibuffer (with completion)
USAGE
Void read_with_completion (String prt, String dflt, String s, Integer type);
DESCRIPTION
This function may be used to read one of the objects specified by the
last parameter `type'. The first parameter, `prt', is used as a
prompt, the second parameter, `dflt', is used to specify a default,
and the third parameter, `s', is used to initialize the string to
be read.
`type' is an integer with the following meanings:
'f' file name
'b' buffer name
'F' function name
'V' variable name.
Finally, if `type' has the value `'s'', then the set of completions
will be defined by a zeroth parameter, `list', to the function call.
This parameter is simple a comma separated list of completions.
For example,
read_with_completion ("Larry,Curly,Moe", "Favorite Stooge:",
"Larry", "", 's');
provides completion over the set of three stooges.
The function returns the string read.
SEE ALSO
read_mini
--------------------------------------------------------------
set_expansion_hook
SYNOPSIS
Specify a function to expand a filename upon TAB completion
USAGE
Void set_expansion_hook (String fname);
DESCRIPTION
This function may be used to specify a function that will be called to
expand a filename upon TAB completion. The function `fname' must
already be defined. When `fname' is called, it is given a string to
be expanded. If it changes the string, it must return a non-zero value
and the modified string. If the string is not modified, it must simply
return zero.
--------------------------------------------------------------
BATCH
SYNOPSIS
Non-Zero if in Batch Mode
USAGE
Int_Type BATCH (read-only)
DESCRIPTION
The value of `BATCH' will be 0 if the editor is run
in interactive or full-screen mode. It will be 1 if the editor is
in batch mode (via the `-batch' comment line argument). If the
editor is in script mode (via `-script'), then the value of
`BATCH' will be 2.
--------------------------------------------------------------
JED_ROOT
SYNOPSIS
Location of the JED root directory
USAGE
String_Type JED_ROOT
DESCRIPTION
This is a read-only string variable whose value indicates JED's root
directory. This variable may be set using the `JED_ROOT'
environment variable.
SEE ALSO
get_jed_library_path, set_jed_library_path, getenv
--------------------------------------------------------------
_jed_secure_mode (read-only)
SYNOPSIS
Indicates if the editor is in secure mode
USAGE
Int_Type _jed_secure_mode
DESCRIPTION
The value of `_jed_secure_mode' will be non-zero if the editor
is running in secure mode. This mode does not allow any access to
the shell.
SEE ALSO
system
--------------------------------------------------------------
_jed_version
SYNOPSIS
The JED version number
USAGE
Int_Type _jed_version
DESCRIPTION
The value of `_jed_version' represents the version number of the
editor.
SEE ALSO
_jed_version_string, _slang_version
--------------------------------------------------------------
_jed_version_string
SYNOPSIS
The JED version number as a string
USAGE
String_Type _jed_version_string
DESCRIPTION
The value of `_jed_version_string' represents the version number
of the editor.
SEE ALSO
_jed_version, _slang_version_string
--------------------------------------------------------------
call
SYNOPSIS
Execute an internal function
USAGE
Void call(String f)
DESCRIPTION
The `call' function is used to execute an internal function which is
not directly accessable to the S-Lang interpreter.
SEE ALSO
is_internal
--------------------------------------------------------------
core_dump
SYNOPSIS
Exit the editor dumping the state of some crucial variables
USAGE
Void core_dump(String msg, Integer severity)
DESCRIPTION
`core_dump' will exit the editor dumping the state of some crucial
variables. If `severity' is `1', a core dump will result. Immediately
before dumping, `msg' will be displayed.
SEE ALSO
exit, exit_jed, quit_jed, message, error
--------------------------------------------------------------
define_word
SYNOPSIS
Define the set of characters that form a word
USAGE
Void define_word (String s)
DESCRIPTION
This function is used to define the set of characters that form a
word. The string `s' consists of those characters or ranges of
characters that define the word. For example, to define only the
characters `A-Z' and `a-z' as word characters, use:
define_word ("A-Za-z");
To include a hyphen as part of a word, it must be the first character
of the control string `s'. So for example,
define_word ("-i-n");
defines a word to consist only of the letters `i' to `n' and the
hyphen character.
--------------------------------------------------------------
exit
SYNOPSIS
Exit the editor gracefully with a status value
USAGE
exit (Int_Type status)
DESCRIPTION
This function performs the same actions as `exit_jed' except
that the status code returned to the shell may be specified.
SEE ALSO
_exit, exit_jed
--------------------------------------------------------------
exit_jed
SYNOPSIS
Exit JED in a graceful and safe manner
USAGE
Void exit_jed ()
DESCRIPTION
This function should be called to exit JED in a graceful and safe
manner. If any buffers have been modified but not saved, the user is
queried about whether or not to save each one first. `exit_jed' calls
the S-Lang hook `exit_hook' if it is defined. If `exit_hook' is
defined, it must either call `quit_jed' or `exit_jed' to really exit
the editor. If `exit_jed' is called from `exit_hook', `exit_hook' will
not be called again. For example:
define exit_hook ()
{
flush ("Really Exit?");
forever
{
switch (getkey () & 0x20) % map to lowercase
{ case 'y': exit_jed (); }
{ case 'n': return; }
beep ();
}
}
may be used to prompt user for confirmation of exit.
SEE ALSO
exit, quit_jed, suspend, flush, getkey
SEE ALSO
BATCH
--------------------------------------------------------------
get_last_macro
SYNOPSIS
Return characters composing the last keyboard macro
USAGE
String get_last_macro ()
DESCRIPTION
This function returns characters composing the last keyboard macro. The
charactors that make up the macro are encoded as themselves except the
following characters:
'\n' ----> \J
null ----> \@
\ ----> \\
'"' ----> \"
--------------------------------------------------------------
get_passwd_info
SYNOPSIS
Return information about the user "username"
USAGE
(dir, shell, pwd, uid, gid) = get_passwd_info (String username)
DESCRIPTION
This function returns password information about the user with name
`username'. The returned variables have the following meaning:
dir: login directory
shell: login shell
pwd: encripted password
uid: user identification number
gid: group identification number
If the user does not exist, or the system call fails, the function
returns with `uid' and `gid' set to `-1'.
--------------------------------------------------------------
getpid
SYNOPSIS
Return the process identification number for the editor
USAGE
Integer getpid ()
DESCRIPTION
This function returns the process identification number for the current
editor process.
--------------------------------------------------------------
is_internal
SYNOPSIS
Test if function "f" is defined as an internal function
USAGE
Integer is_internal(String f)
DESCRIPTION
`is_internal' returns non-zero is function `f' is defined as an
internal function or returns zero if not. Internal functions not
immediately accessable from S-Lang; rather, they must be called using
the `call' function. See also the related S-Lang function
`is_defined' in the S-Lang Programmer's Reference.
SEE ALSO
call
--------------------------------------------------------------
quit_jed
SYNOPSIS
Quit the editor immediately: no autosave, no hooks
USAGE
Void quit_jed ([ status ])
DESCRIPTION
This function quits the editor immediately without saving any buffers
and without any exit hooks called. The function `exit_jed'
should be called when it is desired to exit in a safe way.
The exit status of the program may be specified via the optional
integer argument. If called with no argument, a value of 0 will be
used as the exit status.
SEE ALSO
exit_jed
--------------------------------------------------------------
random
SYNOPSIS
Return a random number in the range [0, "nmax"[
USAGE
Integer random (Integer seed, Integer nmax)
DESCRIPTION
The `random' function returns a random number in the range 0 to, but
not including, `nmax'. If the first parameter `seed' is 0, the
number generated depends on a previous seed. If `seed' is -1, the
current time and process id will be used to seed the random number
generator; otherwise `seed' will be used.
Example: generate 1000 random integers in the range 0-500 and insert
them into buffer:
() = random (-1, 0); % seed generator usingtime and pid
loop (1000)
insert (Sprintf ("%d\n", random (0, 500), 1));
Note: The random number is generated via the expression:
r = r * 69069UL + 1013904243UL;
--------------------------------------------------------------
set_line_readonly
SYNOPSIS
Turn on or off the read-only state of the current line
USAGE
Void set_line_readonly (Integer flag)
DESCRIPTION
This function may be used to turn on or off the read-only state of the
current line. If the integer parameter `flag' is non-zero, the line
will be made read-only. If the paramter is zero, the read-only state
will be turned off.
SEE ALSO
getbuf_info
--------------------------------------------------------------
set_undo_position
SYNOPSIS
Add the current position to the undo stack
USAGE
set_undo_position ()
DESCRIPTION
This function adds the current position to the buffer's undo stack.
Ocassionally this may be necessary when using
`narrow_to_region' to prevent the cursor from moving to the
beginning or the end of a previously narrowed region during "undo".
SEE ALSO
narrow_to_region
--------------------------------------------------------------
suspend
SYNOPSIS
Suspend the editor
USAGE
Void suspend ()
DESCRIPTION
The action of this command varies with the operating system.
Under Unix, the editor will be suspended and control will pass to the
parent process. Under VMS and MSDOS, a new subprocess will be spawned.
Before suspension, `suspend_hook' is called. When the editor is
resumed, `resume_hook' will be called. These hooks are user-defined
functions that take no arguments and return no values.
--------------------------------------------------------------
usleep
SYNOPSIS
Pause for "ms" milliseconds
USAGE
Void usleep (Integer ms)
DESCRIPTION
A call to usleep will cause the editor to pause for `ms' milliseconds.
SEE ALSO
input_pending
--------------------------------------------------------------
vms_get_help
SYNOPSIS
Interact with the VMS help system from within the editor
USAGE
Void vms_get_help (String hlp_file, String hlp_topic)
DESCRIPTION
This function may be used on VMS systems to interact with the VMS help
system from within the editor. `hlp_file' is the name of the help file
to use and `hlp_topic' is the topic for which help is desired.
--------------------------------------------------------------
vms_send_mail
SYNOPSIS
interface to the VMS callable mail facility
USAGE
Integer vms_send_mail (String recip_lis, String subj)
DESCRIPTION
This VMS specific function provides an interface to the VMS callable
mail facility. The first argument, `recip_lis', is a comma separated list
of email addresses and `subj' is a string that represents the subject of
the email. The current buffer will be emailed. It returns `1' upon
success and `0' upon failure.
--------------------------------------------------------------
gpm_disable_mouse
SYNOPSIS
Disable support for the GPM mouse
USAGE
gpm_disable_mouse ()
DESCRIPTION
The `gpm_disable_mouse' function may be used to inactivate
support for the GPM mouse.
NOTES
This function may not be available on all systems.
SEE ALSO
mouse_get_event_info
--------------------------------------------------------------
mouse_get_event_info
SYNOPSIS
Return information about the last processed mouse event
USAGE
(x, y, state) = mouse_get_event_info ()
DESCRIPTION
This function returns the position of the last processed
mouse event, and the state of the mouse buttons and shift
keys before the event.
`x' and `y' represent the column and row, respectively, where
the event took place. They are measured with relative to the
top left corner of the editor's display.
`state' is a bitmapped integer whose bits are defined as follows:
1 Left button pressed
2 Middle button pressed
4 Right button pressed
8 Shift key pressed
16 Ctrl key pressed
Other information such as the button that triggered the event is
available when the mouse handler is called. As a result, this information
is not returned by `mouse_get_event_info'.
SEE ALSO
mouse_set_default_hook, set_buffer_hook.
--------------------------------------------------------------
mouse_map_buttons
SYNOPSIS
Map one mouse button to another
USAGE
Void mouse_map_buttons (Integer x, Integer y)
DESCRIPTION
This function may be used to map one mouse button to another. The
button represented by `x' will appear as `y'.
--------------------------------------------------------------
mouse_set_current_window
SYNOPSIS
Change to the window to that of the the mouse event
USAGE
Void mouse_set_current_window ()
DESCRIPTION
Use of this function results in changing windows to the window that
was current at the time of the mouse event.
SEE ALSO
mouse_set_default_hook
--------------------------------------------------------------
mouse_set_default_hook
SYNOPSIS
Associate a function "fun" with the mouse event "name"
USAGE
Void set_default_mouse_hook (String name, String fun)
DESCRIPTION
This function associates a slang function `fun' with the mouse event
specified by `name'. The first parameter `name' must be one of the
following:
"mouse_up" "mouse_status_up"
"mouse_down" "mouse_status_down"
"mouse_drag" "mouse_status_drag"
"mouse_2click" "mouse_status_2click"
"mouse_3click" "mouse_status_3click"
The meaning of these names should be obvious. The second parameter,
`fun' must be defined as
define fun (line, column, btn, shift)
and it must return an integer. The parameters `line' and
`column' correspond to the line and column numbers in the
buffer where the event took place. `btn' is an integer that
corresonds to the button triggering the event. It can take
on values `1', `2', and `4' corresponding to the left,
middle, and right buttons, respectively. `shift' can take on
values `0', `1', or `2' where `0' indicates that no modifier
key was pressed, `1' indicates that the SHIFT key was
pressed, and `2' indicates that the CTRL key was pressed.
For more detailed information about the modifier keys, use
the function `mouse_get_event_info'.
When the hook is called, the editor will automatically change
to the window where the event occured. The return value of
the hook is used to dictate whether or not hook handled the
event or whether the editor should switch back to the window
prior to the event. Specifically, the return value is interpreted
as follows:
-1 Event not handled, pass to default hook.
0 Event handled, return active window prior to event
1 Event handled, stay in current window.
SEE ALSO
mouse_get_event_info, mouse_set_current_window, set_buffer_hook
--------------------------------------------------------------
Skip past all word characters
SYNOPSIS
bskip_word_chars
USAGE
Void bskip_word_chars ()
DESCRIPTION
This function moves the current editing point backward past all
word characters until a non-word character is encountered.
Characters that make up a word are set by the `define_word' function.
SEE ALSO
define_word, skip_word_chars, bskip_chars, bskip_non_word_chars
--------------------------------------------------------------
_get_point
SYNOPSIS
Get the current offset from the beginning of the line
USAGE
Int_Type _get_point ()
DESCRIPTION
The `_get_point' function returns the current character offset
fro the beginning of the line.
SEE ALSO
_set_point, what_column
--------------------------------------------------------------
_set_point
SYNOPSIS
Move to a specified offset from the beginning of the line
USAGE
_set_point (Int_Type nth)
DESCRIPTION
The `_set_point' function moves the current editing position to
the `nth' character of the current line.
SEE ALSO
_get_point, goto_column
--------------------------------------------------------------
backward_paragraph
SYNOPSIS
Move backward to a line that is a paragraph separator
USAGE
Void backward_paragraph ()
DESCRIPTION
This function moves the current editing point backward past the
current paragraph to the line that is a paragraph separator. Such a
line is determined by the S-Lang hook `is_paragraph_separator'. This
hook can be modified on a buffer by buffer basis by using the
function `set_buffer_hook'.
SEE ALSO
forward_paragraph, set_buffer_hook
--------------------------------------------------------------
bob
SYNOPSIS
Go to the beginning of the buffer
USAGE
Void bob ()
DESCRIPTION
The function `bob' is used to move the current editing point to the
beginning of the buffer. The function `bobp' may be used to determine
if the editing point is at the beginning of the buffer or not.
SEE ALSO
bobp, eob, bol, eol
--------------------------------------------------------------
bol
SYNOPSIS
Go to the beginning of the line
USAGE
Void bol()
DESCRIPTION
This function moves the current editing point to the beginning of the
current line. The function `bolp' may be used to see if one is already
at the beginning of a line.
SEE ALSO
eol, bob, eob, bolp
--------------------------------------------------------------
bskip_chars
SYNOPSIS
Skip past all characters defined by string "str"
USAGE
Void bskip_chars (String str)
DESCRIPTION
This function may be used to skip past all characters defined by the
string `str'. See `skip_chars' for the definition of `str'.
The following example illustrates how to skip past all whitespace
including newline characters:
bskip_chars (" \t\n");
SEE ALSO
skip_chars, left
--------------------------------------------------------------
bskip_non_word_chars
SYNOPSIS
Skip past all non-word characters
USAGE
Void bskip_word_chars ()
DESCRIPTION
This function moves the current editing point backward past all
non-word characters until a word character is encountered.
Characters that make up a word are set by the `define_word' function.
SEE ALSO
define_word, skip_non_word_chars, bskip_chars, bskip_word_chars
--------------------------------------------------------------
down
SYNOPSIS
Move the editing point "n" lines down
USAGE
Integer down(Integer n)
DESCRIPTION
The `down' function is used to move the editing point down a number of
lines specified by the integer `n'. It returns the number of lines
actually moved. The number returned will be less than `n' only if the
last line of the buffer has been reached. The editing point will be
left at the beginning of the line if it succeeds in going down more
than one line.
Example: The function
define trim_buffer
{
bob ();
do
{
eol (); trim ();
}
while (down (1));
}
removes excess whitespace from the end of every line in the buffer.
SEE ALSO
down, left, right, goto_line
--------------------------------------------------------------
eob
SYNOPSIS
Move to the end of the buffer
USAGE
Void eob()
DESCRIPTION
The `eob' function is used to move the current point to the end of the
buffer. The function `eobp' may be used to see if the current
position is at the end of the buffer.
SEE ALSO
eobp, bob, bol, eol
--------------------------------------------------------------
eol
SYNOPSIS
Go to the end of the line
USAGE
Void eol()
DESCRIPTION
Moves the current position to the end of the current line. The function
`eolp' may be used to see if one is at the end of a line or not.
SEE ALSO
eolp, bol, bob, eob
--------------------------------------------------------------
forward_paragraph
SYNOPSIS
Go to the end of the current paragraph
USAGE
Void forward_paragraph ()
DESCRIPTION
This function moves the current editing point forward past the end of
the current paragraph. Paragraph delimiters are defined through either
a buffer hook or via the hook `is_paragraph_separator'.
SEE ALSO
backward_paragraph, set_buffer_hook
--------------------------------------------------------------
goto_column
SYNOPSIS
Move to the column "n"
USAGE
Void goto_column (Integer n)
DESCRIPTION
This function moves the current editing point to the column specified
by the parameter `n'. It will insert a combination of spaces and tabs
if necessary to achieve the goal.
Note: The actual character number offset from the beginning of the
line depends upon tab settings and the visual expansion of other
control characters.
SEE ALSO
goto_column_best_try, what_column, left, right, goto_line
SEE ALSO
TAB,TAB_DEFAULT,DISPLAY_EIGHT_BIT
--------------------------------------------------------------
goto_column_best_try
SYNOPSIS
like "goto_column" but don't insert whitespace
USAGE
Integer goto_column_best_try (Integer c)
DESCRIPTION
This function is like `goto_column' except that it will not insert
whitespace. This means that it may fail to achieve the column number
specified by the argument `c'. It returns the current column number.
SEE ALSO
goto_column, what_column
--------------------------------------------------------------
goto_line
SYNOPSIS
Go to line number "n"
USAGE
Void goto_line (Integer n)
DESCRIPTION
The `goto_line' function may be used to move to a specific line number
specified by the parameter `n'.
Note: The actual column that the editing point will be left in is
indeterminate.
SEE ALSO
what_line, goto_column, down, up.
--------------------------------------------------------------
left
SYNOPSIS
Move the editing point backward "n" characters
USAGE
Integer left(Integer n)
DESCRIPTION
`left' moves the editing point backward `n' characters and returns the
number actually moved. The number returned will be less than `n' only
if the top of the buffer is reached.
SEE ALSO
right, up, down, bol, bob
--------------------------------------------------------------
right
SYNOPSIS
Move the editing position forward forward "n" characters
USAGE
Integer right(Integer n)
DESCRIPTION
This function moves the editing position forward forward `n'
characters. It returns the number of characters actually moved. The
number returned will be smaller than `n' if the end of the buffer is
reached.
SEE ALSO
left, up, down, eol, eob
--------------------------------------------------------------
skip_chars
SYNOPSIS
Go forward past all characters defined by "s"
USAGE
Void skip_chars(String s)
DESCRIPTION
This fnction may be used to move the editing point forward past all
characters in string `s' which contains the chars to skip, or a range
of characters. A character range is denoted by two charcters
separated by a hyphen. If the first character of the string `s' is a
`'^'' character, then the list of characters actually denotes the
complement of the set of characters to be skipped. To explicitly
include the hyphen character in the list, it must be either the first
or the second character of the string, depending upon whether or not
the `'^'' character is present. So for example,
skip_chars ("- \t0-9ai-o_");
will skip the hyphen, space, tab, numerals `0' to `9', the letter `a',
the letters `i' to `o', and underscore. An example which illustrates
the complement of a range is
skip_chars("^A-Za-z");
which skips all characters except the letters.
Note: The backslash character may be used to escape only the first
character in the string. That is, `"\\^"' is to be used to skip over
`^' characters.
SEE ALSO
bskip_chars, skip_white
--------------------------------------------------------------
skip_non_word_chars
SYNOPSIS
Go forward until a word character is encountered
USAGE
Void skip_non_word_chars ()
DESCRIPTION
This function moves the current editing point forward past all
non-word characters until a word character is encountered.
Characters that make up a word are set by the `define_word' function.
SEE ALSO
define_word, skip_word_chars, skip_chars, bskip_non_word_chars
--------------------------------------------------------------
skip_white
SYNOPSIS
Go forward until a non-whitespace character or the end of the line
USAGE
Void skip_white ()
DESCRIPTION
The `skip_white' function moves the current point forward until it
reaches a non-whitespace character or the end of the current line,
whichever happens first. In this context, whitespace is considered to
be any combination of space and tab characters. To skip newline
characters as well, the function `skip_chars' may be used.
SEE ALSO
bskip_chars, what_char, trim, right
--------------------------------------------------------------
skip_word_chars
SYNOPSIS
Go forward until a non-word character is
encountered
USAGE
Void skip_word_chars ()
DESCRIPTION
This function moves the current editing point forward across all
characters that constitute a word until a non-word character is
encountered. Characters that make up a word are set by the
`define_word' function.
SEE ALSO
define_word, skip_non_word_chars, skip_chars, bskip_word_chars
--------------------------------------------------------------
up
SYNOPSIS
Go up "n" lines
USAGE
Integer up(Integer n)
DESCRIPTION
This function moves the current point up `n' lines and returns the
number of lines actually moved. The number returned will be less than
`n' only if the top of the buffer is reached.
SEE ALSO
down, left, right
--------------------------------------------------------------
get_process_input
SYNOPSIS
Read all pending input by all subprocesses
USAGE
Void get_process_input (Int_Type tsecs)
DESCRIPTION
Read all pending input by all subprocesses. If no input is
available, this function will wait for input until `tsecs' tenth of
seconds have expired.
SEE ALSO
open_process, kill_process
--------------------------------------------------------------
get_process_flags
SYNOPSIS
Get the flags associated with a process
USAGE
Int_Type get_process_flags (Int_Type id)
DESCRIPTION
This function returns the flags associated with the current process.
The `set_process_flags' may be used to set the flags.
SEE ALSO
open_process, set_process_flags
--------------------------------------------------------------
kill_process
SYNOPSIS
Kill the subprocess specified by the process handle "id"
USAGE
Void kill_process (Int_Type id)
DESCRIPTION
Kill the subprocess specified by the process handle `id'
SEE ALSO
open_process
--------------------------------------------------------------
open_process
SYNOPSIS
Open a process and return a unique process id
USAGE
Int_Type open_process (name, argv1, argv2, ..., argvN, N)
DESCRIPTION
Open subprocess `name'. Returns id of process, -1 upon failure.
SEE ALSO
kill_process, process_mark, process_query_at_exit
--------------------------------------------------------------
process_mark
SYNOPSIS
Return user mark for the position of the last output by the process
USAGE
User_Mark process_mark (Int_Type id)
DESCRIPTION
This function returns the user mark that contains the position of the
last output by the process.
--------------------------------------------------------------
process_query_at_exit
SYNOPSIS
Whether or not to silently kill a process at exit
USAGE
Void process_query_at_exit (Int_Type pid, Int_Type query)
DESCRIPTION
The `process_query_at_exit' may be used to specify whether or
not the process specified by `pid' should be silently ignored
when the editor exits. If the parameter `query' is non-zero,
the user will be reminded the process exists before exiting.
SEE ALSO
open_process, kill_process, exit_jed
--------------------------------------------------------------
run_program
SYNOPSIS
Run another program in a window
USAGE
Int_Type run_program (String_Type pgm)
DESCRIPTION
Like the `system' function, the `run_program' function may
be used to execute another program. However, this function is more
useful for executing interactive programs that require some sort of display
manipulation, e.g., `lynx', the text-mode web browser. When
called from `xjed', the other program is executed asynchronously
in a separate xterm window. If the editor is running in an ordinary
terminal, `jed' will be suspended while the other program runs.
The function returns the exit value of the invoked process.
EXAMPLE
if (0 != run_program ("lynx http://www.jedsoft.org"))
error ("lynx failed to run");
NOTES
The `XTerm_Pgm' variable may be used to specify the terminal
that `xjed' uses when calling `run_program'. For example,
to use `rxvt', use:
variable XTerm_Pgm = "rxvt";
SEE ALSO
system, open_process
--------------------------------------------------------------
run_shell_cmd
SYNOPSIS
Run "cmd" in a separate process
USAGE
Integer_Type run_shell_cmd (String cmd)
DESCRIPTION
The `run_shell_cmd' function may be used to run `cmd' in a separate
process. Any output generated by the process is inserted into the
buffer at the current point. It generates a S-Lang error if the
process specified by `cmd' could not be opened. Otherwise, it
returns the exit status of the process.
--------------------------------------------------------------
send_process
SYNOPSIS
Send a string to the specified subprocess
USAGE
Void send_process (Int_Type id, String s)
DESCRIPTION
This function sends the string `s' to the standard input of the
process with the ID `id'. With this function and
`set_process' with the argument `output'' you can establish a
bi-directional communication with the process.
SEE ALSO
open_process, set_process, send_process_eof
--------------------------------------------------------------
send_process_eof
SYNOPSIS
Close the "stdin" of the process "id"
USAGE
send_process_eof (Int_Type id)
DESCRIPTION
This function closes the `stdin' of the process specified by the
handle `id'.
--------------------------------------------------------------
set_process
SYNOPSIS
Set "what" for process "pid"
USAGE
Void set_process (pid, what, value)
Int_Type pid;
String_Type what;
String_Type or Ref_Type value;
DESCRIPTION
`pid' is the process handle returned by `open_process'. The second
parameter, `what', specifies what to set. It must be one of the
strings:
"signal" : indicates that 'value' is the name of a function to call
when the process status changed. The function specified
by 'value' must be declared to accept an argument list:
(pid, flags, status) where 'pid' has the same
meaning as above and flags is an integer with the
meanings:
1: Process Running
2: Process Stopped
4: Process Exited Normally
8: Process Exited via Signal
The meaning of the status parameter depends
upon the flags parameter. If the process
exited normally, then status indicates its
return status. Otherwise status represents
the signal that either stopped or killed the
process.
Note: when this function is called, the current buffer is
guaranteed to be the buffer associated with the process.
"output" : This parameter determines how output from the process is
is processed. If the 'value' is the empty string "", output
will go to the end of the buffer associated with the process
and the point will be left there.
If value is ".", output will go at the current buffer position.
If value is "@", output will go to the end of the buffer but
the point will not move. Otherwise, 'value' is
the name or a reference to a slang function that
takes arguments: (pid, data) where pid has
the above meaning and data is the output from the process.
Normally jed automatically switches to the buffer associated with
the process prior to handling data from the process. This behavior
may be modified through the use of the `set_process_flags'
function.
SEE ALSO
set_process_flags, get_process_flags, open_process
--------------------------------------------------------------
set_process_flags
SYNOPSIS
Set the flags associated with a process
USAGE
set_process_flags (Int_Type id, Int_Type flags)
DESCRIPTION
This function may be used to set the flags associated with the
specified process. The flags may be used to affect the behavior of
the process. Currently the following bits are defined:
0x01 Do not switch to the process buffer prior to calling any
hooks associated with the buffer including output from
the process.
SEE ALSO
open_process, get_process_flags, set_process
--------------------------------------------------------------
signal_process
SYNOPSIS
Send a signal to the process "pid"
USAGE
Void signal_process (Int_Type pid, Int_Type signum)
DESCRIPTION
This function may be used to send a signal to the process whose
process handle is given by `pid'. The `pid' must be a valid handle
that was returned by `open_process'.
SEE ALSO
open_process, kill_process, send_process_eof
--------------------------------------------------------------
Replace all text in the rectangle by spaces
SYNOPSIS
Replace the rectangle defined by point and mark with spaces
USAGE
Void blank_rect ()
DESCRIPTION
The `blank_rect' function replaces all text in the rectangle defined by
the current editing point and the mark by spaces.
SEE ALSO
push_mark, kill_rect, insert_rect, copy_rect
--------------------------------------------------------------
copy_rect
SYNOPSIS
Copy the contents of the rectangle to the rectangle buffer
USAGE
Void copy_rect ()
DESCRIPTION
The `copy_rect' function is used to copy the contents of the
currently defined rectangle to the rectangle buffer. It overwrites
the previous contents of the rectangle buffer. A rectangle is defined
by the diagonal formed by the mark and the current point.
SEE ALSO
insert_rect, kill_rect, blank_rect
--------------------------------------------------------------
insert_rect
SYNOPSIS
Insert the contents of the rectangle buffer
USAGE
insert_rect ()
DESCRIPTION
The `insert_rect' function inserts the contents of the rectangle buffer
at the current editing point. The rectangle buffer is not modified.
Any text that the rectangle would overwrite is moved to the right by an
amount that is equal to the width of the rectangle.
SEE ALSO
kill_rect, blank_rect, copy_rect
--------------------------------------------------------------
kill_rect
SYNOPSIS
Delete the rectangle and place a copy in the rectangle buffer
USAGE
Void kill_rect ()
DESCRIPTION
This function deletes the rectangle defined by the mark and the current
point. The contents of the rectangle are saved in the rectangle buffer
for later retrieval via the `insert_rect' function. The previous
contents of the rectangle buffer will be lost.
SEE ALSO
insert_rect, blank_rect, copy_rect
--------------------------------------------------------------
open_rect
SYNOPSIS
Insert a blank rectangle determined by mark and point
USAGE
Void open_rect ()
DESCRIPTION
The `open_rect' function may be used to insert a blank rectangle whose
size is determined by the mark and the current editing point. Any text
that lies in the region of the rectangle will be pushed to the right.
SEE ALSO
insert_rect, kill_rect, copy_rect
--------------------------------------------------------------
KILL_ARRAY_SIZE
SYNOPSIS
The size of the internal kill buffer array
USAGE
Int_Type KILL_ARRAY_SIZE
DESCRIPTION
This variable contains the value of the size of the internal kill
array of character strings. Any number from zero up to but not
including the value of `KILL_ARRAY_SIZE' may be used as an
argument in the functions that manipulate this array.
NOTES
This variable is a read-only varaible and may not available on 16
bit systems.
SEE ALSO
insert_from_kill_array, copy_region_to_kill_array, append_region_to_kill_array
--------------------------------------------------------------
append_region_to_file
SYNOPSIS
Append the region to "file"
USAGE
Integer append_region_to_file (String file)
DESCRIPTION
Appends a marked region to `file' returning number of lines
written or -1 on error. This does NOT modify a buffer visiting the
file; however, it does flag the buffer as being changed on disk.
--------------------------------------------------------------
append_region_to_kill_array
SYNOPSIS
Append the region to the element "n" of the kill array
USAGE
Void append_region_to_kill_array (Integer n)
DESCRIPTION
This function appends the currently defined region to the contents of
nth element, specified by `n', of an internal array of character strings.
Note: This function is not available on 16 bit systems.
SEE ALSO
insert_from_kill_array, copy_region_to_kill_array
SEE ALSO
KILL_ARRAY_SIZE
--------------------------------------------------------------
bufsubstr
SYNOPSIS
Return the region as a string
USAGE
String bufsubstr ()
DESCRIPTION
This function returns a string that contains the characters in the
region specified by a mark and the current editing point.
If the region crosses lines, the string will contain newline
characters.
SEE ALSO
insbuf, push_mark
--------------------------------------------------------------
check_region
SYNOPSIS
Test if a region is defined and ensure the mark comes before point
USAGE
Void check_region (Integer ps)
DESCRIPTION
This function checks to see if a region is defined and may exchange
the current editing point and the mark to define a canonical region.
If the mark is not set, it signals an S-Lang error. A canonical
region is one with the mark set earlier in the buffer than than the
editing point. Always call this if using a region which requires
such a situation.
If the argument `ps' is non-zero, `push_spot' will be called,
otherwise, `ps' is zero and it will not be called.
As an example, the following function counts the number of lines in
a region:
define count_lines_region ()
{
variable n;
check_region (1); % spot pushed
narrow ();
n = what_line ();
widen ();
pop_spot ();
return n;
}
SEE ALSO
markp, push_mark
--------------------------------------------------------------
copy_region
SYNOPSIS
copy a region to the buffer "buf"
USAGE
Void copy_region (String buf)
DESCRIPTION
This function may be used to copy a region defined by a mark and the
current position to the buffered specified by the name `buf'. It does
not delete the characters in region but it does pop the mark that
determines the region.
SEE ALSO
insbuf, bufsubstr, push_mark, pop_mark, bufferp
--------------------------------------------------------------
copy_region_to_kill_array
SYNOPSIS
Copy the defined region to element "n" of the kill array
USAGE
Void copy_region_to_kill_array (Integer n)
DESCRIPTION
This function copies the currently defined region to the nth element,
specified by `n', of an internal array of character strings replacing
what is currently there.
Note: This function is not available on 16 bit systems.
SEE ALSO
insert_from_kill_array, append_region_kill_array
SEE ALSO
KILL_ARRAY_SIZE
--------------------------------------------------------------
count_narrows
SYNOPSIS
Return the narrow depth of the current buffer
USAGE
Integer count_narrows ()
DESCRIPTION
This function returns the narrow depth of the current buffer.
SEE ALSO
narrow, widen, widen_buffer, push_narrow
--------------------------------------------------------------
narrow
SYNOPSIS
Restict editing to the region (complete lines)
USAGE
Void narrow ()
DESCRIPTION
This function may be used to restict editing to the region of lines
between the mark and the editing point. The region includes the line
containing the mark as well as the line at the current point. All
other lines outside this region are completely inacessable without
first lifting the restriction using the `widen' function. As a simple
example, suppose that there is a function called `print_buffer' that
operates on the entire buffer. Then the following function will work
on a region of lines:
define print_region ()
{
narrow ();
print_buffer ();
widen ();
}
The `narrow' function will signal an error if the mark is not set.
Note also that the narrow function may be used recursively in the
sense that a narrowed region may be further restricted using the
`narrow' function. For each narrow, the `widen' function must be called
to lift each restriction.
SEE ALSO
widen, narrow_to_region
--------------------------------------------------------------
narrow_to_region
SYNOPSIS
Restict editing exactly to the region
USAGE
Void narrow_to_region (void)
DESCRIPTION
The `narrow_to_region' function behaves like the `narrow' function
that `narrow' operates on lines and `narrow_to_region' restricts
editing to only characters within the region.
SEE ALSO
widen_region, narrow.
--------------------------------------------------------------
pipe_region
SYNOPSIS
Execute "cmd" as subprocess and sends the region to its stdin
USAGE
Integer pipe_region (String cmd)
DESCRIPTION
The `pipe_region' function executes `cmd' in a separate process and
sends the region of characters defined by the mark and the current
point to the standard input of the process. It successful, it returns
the exit status of the process. Upon failure it signals an error.
Note: This function is only available for Unix and OS/2 systems.
SEE ALSO
run_shell_cmd, push_mark
--------------------------------------------------------------
pop_narrow
SYNOPSIS
restore the last narrow context
USAGE
Void pop_narrow ()
DESCRIPTION
The purpose of this function is to restore the last narrow
context that was saved via `push_narrow'.
SEE ALSO
push_narrow, widen, widen_buffer
--------------------------------------------------------------
push_narrow
SYNOPSIS
Save the current narrow context
USAGE
Void push_narrow ()
DESCRIPTION
This function saves the current narrow context. This is useful when
one wants to restore this context after widening the buffer.
SEE ALSO
pop_narrow, narrow, widen, widen_buffer
--------------------------------------------------------------
translate_region
SYNOPSIS
translate the characters in the region according to "a"
USAGE
Void translate_region (String_Type[256] a)
DESCRIPTION
This function uses the 256 element array of strings to translate the
characters in a region based on the mapping defined by the array.
If an array element is `NULL', then the corresponding character
will not be replaced.
The `translate_region' function leaves the editing point at the
end of the region.
EXAMPLE
variable a = String_Type[256];
a['&'] = "&";
a['<'] = "<";
a['>'] = ">";
a['$'] = "$";
bob (); push_mark (); eob ();
translate_region (a);
uses `translate_region' to replace the characters `'&'',
`'<'', `'>'', and `'$'' by the strings
`"&"', `"<"', `">"', and `"$"',
respectively.
SEE ALSO
insert, delete, what_char, replace
--------------------------------------------------------------
widen
SYNOPSIS
Undo the effect of "narrow"
USAGE
Void widen ()
DESCRIPTION
This function undoes the effect of `narrow'. Consult the documentation
for `narrow' for more information.
SEE ALSO
widen_region, narrow
--------------------------------------------------------------
widen_buffer
SYNOPSIS
Widen the whole buffer
USAGE
Void widen_buffer ()
DESCRIPTION
This function widens the whole buffer. If one intends to restore the
narrow context after calling this function, the narrow context should be
saved via `push_narrow'.
SEE ALSO
narrow, widen, push_narrow, pop_narrow
--------------------------------------------------------------
widen_region
SYNOPSIS
Undo the effect of "narrow_to_region"
USAGE
Void widen_region ()
DESCRIPTION
This function undoes the effect of `narrow_to_region'. Consult the
documentation for `narrow_to_region' for more information.
SEE ALSO
widen, narrow_to_region
--------------------------------------------------------------
write_region_to_file
SYNOPSIS
Write the region to the file "filename"
USAGE
Integer write_region_to_file (String filename)
DESCRIPTION
This function may be used to write a region of the current buffer to
the file specified by `filename'. It returns the number of lines
written to the file or signals an error upon failure.
SEE ALSO
write_buffer, append_region_to_file, push_mark
--------------------------------------------------------------
xform_region
SYNOPSIS
Change the characters in the region according to "how"
USAGE
Void xform_region (Integer how)
DESCRIPTION
This function changes the characters in the region in a way specified
by the parameter `how'. This is an integer that can be any of of the
following:
'u' Upcase_region
'd' Downcase_region
'c' Capitalize region
Anything else will change case of region.
SEE ALSO
translate_region, define_case
--------------------------------------------------------------
CASE_SEARCH
SYNOPSIS
Control the case-sensitivity for searches in the current buffer
USAGE
Int_Type CASE_SEARCH
DESCRIPTION
If the value of `CASE_SEARCH' is non-zero, text searches
performed in the current buffer will be case-sensitive, otherwise
case-insensitive searches will be performed. The value of this
variable may vary from buffer to buffer.
SEE ALSO
CASE_SEARCH_DEFAULT, fsearch, ffind
--------------------------------------------------------------
CASE_SEARCH_DEFAULT
SYNOPSIS
The default CASE_SEARCH setting for newly created buffers
USAGE
Int_Type CASE_SEARCH_DEFAULT
DESCRIPTION
Searches in a buffer are performed according to the value of the
`CASE_SEARCH' variable. Newly created buffers are given a
`CASE_SEARCH' value of `CASE_SEARCH_DEFAULT'. The default
value of `CASE_SEARCH_DEFAULT' is 0.
SEE ALSO
CASE_SEARCH, fsearch, ffind
--------------------------------------------------------------
bfind
SYNOPSIS
Search backward to the beginning of the line
USAGE
Integer bfind (String str)
DESCRIPTION
`bfind' searches backward from the current position to the beginning
of the line for the string `str'. If a match is found, the length of
`str' is returned and the current point is moved to the start of the
match. If no match is found, zero is returned.
Note: This function respects the setting of the `CASE_SEARCH' variable.
SEE ALSO
bsearch, ffind, bol_bsearch, re_bsearch
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
bfind_char
SYNOPSIS
Search backward on the current line for a character
USAGE
Integer fsearch_char (Integer ch)
DESCRIPTION
This function searches backward on the current line for a character
`ch'. If it is found, `1' is returned; otherwise `0' is returned.
SEE ALSO
fsearch_char, ffind_char, fsearch
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
bol_bsearch
SYNOPSIS
Search backward for "str" at the beginning of a line
USAGE
Integer bol_bsearch (str)
DESCRIPTION
`bol_bsearch' searches backward from the current point until the
beginning of the buffer for the occurrences of the string `str' at
the beginning of a line. If a match is found, the length of `str' is
returned and the current point is moved to the start of the match. If
no match is found, zero is returned.
Note: `bol_bsearch' is much faster than using `re_bsearch' to perform
a search that matches the beginning of a line.
SEE ALSO
bol_fsearch, bsearch, bfind, re_bsearch
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
bol_bsearch_char
SYNOPSIS
Search backward for character "ch" at the beginning of a line
USAGE
Integer bol_fsearch_char (Integer ch)
DESCRIPTION
This function searches backward for a character `ch' at the beginning
of a line. If it is found, `1' is returned; otherwise `0' is returned.
SEE ALSO
bol_bsearch, bol_fsearch_char, bsearch_char
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
bol_fsearch
SYNOPSIS
Search forward for "str" at the beginning of a line
USAGE
Integer bol_fsearch (str)
DESCRIPTION
`bol_fsearch' searches forward from the current point until the end
of the buffer for occurrences of the string `str' at the beginning of
a line. If a match is found, the length of `str' is returned and the
current point is moved to the start of the match. If no match is
found, zero is returned.
Note: `bol_fsearch' is much faster than using `re_fsearch' to perform
a search that matches the beginning of a line.
SEE ALSO
bol_bsearch, fsearch, ffind, re_fsearch
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
bol_fsearch_char
SYNOPSIS
Search forward for character "ch" at the beginning of a line
USAGE
Integer bol_fsearch_char (Integer ch)
DESCRIPTION
This function searches forward for a character `ch' at the beginning
of a line. If it is found, `1' is returned; otherwise `0' is returned.
SEE ALSO
bol_fsearch, bol_bsearch_char, fsearch_char
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
bsearch
SYNOPSIS
Search backward for "str"
USAGE
Integer bsearch (String str)
DESCRIPTION
The `bsearch' function searches backward from the current position
for the string `str'. If `str' is found, this function will return
the length of `str' and move the current position to the beginning of
the matched text. If a match is not found, zero will be returned and
the position will not change. It respects the value of the variable
`CASE_SEARCH'.
SEE ALSO
fsearch, bol_bsearch, re_bsearch
--------------------------------------------------------------
bsearch_char
SYNOPSIS
Search backward for a character
USAGE
Integer bsearch_char (Integer ch)
DESCRIPTION
This function searches backward for a character `ch'. If it is
found, `1' is returned; otherwise `0' is returned.
SEE ALSO
fsearch_char, ffind_char, fsearch
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
ffind
SYNOPSIS
Search forward to the end of the line for the string "str"
USAGE
Integer ffind (String s)
DESCRIPTION
`ffind' searches forward from the current position to the end of the
line for the string `str'. If a match is found, the length of `str'
is returned and the current point is moved to the start of the match.
If no match is found, zero is returned.
Note: This function respects the setting of the `CASE_SEARCH' variable.
To perform a search that includes multiple lines, use the `fsearch'
function.
SEE ALSO
fsearch, bfind, re_fsearch, bol_fsearch
--------------------------------------------------------------
ffind_char
SYNOPSIS
Search forward on the current line for character "ch"
USAGE
Integer ffind_char (Integer ch)
DESCRIPTION
This function searches forward on the current line for the character
`ch'. If it is found, `1' is returned; otherwise `0'
is returned.
SEE ALSO
fsearch_char, bfind_char, fsearch
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
find_matching_delimiter
SYNOPSIS
Look for the delimiter that matches "ch"
USAGE
Integer find_matching_delimiter (Integer ch)
DESCRIPTION
This function scans either forward or backward looking for the
delimiter that matches the character specified by `ch'. The actual
direction depends upon the syntax of the character `ch'. The
matching delimiter pair must be declared as such by a prior call to
`define_syntax'. This function returns one of the following values:
1 Match found
0 Match not found
-1 A match was attempted from within a string.
-2 A match was attempted from within a comment
2 No information
In addition, the current point is left either at the match or is left
at the place where the routine either detected a mismatch or gave up.
In the case of a comment or a string (return values of -2 or -1), the
current point is left at the beginning of a comment.
Note: If the of `ch' is zero, the character at the current point will be
used.
SEE ALSO
blink_match, create_syntax_table, define_syntax, parse_to_point
--------------------------------------------------------------
fsearch
SYNOPSIS
Search forward for the string "str"
USAGE
Integer fsearch (String str)
DESCRIPTION
This function may be used to search forward in buffer looking for the
string `str'. If not found, this functions returns zero. However,
if found, the length of the string is returned and the current point
is moved to the to the start of the match. It respects the setting
of the variable `CASE_SEARCH'. If the string that one is searching
for is known to be at the beginning of a line, the function
`bol_fsearch' should be used instead.
Note: This function cannot find a match that crosses lines.
SEE ALSO
ffind, fsearch_char, bsearch, bol_fsearch, re_fsearch, looking_at
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
fsearch_char
SYNOPSIS
Search forward for a character
USAGE
Integer fsearch_char (Integer ch)
DESCRIPTION
This function searches forward for the character `ch'. If it is
found, `1' is returned; otherwise `0' is returned.
SEE ALSO
fsearch, ffind_char, bsearch_char
SEE ALSO
CASE_SEARCH
--------------------------------------------------------------
looking_at
SYNOPSIS
Test if the characters immediately following the point match "s"
USAGE
Integer looking_at (String s)
DESCRIPTION
This function returns non-zero if the characters immediately following
the current editing point match the string specified by `s'. Whether
the match is case-sensitive or not depends upon the value of the
variable `CASE_SEARCH'. The function returns zero if there is no match.
SEE ALSO
ffind, fsearch, re_fsearch, bfind
--------------------------------------------------------------
re_bsearch
SYNOPSIS
Search backward for regular expression "pattern"
USAGE
Integer re_bsearch(String pattern)
DESCRIPTION
Search backward for regular expression `pattern'. This function returns
the 1 + length of the string matched. If no match is found, it returns
0.
SEE ALSO
bsearch, bol_bsearch, re_fsearch
--------------------------------------------------------------
re_fsearch
SYNOPSIS
Search forward for regular expression "pattern"
USAGE
Integer re_fsearch(String pattern)
DESCRIPTION
Search forward for regular expression `pattern'. This function returns
the 1 + length of the string matched. If no match is found, it returns
0.
SEE ALSO
fsearch, bol_fsearch, re_bsearch
--------------------------------------------------------------
regexp_nth_match
SYNOPSIS
Return the nth sub-expression from the last re search
USAGE
String regexp_nth_match (Integer n)
DESCRIPTION
This function returns the nth sub-expression matched by the last regular
expression search. If the parameter `n' is zero, the entire match is
returned.
Note: The value returned by this function is meaningful only if the
editing point has not been moved since the match.
SEE ALSO
re_fsearch, re_bsearch
--------------------------------------------------------------
replace
SYNOPSIS
Replace all occurances of "old" with "new"
USAGE
Void replace(String old, String new)
DESCRIPTION
This function may be used to replace all occurances of the string
`old' with the string, `new', from current editing point to the end
of the buffer. The editing point is returned to the initial location.
That is, this function does not move the editing point.
SEE ALSO
replace_chars, fsearch, re_fsearch, bsearch, ffind, del
SEE ALSO
REPLACE_PRESERVE_CASE
--------------------------------------------------------------
replace_chars
SYNOPSIS
Replace the next "n" characters with another string
USAGE
Int_Type replace_chars (Int_Type n, String_Type new)
DESCRIPTION
This function may be used to replace the next `n' characters at the
editing position by the string `new'. After the replacement, the editing
point will be moved to the end of the inserted string. The length of
the replacement string `new' is returned.
SEE ALSO
fsearch, re_fsearch, bsearch, ffind, del
SEE ALSO
REPLACE_PRESERVE_CASE
--------------------------------------------------------------
replace_match
SYNOPSIS
Replace text previously matched with "re_fsearch" or "re_bsearch"
USAGE
Int_Type replace_match(String_Type str, Int_Type method)
DESCRIPTION
This function replaces text previously matched with `re_fsearch'
or `re_bsearch' at the current editing point with string
`str'. If `method' is zero, `str' is a specially formatted
string of the form described below. If `method' is non-zero,
`str' is regarded as a simple string and is used literally. If
the replacement fails, this function returns zero otherwise, it
returns a non-zero value.
NOTES
This function should be used at the position of the corresponding
match and nowhere else.
--------------------------------------------------------------
search_file
SYNOPSIS
Regular expression search for strings in a disk file
USAGE
Integer search_file (String filename, String re, Integer nmax)
DESCRIPTION
This function may be used to search for strings in a disk file
matching the regular expression `re'. The first argument `filename'
specifies which file to search. The last argument `nmax' specifies
how many matches to return. Each line that is matched is pushed onto
the S-Lang stack. The number of matches (limited by `nmax') is returned.
If the file contains no matches, zero is returned.
--------------------------------------------------------------
create_syntax_table
SYNOPSIS
Create a new syntax table "name"
USAGE
Void create_syntax_table (String name);
DESCRIPTION
This the purpose of this function is to create a new syntax table
with the name specified by `name'. If the table already exists,
this clears the table of its current syntax entries.
SEE ALSO
define_syntax, use_syntax_table, define_keywords, what_syntax_table
--------------------------------------------------------------
define_keywords_n
SYNOPSIS
Define a set of keywords
USAGE
String define_keywords_n (String table, String kws, Integer len, Integer N);
DESCRIPTION
This function is used to define a set of keywords for the syntax
table `table' to be color syntax highlighted in the
`"keywordN"' color, The first parameter, `table', specifies which
syntax table is to be used for the definition. The second parameter,
`kws', is a string that is the concatenation of keywords of length
specified by the last parameter `len'. The list of keywords specified
by `kws' must be in alphabetic order. The function returns the
previous list of keywords of length `len'. For example, C mode uses
the statement
() = define_keywords_n ("C", "asmforintnewtry", 3, 0);
to define the four three-letter keywords `asm', `for',
`int', `new', and `try' to be given the
`"keyword0"' color. Note that in the above example, the return
value is not used.
SEE ALSO
define_syntax, set_color
SEE ALSO
WANT_SYNTAX_HIGHLIGHT,USE_ANSI_COLORS
--------------------------------------------------------------
define_syntax
SYNOPSIS
Add a syntax entry to the table "name"
USAGE
Void define_syntax (..., Integer type, String name);
DESCRIPTION
This function adds a syntax entry to the table specified by the last
parameter `name'. The actual number of parameters vary according to
the next to the last parameter `type'.
If `type' is `'"'' or `'\''', a string or character delimiter syntax is
defined. In this case, `define_syntax' only takes three parameters
where the first parameter is an integer that represents the character
for which the syntax is to be applied.
Similarly, if `type' is `'\\'', then a quote syntax is defined and
again `define_syntax' only takes three parameters where the first
parameter is an integer that represents the character for which the
syntax is to be applied. A quote character is one in which the
syntax of the following character is not treated as special.
If `type' is `'('', then `define_syntax' takes four parameters where
the first two parameters are strings that represent a matching set of
delimiters. The first string contains the set of opening delimiters
and the second string specifies the set of closing delimiters that
match the first set. If a character from the closing set is entered
into the buffer, the corresponding delimiter from the opening set
will be blinked. For example, if the C language syntax table is
called `"C"', then one would use
define_syntax ("([{", ")]}", '(', "C");
to declare the matching delimiter set. Note that the order of the
characters in the two strings must correspond. That is, the above
example says that `'('' matches `')'' and so on.
If `type' is `'%'', a comment syntax is defined. As in the
previous case, `define_syntax' takes four parameters where there
first two parameters are strings that represent the begin and end
comment delimiters. If the comment syntax is such that the comment
ends at the end of a line, the second string must either be the
empty string, `""', or a newline `"\n"'. The current
implementation supports at most two such types of comments.
If `type' is `'+'', the first parameter is a string whose characters
are given the operator syntax. If type is `','', the first parameter
is a string composed of characters that are condered to be
delimiters. If type is '0', the first parameter is a string composed
of characters that make up a number.
If `type' is `<', the first parameter is a string whose successive
characters form begin and end keyword highlight directives.
Finally, if `type' is `'#'', the first parameter is an integer whose
value corresponds to the character used to begin preprocessor lines.
As an example, imagine a language in which the dollar sign character
`$' is used as a string delimiter, the backward quote character ``'
is used as a quote character, comments begin with a semi-colon and
end at the end of a line, and the characters `'<'' and `'>'' form
matching delimiters. The one might use
create_syntax_table ("strange");
define_syntax ('$', '"', "strange");
define_syntax ('`', '\\', "strange");
define_syntax (";", "", '%', "strange");
define_syntax ("<", ">", '(', "strange");
to create a syntax table called `"strange"' and define the
syntax entries for appropriate this example.
SEE ALSO
create_syntax_table, use_syntax_table, find_matching_delimiter
SEE ALSO
BLINK
--------------------------------------------------------------
dfa_build_highlight_table
SYNOPSIS
Build a DFA table for the syntax table "n"
USAGE
Void dfa_build_highlight_table (String n);
DESCRIPTION
This function builds a DFA table for the enhanced syntax
highlighting scheme specified for the syntax table specified
by the name `n'. This must be called before any syntax
highlighting will be done for that syntax table.
SEE ALSO
create_syntax_table, use_syntax_table, dfa_define_highlight_rule, dfa_enable_highlight_cache
SEE ALSO
WANT_SYNTAX_HIGHLIGHT,USE_ANSI_COLORS
--------------------------------------------------------------
dfa_define_highlight_rule
SYNOPSIS
Add an DFA rule to the syntax table "n"
USAGE
Void dfa_define_highlight_rule (String rule, String color, String n);
DESCRIPTION
This function adds an enhanced highlighting rule to the
syntax table specified by the name `n'. The rule is described
as a regular expression by the string `rule', and the
associated color is given by the string `color', in the same
format as is passed to `set_color'. For example:
create_syntax_table ("demo");
dfa_define_highlight_rule ("[A-Za-z][A-Za-z0-9]*", "keyword", "demo");
dfa_define_highlight_rule ("//.*$", "comment", "demo");
dfa_build_highlight_table ("demo");
causes a syntax table to be defined in which any string of
alphanumeric characters beginning with an alphabetic is
highlighted in keyword color, and anything after "//" on a
line is highlighted in comment color.
The regular expression syntax understands character classes
like `[a-z]' and `[^a-z0-9]', parentheses, `+', `*', `?', `|'
and `.'. Any metacharacter can be escaped using a backslash
so that it can be used as a normal character, but beware that
due to the syntax of S-Lang strings the backslash has to be
doubled when specified as a string constant. For example:
dfa_define_highlight_rule ("^[ \t]*\\*+[ \t].*$", "comment", "C");
defines any line beginning with optional whitespace, then one
or more asterisks, then more whitespace to be a comment. Note
the doubled backslash before the `*'.
Note also that `dfa_build_highlight_table' must be called before
the syntax highlighting can take effect.
SEE ALSO
create_syntax_table, use_syntax_table, dfa_build_highlight_table
SEE ALSO
WANT_SYNTAX_HIGHLIGHT,USE_ANSI_COLORS
--------------------------------------------------------------
dfa_enable_highlight_cache
SYNOPSIS
Enable caching of the DFA table
USAGE
Void dfa_enable_highlight_cache (String file, String n);
DESCRIPTION
This function enables caching of the DFA table for the
enhanced syntax highlighting scheme belonging to the syntax
table specified by the name `n'. This should be called before
any calls to `dfa_define_highlight_rule' or to
`dfa_build_highlight_table'. The parameter `file'
specifies the name of the file (stored in the directory set by the
`set_highlight_cache_dir' function) which should be used as a cache.
For example, in `cmode.sl' one might write
dfa_enable_highlight_cache ("cmode.dfa", "C");
to enable caching of the DFA. If caching were not enabled for
C mode, the DFA would take possibly a couple of seconds to
compute every time Jed was started.
Transferring cache files between different computers is
theoretically possible but not recommended. Transferring them
between different versions of Jed is not guaranteed to work.
SEE ALSO
create_syntax_table, use_syntax_table, dfa_define_highlight_rule, dfa_build_highlight_table
SEE ALSO
WANT_SYNTAX_HIGHLIGHT,USE_ANSI_COLORS
--------------------------------------------------------------
dfa_set_init_callback
SYNOPSIS
Set a callback to initialize a DFA syntax table
USAGE
Void dfa_set_init_callback (Ref_Type func, String_Type tbl)
DESCRIPTION
This function defines a callback function `func' that will be
used to build a DFA syntax table for the syntax table `tbl'.
When the `use_dfa_syntax' function is called to enable syntax
highlighting, the callback function `func' will be called to to
create the specified syntax table if it does not already exist.
SEE ALSO
create_syntax_table, use_syntax_table, dfa_define_highlight_rule, dfa_enable_highlight_cache
SEE ALSO
WANT_SYNTAX_HIGHLIGHT,USE_ANSI_COLORS
--------------------------------------------------------------
parse_to_point
SYNOPSIS
Attempt to determine the syntactic context of the point
USAGE
Integer parse_to_point ();
DESCRIPTION
This function attempts to determine the syntactic context of the
current editing point. That is, it tries to determine whether or not
the current point is in a comment, a string, or elsewhere.
It returns:
-2 In a comment
-1 In a string or a character
0 Neither of the above
Note: This routine is rather simplistic since it makes the assumption
that the character at the beginning of the current line is not in a
comment nor is in a string.
SEE ALSO
define_syntax, find_matching_delimiter
--------------------------------------------------------------
set_fortran_comment_chars
SYNOPSIS
Specify characters for fortran-like comments
USAGE
Void set_fortran_comment_chars (String_Type table, String_Type list
DESCRIPTION
This function may be used to specify the set of characters that
denote fortran style comments. The first parameter `table' is
the name of a previously defined syntax table, and `list'
denotes the set of characters that specify the fortran-style
comment.
The string `list' is simply a set of characters and may include
character ranges. If the first character of `list' is
`'^'', then the meaning is that only those characters that do
not specify fortran sytle comments are included in the list.
EXAMPLE
Fortran mode uses the following:
set_fortran_comment_chars ("FORTRAN", "^0-9 \t\n");
This means that if any line that begins with any character
except the characters `0' to `9', the space, tab, and
newline characters will denote a comment.
NOTES
The usefulness of this function is not limited to fortran modes. In
fact, many languages have fortran-style comments.
This function is meaningful only if the syntax table has
fortran-style comments as specified via the `set_syntax_flags'
function.
SEE ALSO
define_syntax, set_syntax_flags
--------------------------------------------------------------
set_highlight_cache_dir
SYNOPSIS
Set the directory for the dfa syntax highlighting cache files
USAGE
Void set_highlight_cache_dir (String dir);
DESCRIPTION
This function sets the directory where the dfa syntax highlighting
cache files are located.
See also: `dfa_enable_highlight_cache'
--------------------------------------------------------------
set_syntax_flags
SYNOPSIS
Set the flags in the syntax table "table"
USAGE
Void set_syntax_flags (String table, Integer flag);
DESCRIPTION
This function may be used to set the flags in the syntax table
specified by the `table' parameter. The `flag' parameter may take
any of the following values or any combination bitwise or-ed together:
0x01 Keywords are case insensitive
0x02 Comments are Fortran-like
0x04 Ignore leading whitespace in C comments
0x08 Keywords are TeX-like
0x10 EOL style comments must be surrounded by whitespace.
0x20 Syntax highlight whole preprocessor line in same color.
0x40 Leading whitespace allowed for preprocessor lines.
0x80 Strings do not span lines
A Fortran-like comment means that any line that begins with certain
specified characters is considered to be a comment. This special
subset of characters must be specified via a call to the
`set_fortran_comment_chars' function.
If the `0x04' bit is set, then whitespace at the beginning of a
line in a C comment preceeding a `'*'' character will not be
highlighted.
A TeX-like keyword is any word that follows the quote character.
An EOL style comment is one that ends at the end of the line.
SEE ALSO
define_syntax, set_fortran_comment_chars
--------------------------------------------------------------
use_dfa_syntax
SYNOPSIS
Turn on/off DFA syntax highlighting for the current mode
USAGE
use_syntax_table (Int_Type on_off)
DESCRIPTION
This function may be used to turn on or off DFA syntax highlighting
for the current mode according to whether or not the `on_off'
parameter is non-zero. The most useful way of using this function
is from within a mode hook.
EXAMPLE
The following example illustrates how to use this function to enable
DFA syntax highlighting for C mode:
define c_mode_hook ()
{
use_dfa_syntax (1);
}
SEE ALSO
enable_dfa_syntax_for_mode, disable_dfa_syntax_for_mode
--------------------------------------------------------------
use_syntax_table
SYNOPSIS
Associate the current buffer with the syntax table "n"
USAGE
Void use_syntax_table (String n);
DESCRIPTION
This function associates the current buffer with the syntax table
specified by the name `n'. Until another syntax table is associated
with the buffer, the syntax table named `n' will be used in all
operations that require a syntax. This includes parenthesis matching,
indentation, etc.
SEE ALSO
create_syntax_table, define_syntax
--------------------------------------------------------------
what_syntax_table
SYNOPSIS
Get the name of the active syntax table
USAGE
String_Type what_syntax_table ()
DESCRIPTION
This function returns of the name of the syntax table used by the
current buffer. If no table is in effect it returns NULL.
SEE ALSO
define_syntax, use_syntax_table, define_keywords
--------------------------------------------------------------
CHEAP_VIDEO
SYNOPSIS
Control flicker on old video cards
USAGE
Int_Type CHEAP_VIDEO
DESCRIPTION
Some old video cards for MSDOS systems, most notably the CGA card,
display snow when updating the card. This variable should be set to
1 to avoid the presence of snow when used with such a card.
NOTES
This variable is not available on all systems.
SEE ALSO
SCREEN_WIDTH, SCREEN_HEIGHT
--------------------------------------------------------------
IGNORE_BEEP
SYNOPSIS
Control beeping of the terminal
USAGE
Int_Type IGNORE_BEEP
DESCRIPTION
This variable determines how the terminal is to be beeped. It may
be any one of the following values:
0 Do not beep the terminal in any way.
1 Produce an audible beep only.
2 Produce an visible beep only by flashing the display.
3 Produce both audible and visible bells.
NOTES
Not all terminals support visible bells.
SEE ALSO
beep
--------------------------------------------------------------
SCREEN_HEIGHT
SYNOPSIS
Number of display rows
USAGE
Int_Type SCREEN_HEIGHT
DESCRIPTION
This is a read-only variable whose value represents the number of
rows of the display or terminal.
SEE ALSO
SCREEN_WIDTH, window_info
--------------------------------------------------------------
SCREEN_WIDTH
SYNOPSIS
Number of display columns
USAGE
Int_Type SCREEN_WIDTH
DESCRIPTION
This is a read-only variable whose value represents the number of
columns of the display or terminal.
SEE ALSO
SCREEN_HEIGHT, window_info
--------------------------------------------------------------
TERM_BLINK_MODE
SYNOPSIS
Enable the use of high intensity background colors
USAGE
Int_Type TERM_BLINK_MODE
DESCRIPTION
If the value of this variable is non-zero, jed will interpret
high-intensity background colors as blinking characters. On some
terminals, e.g., `rxvt', the blink bit will be mapped to an
actual high intensity background color.
NOTES
This variable is not available on all systems.
SEE ALSO
--------------------------------------------------------------
TERM_CANNOT_INSERT
SYNOPSIS
Control the use of terminal insertion
USAGE
Int_Type TERM_CANNOT_INSERT
DESCRIPTION
The value of this variable indicates whether or not the terminal is
able to insert. Do disable the use of the insertion capability, set
the value of this variable to 0.
NOTES
This variable is not available on all systems. It is a good idea
not to set this variable.
SEE ALSO
TERM_CANNOT_SCROLL
--------------------------------------------------------------
TERM_CANNOT_SCROLL
SYNOPSIS
Control the use of the terminal's scrolling capability
USAGE
Int_Type TERM_CANNOT_SCROLL
DESCRIPTION
If this variable is set to 0, the hardware scrolling capability of
the terminal will not be used. This also means that the window will
be recentered if the cursor moves outside the top or bottom rows of
the window.
NOTES
This variable is not available on all systems.
SEE ALSO
TERM_CANNOT_INSERT
--------------------------------------------------------------
USE_ANSI_COLORS
SYNOPSIS
Enable the use of colors
USAGE
Int_Type USE_ANSI_COLORS
DESCRIPTION
The variable `USE_ANSI_COLORS' may be used to enable or disable
color support. If set to a non-zero value, the terminal will be
assumed to support ANSI colors. This value of this variable is
initially determined by examining the terminal's terminfo file, or
by looking for the existence of a `COLORTERM' environment
variable.
NOTES
This variable is not available on all platforms.
SEE ALSO
HIGHLIGHT
--------------------------------------------------------------
get_termcap_string
SYNOPSIS
Return the keystring associated with the termcap capability "cap"
USAGE
String get_termcap_string (String cap);
DESCRIPTION
This function may be used to extract the string associated with the
termcap capability associated with `cap'.
Note: This function is only available on Unix systems.
--------------------------------------------------------------
set_term_vtxxx
SYNOPSIS
Set terminal display appropriate for a vtxxx terminal
DESCRIPTION
Set terminal display appropriate for a vtxxx terminal. This function
takes a single integer parameter. If non-zero, the terminal type is set
for a vt100. This means the terminal lacks the ability to insert/delete
lines and characters. If the parameter is zero, the terminal is assumed
to be vt102 compatable. Unless you are using a VERY old terminal or
a primitive emulator, use zero as the parameter.
--------------------------------------------------------------
get_hostname
SYNOPSIS
Get the name of the host computer
USAGE
String_Type get_hostname ()
DESCRIPTION
The `get_hostname' function returns the name of the host
computer. If the editor is unable to determine the name, and the
user has not specified a name, then `"localhost"' is returned.
SEE ALSO
set_hostname, get_realname, get_username
--------------------------------------------------------------
get_realname
SYNOPSIS
Get the user's real name
USAGE
String_Type get_realname
DESCRIPTION
The `get_realname' returns the user's real name. If the editor
is unable to determine this value, an empty string is returned.
SEE ALSO
set_realname, get_username, get_hostname
--------------------------------------------------------------
get_username
SYNOPSIS
Get the username
USAGE
String_Type get_username ()
DESCRIPTION
The `get_username' function returns the username associated with
the current process. If is is unable to determine this value,
`"unknown"' will be returned.
SEE ALSO
set_username, get_realname, get_hostname
--------------------------------------------------------------
set_hostname
SYNOPSIS
Set the name of the host
USAGE
set_hostname (String_Type hostname)
DESCRIPTION
`set_hostname' may be used to set set the name of the host that
the editor will associate with the current process.
SEE ALSO
get_hostname, set_username, set_realname
--------------------------------------------------------------
set_realname
SYNOPSIS
Set the user's realname
USAGE
set_realname (String_Type realname)
DESCRIPTION
The `set_realname' function sets the editor's notion of what the
user's real name is such that subsequent calls to `get_realname'
will return the specified value.
SEE ALSO
get_realname, get_username, set_username, set_hostname
--------------------------------------------------------------
set_username
SYNOPSIS
Set the username of the editor process
USAGE
set_username (String_Type username)
DESCRIPTION
This function may be used to specify the username associated with the
editor process.
SEE ALSO
get_username, set_realname, set_hostname
--------------------------------------------------------------
BLINK
SYNOPSIS
Set whether or not parentheses will be blinked
USAGE
Int_Type BLINK
DESCRIPTION
The `BLINK' variable controls whether or not matching
parenthesis are blinked upon the insertion of a closing parenthesis.
If its value is non-zero, the matching parenthesis will be blinked;
otherwise, it will not.
--------------------------------------------------------------
DISPLAY_EIGHT_BIT
SYNOPSIS
Set the display mode for eight-bit characters
USAGE
Int_Type DISPLAY_EIGHT_BIT
DESCRIPTION
This variable determines how characters with the high bit set are to
be displayed. Specifically, any character whose value is greater than
or equal to the value of `DISPLAY_EIGHT_BIT' is output to the terminal
as is. Characters with the high bit set but less than this value are
sent to the terminal in a multiple character representation. For Unix
and VMS systems the value should be set to 160. This is because many
terminals use the characters with values between 128 and 160 as eight
bit control characters. For other systems, it can be set to zero.
SEE ALSO
META_CHAR
--------------------------------------------------------------
DISPLAY_TIME
SYNOPSIS
Control the display of the current time
USAGE
Int_Type DISPLAY_TIME
DESCRIPTION
If this variable is non-zero, the current time will be displayed on the
status line if the format for the status line permits it. If it is zero,
the time will not be displayed even if the `%t' format string is part
of the status line format.
SEE ALSO
set_status_line
--------------------------------------------------------------
DOLLAR_CHARACTER
SYNOPSIS
The line continuation character
USAGE
Int_Type DOLLAR_CHARACTER = '$'
DESCRIPTION
The character represented by `DOLLAR_CHARACTER' is used to
indicate that text extends beyond the borders of the window. This
character is traditionally a dollar sign. If the value of
`DOLLAR_CHARACTER' is 0, no character will be used for this
indicator.
SEE ALSO
set_color
--------------------------------------------------------------
HIGHLIGHT
SYNOPSIS
Turn on/off region highlighting
USAGE
Int_Type HIGHLIGHT
DESCRIPTION
If this variable is non-zero, marked regions will be highlighted.
SEE ALSO
WANT_SYNTAX_HIGHLIGHT, set_color
--------------------------------------------------------------
HORIZONTAL_PAN
SYNOPSIS
Set the horizontal panning mode
USAGE
Int_Type HORIZONTAL_PAN
DESCRIPTION
If the value of this variable is non-zero, the window wil pan when
the cursor goes outside the border of the window. More precisely,
if the value is less than zero, the entire window will pan. If the
value is positive, only the current line will pan. The
absolute value of the number determines the panning increment.
SEE ALSO
SCREEN_WIDTH
--------------------------------------------------------------
LINENUMBERS
SYNOPSIS
Enable the display of line or column numbers
USAGE
Int_Type LINENUMBERS
DESCRIPTION
The `LINENUMBERS' variable determines whether or not line or
column numbers will be displayed on the status line. If the value
of `LINENUMBERS' is 0, then neither the line nor column number
information will be displayed. If `LINENUMBERS' is set to 1,
then the current line number will be displayed but column numbers
will not be. If `LINENUMBERS' is 2, the both line a column
numbers will be displayed.
SEE ALSO
set_status_line
--------------------------------------------------------------
Simulate_Graphic_Chars
SYNOPSIS
Specifies whether or not graphic characters are to be used
USAGE
Int_Type Simulate_Graphic_Chars
DESCRIPTION
If the value of this variable is non-zero, graphic characters will
be simulated by simple ascii characters instead of trying to use the
terminal's alternate character set.
NOTES
This variable is not available on all platforms.
--------------------------------------------------------------
Status_Line_String
SYNOPSIS
The string used for the status line
USAGE
String_Type Status_Line_String
DESCRIPTION
`Status_Line_String' is a read-only string variable that
specifies the format of the status line for newly created buffers.
To set the status line format, use the function `set_status_line'.
SEE ALSO
set_status_line
--------------------------------------------------------------
TAB
SYNOPSIS
Set the current buffer TAB width
USAGE
Int_Type TAB
DESCRIPTION
This variable controls the tab width associated with the current
buffer. A value of zero means that tab characters are not expanded
and that tabs are never used to produce whitespace.
SEE ALSO
TAB_DEFAULT, USE_TABS
--------------------------------------------------------------
TAB_DEFAULT
SYNOPSIS
Set the default tab width
USAGE
Int_Type TAB_DEFAULT
DESCRIPTION
The value of `TAB_DEFAULT' is the default tab setting given to
all newly created buffers. A value of zero means that tab characters
are not expanded and that tabs are never used to produce whitespace.
NOTES
A related variable `TAB' may be used to change the current
buffer's tab setting.
SEE ALSO
TAB, USE_TABS, TAB_DEFAULT
--------------------------------------------------------------
TOP_WINDOW_ROW
SYNOPSIS
Top window's starting row
USAGE
Int_Type
DESCRIPTION
This read-only variable gives the value of the starting row of the top
window. If a menubar is present, the value will be 2, otherwise it
will be 1.
SEE ALSO
enable_top_status_line, window_info
--------------------------------------------------------------
WANT_EOB
SYNOPSIS
Control the display of the end of buffer indicator
USAGE
Int_Type
DESCRIPTION
If this value of this variable is non-zero, the end of buffer
indicator `"[EOB]"' will be displayed at the end of the buffer. Such
an indicator is used for various editor emulations such as the
VAX/VMS EDT editor.
--------------------------------------------------------------
WANT_SYNTAX_HIGHLIGHT
SYNOPSIS
Enable or disable syntax highlighting
USAGE
Int_Type WANT_SYNTAX_HIGHLIGHT
DESCRIPTION
If the value of this variable is non-zero, syntax highlighting will
be enabled. Otherwise, syntax highlighting will be turned off.
SEE ALSO
HIGHLIGHT, set_color
--------------------------------------------------------------
blink_match
SYNOPSIS
Blink the matching delimiter
USAGE
Void blink_match ();
DESCRIPTION
This function will attempt to blink the matching delimiter immediately
before the editing point.
SEE ALSO
find_matching_delimiter, define_syntax
--------------------------------------------------------------
enlargewin
SYNOPSIS
Increase the size of the current window
USAGE
Void enlargewin ()
DESCRIPTION
This function increases the size of the current window by one line by
adjusting the size of the other windows accordingly.
SEE ALSO
window_info, onewindow
--------------------------------------------------------------
nwindows
SYNOPSIS
Return the number of windows currently visible
USAGE
Integer nwindows ();
DESCRIPTION
The `nwindows' function returns the number of windows currently visible.
If the variable `MINIBUFFER_ACTIVE' is non-zero, the minibuffer is busy and
contributes to the number of windows.
SEE ALSO
splitwindow, onewindow, window_size
SEE ALSO
MINIBUFFER_ACTIVE
--------------------------------------------------------------
onewindow
SYNOPSIS
Make current window the only one
USAGE
Void onewindow ();
DESCRIPTION
This function deletes all other windows except the current window and
the mini-buffer window.
SEE ALSO
nwindows, splitwindow, enlargewin
SEE ALSO
MINIBUFFER_ACTIVE
--------------------------------------------------------------
otherwindow
SYNOPSIS
Make the next window the default window
USAGE
Void otherwindow ()
DESCRIPTION
This function will make the next window in the ring of windows as the
default window. For example,
define zoom_next_window ()
{
otherwindow (); onewindow ();
}
defines a function that moves to the next window and then makes it the
only window on the screen.
SEE ALSO
nwindows, onewindow
SEE ALSO
MINIBUFFER_ACTIVE
--------------------------------------------------------------
recenter
SYNOPSIS
Scroll the window to make the "nth" line contain the current line
USAGE
Void recenter (Integer nth);
DESCRIPTION
This function may be used to scroll the window such that the `nth' line
of the window contains the current line. If `nth' is zero, the current
line will be placed at the center of the window and the screen will be
completely redrawn.
SEE ALSO
nwindows, window_info
--------------------------------------------------------------
set_status_line
SYNOPSIS
Customize the status line of the current window
USAGE
set_status_line (String format, Integer flag)
DESCRIPTION
This function may be used to customize the status line of the current
window according to the string `format'. If the second parameter
`flag' is non-zero, `format' will apply to the global format string;
otherwise it applies to current buffer only. Newly created buffer
inherit the global format string when they appear in a window.
The format string may contain the following format specifiers:
%b buffer name
%f file name (without the directory part)
%F file name with directory
%v JED version
%t current time --- only used if variable DISPLAY_TIME is non-zero
%p line number or percent string. If LINENUMBERS is 2, this
expands to "line number,column number"
%c column number
%% literal '%' character
%m mode string
%a If abbrev mode, expands to "abbrev"
%n If buffer is narrowed, expands to "Narrow"
%o If overwrite mode, expands to "Ovwrt"
%O Overwrite/Insert flag - like %o, but shows INS/OVR
%l Shows current line number
%L Shows number of lines in the file
For example, the default status line used by JED's EDT emulation uses
the format string:
"(Jed %v) EDT: %b (%m%a%n%o) %p,%c Advance %t"
SEE ALSO
set_mode, narrow, whatbuf, getbuf_info
SEE ALSO
DISPLAY_TIME,LINENUMBERS, Global_Top_Status_Line, Status_Line_String
--------------------------------------------------------------
splitwindow
SYNOPSIS
Split the current window vertically
USAGE
Void splitwindow ();
DESCRIPTION
This function splits the current window vertically creating another
window that carries the current window's buffer.
SEE ALSO
onewindow, enlargewin, window_info
--------------------------------------------------------------
update
SYNOPSIS
Update the display
USAGE
Void update (Integer f);
DESCRIPTION
This function may be called to update the display. If the parameter
`f' is non-zero, the display will be updated even if there is input
pending. If `f' is zero, the display may only be partially updated if
input is pending.
SEE ALSO
input_pending, flush
--------------------------------------------------------------
update_sans_update_hook
SYNOPSIS
Update the display without running the update hooks
USAGE
update_sans_update_hook (Int_Type force)
DESCRIPTION
The `update_sans_update_hook' function performs the same
function as `update', except that the buffer's update hook will
not be run. See `update' for more information.
SEE ALSO
update, set_buffer_hook, unset_buffer_hook
--------------------------------------------------------------
w132
SYNOPSIS
Set the number of columns on a vtxxx compatable terminal to 132.
USAGE
Void w132 ()
DESCRIPTION
This function may be used to set the number of columns on a vtxxx
compatable terminal to 132.
SEE ALSO
w80, set_term_vtxxx
--------------------------------------------------------------
w80
SYNOPSIS
Set the number of columns on a vtxxx compatable terminal to 80
USAGE
Void w80 ()
DESCRIPTION
This function may be used to set the number of columns on a vtxxx
compatable terminal to 80.
SEE ALSO
w132, set_term_vtxxx
--------------------------------------------------------------
window_info
SYNOPSIS
Return information concerning the current window
USAGE
Integer window_info(Integer item);
DESCRIPTION
The `window_info' function returns information concerning the current
window. The actual information that is returned depends on the `item'
parameter. Acceptable values of `item' and the description of the
information returned is given in the following table:
'r' : Number of rows
'w' : Width of window
'c' : Starting column (from 1)
't' : Screen line of top line of window (from 1)
SEE ALSO
otherwindow, nwindows
SEE ALSO
SCREEN_HEIGHT,SCREEN_WIDTH
--------------------------------------------------------------
window_line
SYNOPSIS
Return the number of rows from the top of the window
USAGE
Integer window_line ();
DESCRIPTION
This function returns the number of rows from the top of the current
window for the current line. If the current line is the very first line
in the window, a value of `1' will be returned, i.e., it is the first
line of the window.
SEE ALSO
window_info, nwindows
SEE ALSO
TOP_WINDOW_ROW
--------------------------------------------------------------
get_scroll_column
SYNOPSIS
Get the scroll column for the current window
USAGE
Int_Type get_scroll_column ()
DESCRIPTION
This function returns the scroll column for the current window.
SEE ALSO
set_scroll_column
--------------------------------------------------------------
set_scroll_column
SYNOPSIS
Set the scroll column for the current window
USAGE
set_scroll_column (Int_Type col)
DESCRIPTION
This function may be used to set the scroll column of the current
window.
SEE ALSO
get_scroll_column
--------------------------------------------------------------
x_copy_region_to_cutbuffer
SYNOPSIS
Copy the region to the X cutbuffer
USAGE
x_copy_region_to_cutbuffer ()
DESCRIPTION
places a copy of the region to the X cutbuffer for insertion in other
X-window programs. In wjed the region is copies to the clipboard.
SEE ALSO
x_copy_region_to_selection
--------------------------------------------------------------
x_copy_region_to_selection
SYNOPSIS
Copy the region to the X selection
USAGE
x_copy_region_to_selection ()
DESCRIPTION
places a copy of the region to the X selection for insertion in other
X-window programs. This function is only available in xjed.
SEE ALSO
x_copy_region_to_cutbuffer
--------------------------------------------------------------
x_insert_cutbuffer
SYNOPSIS
Insert the content of the X cutbuffer
USAGE
Int_Type x_insert_cutbuffer ()
DESCRIPTION
Inserts cutbuffer (in wjed the clipboard) into the current buffer and
returns the number of characters inserted.
SEE ALSO
--------------------------------------------------------------
x_insert_selection
SYNOPSIS
Insert data from the X selection owner
USAGE
Int_Type x_insert_selection ()
DESCRIPTION
This function only requests selection data from the selection owner.
If Xjed received EVENT, Xjed inserts selection data into the current buffer
and returns the number of characters inserted.
SEE ALSO
--------------------------------------------------------------
x_server_vendor
SYNOPSIS
Return the vendor name of the X server
USAGE
String_Type x_server_vendor ()
DESCRIPTION
This function returns the vendor name of the X server.
SEE ALSO
--------------------------------------------------------------
x_set_icon_name
SYNOPSIS
Set the icon do display in X windows (xjed only)
USAGE
x_set_icon_name (String_Type name)
DESCRIPTION
SEE ALSO
--------------------------------------------------------------
x_set_keysym
SYNOPSIS
Associate a string with a key
USAGE
x_set_keysym (Int_Type keysym, Int_Type shift, String_Type str)
DESCRIPTION
This function may be used to assocate a string `str' with a key
`keysym' modified by mask `shift'. Pressing the key
associated with `keysym' will then generate the keysequence
given by `str'. The function keys are mapped to integers in the
range `0xFF00' to `0xFFFF'. On most systems, the keys that
these mappings refer to are located in the file
`/usr/include/X11/keysymdef.h'. For example, on my system, the
keysyms for the function keys `XK_F1' to `XK_F35' fall in
the range `0xFFBE' to `0xFFE0'. So to make the `F1'
key correspond to the string given by the two characters
`Ctrl-X' `Ctrl-C', simply use:
x_set_keysym (0xFFBE, 0, "^X^C");
The `shift' argument is an integer with the
following meanings:
0 : unmodified key
'$' : shifted
'^' : control
Any other value for shift will default to 0 (unshifted).
SEE ALSO
x_set_meta_keys
--------------------------------------------------------------
x_set_meta_keys
SYNOPSIS
Specify which modifier keys are to be interpreteted as meta keys
USAGE
x_set_meta_keys (Int_Type mod_mask)
DESCRIPTION
The `x_set_meta_keys' function allows the user to specify which
modifier keys are to be interpreteted as meta keys. The parameter
`mod_mask' is a bitmapped value whose bits correspond to a
modifier mask:
0: Mod1Mask
1: Mod2Mask
2: Mod3Mask
3: Mod4Mask
4: Mod5Mask
EXAMPLE
x_set_meta_keys ((1<<0) | (1<<3));
specifies that meta keys are to be associated with Mod1Mask and
Mod4Mask.
SEE ALSO
x_set_keysym
--------------------------------------------------------------
x_toggle_visibility
SYNOPSIS
Shows or hides the window
USAGE
x_toggle_visibility([Integer_Type hide])
DESCRIPTION
Makes the window visible or invisible. If the argument `hide' is
not given, the visility of the windows is toggled, e.g. if the window
is invisible it becomes visible and vice versa. If the optional
argument `hide' is given the state to the window becomes visible
if `hide' is non-zero or invisible if `hide' is zero,
independent of the current state.
NOTES
You can also hide the window by calling `suspend', but you can not show
it, if the window doesn't have the focus.
SEE ALSO
suspend
--------------------------------------------------------------
x_set_window_name
SYNOPSIS
Set the title of the xjed window
USAGE
x_set_window_name (String_Type name)
--------------------------------------------------------------
x_warp_pointer
SYNOPSIS
warp pointer
USAGE
DESCRIPTION
--------------------------------------------------------------
|