home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / AP / JED / JED097-1.TAR / jed / lib / jed_funs.hlp < prev    next >
Encoding:
Text File  |  1994-12-12  |  68.1 KB  |  367 lines

  1. Funix_kill :unix_kill:I:0Prototype: Integer unix_kill(Integer pid, Integer sig);
  2. Funix_ctime :unix_ctime:S:1Prototype: String unix_ctime(Integer secs);Returns a string representation of the time as given by 'secs' secondssince 1970. 
  3. Flstat_file :unix_lstat_file:I:1Prototype: Integer lstat_file(String file);This function is like 'stat_file' but it returns information about the link itself. See 'stat_file' for usage.See also: stat_file 
  4. Fstat_file :unix_stat_file:I:1Prototype: Integer stat_file(String file);This function returns information about 'file' through the use of the system 'stat' call.  If the stat call fails, the function returns a negative integer.  If it is successful, it returns zero.  Upon failure it returns a negative number.To retrieve information obtained by this call, use the 'stat_struct'function.See also: lstat_file, stat_struct 
  5. Fstat_struct :unix_stat_struct:I:1Prototype Integer stat_struct(String field);This functions returns information previously obtained by a call to the'stat_file' or 'lstat_file' functions.  The 'field' argument specifieswhat piece of information to return.   Valid values for 'field' are:    "dev"    "ino"    "mode"    "nlink"    "uid"    "gid"    "rdev"    "size"    "atime"    "mtime"    "ctime"    See the man page for 'stat' for a discussion of these fields.The following example returns the size of the file "jed.rc":   variable size;   if (stat_file("jed.rc") < 0) error ("Unable to stat file!");   size = stat_struct("size");   
  6. Fchown :unix_chown:I:3Prototype Integer chown(String file, Integer uid, Integer gid);Change ownership of 'file' to that of user id 'uid' and group id 'gid'.This function returns 0 upon success and a negative number up failure.It returns -1 if the process does not have sufficent privileges and -2if the file does not exist. See also: chmod, stat_file 
  7. Fchmod :unix_chmod:I:2Prototype Integer chmod(String file, Integer mode);'chmod' changes the permissions of 'file' to those specified by 'mode'.It returns 0 upon success, -1 if the process lacks sufficient privilegefor the operation, or -2 if the file does not exist.See also: chown, stat_file
  8. Fpolynom :math_poly:F:0 Usage:  a b .. c n x polynom  =y This computes:  ax^n + bx^(n - 1) + ... c = y  
  9. Fsin :math_sin:F:0
  10. Fcos :math_cos:F:0
  11. Ftan :math_tan:F:0
  12. Fatan :math_atan:F:0
  13. Facos :math_acos:F:0
  14. Fasin :math_asin:F:0
  15. Fexp :math_exp:F:0
  16. Flog :math_log:F:0
  17. Fsqrt :math_sqrt:F:0
  18. Flog10 :math_log10:F:0
  19. Fpow :math_pow:F:0
  20. VE 
  21. VPI 
  22. Ffloat :slmath_do_float:F:0 Convert from integer or string representation to floating point.   For example, "12.34" float returns 12.34 to stack. as another example, consider: 1 2 /   ==>  0  since 1 and 2 are integers 1 2 float / ==> 0.5 since float converts 2 to 2.0 and floating point  division is used. 
  23. Fautoload :SLang_autoload:V:2Prototype: Void autoload(String fun, String file);This function simply declares function 'fun' to the interpreter.  When'fun' is actually called, its actual function definition will be loadedfrom 'file'.Example:  autoload ("bessel_j0", "/usr/lib/slang/bessel.sl");See Also: evalfile 
  24. Fpop :SLdo_pop:V:0 Prototype: Void pop ();'pop' is used to remove the top object from the S-Lang stack.  It is typically used to ignore values from function that return a value. 
  25. Fstrcmp :SLdo_strcmp:V:0 Prototype: Integer strcmp (String a, String b);'strcmp' performs a case sensitive comparison between two strings.  Itreturns 0 if the strings are identical, a negative number if 'a' is less than 'b' and a positive result if 'a' is greater than 'b' (in alexicographic sense).See also: strup, strlow 
  26. Fstrcat :SLdo_strcat:V:0 Prototype: String strcat(String a, String b);Conconcatenates 'a' and 'b' and returns the result.See also: Sprintf 
  27. Fstrlen :SLdo_strlen:V:0 Prototype: Integer strlen (String a);Returns the length of 'a'.
  28. Fis_defined :SLang_is_defined:I:1 Prototype: Integer is_defined (String obj);This function is used to determine whether or not 'obj' has been defined.If 'obj' is not defined, it returns 0.  Otherwise, it returns a non-zerovalue that defpends on the type of object 'obj' represents.  Specifically:         +1 if arg is an intrinsic function          +2 if user defined function         -1 if intrinsic variable         -2 if user defined variable 
  29. Fstring :SLdo_string:V:0 Prototype: String string (obj);Here 'obj' can be of any type.  The function 'string' will return a stringrepresentation of 'obj'.Example: string (12.34) returns "12.34"See also: Sprintf
  30. Fgetenv :lang_getenv_cmd:V:1 Prototype: String getenv(String var);Returns value of an environment variable 'var' as a string.  The empty"" is returned if the 'var' is not defined. See also: putenv 
  31. Fputenv :lang_putenv_cmd:V:0Prototype: Void putenv(String s);This functions adds string 's' to the environment.  Typically, 's' shouldbe a String of the form "name=value".  It signals an error upon failure.
  32. Fevalfile :SLang_load_file:I:1 Prototype: Integer evalfile (String file);Load 'file' as S-Lang code.  If loading is successful, a non-zero result will be returned.  If the file is not found, zero will be returned.See also: eval, autoload 
  33. Fchar :SLdo_char:V:0 Prototype: String char (Integer c);This function takes and integer and returns a string of length 1 whose first character has ascii value 'c'.
  34. Feval :SLang_load_string:V:1 evaluate STRING as an S-Lang expression. 
  35. Fdup :SLdo_dup:V:0 duplicate top object on the stack. 
  36. Fsubstr :SLdo_substr:V:0 Syntax: "string" n len substr  returns a substring with length len of string beginning at position n.
  37. Finteger :SLdo_integer:V:0 Convert from a string representation to integer.  For example, "1234" integer returns 1234 to stack. 
  38. Fis_substr :SLdo_issubstr:V:0 Syntax: "a" "b" is_substr returns the position of "b" in "a".  If "b" does not occur in "a" it returns 0--- the first position is 1 
  39. Fstrsub :SLdo_strsub:V:0 Syntax:  "string"  n ascii_value strsubThis forces string to have a char who asciii value is ascii_val atthe nth position.  The first character in the string is at position1. 
  40. Fextract_element :SLang_extract_list_element:S:3 Prototype: String extract_element (String list, Integer nth, Integer delim);Returns 'nth' element in 'list' where 'delim' separates elements of the list. 'delim' is an Ascii value.  Elements are numbered from 0.For example:  extract_element ("element 0, element 1, element 2", 1, ',');returns the string " element 1", whereas   extract_element ("element 0, element 1, element 2", 2, ' ');returns "0,".See also: is_list_element.
  41. Fis_list_element :SLang_is_list_element:I:3 Prototype: Integer is_list_element (String list, String elem, Integer delim);If 'elem' is an element of 'list' where 'list' is a 'delim' seperated list of strings, this function returns 1 plus the matching element number.  If 'elem' is not a member of the list, zero is returned.Example:  is_list_element ("element 0, element 1, element 2", "0,", ' ');returns 2 since "0," is element number one of the list (numbered fromzero).See also: extract_element.
  42. Fcase :generic_equals:I:0Prototype: Integer case(a, b);This function is designed to make the switch statement look more likethe C one.  Basically, it does a generic compare operation.  Both parameters 'a' and 'b' must be of the same type.  It returns zeroif their types differ or have different values.In a switch statment, it may be used as:  switch (token)  { case "return": return_function ();}  { case "break": break_function ();}Unlike the C version, it one cannot have:  switch (i)  {case 10: case 20: do_ten_or_twenty (i);}One must do:  switch (i)  {case 10 or case (i, 20) : do_ten_or_twenty (i);}
  43. Fstring_match :string_match:I:3Prototype Integer string_match(String str, String pat, Integer pos);Returns 0 if 'str' does not match regular expression specified by'pat'. This function performs the match starting at position 'pos' in'str'.  The first character of 'str' corresponds to 'pos' equal to one.This function returns the position of the start of the match.  To findthe exact substring actually matched, use 'string_match_nth'. See also: string_match_nth, strcmp, strncmp
  44. Fstring_match_nth :string_match_nth:I:1Prototype: Integer Integer string_match_nth(Integer nth);This function returns 2 integers describing the result of the lastcall to 'string_match'.  It returns both the offset into the string and the length of characters matches by the 'nth' submatch.  By convention, 'nth' equal to zero means the entire match.  Otherwise,'nth' must be an integer, 1 to 9, and refers to the set of charactersmatched by the 'nth' regular expression given by \(...\).For example, consider:   variable matched, pos, len;   matched = string_match("hello world", "\\([a-z]+\\) \\([a-z]+\\)", 1);   if (matched) {       (pos, len) = string_match_nth(2);   }This will set 'matched' to 1 since a match will be found at the firstposition, 'pos' to 7 since 'w' is the 7th character of the string, andlen to 5 since "world" is 5 characters long. 
  45. V_traceback  If non-zero, dump S-Lang tracback on error. 
  46. V_slangtrace Prototype: Integer _slangtrace;If non-zero, begin tracing when function declared by lang_trace_function is entered.  This does not trace intrinsic functions.
  47. Fsystem :my_system:I:1
  48. Fslapropos :lang_apropos:V:1
  49. Fslang_trace_function :SLang_trace_fun:V:1 only argument is a string that specifies a function name that is  to be traced. See also the variable _slangtrace. 
  50. Fcreate_array :SLang_create_array:V:0 Prototype: create_array (Integer type, Integer i_1, i_2 ... i_dim, dim);Creates an array of type 'type' with dimension 'dim'.i_n is an integer which specifies the maximum size of array in direction n.   'type' is a control integer which specifies the type of the array. Types are:  's' : array of strings             'f' : array of floats             'i' : array of integers             'c' : array of charactersAt this point, dim cannot be larger than 3.Also note that space is dynamically allocated for the array and thatcopies of the array are NEVER put on the stack.  Rather, references tothe array are put on the stack.Example:   variable a = create_array ('f', 10, 1);This creates a 1 dimensional array of 10 floats and assigns it to 'a'
  51. Faget :SLarray_getelem:V:0 Syntax: i j ... k  ARRAY aget returns ARRAY[i][j]...[k] 
  52. Faput :SLarray_putelem:V:0 Syntax: x i j ... k  ARRAY put sets ARRAY[i][j]...[k] = x 
  53. Fstrncmp :SLdo_strncmp:V:0 like strcmp but takes an extra argument--- number of characters tocompare.  Example, "apple"  "appliance"  3 strcmp --> 0 
  54. Fstrlow :SLdo_strlow:V:0 Takes a string off the stack a replaces it with all characters in lowercase. 
  55. Fstrup :SLdo_strup:V:0 Takes a string off the stack a replaces it with all characters in uppercase. 
  56. Fisdigit :SLdo_isdigit:I:1 returns TRUE if CHAR (string of length 1) is a digit. 
  57. Fstrtrim :SLdo_strtrim:V:0 Trims leading and trailing whitespace from a string.  WHitespace is defined to be spaces, tabs, and newline chars. 
  58. Fint :SLdo_int:V:0 returns ascii value of the first character of a string. 
  59. Farray_sort :SLarray_sort:V:1 Requires an array on the stack as well as a function name to call for the comparison.  The array to be placed on the stack is thearray to be sorted.  The routine returns an integer index array which indicates the result of the sort.  The first array is unchanged. 
  60. F_stkdepth :SLstack_depth:I:0 returns number of items on stack 
  61. Fprint_stack :lang_print_stack:V:0 dumps tha S-Lang stack 
  62. FSprintf :SLsprintf:V:0Prototype:  String Sprintf(String format, ..., Integer n); Sprintf formats a string from 'n' objects according to 'format'.   Unlike its C counterpart, Sprintf requires the number of items to format.  For example.       Sprintf("%f is greater than %f but %s is better than %s\n",               PI, E, "Cake" "Pie", 4);                The final argument to Sprintf is the number of items to format; in this case, there are 4 items.
  63. Finit_char_array :SLinit_char_array:V:0Prototype: Void init_char_array(Array_Type a, String s);a is an array of type 'c' (character array) and s is a string.
  64. Fbyte_compile_file :SLang_byte_compile_file:V:2Prototype Void byte_compile_file (String file, Integer method);byte compiles 'file' producing a new file with the same name except a 'c' is added to the output file name.  For example,       byte_compile_file("site.sl");produces a new file named 'site.slc'.  If 'method' is non-zero, the file is preprocessed only.  Note that the resulting bytecompiled filemust only be used by the executable that produced it.  Set 'method' to a non-zero value to use the byte compiled file with more than one executable.
  65. Fmake_printable_string :make_printable_string:V:1Prototype: String make_printable_string(String str);Takes input string 'str' and creates a new string that may be used by theinterpreter as an argument to the 'eval' function.  The resulting string isidentical to 'str' except that it is enclosed in double quotes and thebackslash, newline, and double quote characters are expanded. See also: eval
  66. Fstr_quote_string :SLquote_string:V:0Prototype: String str_quote_string(String str, String qlis, Integer quote);Return a string identical to 'str' except that all characters in the string 'qlis' are escaped with the 'quote' character including the quotecharacter itself.
  67. Fstr_uncomment_string :uncomment_string:V:3Prototype: String str_uncomment_string(String s, String beg, String end);'beg' and 'end' are strings whose characters define a set of comment delimeters.  This function removes comments defined by the delimeter setfrom the input string 's' and returns it.  For example,   str_uncommen_string ("Hello (testing) 'example' World", "'(", "')");returns the string: "Hello  World"; This routine does not handle multicharacter comment delimeters and itassumes that comments are not nested.
  68. Fdefine_case :SLang_define_case:V:2 Two parameters are integers in the range 0 to 255.  The first integer is the ascii value of the upprcase character and the 2nd integer is the value of its lowercase counterpart.  For example, to define X as the uppercase of Y, do:   X Y define_case 
  69. F_clear_error :SLang_clear_error:V:0 May be used in error blocks to clear the error that triggered the error block.  Execution resumes following the statement triggering the block. 
  70. V_slang_version 
  71. Fset_float_format :set_float_format:V:1Prototype: Void set_float_format (String fmt);This function is used to set the floating point format to be usedwhen floating point numbers are printed.  The routines that use thisare the traceback routines and the 'string' function. The defaultvalue is "%f".
  72. Fcopy_array :SLcopy_array:V:0Prototype: Void copy_array(Array b, Array a);Copies the contents of array 'a' to array 'b'.  Both arrays must be ofthe same type and dimension.
  73. Fx_set_window_name :set_window_name:V:1
  74. Fx_warp_pointer :x_warp_pointer:V:0
  75. Fx_insert_cutbuffer :x_insert_cutbuffer:I:0Prototype: Integer x_insert_cut_buffer ();Inserts cutbuffer into the current buffer and returns the numberof characters inserted.
  76. Fx_copy_region_to_cutbuffer :x_region_2_cutbuffer:V:0Prototype: Void x_copy_region_to_cutbuffer();
  77. Fx_set_keysym :x_set_keysym:V:3Prototype Void x_set_keysym (Integer keysym, Integer shift, String str);This function may be used to assocate a string 'str' with a key 'keysym'modified by mask 'shift'. Pressing the key associated with 'keysym' willthen generate the keysequence given by 'str'. The function keys aremapped to integers in the range 0xFF00 to 0xFFFF.  On most systems, thekeys that these mappings refer to are located in the file/usr/include/X11/keysymdef.h. For example, on my system, the keysyms forthe 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 twocharacters 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).      
  78. VALT_CHAR Prototype: Void x_copy_region_to_cutbuffer();
  79. Fsetkey :set_key:V:2Prototype: Void setkey(String fun, String key);'fun' is the function that 'key' is to be assigned.  'key' can containthe '^' character which denotes that the following character is to beinterpreted as a control character, e.g.,     setkey("bob", "^Kt");     sets the key sequence 'Ctrl-K t' to the function 'bob' which moves the editing point to the beginning of the buffer.  Note that 'setkey' works on the "global" keymap.See also: unsetkey, definekey. 
  80. Fpush_mark :push_mark:V:0Prototype: Void push_mark();This function marks the current Point as the beginning of a region.  Other functions operate on the region defined by the Point and the Mark. See also: pop_mark, push_spot, markp, dupmark, check_region 
  81. Fbol :bol:V:0Prototype: Void bol();Moves Point to the beginning of the current line.See also: eol, bob, eob, bolp 
  82. Fsetmode :set_mode_cmd:V:2Prototype:  Void setmode(String mode, Integer flags);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  0x10: Fortran mode highlighting  0x20: TeX mode highlightingSee also: whatmode, getbuf_info, setbuf_info.  
  83. Finsert :insert_string:V:1Prototype: Void insert(String str);Inserts string 'str' in buffer at the current Point.See also: del, insert_file, insbuf 
  84. Feol :eol:V:0Prototype Void eol();Moves Point to the end of the current line. See also: eolp, bol, bob, eob 
  85. Fsetbuf :set_buffer:V:1Prototype: Void setbuf(String buf);Changes the default buffer to one named 'buf' for editing.  This changeonly lasts until top level of editor loop is reached at which point thethe buffer associated with current window will be made the default.See also: sw2buf, pop2buf, whatbuf 
  86. Fmessage :message:V:1Prototype: Void message(String msg);Displays the string 'msg' in the MiniBuffer at the bottom of the display.This does not immediately display the message.  In particular, subsequentcalls to 'message' will overwrite the values of previous calls.  The message is displayed when the screen is updated next.  For an immediateeffect, use the function 'flush' instead.See also: flush, error, update 
  87. Fdel_region :delete_region:V:0Prototype: Void del_region();Deletes the region specified by the Point and Mark.See also: push_mark, markp, check_region 
  88. Fbufsubstr :buffer_substring:V:0Prototype: String bufsubstr();This function returns the region specified by the Point and Mark as a String.  If the region crosses lines, the string will containnewline characters.See also: insbuf, push_mark 
  89. Fright :forwchars:I:1Prototype: Integer right(Integer n);This function moves the Point forward forward 'n' characters and returnsthe number 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 
  90. Fdefinekey :set_key_in_keymap:V:3Prototype: Void definekey(String f, String key, String kmap);This function is used for binding keys to functions in a specific keymap.Here 'f' is the function to be bound, 'key' is a sequence of keys and 'kmap' is the name of the keymap to be used.  See 'setkey' for a definition of 'keys'.  See also: setkey, undefinekey, make_keymap, use_keymap 
  91. VLAST_SEARCH A readonly string variable containing the value of the last interactively search for string.See also: save_search_string. 
  92. VUSE_ANSI_COLORS 
  93. VStatus_Line_String A read-only String variable containing the format of the status lineapplied to newly created buffers.See also: set_status_line 
  94. Fsave_search_string :save_search_string:V:1Prototype: Void save_search_string(String str);Sets the value of the read-only variable 'LAST_SEARCH' to 'str'. See also: LAST_SEARCH 
  95. VMINIBUFFER_ACTIVE A read-only variable that is non-zero when the MiniBuffer is activelybeing used. 
  96. Fleft :backwchars:I:1Prototype: Integer left(Integer n);Move Point backward 'n' characters returning 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 
  97. Fwhatbuf :what_buffer:S:0Prototype: String what_buffer();Returns the name of the current buffer.See also: getbuf_info, bufferp 
  98. Ferror :msg_error:V:1Prototype: Void error(String msg);Signals an error condition and displays the string 'msg' at the bottom ofthe display.  The error can be caught by an ERROR_BLOCK and cleared withthe '_clear_error' function.  Unless caught, the error will cause the S-Lang stack to unwind to the top level.See also: _clear_error, message, flush 
  99. Fgetbuf_info :get_buffer_info:V:0Prototype:  getbuf_info();This function returns 4 values to the stack.  The four value from the top are: Integer'flags'        % buffer flags String 'buffer_name'  % name of buffer String 'directory'    % directory associated with buffer String 'file'         % name of file associated with buffer (if any).The flags are encoded as:   bit 0: buffer modified  bit 1: auto save mode  bit 2: file on disk modified  bit 3: read only bit  bit 4: overwrite mode  bit 5: undo enabled  bit 6: reserved  bit 7: just save instead of autosaving.  If bit 1 is set,          this is ignored.For example,   (file,,,) = getbuf_info();returns the file associated with the buffer.See also: setbuf_info, whatbuf 
  100. Fotherwindow :other_window:V:0Prototype: Void otherwindow();Switch to next window. See also: nwindows, onewindow 
  101. Fis_internal :is_internal:I:1Prototype Integer is_internal(String f);Returns non-zero is function 'f' is defined as an internal function orreturns zero if not.  Internal functions not immediately accessable fromS-Lang; rather, they must be called using the 'call' function.See also: call, is_defined.
  102. Fsetbuf_info :set_buffer_info:V:4Prototype: Void setbuf_info(String file, String dir, String buf, Integer flags);Sets information of the current buffer.  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 thebuffer is located in directory 'dir' with the name 'file'.See also: getbuf_info 
  103. Fup :prevline:I:1Prototype: Integer up(Integer n);Move Point up 'n' lines returning number of lines actually moved.  The number returned will be less than 'n' only if the top of the buffer isreached.See also: down, left, right 
  104. Fdown :nextline:I:1Prototype: Integer down(Integer n);Move Point down 'n' lines returning number of lines actually moved.  The number returned will be less than 'n' only if the last line of the bufferhas been reached.See also: down, left, right 
  105. Fcall :call_cmd:V:1Prototype: Void call(String f);Execute internal function named 'f'.  An internal function is a functionthat cannot be directly accessed from S-Lang.See: is_internal. 
  106. Feob :eob:V:0Prototype: Void eob();Move Point to the end of the buffer.See also: eobp, bob, bol, eol 
  107. Funsetkey :unset_key:V:1Prototype: Void unsetkey(String key);Removes the defeinition of 'key' from the "global" keymap.  For example,by default, 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.See also:  setkey, undefinekey 
  108. Fbob :bob:V:0Prototype: Void eob();Move Point to the beginning of the buffer.See also: bobp, eob, bol, eol 
  109. Flooking_at :looking_at:I:1Prototype: Integer looking_at(String s);Returns non-zero if Point is positioned in he buffer such that the characters immediately following it match 's' otherwise it returns 0.See also: ffind, fsearch, re_fsearch, bfind 
  110. Fdel :del:V:0Prototype: Void del();Delete character at point unless at the end of the buffer in which casenothing happens.See also: what_char, eobp, del_region 
  111. Fmarkp :markp:I:0Prototype: Void markp();Returns a non-zero value if a mark is set in the buffer otherwise itreturns zero.  A mark usually denotes a region is defined.See also: push_mark, pop_mark, check_region, push_spot 
  112. Fnwindows :num_windows:I:0Prototype Integer nwindows();Return number of windows currently visible.See also: splitwindow, onewindow, window_size 
  113. Fadd_completion :add_to_completion:V:1Prototype Void add_completion(String f);Add S-Lang function with name 'f' to the list of function completions.See also: read_with_completion 
  114. Fwhat_column :calculate_column:I:0Prototype: Integer what_column();Returns the current column number of the Point expanding tabs, etc...The beginning of the line is at column 1.See: whatline, whatpos, goto_column 
  115. Feobp :eobp:I:0Prototype: Integer eobp();Returns non-zero if the Point is positions at the beginning of the buffer otherwise it returns zero.See also: eob, bolp, eolp 
  116. Ffsearch :search_forward:I:1Prototype: Integer fsearch(String str); Search forward in buffer looking for string 'str'.  If not found, thisfunctions returns zero.  However, if found, it returns non-zero and moves the Point to the start of the match.  It respects the settingof the variable 'CASE_SEARCH'.See also: ffind, bsearch, bfind, re_fsearch, CASE_SEARCH 
  117. Fbuffer_visible :jed_buffer_visible:I:1Prototype: Integer buffer_visible(String buffer);Returns non-zero if 'buffer' is currently visible in a window orit returns zero if not. 
  118. Fexit_jed :exit_jed:V:0Prototype: Void exit_jed();Exits JED.  If any buffers are modified, the user is queried about whether or not to save first.  Calls S-Lang hook "exit_hook"if 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. 
  119. Fset_color :set_term_colors:V:3Prototype: Void set_color(String object, String fg, String bg);This function sets the foreground and background colors of an 'object'to 'fg' and 'bg'.  The exact values of the strings 'fg' and 'bg' are system dependent.  Valid object names are:   "status", "normal", "region", and "cursor".In addition, if color syntax highlighting is enabled, the following objectnames are also meaningful:  "number", "delimeter", "keyword", "string", "comment", "operator",  "preprocess"See also: WANT_SYNTAX_HIGHLIGHT
  120. Fset_color_esc :set_term_color_esc:V:2Prototype: Void set_color_esc (String object, String esc_seq);This function may be used to associate an escape sequence with an object.  The escape sequence will be set to the terminal prior to sending the object.  It may be used on mono terminals to underline objects, etc...See 'set_color' for a list of valid object names.
  121. Fextract_filename :extract_file:S:1Prototype: String extract_filename (String filespec);Separates the filename from the path of 'filespec'. Example: (unix)   var = extract_filename ("/tmp/name");assigns a value of "name" to 'var'
  122. Ftrim :trim_whitespace:V:0Prototype: Void trim(); Removes all whitespace around point.See also: skip_chars, skip_white
  123. Fpop2buf :pop_to_buffer:V:1Prototype: Void pop2buf (String buf);Pop up a window containing a buffer named 'buf'. If 'buf' does not exist,it will be created. If 'buf' already exists in a window, the window containing'buf' will be the active one.  This function will create a new windowif necessary.See also: pop2buf_whatbuf, setbuf, sw2buf 
  124. Fpop2buf_whatbuf :pop_to_buffer:S:1Prototype: String pop2buf_whatbuf (String buf);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 replace the buffer in the window with the one previouslythere. See also: pop2buf 
  125. VDISPLAY_EIGHT_BIT  if non zero, pass chars with hi bit set to terminal as is, otherwise prefix with a `~' and pass char with hi bit off. 
  126. VJED_CSI  Control Sequence Introducer. --- reserved for future use 
  127. Fcopy_region :copy_region_cmd:V:1Prototype: Void copy_region (String buf);Copies a marked region in the current buffer to buffer 'buf'.See also: insbuf, bufsubstr 
  128. Finsbuf :insert_buffer_name:V:1Prototype: Void insbuf (String buf);Insert buffer named 'buf' into the current buffer at Point.See also: copy_region 
  129. Fbolp :bolp:I:0Prototype: Integer bolp ();'bolp' is used to test if the Point is at the beginning of a line.  It returns non-zero if at the beginning of a line and 0 if not.See also: bol, eolp, bobp, eobp 
  130. Fbeep :beep:V:0 Send beep to screen. 
  131. Fonewindow :one_window:V:0 make current window the only one. 
  132. Fpop_spot :pop_spot:V:0Prototype: Void pop_spot ();This function is used after 'push_spot' to return to the location where'push_spot' was called.See also: push_spot, pop_mark 
  133. Fpush_spot :push_spot:V:0Prototype: Void push_spot ();'push_spot' pushes the location of the current buffer location onto a stack.  This function does not set the mark.  Use push_mark for that purpose.The spot can be returned to using 'pop_spot'.See also: pop_spot, push_mark 
  134. Fbsearch :search_backward:I:1Prototype: Integer bsearch (String str);Searches backward from the current Point for 'str'.  If 'str' is found, this function will return non-zero and the Point will be placed at thelocation of the match.  If a match is not found, zero will be returned andthe Point will not change.See also: fsearch, bol_bsearch, re_bsearch 
  135. Fsw2buf :switch_to_buffer_cmd:V:1 Switch to BUFFER.  If BUFFER does not exist, one is created with name  BUFFER 
  136. Ftt_send :do_tt_write_string:V:1 send STRING to terminal with no interpretation 
  137. Feolp :eolp:I:0 Returns TRUE if Point is at the end of a line. 
  138. Fwhat_keymap :what_keymap:S:0 returns keymap name of current buffer 
  139. Ffind_file :find_file_in_window:I:1 finds FILE in current window returning non zero if file found.  See Also: read_file 
  140. Fset_status_line :set_status_format:V:2  Usage:  set_status_line(String format, Integer flag);  If flag is non-zero, format applies to the global format string   otherwise it applies to current buffer only.    Format is a string that may contain the following format specifiers:    %b   buffer name    %f   file name    %v   JED version    %t   current time --- only used if variable DISPLAY_TIME is non-zero    %p   line number or percent string    %%   literal '%' character    %m   mode string    
  141. Fbury_buffer :bury_buffer:V:1Prototype: Void bury_buffer(String name);Make buffer 'name' unlikley to appear in a window.  
  142. Fdupmark :dup_mark:I:0Prototype Integer dupmark ();This function returns zero if the mark is not set or, if the mark is set,a duplicate of it is pushed and 1 is returned. 
  143. Ferase_buffer :erase_buffer:V:0 erases all text from the current buffer.See: delbuf 
  144. Fwindow_info :window_size_intrinsic:I:1Prototype Integer window_info(Integer item);Returns information specified by 'item' about the current window.  Here'item' is one of:    'r'  : Number of rows    'w'  : width of window     'c'  : starting column (from 1)    't'  : screen line of top line of window (from 1)
  145. Vwhatline  returns current line number -- used to be a function. 
  146. VBLINK 
  147. VWRAP_INDENTS  If non-zero, after wrap, line is indented as previous line. 
  148. Fgoto_column :goto_column:V:1 Move Point to COLUMN inserting spaces and tabs if necessary. 
  149. Fgoto_column_best_try :goto_column1:I:1Prototype: Integer goto_column_best_try (Integer c);This function is like goto_column except that it will not insertspaces.  It returns the column number is did go to. 
  150. VTAB_DEFAULT  default tab setting applied to all newly created buffers. See TAB. 
  151. Fgoto_line :goto_line:V:1 move Point to LINE. 
  152. Ffile_status :file_status:I:1 returns integer desecribing FILE:     2 file is a directory     1 file exists     0 file does not exist.    -1 no access.    -2 path invalid    -3 unknown error
  153. VC_INDENT 
  154. Fflush :flush_message:V:1 Takes 1 string argument and immediately displays it as a message  in the minibuffer.  It is exactly like the `message' function except that its effect is immediate. See: message, update 
  155. VIGNORE_BEEP  If 0, do not beep the terminal.  If 1 beep.  If 2 use visible bellonly.  If 3 use both bells.
  156. VADD_NEWLINE 
  157. VLASTKEY  buffer containing last keysequence.  Key sequences using the null character will not be recorded accurately. 
  158. VC_BRA_NEWLINE  if non-zero, insert newline before inserting '{' in C mode 
  159. VDISPLAY_TIME  A non-zero value means to enable display of time whenever %t occurs in the status line format. 
  160. VWANT_EOB  Set this to non zero value if it is desired to have [EOB] mark  the end of the buffer. 
  161. Finput_pending :input_pending:I:1 Only argument is amount of seconds/10 to wait for input.  0 returns right away.  Returns TRUE if there is input waiting. 
  162. Finsert_file :insert_file:I:1 This returns <= 0 if file not found. 
  163. Fkeymap_p :keymap_p:I:1 Returns TRUE if KEYMAP is defined. 
  164. VWRAP 
  165. Fwhat_char :what_char:I:0 returns ASCII value of character point is on. 
  166. Fbfind :backward_search_line:I:1 returns TRUE if STRING found backward on current line 
  167. Fpop_mark :pop_mark:V:1 Pop last pushed mark off the mark stack. If argument is non zero,   move point to position of mark first. 
  168. Fread_mini :mini_read:V:3 read from minibuffer with PROMPT and DEFAULT strings using STRING to stuff the minibuffer.  Returns string to stack. 
  169. Frecenter :recenter:V:1 update window with current line on Nth line of window.   If N is 0, recenter 
  170. Fbufferp :bufferp:I:1 returns  TRUE if BUFFER exists 
  171. Fget_key_function :get_key_function:V:0 Returns current key binding.  If key has a binding, it also  returns 0 if the function is S-Lang or non zero if it is internal. 
  172. Fdump_bindings :dump_bindings:V:1Prototype: Void dump_bindings(String map);Dumps a list of the keybindings for the keymap specified by 'map'.
  173. VMETA_CHAR  When a character with the hi bit set is input, it gets mapped to a two character sequence, The META_CHAR, followed by the character with its hi bit off.  By default, META_CHAR is 27, the escape character. 
  174. VDEC_8BIT_HACK  If set, an character between 128 and 160 will be converted into a  two character sequence: ESC and the character itself stripped of the high bit + 64.
  175. Fundefinekey :unset_key_in_keymap:V:2 Undefines KEY from KEYMAP.See: make_keymap. 
  176. Fgetpid :jed_getpid:I:0Prototype: Integer getpid();Returns pid of current process. 
  177. Fupdate :update_cmd:V:1 Update display.  If argument it TRUE, force update otherwise  update only if there is no input 
  178. Fskip_white :skip_whitespace:V:0 Skip past whitespace.  This does not cross lines.  See: skip_chars 
  179. Fskip_word_chars :skip_word_chars:V:0 skip over all characters that constitute a word. 
  180. Fskip_non_word_chars :skip_non_word_chars:V:0 skip over all characters that do not constitute a word. 
  181. Fbskip_word_chars :bskip_word_chars:V:0 skip backwards over all characters that constitute a word. 
  182. Fbskip_non_word_chars :bskip_non_word_chars:V:0 skip backwards over all characters that do not constitute a word. 
  183. Fwhich_key :which_key:I:1 returns NUMBER of keys that are bound to argument followed  by NUMBER keys.  Control Chars are expanded as 2 chars. 
  184. Fwhitespace :insert_whitespace:V:1 inserts whitespace of length n using tabs and spaces.  If the globalvariable  TAB is 0, only spaces are used. 
  185. VC_BRACE 
  186. Fenlargewin :enlarge_window:V:0 Makes the current window bigger by one line. 
  187. Fsplitwindow :split_window:V:0 Splits current window in half making two. 
  188. Ffile_time_compare :file_time_cmp:I:2 compares the modification times of two files, FILE1 and FILE2. returns positive, negative, or zero integer for FILE1 > FILE2, FILE1 < FILE2, or FILE1 == FILE2, resp.  The operator '>' should be read 'is more recent than'.   The convention adopted by the routine is that if a file does not exist, it was modified at the beginning of time. Thus, if 'f' exists, but 'g' does not, f g file_time_compare will return 1. 
  189. Fxform_region :transform_region:V:1 Prototype: Void xform_region (Integer how);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 thefollowing:    'u' upcase_region    'd' downcase_region    'c' Capitalize regionAnything else will change case of region 
  190. VNUMLOCK_IS_GOLD 
  191. VCHEAP_VIDEO  non zero if snow appears on screen when updating it. 
  192. VOUTPUT_RATE  Terminal baud rate 
  193. Fskip_chars :skip_chars:V:1Prototype: Void skip_chars(String s);skip past all characters in string 's'.s is a string which contains ascii chars to skip, or a rang of ascii chars.  So for example, "- \t0-9ai-o_" will skip the hyphen, space, tabnumerals 0 to 9, letter a, letters i to o, and underscore.If the first character of 's' is '^', then the compliment of the range is skipped instead.  So for example,    skip_chars("^A-Za-z");skips ALL characters except the letters.  The backslash character may beused 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 
  194. Fbobp :bobp:I:0 TRUE if at beginning of buffer 
  195. Fffind :forward_search_line:I:1 Returns TRUE if STRING is found forward current line. If found, Point  is moved to string 
  196. Fbol_fsearch :bol_fsearch:I:1 Search forward for string at beginning of line. Returns TRUE if found 
  197. Fbol_bsearch :bol_bsearch:I:1 Search backward string at beginning of line. Returns TRUE if found 
  198. Fcommand_line_arg :command_line_argv:S:1 Takes integer parameter N in the range: 0 <= N < MAIN_ARGC.MAIN_ARGC is a global variable indicating the number of command line parameters.  This function returns the Nth parameter.See Also the variable MAIN_ARGC 
  199. VMAIN_ARGC  MAIN_ARGC is a global variable indicating the number of command line  parameters.  See Also: command_line_arg 
  200. Fset_file_translation :set_file_trans:V:1 1 open files in binary, 0 in text (default) 
  201. Fpipe_region :pipe_region:I:1 pipes region to CMD returning number of lines written. 
  202. Fshell_cmd :shell_command:V:1 executes CMD in a subshell inserting output inter buffer at Point 
  203. Fmkdir :make_directory:I:1 create a directory with NAME.  Returns TRUE if successful, 0 otherwise. 
  204. Frmdir :delete_directory:I:1 delete a directory with NAME.  Returns TRUE if successful, 0 otherwise.  The directory must be empty for the operation to succeed. 
  205. Fappend_region_to_file :append_to_file:I:1Prototype: Integer append_region_to_file (String file);Appends a marked region to 'file' returning number of lines written or -1on error.  This does NOT modify a buffer visiting the file; however,it does flag the buffer as being changed on disk. 
  206. Fautosave :auto_save:V:0 autosave current buffer if marked for autosave 
  207. Fautosaveall :auto_save_all:V:0 save all buffers marked for autosave 
  208. Fbackward_paragraph :backward_paragraph:V:0 move point past current paragraph.  Slang hook is_paragraph_seperatoris called (if defined) to determine if line is a paragraph seperator. 
  209. Fblank_rect :blank_rectangle:V:0 blanks out rectangle defined by point and mark 
  210. Fbskip_chars :bskip_chars:V:1 skip backward chars in STRING.   See skip_chars for definition of STRING 
  211. Fbuffer_list :make_buffer_list:V:0 returns a  list of buffers to the stack.  The top element of the stack is the number of buffers 
  212. Fcheck_region :check_region:V:1 Signals Error if mark not set.  Exchanges point and mark to produce valid region.  A valid region is one with markearlier in the buffer than point.  Always call this if using a regionwhich requires point > mark.  Also, if argument is non-zero, spot is pushed. 
  213. Fcopy_rect :copy_rectangle:V:0 save a copy of rectangle defined by point and mark in rectangle buffer 
  214. Fdefine_word :define_word:V:1 Only argument is a string which is an expression which defines  a word.  Typically, it is a range of ascii values.  The default  definition is: "a-z0-9" To include a hyphen, make it the first character.  So for example, "-i-n" defines a word to consist of letters 'i' to 'n'  and '-' 
  215. Fdelbuf :kill_buffer_cmd:V:1 deletes specified buffer name 
  216. Fdelete_file :sys_delete_file:I:1 Deletes FILENAME.  Returns 1 if deletion was successful, otherwiseit returns 0. 
  217. Fdirectory :expand_wildcards:I:1 returns number of files and list of files which match filename.  On unix, this defaults to filename*.  It is primarily useful for DOS and VMS to expand wilcard filenames 
  218. Fevalbuffer :load_buffer:V:0 evaluates a buffer as S-Lang code.  See: evalfile 
  219. Fexpand_filename :expand_filename:S:1 expands filename to a canonical form 
  220. Ffilechgondsk :file_changed_on_disk:I:1 Returns true if FILE on disk is more recent than editor file 
  221. Fforward_paragraph :forward_paragraph:V:0 move point past current paragraph.  Slang hook is_paragraph_seperatoris called (if defined) to determine if line is a paragraph seperator. 
  222. Fget_doc_string :get_doc_string:I:2 read doc string for OBJECT from FILE.  Returns 1 and string  upon success or 0 on failure.  If OBJECT is a functiion,   it must be prefixed with an 'F'.  If it is a variable, the prefix  character is a 'V'.    Example: "Fget_doc_string" 
  223. Fgetkey :jed_getkey:I:0 Read a key from input stream returning ASCII value read. 
  224. Findent_line :indent_line:V:0 Indent line according to current mode. 
  225. Finsert_rect :insert_rectangle:V:0 insert contents of previously deleted rectangle at Point. 
  226. Fkill_rect :kill_rectangle:V:0 deletes rectangle defined  by point and mark.  The contents of   the rectangle are saved in the rectangle buffer destroying previous  contents. 
  227. Fmake_keymap :create_keymap:V:1 Creates a new keymap with name map.  The newly created keymap is an exact copy of the global map "global".See: use_keymap, definekey, undefinekey 
  228. Fmap_input :map_character:V:2 Used to remap input characters from the keyboard to a different   character before JED interprets the character.  For example,'8 127 map_input' will cause JED to think that the ^H (8) is the  delete character (127).  Note that '8 127 map_input 127 8 map_input effectively swaps the ^H and delete keys. 
  229. Fnarrow :narrow_to_region:V:0 restrict editing to region of LINES defined by point and mark.    Use 'widen' to remove the restriction. Be careful with this because  it currently does not remember a previous narrow. 
  230. Fopen_rect :open_rectangle:V:0 insert a BLANK rectangle.  The rectangle  is defined by point and mark. 
  231. Fquit_jed :quit_jed:V:0 Quit JED saving no buffers, just get out! 
  232. Fread_file :find_file_cmd:I:1  read FILE into its own buffer  returning non zero if file exists.  see find_file to read a file into a window. 
  233. Fread_with_completion :read_object_with_completion:V:4 Takes 4 parameters:  PROMPT(string) DEFAULT(string) STUFF(string)  and TYPE(integer). TYPE must be one of:    'f'   file name    'b'   buffer name    'F'   function name    'V'   variable name.    STUFF is a string which is stuffed into the buffer.Using this function enables completion on the object.
  234. Freplace :replace_cmd:V:2Prototype Void replace(String old, String new);Replaces all occurances of 'old' with 'new' from current point tothe end of the buffer. The Point is returned to the initial location. 
  235. Fset_abort_char :set_abort_char:V:1 Change Abort character to CHAR.  The default is 7 which is ^G. Using this function modifies ALL keymaps 
  236. Fsuspend :sys_spawn_cmd:V:0 Suspend jed and return to calling process or spawn subprocess."suspend_hook" is called before suspension and "resume_hook" is calledafter.  These are user defined S-Lang functions. 
  237. Ftime :get_time:S:0 return current date and time string 
  238. Fungetkey :ungetkey:V:1 push ASCII value of character on input stream 
  239. Fbuffer_keystring :do_buffer_keystring:V:1Prototype: Void buffer_keystring (String str);Append string 'str' to the end of the input stream to be read by JED'sgetkey routines.See also: ungetkey, getkey
  240. Fuse_keymap :use_keymap:V:1 Asscoiate KEYMAP with buffer. 
  241. Fw132 :screen_w132:V:0
  242. Fw80 :screen_w80:V:0
  243. Fwhatmode :what_mode:I:0 returns buffer mode string and mode flag.  See setmode for details. 
  244. Fwiden :widen:V:0 Opposite of Narrow.  See narrow for additional information. 
  245. Fwindow_line :window_line:I:0 returns number of line in window.  top line is 1. 
  246. Fwrite_buffer :write_buffer_cmd:I:1 writes buffer to FILE. Returns number of lines written or signals  error on failure. 
  247. Fwrite_region_to_file :write_region:I:1 Prototype: Integer write_region_to_file (String file);Write region to 'file'.  Returns number of lines written or signalserror on failure. 
  248. Fcount_chars :count_chars:V:0 returns a string of form "char 37, point 2150 of 10067" where 2150 is character number of Point and 10067 is the total. 37 is the ascii value of current character. A string is returned instead of numbers because MSDOSints are only  16 bits and S-Lang does not have long integer types. 
  249. Fget_yes_no :get_yes_no:I:1 Takes one argument-- a string that is used to get  yes or no responce from user.  Returns 1 if yes, 0 if no.  Also returns -1 if abort and signals error. 
  250. Frename_file :rename_file:I:2 rename file from OLD_NAME to NEW_NAME returning 0 if the  operation succeeds, and a non-zero value if it fails.  Both files must be on the same file system. 
  251. Fchange_default_dir :ch_dir:I:1  Change default directory to new directory.  Returns 0 upon success and -1 upon failure.  All relative path names are expanded with respect to the new default directory. 
  252. Fprefix_argument :do_prefix_argument:I:1 Usage:  int prefix_argument(int default);    Returns value of prefix argument if there is one otherwise    returns 'default'. 
  253. Fregexp_nth_match :regexp_nth_match:V:1
  254. Freplace_match :replace_match:I:2Prototype: Integer replace_match(String s, Integer how);This function replaces text previously matched with `re_fsearch' or`re_bsearch' at the current editing point with string 's'.  If 'how' iszero, 's' is a specially formatted string of the form described below.If 'how' is non-zero, 's' is regarded as a simple string and is usedliterally.  If the replacement fails, this function returns zerootherwise, it returns non-zero.
  255. Fre_fsearch :re_search_forward:I:1Prototype: Integer re_fsearch(String pattern);Search forward for regular expression 'pattern'.  This function returnsthe 1 + length of the string  matched.  If no match is found, it returns 0.See also: fsearch, bol_fsearch, re_bsearch 
  256. Fre_bsearch :re_search_backward:I:1Prototype: Integer re_bsearch(String pattern);Search backward for regular expression 'pattern'.  This function returnsthe 1 + length of the string  matched.  If no match is found, it returns 0.See also: bsearch, bol_bsearch, re_fsearch 
  257. Fset_buffer_hook :set_buffer_hook:V:2Prototype: Void set_buffer_hook (String hook, String f);Set current buffer hook 'hook' to function 'f'. 'f' is a userdefined S-Lang function.  Currently, name can be any one of:  "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
  258. Finsert_file_region :insert_file_region:I:3
  259. Fsearch_file :search_file:I:3 search FILE for STRING returning TRUE if string found. 
  260. Frandom :make_random_number:I:2 Usage:  seed n random Returns a random number in the range 0 to n - 1.  If seed is 0, the  number generated depends on previous seed.  If seed is -1, a seed based  on current time and pid is used, otherwise, seed is used as a seed. 
  261. Fset_term_vtxxx :do_tt_set_term_vtxxx:V:1 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/deletelines and characters.  If the parameter is zero, the terminal is assumedto be vt102 compatable.  Unless you are using a VERY old terminal or a primitive emulator, use zero as the parameter. 
  262. VTERM_CANNOT_INSERT  Set this variable to 1 in your jed startup file (jed.rc) if your terminal is unable to insert (not vt102 compatable) 
  263. VTERM_CANNOT_SCROLL  Set this variable to 1 in your jed startup file (jed.rc) if your terminal is unable to scroll. 
  264. VBATCH  non-zero if JED is running in batch mode.  This variable  is read only. 
  265. VTAB  Tab setting for the current buffer. 
  266. VSELECTIVE_DISPLAY  If negative, ^M (RET) makes rest of line invisible.  Hidden  text is indicated by '...'.  
  267. VLAST_CHAR  Last character entered from the keyboard 
  268. VMAX_HITS  maximum number of 'hits' on a buffer before an autosave is performed. 
  269. VCASE_SEARCH  if 1, searches are case sensitive.  If 0, they are not 
  270. VPOINT 
  271. VMESSAGE_BUFFER  Read only string indicating current message to be displayed or is displayed in the message buffer 
  272. VIGNORE_USER_ABORT  If set to a non-zero value, the Abort Character will not trigger a S-Lang error.  When JED starts up, this value is set to 1 so that  the user cannot abort the loading of site.sl.  Later, it is set to 0 
  273. VKILL_LINE_FEATURE  If non-zero, kill_line will kill through end of line character ifPoint is at beginning of the line.  Otherwise, it will kill only untilthe end of the line.  By default, this feature is turned on. 
  274. VSCREEN_HEIGHT  number of rows on the screen. 
  275. VSCREEN_WIDTH  number of columns on the screen 
  276. VJED_LIBRARY  Read only string variable indicating the directory where JED libraryfiles are kept.  This variable may be set using an environment variable 
  277. VJED_ROOT  Read only string variable indicating JED's root directory. This variable may be set using an environment variable 
  278. VLINENUMBERS  If set to 0, line numbers are not displayed on the screen. If set to  1, line numbers will be displayed.  If set to anything else, the  %c column format specifier will be parsed allowing the column number to be displayed on the screen. 
  279. VALT_CHAR   If this variable is non-zero, characters pressed in combinationthe ALT key will generate a two character sequence: the first character is the value of the 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 ESCAPE X will be generated. 
  280. VMOUSE_X 
  281. VMOUSE_Y 
  282. VMOUSE_DELTA_TIME 
  283. VMOUSE_BUTTON 
  284. VMOUSE_EVENT_TYPE  Value is 1 if the event is a keypress and 0 if a release. 
  285. VMOUSE_STATE  The state of the shift, control, and button keys BEFORE the event.This is an integer with the following meaning for the bits:     0: left button pressed     1: middle button pressed     2: right button pressed     3: shift key pressed     4: control key pressed 
  286. VHIGHLIGHT  Set this variable non-zero to highlight marked regions 
  287. VHORIZONTAL_PAN  If this variable is non-zero, the window pans with the Point.  Actuallyif the value is less than zero, the entire window pans.  If the value is positive, only the current line will pan.  The absolute value of the number determines the panning increment.  
  288. Fvms_get_help :vms_get_help:V:2
  289. Fvms_send_mail :vms_send_mail:I:2 Takes 2 string arguments: TO and SUBJECT.   TO may be a comma separated list of names.  The buffer will be mailed to names on this list with SUBJECT.  This routine uses  callable VMS mail.
  290. Fenable_flow_control :enable_flow_control:V:1 If integer argument is non-zero, ^S/^Q flow control is enabled.  Ifargument is 0, ^S/^Q processing by the terminal is disabled.  Emacs modesets this to 0 (flow control off). 
  291. Fcore_dump :exit_error_cmd:V:2Prototype: Void core_dump(String msg, Integer severity);Exit editor sumping the state of some crucial variables. If severity is 1, dump core if possible.  Message msg is also displayed. 
  292. Fget_last_macro :get_last_macro:V:0 Prototype: String get_last_macro();This function returns characters composing the last keyboard macro.  Thecharactors that make up the macro are encoded as themselves except thefollowing characters:    '\n'    ---->   \J    null    ---->   \@     \      ---->   \\     '"'    ---->   \"
  293. FIsHPFSFileSystem :IsHPFSFileSystem:I:1Prototype: Integer IsHPFSFileSystem(String path);Returns TRUE if drive of 'path' (possibly the default drive) is HPFS. 
  294. Fmsdos_fixup_dirspec :msdos_pinhead_fix_dir:S:1Prototype: String msdos_fixup_dirspec (String dir);The motivation behind this is that DOS does not like a trailingbackslash '\\' except if it is for the root dir.  This function makes'dir' conform to that 
  295. VC_COMMENT_HINT 
  296. VWANT_SYNTAX_HIGHLIGHT 
  297. Fset_top_status_line :define_top_screen_line:V:1Prototype: String set_top_status_line (String str);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
  298. Fenable_top_status_line :enable_menu_bar:V:1Prototype: Void enable_top_status_line (Integer x);If x is non-zero, the top status line is enabled.  If x is zero, thetop status line is disabled and hidden.See also: set_top_status_line
  299. VTOP_WINDOW_ROW  This read-only variable gives the value of the starting row of the topwindow.  
  300. VDEFINING_MACRO 
  301. VEXECUTING_MACRO 
  302. Fmatching :new_find_matching:I:2
  303. Fcreate_user_mark :create_user_mark:V:0
  304. Fgoto_user_mark :goto_user_mark:V:0
  305. Fuser_mark_buffer :user_mark_buffer:S:0
  306. Flist_abbrev_tables :list_abbrev_tables:I:0 Prototype: Integer list_abbrev_tables ();This function returns the names of all currently defined abbreviation tables.  The top item on the stack will be the number oftables followed by the names of the tables.
  307. Fuse_abbrev_table :use_abbrev_table:V:1 Prototype: Void use_abbrev_table (String table);Use the abbreviation table named 'table' as the abbreviation table for the current buffer.  By default, the "Global" table is used.
  308. Fcreate_abbrev_table :create_abbrev_table:V:2 Prototype: Void create_abbrev_table (String name, String word);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 thatcurrently constitute a word are used.
  309. Fdefine_abbrev :define_abbrev:V:3 Prototype: Void define_abbrev (String tbl, String abbrv, String expans);This function is used to define an abbreviation 'abbrv' that will be expanded to 'expans'.  The definition will be placed in the table withname 'tbl'.
  310. Fabbrev_table_p :abbrev_table_p:I:1 Prototype: Integer abbrev_table_p (String name);Returns non-zero if an abbreviation table with called 'name' exists. Ifthe table does not exist, it returns zero.
  311. Fdump_abbrev_table :dump_abbrev_table:V:1 Prototype: Void dump_abbrev_table (String name);This function inserts the contents of the abbreviation table called'name' into the current buffer.
  312. Fwhat_abbrev_table :what_abbrev_table:V:0 Prototype: (String, String) what_abbrev_table ();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.
  313. Fdelete_abbrev_table :delete_abbrev_table:V:1 Prototype: Void delete_abbrev_table (String name);Delete the abbrev table specified by 'name'.
  314. Ftex_mode () Mode useful for editing TeX and LaTeX modes.  %!% Useful bindings:%!%  '"'  :  tex_insert_quote%!%  '\'' :  tex_insert_quote%!%  '$'  :  tex_blink_dollar%!%  '.'  :  tex_ldots.  Inserts a '.' except if preceeded by two dots.  In %!%           this case, the dots are converted to \ldots.%!%%!%  When tex mode is loaded, 'tex_mode_hook' is called.  This hook will allow%!%  users to customize the mode.  In particular, certain functions here have%!%  no keybindings, e.g., 'latex_do_environment'.  So, in your jed.rc file,%!%  add something like:%!%    define tex_mode_hook () {%!%       local_setkey ("latex_do_environment", "^C^E");%!%    }%!%  which binds the function to Ctrl-C Ctrl-E.
  315. Fmake_tmp_buffer_name Prototype: String make_tmp_buffer_name (String base);%!% Generates a unique buffer name using the string 'base' for the beginning%!% of the name.  The buffer name is returned.  The buffer is not created.
  316. Fappend_string_to_file Prototype: Integer append_string_to_file (String str, String file);%!% The string 'str' is appended to file 'file'.  This function returns -1%!% upon failure or the number of lines written upon success.%!% See append_region_to_file for more information.
  317. Fwrite_string_to_file Prototype: Integer write_string_to_file (String str, String file);%!% The string 'str' is written to file 'file'.  This function returns -1%!% upon failure or the number of lines written upon success.%!% This function does not modify a buffer visiting the file.
  318. Ffortran_mode () Mode designed for the purpose of editing FORTRAN files.%!% After the mode is loaded, the hook 'fortran_hook' is called.%!% Useful functions include%!% %!%  Function:                    Default Binding:%!%   fortran_indent                    TAB%!%   fortran_newline                   RETURN  %!%     indents current line, inserts newline and indents it.%!%   fortran_continue_newline          ESC RETURN%!%     indents current line, and creates a continuation line on next line.%!%   fortran_comment                   ESC ;%!%     comments out current line%!%   fortran_uncomment                 ESC :%!%     uncomments current line%!%   fortran_electric_label            0-9%!%     Generates a label for current line or simply inserts a digit.%!%   fortran_next_statement            ^C^N%!%     moves to next fortran statementm skips comment lines%!%   fortran_previous_statement        ^C^P%!%     moves to previous fortran statement, skips comment lines%!%   fortran_ruler                     ^C^R%!%     inserts a ruler above the current line. Press any key to continue%!%   fortran_beg_of_subprogram         ESC ^A%!%     moves cursor to beginning of current subroutine/function%!%   fortran_end_of_subprogram         ESC ^E%!%     moves cursor to end of current subroutine/function%!%  %!% Variables include:%!%   Fortran_Continue_Char   --- character used as a continuation character.  %!%     By default, its value is "&"%!%   Fortran_Comment_String  --- string used by 'fortran_comment' to %!%     comment out a line.  The default string is "C ";%!%   Fortran_Indent_Amount   --- number of spaces to indent statements in %!%                               a block.  The default is 2.
  319. Fmost_mode () Emulates MOST fileviewer%!% The following keys are defined:%!% SPACE            next screen%!% DELETE           previous screen%!% /                search_forward%!% ?                search_backward%!% n                find next occurrence%!% q                quit most mode  (usually kills buffer if not modified)%!% e                edit buffer%!% h                help summary%!% t                Top of Buffer%!% b                End of Buffer
  320. Fdired ()Mode designed for maintaining and editing a directory.%!%%!%To invoke Dired, do `M-x dired' or `C-x d' (emacs)%!%%!%Dired will prompt for a directory name and get a listing of files in the%!%requested directory.%!%%!%The primary use of Dired is to "flag" files for deletion and then delete%!%the previously flagged files.%!%%!%'d'        Flag this file for deletion.%!%'u'        Remove deletion flag on this line.%!%DEL        Move point to previous line and remove deletion flag.%!%'~'        Flag all backup files for deletion.%!%%!%'x'        eXpunge all flagged files.  Dired will show a list of the%!%    files tagged for deletion and ask for confirmation before actually %!%    deleting the files.%!%%!%'r'        Rename file on the current line; prompts for a newname%!%'m'        Move tagged files to a new dir; prompts for dir name%!%%!%`g'        Update the entire contents of the Dired buffer%!%%!%`f'        Visit the file described on the current line, like typing%!%    `M-x find_file' and supplying that file name.  If current line is a%!%    directory, runs dired on the directory and the old buffer is killed.%!%%!%`v'        View the file described on the current line in MOST mode.%!%%!%`M-x dired_search'%!%    use fsearch to perform a search through the files listed in the%!%    dired buffer from the current point forward.  `M-x dired_search' %!%    from the visited file will revert to the dired buffer and continue %!%    the search from the next file in the list.%!%%!%all the usual motion commands plus some extras:%!%%!%`C-n' `n' SPC%!%    move point to the next line (at the beginning of the file name)%!%%!%`C-p' `p'%!%    move point to the previous line (at the beginning of the file name)%!%%!%`M-x dired_kill_line'    `^K' (emacs) %!%    removes a line from the dired buffer
  321. Fexpand_keystring Prototype: String expand_keystring (String key)%!% This function takes a key string that is suitable for use in a 'setkey'%!% definition and expands it to a human readable form.  %!% For example, it expands ^X to the form "Ctrl-X", ^[ to "ESC", %!% ^[[A to "UP", etc...%!% See also: setkey
  322. Fdircat(dir, file) A function to contat a directory with a filename.  Basically checks%!% for the final slash on the dir and adds on if necessary
  323. VInfo_Directory  A Comma separated list of info directories to search.
  324. Fstrncat Prototype: Void strncat (String a, String b, ..., Integer n);%!% Returns concatenated string "abc..."
  325. VC_Comment_Column  Column to begin a C comment--- used by c_make_comment
  326. Fgo_up Prototype: Void go_up (Integer n);%!% Move up 'n' lines.%!% See also: up, go_down
  327. Fgo_down Prototype: Void go_down (Integer n);%!% Move down 'n' lines.%!% See also: go_up, down
  328. Fgo_left Prototype: Void go_left (Integer n);%!% Move backward 'n' characters.%!% See also: left, go_right
  329. Fgo_right Prototype: Void go_right (Integer n);%!% Move forward 'n' characters.%!% See also: right, go_left
  330. Frunhooks Prototype: Void runhooks (String fun)%!% if S-Lang function 'fun' is defined, execute it.  It does nothing if 'fun'%!% does not exist.
  331. Flocal_setkey Prototype: Void local_setkey (String fun, String key);%!% This function is like 'setkey' but unlike 'setkey' which operates on the%!% global keymap, 'local_setkey' operates on the current keymap which may or%!% may not be the global one.%!% See also: setkey, definekey, local_unsetkey
  332. Flocal_unsetkey Prototype: Void local_unsetkey (String key);%!% This function is like 'unsetkey' but unlike 'unsetkey' which unsets a key%!% from the global keymap, 'local_unsetkey' operates on the current keymap%!% which may or may not be the global one.%!% See also: unsetkey, undefinekey, local_setkey
  333. Finsert_char(ch) insert a character into a buffer.%!% This function should be called instead of 'insert' when it is desired to%!% insert a 1 character string.  Unlike 'insert', insert_char takes an integer%!% argument.  For example, %!%    'x' insert_char%!% and %!%    "x" insert%!% are functionally equivalent but insert_char is more memory efficient.
  334. Fnewline Prototype: Void newline (Void);%!% insert a newline in the buffer at point.%!% See also: insert, insert_char
  335. Finsert_single_space () insert a single space into the buffer.
  336. Flooking_at_char Prototype: Integer looking_at_char (Integer ch);%!% This function returns non-zero if the character at the current editing%!% point is 'ch' otherwise it retuns zero.  This function performs a case %!% sensitive comparison.
  337. Ffile_type(file) returns type of file.  e.g., /usr/a.b/file.c --> c
  338. Fc_mode() Mode dedicated to facilitate the editing of C language files.  Functions%!% that affect this mode include:%!%%!%   function:             default binding:%!%   brace_bra_cmd               {%!%   brace_ket_cmd               }%!%   newline_and_indent          RETURN%!%   indent_line_cmd             TAB%!%   goto_match                  ^\%!%   c_make_comment              ESC ;%!%%!%  Variables affecting indentation include:%!%%!%   C_INDENT%!%   C_BRACE%!%   C_Comment_Column  --- used by c_make_comment
  339. Ftext_mode()  Mode for indenting and wrapping text%!%  Functions that affect this mode include:%!%%!%    Function:                     Default Binding:%!%      indent_line_cmd                 TAB%!%      newline_and_indent_cmd          RETURN%!%      format_paragraph                ESC Q%!%      narrow_paragraph                ESC N%!%%!%  Variables include:%!%      WRAP_INDENTS, WRAP%!%      TAB, TAB_DEFAULT
  340. Fno_mode()  Generic mode not designed for anything in particular.%!%  See:  text_mode, c_mode
  341. Vmode_hook_pointer  called from mode_hook.  Returns 0 if it is desired that control return%!% to mode_hook or 1 if mode hook should exit after calling mode_hook_ptr
  342. Fmodeline_hook() check first line for the simplest Emacs mode statement%!% -*- modename -*-
  343. Fadd_mode_for_extension Prototype: Void add_mode_for_extension (String mode, String ext);%!% This function modifies Mode_List in such a way that when a file with %!% filename extension `ext' is read in, function strcat (mode, "_mode")%!% will be called to set the mode.   That is, the first parameter 'mode' %!% is the name of a mode without the '_mode' added to the end of it.
  344. Fmode_hook (ext) This is a hook called by find_file routines to set the mode%!% for the buffer. This function takes one parameter, the filename extension%!% and returns nothing.
  345. Fset_buffer_modified_flag(modif) sets buf modified flag. If argument is 1, mark%!% buffer as modified.  If argument is 0, mark buffer as unchanged.
  346. Fbuffer_modified ()  returns non-zero if the buffer modified flag is set.  It returns zero%!%  if the buffer modified flag is not been set.  This works on the %!%  current buffer.  See also 'set_buffer_modified_flag'.
  347. Fset_buffer_undo(modif) set undo mode for buffer.  If argument is 1, undo is on.  0 turns it off
  348. Fset_readonly(n) Takes 1 parameter: 0 turn off readonly%!%                    1 turn on readonly
  349. Fset_overwrite(n) Takes 1 parameter: 0 turn off overwrite%!%                    1 turn on overwrite
  350. Vhelp_for_help_string  string to display at bottom of screen upon JED startup and when%!% user executes the help function.
  351. Fexpand_jedlib_file(f) Search for FILE in directories specified by JED_LIBRARY returning%!% expanded pathname if found or the Null string otherwise.
  352. Fread_string_with_completion Prototype: String read_string_with_completion (prompt, dflt, list)%!% This function takes 3 String parameters and returns a String.  The%!% first parameter is used as the prompt, the second parameter is the %!% default value to be returned and the third parameter is a list to be used%!% for completions.  This list is simply a comma separated list of strings.
  353. VStartup_With_File  If non-zero, startup by asking user for a filename if one was%!% not specified on the command line.
  354. Fjed_startup_hook() Function that gets executed right before JED enters its main editing%!% loop.  This is for last minute modifications of data structures that%!% did not exist when startup files were loaded (e.g., minibuffer keymap)
  355. Fwhatpos () display row and column information in minibuffer
  356. Ffind_jedlib_file(file) find a file from JED_LIBRARY, returns number of lines read or 0 if not %!% found.
  357. VHelp_File  name of the file to load when the help function is called.
  358. Fhelp() Pop up a window containing a help file.  The help file that is read%!% in is given by the variable Help_File.
  359. Fmake_backup_filename(dir, file) returns backup filename.  Arguments to function are dir and file.
  360. Fmake_autosave_filename(dir, file) returns autosave filename.  Arguments to function are dir and file.
  361. Fparse_filename(fn) breaks a filespec into dir filename--- %!% this routine returns dir and filename such that a simple strcat will%!% suffice to put them together again.  For example, on unix, /a/b/c%!% returns /a/b/ and c
  362. Ffind_file_hook(file) called AFTER a file is read in to a buffer.  FILENAME is on the stack.
  363. Fbuffer_filename Prototype: String buffer_filename ();%!% Returns the name of the file associated with the current buffer.  If %!% there is none associated with it, the empty string is returned.
  364. Fbuffer_format_in_columns() Prototype Void buffer_format_in_columns();%!% takes a buffer consisting of a sigle column of items and converts the%!% buffer to a multi-column format.
  365. Fcommand_line_hook() called from main in JED executable.
  366. Fdeln Prototype: Void deln (Integer n);%!% delete the next 'n' characters.
  367.