home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / AP / JED / JED097-1.TAR / jed / doc / function.doc < prev    next >
Encoding:
Text File  |  1994-12-12  |  74.7 KB  |  1,711 lines

  1.                    
  2. Sprintf :    C function: void SLsprintf (0 args)
  3. Prototype:  String Sprintf(String format, ..., Integer n);
  4.  Sprintf formats a string from 'n' objects according to 'format'.  
  5.  Unlike its C counterpart, Sprintf requires the number of items to
  6.  format.  For example.
  7.  
  8.       Sprintf("%f is greater than %f but %s is better than %s\n",
  9.                PI, E, "Cake" "Pie", 4);
  10.                
  11.  The final argument to Sprintf is the number of items to format; in
  12.  this case, there are 4 items.
  13.  
  14. --------------------------------------------------
  15. _clear_error :    C function: void SLang_clear_error (0 args)
  16.  May be used in error blocks to clear the error that triggered the
  17.  error block.  Execution resumes following the statement
  18.  triggering the block. 
  19. --------------------------------------------------
  20. _stkdepth :    C function: int SLstack_depth (0 args)
  21.  returns number of items on stack 
  22. --------------------------------------------------
  23. acos :    C function: int math_acos (0 args)
  24. --------------------------------------------------
  25. add_completion :    C function: void add_to_completion (1 args)
  26. Prototype Void add_completion(String f);
  27. Add S-Lang function with name 'f' to the list of function completions.
  28. See also: read_with_completion 
  29. --------------------------------------------------
  30. add_mode_for_extension
  31.  Prototype: Void add_mode_for_extension (String mode, String ext);
  32.  This function modifies Mode_List in such a way that when a file with 
  33.  filename extension `ext' is read in, function `mode' will be called to 
  34.  set the mode.
  35.  
  36. --------------------------------------------------
  37. aget :    C function: void SLarray_getelem (0 args)
  38.  Syntax: i j ... k  ARRAY aget
  39.  returns ARRAY[i][j]...[k] 
  40. --------------------------------------------------
  41. append_region_to_file :    C function: int append_to_file (1 args)
  42.  appends a region to FILE returning number of lines written or -1
  43.   on error.  This does NOT modify a buffer visiting the file; however,
  44.   it does flag the buffer as being changed on disk. 
  45. --------------------------------------------------
  46. append_region_to_file :    C function: int append_to_file (1 args)
  47.  appends a region to FILE returning number of lines written or -1
  48.   on error.  This does NOT modify a buffer visiting the file; however,
  49.   it does flag the buffer as being changed on disk. 
  50. --------------------------------------------------
  51. append_string_to_file
  52.  Prototype: Integer append_string_to_file (String str, String file);
  53.  The string 'str' is appended to file 'file'.  This function returns -1
  54.  upon failure or the number of lines written upon success.
  55.  See append_region_to_file for more information.
  56.  
  57. --------------------------------------------------
  58. aput :    C function: void SLarray_putelem (0 args)
  59.  Syntax: x i j ... k  ARRAY put
  60.  sets ARRAY[i][j]...[k] = x 
  61. --------------------------------------------------
  62. array_sort :    C function: void SLarray_sort (1 args)
  63.  Requires an array on the stack as well as a function name to call 
  64. for the comparison.  The array to be placed on the stack is the
  65. array to be sorted.  The routine returns an integer index array which 
  66. indicates the result of the sort.  The first array is unchanged. 
  67. --------------------------------------------------
  68. asin :    C function: int math_asin (0 args)
  69. --------------------------------------------------
  70. atan :    C function: int math_atan (0 args)
  71. --------------------------------------------------
  72. autoload :    C function: void SLang_autoload (2 args)
  73. Prototype: Void autoload(String fun, String file);
  74. This function simply declares function 'fun' to the interpreter.  When
  75. 'fun' is actually called, its actual function definition will be loaded
  76. from 'file'.
  77. Example:  autoload ("bessel_j0", "/usr/lib/slang/bessel.sl");
  78. See Also: evalfile 
  79. --------------------------------------------------
  80. autosave :    C function: void auto_save (0 args)
  81.  autosave current buffer if marked for autosave 
  82. --------------------------------------------------
  83. autosaveall :    C function: void auto_save_all (0 args)
  84.  save all buffers marked for autosave 
  85. --------------------------------------------------
  86. backward_paragraph :    C function: void backward_paragraph (0 args)
  87.  move point past current paragraph.  Slang hook is_paragraph_seperator
  88. is called (if defined) to determine if line is a paragraph seperator. 
  89. --------------------------------------------------
  90. beep :    C function: void beep (0 args)
  91.  Send beep to screen. 
  92. --------------------------------------------------
  93. bfind :    C function: int backward_search_line (1 args)
  94.  returns TRUE if STRING found backward on current line 
  95. --------------------------------------------------
  96. bkmrk_goto_mark
  97. --------------------------------------------------
  98. bkmrk_set_mark
  99. --------------------------------------------------
  100. blank_rect :    C function: void blank_rectangle (0 args)
  101.  blanks out rectangle defined by point and mark 
  102. --------------------------------------------------
  103. blooking_at
  104. --------------------------------------------------
  105. bob :    C function: void bob (0 args)
  106. Prototype: Void eob();
  107. Move Point to the beginning of the buffer.
  108. See also: bobp, eob, bol, eol 
  109. --------------------------------------------------
  110. bobp :    C function: int bobp (0 args)
  111.  TRUE if at beginning of buffer 
  112. --------------------------------------------------
  113. bol :    C function: void bol (0 args)
  114. Prototype: Void bol();
  115. Moves Point to the beginning of the current line.
  116. See also: eol, bob, eob, bolp 
  117. --------------------------------------------------
  118. bol_bsearch :    C function: int bol_bsearch (1 args)
  119.  Search backward string at beginning of line. Returns TRUE if found 
  120. --------------------------------------------------
  121. bol_fsearch :    C function: int bol_fsearch (1 args)
  122.  Search forward for string at beginning of line. Returns TRUE if found 
  123. --------------------------------------------------
  124. bolp :    C function: int bolp (0 args)
  125. Prototype: Integer bolp ();
  126. 'bolp' is used to test if the Point is at the beginning of a line.  It 
  127. returns non-zero if at the beginning of a line and 0 if not.
  128. See also: bol, eolp, bobp, eobp 
  129. --------------------------------------------------
  130. bsearch :    C function: int search_backward (1 args)
  131. Prototype: Integer bsearch (String str);
  132. Searches backward from the current Point for 'str'.  If 'str' is found, 
  133. this function will return non-zero and the Point will be placed at the
  134. location of the match.  If a match is not found, zero will be returned and
  135. the Point will not change.
  136. See also: fsearch, bol_bsearch, re_bsearch 
  137. --------------------------------------------------
  138. bskip_chars :    C function: void bskip_chars (1 args)
  139.  skip backward chars in STRING.  
  140.  See skip_chars for definition of STRING 
  141. --------------------------------------------------
  142. bskip_non_word_chars :    C function: void bskip_non_word_chars (0 args)
  143.  skip backwards over all characters that do not constitute a word. 
  144. --------------------------------------------------
  145. bskip_word_chars :    C function: void bskip_word_chars (0 args)
  146.  skip backwards over all characters that constitute a word. 
  147. --------------------------------------------------
  148. bskip_word_chars :    C function: void bskip_word_chars (0 args)
  149.  skip backwards over all characters that constitute a word. 
  150. --------------------------------------------------
  151. buffer_filename
  152. --------------------------------------------------
  153. buffer_format_in_columns()
  154.  Prototype Void buffer_format_in_columns();
  155.  takes a buffer consisting of a sigle column of items and converts the
  156.  buffer to a multi-column format.
  157.  
  158. --------------------------------------------------
  159. buffer_keystring :    C function: void do_buffer_keystring (1 args)
  160. Prototype: Void buffer_keystring (String str);
  161. Append string 'str' to the end of the input stream to be read by JED's
  162. getkey routines.
  163. See also: ungetkey, getkey
  164.  
  165. --------------------------------------------------
  166. buffer_list :    C function: void make_buffer_list (0 args)
  167.  returns a  list of buffers to the stack.  The top element of the 
  168. stack is the number of buffers 
  169. --------------------------------------------------
  170. buffer_modified ()
  171.   returns non-zero if the buffer modified flag is set.  It returns zero
  172.   if the buffer modified flag is not been set.  This works on the 
  173.   current buffer.  See also 'set_buffer_modified_flag'.
  174.  
  175. --------------------------------------------------
  176. buffer_visible :    C function: int jed_buffer_visible (1 args)
  177. Prototype: Integer buffer_visible(String buffer);
  178. Returns non-zero if 'buffer' is currently visible in a window or
  179. it returns zero if not. 
  180. --------------------------------------------------
  181. bufferp :    C function: int bufferp (1 args)
  182.  returns  TRUE if BUFFER exists 
  183. --------------------------------------------------
  184. bufsubstr :    C function: void buffer_substring (0 args)
  185. Prototype: String bufsubstr();
  186. This function returns the region specified by the Point and Mark as 
  187. a String.  If the region crosses lines, the string will contain
  188. newline characters.
  189. See also: insbuf, push_mark 
  190. --------------------------------------------------
  191. bury_buffer :    C function: void bury_buffer (1 args)
  192. Prototype: Void bury_buffer(String name);
  193. Make buffer 'name' unlikley to appear in a window.  
  194. --------------------------------------------------
  195. byte_compile_file :    C function: void SLang_byte_compile_file (2 args)
  196. Prototype Void byte_compile_file (String file, Integer method);
  197. byte compiles 'file' producing a new file with the same name except 
  198. a 'c' is added to the output file name.  For example, 
  199.       byte_compile_file("site.sl");
  200. produces a new file named 'site.slc'.  If 'method' is non-zero, the 
  201. file is preprocessed only.  Note that the resulting bytecompiled file
  202. must only be used by the executable that produced it.  Set 'method' to 
  203. a non-zero value to use the byte compiled file with more than one 
  204. executable.
  205. --------------------------------------------------
  206. c_mode()
  207.  Mode dedicated to facilitate the editing of C language files.  Functions
  208.  that affect this mode include:
  209.  
  210.    function:             default binding:
  211.    brace_bra_cmd               {
  212.    brace_ket_cmd               }
  213.    newline_and_indent          RETURN
  214.    indent_line_cmd             TAB
  215.    goto_match                  ^\
  216.    c_make_comment              ESC ;
  217.  
  218.   Variables affecting indentation include:
  219.  
  220.    C_INDENT
  221.    C_BRACE
  222.    C_Comment_Column  --- used by c_make_comment
  223.  
  224. --------------------------------------------------
  225. call :    C function: void call_cmd (1 args)
  226. Prototype: Void call(String f);
  227. Execute internal function named 'f'.  An internal function is a function
  228. that cannot be directly accessed from S-Lang.
  229. See: is_internal. 
  230. --------------------------------------------------
  231. case :    C function: int generic_equals (0 args)
  232. Prototype: Integer case(a, b);
  233. This function is designed to make the switch statement look more like
  234. the C one.  Basically, it does a generic compare operation.  
  235. Both parameters 'a' and 'b' must be of the same type.  It returns zero
  236. if their types differ or have different values.
  237. In a switch statment, it may be used as:
  238.   switch (token)
  239.   { case "return": return_function ();}
  240.   { case "break": break_function ();}
  241.  
  242. Unlike the C version, it one cannot have:
  243.  
  244.   switch (i)
  245.   {case 10: case 20: do_ten_or_twenty (i);}
  246.  
  247. One must do:
  248.  
  249.   switch (i)
  250.   {case 10 or case (i, 20) : do_ten_or_twenty (i);}
  251.  
  252. --------------------------------------------------
  253. change_default_dir :    C function: int ch_dir (1 args)
  254.   Change default directory to new directory.  Returns 0 upon
  255.  success and -1 upon failure.  All relative path names are expanded
  256.  with respect to the new default directory. 
  257. --------------------------------------------------
  258. char :    C function: void SLdo_char (0 args)
  259.  Prototype: String char (Integer c);
  260. This function takes and integer and returns a string of length 1 whose 
  261. first character has ascii value 'c'.
  262.  
  263. --------------------------------------------------
  264. check_region :    C function: void check_region (1 args)
  265.  Signals Error if mark not set.  Exchanges point 
  266. and mark to produce valid region.  A valid region is one with mark
  267. earlier in the buffer than point.  Always call this if using a region
  268. which requires point > mark.  Also, if argument is non-zero, spot is 
  269. pushed. 
  270. --------------------------------------------------
  271. chmod :    C function: int unix_chmod (2 args)
  272. Prototype Integer chmod(String file, Integer mode);
  273. 'chmod' changes the permissions of 'file' to those specified by 'mode'.
  274. It returns 0 upon success, -1 if the process lacks sufficient privilege
  275. for the operation, or -2 if the file does not exist.
  276. See also: chown, stat_file
  277.  
  278. --------------------------------------------------
  279. chown :    C function: int unix_chown (3 args)
  280. Prototype Integer chown(String file, Integer uid, Integer gid);
  281. Change ownership of 'file' to that of user id 'uid' and group id 'gid'.
  282. This function returns 0 upon success and a negative number up failure.
  283. It returns -1 if the process does not have sufficent privileges and -2
  284. if the file does not exist. 
  285. See also: chmod, stat_file 
  286. --------------------------------------------------
  287. command_line_arg :    C function: string command_line_argv (1 args)
  288.  Takes integer parameter N in the range: 0 <= N < MAIN_ARGC.
  289. MAIN_ARGC is a global variable indicating the number of command line 
  290. parameters.  This function returns the Nth parameter.
  291. See Also the variable MAIN_ARGC 
  292. --------------------------------------------------
  293. command_line_hook()
  294.  called from main in JED executable.
  295.  
  296. --------------------------------------------------
  297. copy_array :    C function: void SLcopy_array (0 args)
  298. Prototype: Void copy_array(Array b, Array a);
  299. Copies the contents of array 'a' to array 'b'.  Both arrays must be of
  300. the same type and dimension.
  301.  
  302. --------------------------------------------------
  303. copy_rect :    C function: void copy_rectangle (0 args)
  304.  save a copy of rectangle defined by point and mark in rectangle 
  305. buffer 
  306. --------------------------------------------------
  307. copy_region :    C function: void copy_region_cmd (1 args)
  308. Prototype: Void copy_region (String buf);
  309. Copies a marked region in the current buffer to buffer 'buf'.
  310. See also: insbuf, bufsubstr 
  311. --------------------------------------------------
  312. core_dump :    C function: void exit_error_cmd (2 args)
  313. Prototype: Void core_dump(String msg, Integer severity);
  314. Exit editor sumping the state of some crucial variables. If severity is 1, 
  315. dump core if possible.  Message msg is also displayed. 
  316. --------------------------------------------------
  317. cos :    C function: int math_cos (0 args)
  318. --------------------------------------------------
  319. count_chars :    C function: void count_chars (0 args)
  320.  returns a string of form "char 37, point 2150 of 10067"
  321.  where 2150 is character number of Point and 10067 is the total.
  322.  37 is the ascii value of current character.
  323.  A string is returned instead of numbers because MSDOSints are only 
  324.  16 bits and S-Lang does not have long integer types.
  325.  
  326. --------------------------------------------------
  327. create_array :    C function: void SLang_create_array (0 args)
  328.  Prototype: create_array (Integer type, Integer i_1, i_2 ... i_dim, dim);
  329. Creates an array of type 'type' with dimension 'dim'.
  330. i_n is an integer which specifies the maximum size of array in 
  331. direction n.   'type' is a control integer which specifies the type 
  332. of the array.
  333.  Types are:  's' : array of strings
  334.              'f' : array of floats
  335.              'i' : array of integers
  336.              'c' : array of characters
  337. At this point, dim cannot be larger than 3.
  338. Also note that space is dynamically allocated for the array and that
  339. copies of the array are NEVER put on the stack.  Rather, references to
  340. the array are put on the stack.  When the array is no longer needed, it
  341. must be freed with 'free_array'
  342. Example:
  343.    variable a = create_array ('f', 10, 1);
  344. This creates a 1 dimensional array of 10 floats and assigns it to 'a'
  345. See also: free_array
  346.  
  347. --------------------------------------------------
  348. define_case :    C function: void SLang_define_case (2 args)
  349.  Two parameters are integers in the range 0 to 255.  The first
  350.  integer is the ascii value of the upprcase character and the 2nd
  351.  integer is the value of its lowercase counterpart.  For example, to
  352.  define X as the uppercase of Y, do:
  353.    X Y define_case 
  354. --------------------------------------------------
  355. define_word :    C function: void define_word (1 args)
  356.  Only argument is a string which is an expression which defines 
  357.  a word.  Typically, it is a range of ascii values.  The default 
  358.  definition is: "a-z0-9"
  359.  To include a hyphen, make it the first character.  So for example,
  360.  "-i-n" defines a word to consist of letters 'i' to 'n'  and '-' 
  361. --------------------------------------------------
  362. definekey :    C function: void set_key_in_keymap (3 args)
  363. Prototype: Void definekey(String f, String key, String kmap);
  364. This function is used for binding keys to functions in a specific keymap.
  365. Here 'f' is the function to be bound, 'key' is a sequence of keys and 
  366. 'kmap' is the name of the keymap to be used.  See 'setkey' for a 
  367. definition of 'keys'.  
  368. See also: setkey, undefinekey, make_keymap, use_keymap 
  369. --------------------------------------------------
  370. del_region :    C function: void delete_region (0 args)
  371. Prototype: Void del_region();
  372. Deletes the region specified by the Point and Mark.
  373. See also: push_mark, markp, check_region 
  374. --------------------------------------------------
  375. del_region :    C function: void delete_region (0 args)
  376. Prototype: Void del_region();
  377. Deletes the region specified by the Point and Mark.
  378. See also: push_mark, markp, check_region 
  379. --------------------------------------------------
  380. delbuf :    C function: void kill_buffer_cmd (1 args)
  381.  deletes specified buffer name 
  382. --------------------------------------------------
  383. delete_file :    C function: int sys_delete_file (1 args)
  384.  Deletes FILENAME.  Returns 1 if deletion was successful, otherwise
  385. it returns 0. 
  386. --------------------------------------------------
  387. deln
  388.  Prototype: Void deln (Integer n);
  389.  delete the next 'n' characters.
  390.  
  391. --------------------------------------------------
  392. dircat(dir, file)
  393.  A function to contat a directory with a filename.  Basically checks
  394.  for the final slash on the dir and adds on if necessary
  395.  
  396. --------------------------------------------------
  397. directory :    C function: int expand_wildcards (1 args)
  398.  returns number of files and list of files which match filename. 
  399.  On unix, this defaults to filename*.  It is primarily useful for
  400.  DOS and VMS to expand wilcard filenames 
  401. --------------------------------------------------
  402. dired ()
  403. Mode designed for maintaining and editing a directory.
  404.  
  405. To invoke Dired, do `M-x dired' or `C-x d' (emacs)
  406.  
  407. Dired will prompt for a directory name and get a listing of files in the
  408. requested directory.
  409.  
  410. The primary use of Dired is to "flag" files for deletion and then delete
  411. the previously flagged files.
  412.  
  413. 'd'        Flag this file for deletion.
  414. 'u'        Remove deletion flag on this line.
  415. DEL        Move point to previous line and remove deletion flag.
  416. '~'        Flag all backup files for deletion.
  417.  
  418. 'x'        eXpunge all flagged files.  Dired will show a list of the
  419.     files tagged for deletion and ask for confirmation before actually 
  420.     deleting the files.
  421.  
  422. 'r'        Rename file on the current line; prompts for a newname
  423. 'm'        Move tagged files to a new dir; prompts for dir name
  424.  
  425. `g'        Update the entire contents of the Dired buffer
  426.  
  427. `f'        Visit the file described on the current line, like typing
  428.     `M-x find_file' and supplying that file name.  If current line is a
  429.     directory, runs dired on the directory and the old buffer is killed.
  430.  
  431. `v'        View the file described on the current line in MOST mode.
  432.  
  433. `M-x dired_search'
  434.     use fsearch to perform a search through the files listed in the
  435.     dired buffer from the current point forward.  `M-x dired_search' 
  436.     from the visited file will revert to the dired buffer and continue 
  437.     the search from the next file in the list.
  438.  
  439. all the usual motion commands plus some extras:
  440.  
  441. `C-n' `n' SPC
  442.     move point to the next line (at the beginning of the file name)
  443.  
  444. `C-p' `p'
  445.     move point to the previous line (at the beginning of the file name)
  446.  
  447. `M-x dired_kill_line'    `^K' (emacs) 
  448.     removes a line from the dired buffer
  449.  
  450. --------------------------------------------------
  451. down :    C function: int nextline (1 args)
  452. Prototype: Integer down(Integer n);
  453. Move Point down 'n' lines returning number of lines actually moved.  The 
  454. number returned will be less than 'n' only if the last line of the buffer
  455. has been reached.
  456. See also: down, left, right 
  457. --------------------------------------------------
  458. dump_bindings :    C function: void dump_bindings (1 args)
  459. Prototype: Void dump_bindings(String map);
  460. Dumps a list of the keybindings for the keymap specified by 'map'.
  461.  
  462. --------------------------------------------------
  463. dup :    C function: void SLdo_dup (0 args)
  464.  duplicate top object on the stack. 
  465. --------------------------------------------------
  466. dupmark :    C function: int dup_mark (0 args)
  467. Prototype Integer dupmark ();
  468. This function returns zero if the mark is not set or, if the mark is set,
  469. a duplicate of it is pushed and 1 is returned. 
  470. --------------------------------------------------
  471. enable_flow_control :    C function: void enable_flow_control (1 args)
  472.  If integer argument is non-zero, ^S/^Q flow control is enabled.  If
  473. argument is 0, ^S/^Q processing by the terminal is disabled.  Emacs mode
  474. sets this to 0 (flow control off). 
  475. --------------------------------------------------
  476. enable_top_status_line :           C function: void enable_menu_bar (1 args)
  477. Prototype: Void enable_top_status_line (Integer x);
  478. If x is non-zero, the top status line is enabled.  If x is zero, the
  479. top status line is disabled and hidden.
  480. See also: set_top_status_line
  481.  
  482. --------------------------------------------------
  483. enlargewin :    C function: void enlarge_window (0 args)
  484.  Makes the current window bigger by one line. 
  485. --------------------------------------------------
  486. eob :    C function: void eob (0 args)
  487. Prototype: Void eob();
  488. Move Point to the end of the buffer.
  489. See also: eobp, bob, bol, eol 
  490. --------------------------------------------------
  491. eobp :    C function: int eobp (0 args)
  492. Prototype: Integer eobp();
  493. Returns non-zero if the Point is positions at the beginning of the 
  494. buffer otherwise it returns zero.
  495. See also: eob, bolp, eolp 
  496. --------------------------------------------------
  497. eol :    C function: void eol (0 args)
  498. Prototype Void eol();
  499. Moves Point to the end of the current line. 
  500. See also: eolp, bol, bob, eob 
  501. --------------------------------------------------
  502. eolp :    C function: int eolp (0 args)
  503.  Returns TRUE if Point is at the end of a line. 
  504. --------------------------------------------------
  505. erase_buffer :    C function: void erase_buffer (0 args)
  506.  erases all text from the current buffer.
  507. See: delbuf 
  508. --------------------------------------------------
  509. error :    C function: void msg_error (1 args)
  510. Prototype: Void error(String msg);
  511. Signals an error condition and displays the string 'msg' at the bottom of
  512. the display.  The error can be caught by an ERROR_BLOCK and cleared with
  513. the '_clear_error' function.  Unless caught, the error will cause the 
  514. S-Lang stack to unwind to the top level.
  515. See also: _clear_error, message, flush 
  516. --------------------------------------------------
  517. evalbuffer :    C function: void load_buffer (0 args)
  518.  evaluates a buffer as S-Lang code.  See: evalfile 
  519. --------------------------------------------------
  520. evalfile :    C function: int SLang_load_file (1 args)
  521.  Prototype: Integer evalfile (String file);
  522. Load 'file' as S-Lang code.  If loading is successful, a non-zero result 
  523. will be returned.  If the file is not found, zero will be returned.
  524. See also: eval, autoload 
  525. --------------------------------------------------
  526. evalfile :    C function: int SLang_load_file (1 args)
  527.  Prototype: Integer evalfile (String file);
  528. Load 'file' as S-Lang code.  If loading is successful, a non-zero result 
  529. will be returned.  If the file is not found, zero will be returned.
  530. See also: eval, autoload 
  531. --------------------------------------------------
  532. exit_jed :    C function: void exit_jed (0 args)
  533. Prototype: Void exit_jed();
  534. Exits JED.  If any buffers are modified, the user is queried 
  535. about whether or not to save first.  Calls S-Lang hook "exit_hook"
  536. if defined.  If "exit_hook" is defined, it must either call 'quit_jed'
  537. or 'exit_jed' to really exit the editor.  If 'exit_jed' is called from
  538. 'exit_hook', 'exit_hook' will not be called again. 
  539. --------------------------------------------------
  540. exp :    C function: int math_exp (0 args)
  541. --------------------------------------------------
  542. expand_filename :    C function: string expand_filename (1 args)
  543.  expands filename to a canonical form 
  544. --------------------------------------------------
  545. expand_jedlib_file(f)
  546.  Search for FILE in directories specified by JED_LIBRARY returning
  547.  expanded pathname if found or the Null string otherwise.
  548.  
  549. --------------------------------------------------
  550. expand_keystring
  551.  Prototype: String expand_keystring (String key)
  552.  This function takes a key string that is suitable for use in a 'setkey'
  553.  definition and expands it to a human readable form.  
  554.  For example, it expands ^X to the form "Ctrl-X", ^[ to "ESC", 
  555.  ^[[A to "UP", etc...
  556.  See also: setkey
  557.  
  558. --------------------------------------------------
  559. extract_element :    C function: string SLang_extract_list_element (3 args)
  560.  Prototype: String extract_element (String list, Integer nth, Integer delim);
  561. Returns 'nth' element in 'list' where 'delim' separates elements of the 
  562. list. 'delim' is an Ascii value.  Elements are numbered from 0.
  563.  
  564. For example:
  565.   extract_element ("element 0, element 1, element 2", 1, ',');
  566. returns the string " element 1", whereas 
  567.   extract_element ("element 0, element 1, element 2", 2, ' ');
  568. returns "0,".
  569. See also: is_list_element.
  570.  
  571. --------------------------------------------------
  572. extract_filename :    C function: string extract_file (1 args)
  573. Prototype: String extract_filename (String filespec);
  574. Separates the filename from the path of 'filespec'. 
  575. Example: (unix)
  576.    var = extract_filename ("/tmp/name");
  577. assigns a value of "name" to 'var'
  578.  
  579. --------------------------------------------------
  580. ffind :    C function: int forward_search_line (1 args)
  581.  Returns TRUE if STRING is found forward current line. If found, Point
  582.   is moved to string 
  583. --------------------------------------------------
  584. file_status :    C function: int file_status (1 args)
  585.  returns integer desecribing FILE:
  586.      2 file is a directory
  587.      1 file exists
  588.      0 file does not exist.
  589.     -1 no access.
  590.     -2 path invalid
  591.     -3 unknown error
  592.  
  593. --------------------------------------------------
  594. file_time_compare :    C function: int file_time_cmp (2 args)
  595.  compares the modification times of two files, FILE1 and FILE2.
  596.  returns positive, negative, or zero integer for FILE1 > FILE2,
  597.  FILE1 < FILE2, or FILE1 == FILE2, resp.  The operator '>' should
  598.  be read 'is more recent than'.   The convention adopted by the routine
  599.  is that if a file does not exist, it was modified at the beginning of
  600.  time. Thus, if 'f' exists, but 'g' does not, f g file_time_compare
  601.  will return 1. 
  602. --------------------------------------------------
  603. file_type(file)
  604.  returns type of file.  e.g., /usr/a.b/file.c --> c
  605.  
  606. --------------------------------------------------
  607. filechgondsk :    C function: int file_changed_on_disk (1 args)
  608.  Returns true if FILE on disk is more recent than editor file 
  609. --------------------------------------------------
  610. find_file :    C function: int find_file_in_window (1 args)
  611.  finds FILE in current window returning non zero if file found.
  612.   See Also: read_file 
  613. --------------------------------------------------
  614. find_file_hook(file)
  615.  called AFTER a file is read in to a buffer.  FILENAME is on the stack.
  616.  
  617. --------------------------------------------------
  618. find_jedlib_file(file)
  619.  find a file from JED_LIBRARY, returns number of lines read or 0 if not 
  620.  found.
  621.  
  622. --------------------------------------------------
  623. find_tag
  624. --------------------------------------------------
  625. float :    C function: int slmath_do_float (0 args)
  626.  Convert from integer or string representation to floating point.  
  627.  For example, "12.34" float returns 12.34 to stack.
  628.  as another example, consider:
  629.  1 2 /   ==>  0  since 1 and 2 are integers
  630.  1 2 float / ==> 0.5 since float converts 2 to 2.0 and floating point 
  631.  division is used.
  632.  
  633. --------------------------------------------------
  634. flush :    C function: void flush_message (1 args)
  635.  Takes 1 string argument and immediately displays it as a message 
  636.  in the minibuffer.  It is exactly like the `message' function except
  637.  that its effect is immediate.
  638.  See: message, update 
  639. --------------------------------------------------
  640. flush_input
  641. --------------------------------------------------
  642. format_paragraph_hook
  643. --------------------------------------------------
  644. fortran_mode
  645. --------------------------------------------------
  646. forward_paragraph :    C function: void forward_paragraph (0 args)
  647.  move point past current paragraph.  Slang hook is_paragraph_seperator
  648. is called (if defined) to determine if line is a paragraph seperator. 
  649. --------------------------------------------------
  650. free_array :    C function: void SLfree_array (0 args)
  651.  Prototype: Void free_array (Array a);
  652. Frees up the space which array occupies.  All reference to this space
  653. will now be meaningless and will generate an error.
  654.  
  655. --------------------------------------------------
  656. fsearch :    C function: int search_forward (1 args)
  657. Prototype: Integer fsearch(String str);
  658.  Search forward in buffer looking for string 'str'.  If not found, this
  659. functions returns zero.  However, if found, it returns non-zero and 
  660. moves the Point to the start of the match.  It respects the setting
  661. of the variable 'CASE_SEARCH'.
  662. See also: ffind, bsearch, bfind, re_fsearch, CASE_SEARCH 
  663. --------------------------------------------------
  664. get_doc_string :    C function: int get_doc_string (2 args)
  665.  read doc string for OBJECT from FILE.  Returns 1 and string
  666.   upon success or 0 on failure.  If OBJECT is a functiion, 
  667.   it must be prefixed with an 'F'.  If it is a variable, the prefix
  668.   character is a 'V'.  
  669.   Example: "Fget_doc_string" 
  670. --------------------------------------------------
  671. get_key_function :    C function: void get_key_function (0 args)
  672.  Returns current key binding.  If key has a binding, it also 
  673.  returns 0 if the function is S-Lang or non zero if it is internal. 
  674. --------------------------------------------------
  675. get_last_macro :    C function: void get_last_macro (0 args)
  676.  Prototype: String get_last_macro();
  677. This function returns characters composing the last keyboard macro.  The
  678. charactors that make up the macro are encoded as themselves except the
  679. following characters:
  680.  
  681.     '\n'    ---->   \J
  682.     null    ---->   \@
  683.      \      ---->   \\
  684.      '"'    ---->   \"
  685.  
  686. --------------------------------------------------
  687. get_yes_no :    C function: int get_yes_no (1 args)
  688.  Takes one argument-- a string that is used to get 
  689.  yes or no responce from user.  Returns 1 if yes, 0 if no. 
  690.  Also returns -1 if abort and signals error. 
  691. --------------------------------------------------
  692. getbuf_info :    C function: void get_buffer_info (0 args)
  693. Prototype:  getbuf_info();
  694. This function returns 4 values to the stack.  The four value from the 
  695. top are:
  696.  Integer'flags'        % buffer flags
  697.  String 'buffer_name'  % name of buffer
  698.  String 'directory'    % directory associated with buffer
  699.  String 'file'         % name of file associated with buffer (if any).
  700.  
  701. The flags are encoded as: 
  702.   bit 0: buffer modified
  703.   bit 1: auto save mode
  704.   bit 2: file on disk modified
  705.   bit 3: read only bit
  706.   bit 4: overwrite mode
  707.   bit 5: undo enabled
  708.   bit 6: reserved
  709.   bit 7: just save instead of autosaving.  If bit 1 is set, 
  710.          this is ignored.
  711.  
  712. For example, 
  713.   (file,,,) = getbuf_info();
  714. returns the file associated with the buffer.
  715. See also: setbuf_info, whatbuf 
  716. --------------------------------------------------
  717. getenv :    C function: void lang_getenv_cmd (1 args)
  718.  Prototype: String getenv(String var);
  719. Returns value of an environment variable 'var' as a string.  The empty
  720. "" is returned if the 'var' is not defined. 
  721. See also: putenv 
  722. --------------------------------------------------
  723. getkey :    C function: int jed_getkey (0 args)
  724.  Read a key from input stream returning ASCII value read. 
  725. --------------------------------------------------
  726. getpid :    C function: int jed_getpid (0 args)
  727. Prototype: Integer getpid();
  728. Returns pid of current process. 
  729. --------------------------------------------------
  730. go_down
  731.  Prototype: Void go_down (Integer n);
  732.  Move down 'n' lines.
  733.  See also: go_up, down
  734.  
  735. --------------------------------------------------
  736. go_left
  737.  Prototype: Void go_left (Integer n);
  738.  Move backward 'n' characters.
  739.  See also: left, go_right
  740.  
  741. --------------------------------------------------
  742. go_right
  743.  Prototype: Void go_right (Integer n);
  744.  Move forward 'n' characters.
  745.  See also: right, go_left
  746.  
  747. --------------------------------------------------
  748. go_up
  749.  Prototype: Void go_up (Integer n);
  750.  Move up 'n' lines.
  751.  See also: up, go_down
  752.  
  753. --------------------------------------------------
  754. goto_bottom_of_window
  755. --------------------------------------------------
  756. goto_column :    C function: void goto_column (1 args)
  757.  Move Point to COLUMN inserting spaces and tabs if necessary. 
  758. --------------------------------------------------
  759. goto_column_best_try :    C function: int goto_column1 (1 args)
  760. Prototype: Integer goto_column_best_try (Integer c);
  761. This function is like goto_column except that it will not insert
  762. spaces.  It returns the column number is did go to. 
  763. --------------------------------------------------
  764. goto_line :    C function: void goto_line (1 args)
  765.  move Point to LINE. 
  766. --------------------------------------------------
  767. help()
  768.  Pop up a window containing a help file.  The help file that is read
  769.  in is given by the variable Help_File.
  770.  
  771. --------------------------------------------------
  772. indent_line :    C function: void indent_line (0 args)
  773.  Indent line according to current mode. 
  774. --------------------------------------------------
  775. init_char_array :    C function: void SLinit_char_array (0 args)
  776. Prototype: Void init_char_array(Array_Type a, String s);
  777. a is an array of type 'c' (character array) and s is a string.
  778.  
  779. --------------------------------------------------
  780. input_pending :    C function: int input_pending (1 args)
  781.  Only argument is amount of seconds/10 to wait for input.  0 returns
  782.  right away.  Returns TRUE if there is input waiting. 
  783. --------------------------------------------------
  784. insbuf :    C function: void insert_buffer_name (1 args)
  785. Prototype: Void insbuf (String buf);
  786. Insert buffer named 'buf' into the current buffer at Point.
  787. See also: copy_region 
  788. --------------------------------------------------
  789. insert :    C function: void insert_string (1 args)
  790. Prototype: Void insert(String str);
  791. Inserts string 'str' in buffer at the current Point.
  792. See also: del, insert_file, insbuf 
  793. --------------------------------------------------
  794. insert_buffer
  795. --------------------------------------------------
  796. insert_char(ch)
  797.  insert a character into a buffer.
  798.  This function should be called instead of 'insert' when it is desired to
  799.  insert a 1 character string.  Unlike 'insert', insert_char takes an integer
  800.  argument.  For example, 
  801.     'x' insert_char
  802.  and 
  803.     "x" insert
  804.  are functionally equivalent but insert_char is more memory efficient.
  805.  
  806. --------------------------------------------------
  807. insert_file :    C function: int insert_file (1 args)
  808.  This returns <= 0 if file not found. 
  809. --------------------------------------------------
  810. insert_file_region :    C function: int insert_file_region (3 args)
  811. --------------------------------------------------
  812. insert_rect :    C function: void insert_rectangle (0 args)
  813.  insert contents of previously deleted rectangle at Point. 
  814. --------------------------------------------------
  815. insert_single_space ()
  816.  insert a single space into the buffer.
  817.  
  818. --------------------------------------------------
  819. integer :    C function: void SLdo_integer (0 args)
  820.  Convert from a string representation to integer.  For example,
  821.  "1234" integer returns 1234 to stack. 
  822. --------------------------------------------------
  823. integer :    C function: void SLdo_integer (0 args)
  824.  Convert from a string representation to integer.  For example,
  825.  "1234" integer returns 1234 to stack. 
  826. --------------------------------------------------
  827. is_defined :    C function: int SLang_is_defined (1 args)
  828.  Prototype: Integer is_defined (String obj);
  829. This function is used to determine whether or not 'obj' has been defined.
  830. If 'obj' is not defined, it returns 0.  Otherwise, it returns a non-zero
  831. value that defpends on the type of object 'obj' represents.  Specifically:
  832.  
  833.          +1 if arg is an intrinsic function 
  834.          +2 if user defined function
  835.          -1 if intrinsic variable
  836.          -2 if user defined variable 
  837. --------------------------------------------------
  838. is_internal :    C function: int is_internal (1 args)
  839. Prototype Integer is_internal(String f);
  840. Returns non-zero is function 'f' is defined as an internal function or
  841. returns zero if not.  Internal functions not immediately accessable from
  842. S-Lang; rather, they must be called using the 'call' function.
  843. See also: call, is_defined.
  844. --------------------------------------------------
  845. is_list_element :    C function: int SLang_is_list_element (3 args)
  846.  Prototype: Integer is_list_element (String list, String elem, Integer delim);
  847. If 'elem' is an element of 'list' where 'list' is a 'delim' seperated 
  848. list of strings, this function returns 1 plus the matching element 
  849. number.  If 'elem' is not a member of the list, zero is returned.
  850. Example:
  851.   is_list_element ("element 0, element 1, element 2", "0,", ' ');
  852. returns 2 since "0," is element number one of the list (numbered from
  853. zero).
  854. See also: extract_element.
  855.  
  856. --------------------------------------------------
  857. is_substr :    C function: void SLdo_issubstr (0 args)
  858.  Syntax: "a" "b" is_substr
  859.  returns the position of "b" in "a".  If "b" does not occur in "a"
  860.  it returns 0--- the first position is 1 
  861. --------------------------------------------------
  862. isdigit :    C function: int SLdo_isdigit (1 args)
  863.  returns TRUE if CHAR (string of length 1) is a digit. 
  864. --------------------------------------------------
  865. jed_startup_hook()
  866.  Function that gets executed right before JED enters its main editing
  867.  loop.  This is for last minute modifications of data structures that
  868.  did not exist when startup files were loaded (e.g., minibuffer keymap)
  869.  
  870. --------------------------------------------------
  871. keymap_p :    C function: int keymap_p (1 args)
  872.  Returns TRUE if KEYMAP is defined. 
  873. --------------------------------------------------
  874. kill_rect :    C function: void kill_rectangle (0 args)
  875.  deletes rectangle defined  by point and mark.  The contents of 
  876.   the rectangle are saved in the rectangle buffer destroying previous
  877.   contents. 
  878. --------------------------------------------------
  879. left :    C function: int backwchars (1 args)
  880. Prototype: Integer left(Integer n);
  881. Move Point backward 'n' characters returning number actually moved.  
  882. The number returned will be less than 'n' only if the top of the buffer 
  883. is reached. 
  884. See Also: right, up, down, bol, bob 
  885. --------------------------------------------------
  886. local_setkey
  887.  Prototype: Void local_setkey (String fun, String key);
  888.  This function is like 'setkey' but unlike 'setkey' which operates on the
  889.  global keymap, 'local_setkey' operates on the current keymap which may or
  890.  may not be the global one.
  891.  See also: setkey, definekey, local_unsetkey
  892.  
  893. --------------------------------------------------
  894. local_unsetkey
  895.  Prototype: Void local_unsetkey (String key);
  896.  This function is like 'unsetkey' but unlike 'unsetkey' which unsets a key
  897.  from the global keymap, 'local_unsetkey' operates on the current keymap
  898.  which may or may not be the global one.
  899.  See also: unsetkey, undefinekey, local_setkey
  900.  
  901. --------------------------------------------------
  902. log :    C function: int math_log (0 args)
  903. --------------------------------------------------
  904. log10 :    C function: int math_log10 (0 args)
  905. --------------------------------------------------
  906. looking_at :    C function: int looking_at (1 args)
  907. Prototype: Integer looking_at(String s);
  908. Returns non-zero if Point is positioned in he buffer such that the 
  909. characters immediately following it match 's' otherwise it returns 0.
  910. See also: ffind, fsearch, re_fsearch, bfind 
  911. --------------------------------------------------
  912. looking_at_char
  913.  Prototype: Integer looking_at_char (Integer ch);
  914.  This function returns non-zero if the character at the current editing
  915.  point is 'ch' otherwise it retuns zero.  This function performs a case 
  916.  sensitive comparison.
  917.  
  918. --------------------------------------------------
  919. lstat_file :    C function: int unix_lstat_file (1 args)
  920. Prototype: Integer lstat_file(String file);
  921. This function is like 'stat_file' but it returns information about 
  922. the link itself. See 'stat_file' for usage.
  923. See also: stat_file 
  924. --------------------------------------------------
  925. make_autosave_filename(dir, file)
  926.  returns autosave filename.  Arguments to function are dir and file.
  927.  
  928. --------------------------------------------------
  929. make_backup_filename(dir, file)
  930.  returns backup filename.  Arguments to function are dir and file.
  931.  
  932. --------------------------------------------------
  933. make_keymap :    C function: void create_keymap (1 args)
  934.  Creates a new keymap with name map.  The newly created keymap is an 
  935. exact copy of the global map "global".
  936. See: use_keymap, definekey, undefinekey 
  937. --------------------------------------------------
  938. make_printable_string :    C function: void make_printable_string (1 args)
  939. Prototype: String make_printable_string(String str);
  940. Takes input string 'str' and creates a new string that may be used by the
  941. interpreter as an argument to the 'eval' function.  The resulting string is
  942. identical to 'str' except that it is enclosed in double quotes and the
  943. backslash, newline, and double quote characters are expanded. 
  944. See also: eval
  945.  
  946. --------------------------------------------------
  947. make_tmp_buffer_name
  948.  Prototype: String make_tmp_buffer_name (String base);
  949.  Generates a unique buffer name using the string 'base' for the beginning
  950.  of the name.  The buffer name is returned.  The buffer is not created.
  951.  
  952. --------------------------------------------------
  953. map_input :    C function: void map_character (2 args)
  954.  Used to remap input characters from the keyboard to a different 
  955.   character before JED interprets the character.  For example,
  956. '8 127 map_input' will cause JED to think that the ^H (8) is the 
  957.  delete character (127).  Note that '8 127 map_input 127 8 map_input
  958.  effectively swaps the ^H and delete keys. 
  959. --------------------------------------------------
  960. markp :    C function: int markp (0 args)
  961. Prototype: Void markp();
  962. Returns a non-zero value if a mark is set in the buffer otherwise it
  963. returns zero.  A mark usually denotes a region is defined.
  964. See also: psh_mark, pop_mark, check_region, push_spot 
  965. --------------------------------------------------
  966. message :    C function: void message (1 args)
  967. Prototype: Void message(String msg);
  968. Displays the string 'msg' in the MiniBuffer at the bottom of the display.
  969. This does not immediately display the message.  In particular, subsequent
  970. calls to 'message' will overwrite the values of previous calls.  The 
  971. message is displayed when the screen is updated next.  For an immediate
  972. effect, use the function 'flush' instead.
  973. See also: flush, error, update 
  974. --------------------------------------------------
  975. mkdir :    C function: int make_directory (1 args)
  976.  create a directory with NAME.  Returns TRUE if successful, 0 otherwise. 
  977. --------------------------------------------------
  978. mode_hook (ext)
  979.  This is a hook called by find_file routines to set the mode
  980.  for the buffer. This function takes one parameter, the filename extension
  981.  and returns nothing.
  982.  
  983. --------------------------------------------------
  984. modeline_hook()
  985.  check first line for the simplest Emacs mode statement
  986.  -*- modename -*-
  987.  
  988. --------------------------------------------------
  989. most_mode ()
  990.  Emulates MOST fileviewer
  991.  The following keys are defined:
  992.  SPACE            next screen
  993.  DELETE           previous screen
  994.  /                search_forward
  995.  ?                search_backward
  996.  n                find next occurrence
  997.  q                quit most mode  (usually kills buffer if not modified)
  998.  e                edit buffer
  999.  h                help summary
  1000.  t                Top of Buffer
  1001.  b                End of Buffer
  1002.  
  1003. --------------------------------------------------
  1004. narrow :    C function: void narrow_to_region (0 args)
  1005.  restrict editing to region of LINES defined by point and mark.  
  1006.   Use 'widen' to remove the restriction. Be careful with this because
  1007.   it currently does not remember a previous narrow. 
  1008. --------------------------------------------------
  1009. newline
  1010.  Prototype: Void newline (Void);
  1011.  insert a newline in the buffer at point.
  1012.  See also: insert, insert_char
  1013.  
  1014. --------------------------------------------------
  1015. no_mode()
  1016.   Generic mode not designed for anything in particular.
  1017.   See:  text_mode, c_mode
  1018.  
  1019. --------------------------------------------------
  1020. nwindows :    C function: int num_windows (0 args)
  1021. Prototype Integer nwindows();
  1022. Return number of windows currently visible.
  1023. See also: splitwindow, onewindow, window_size 
  1024. --------------------------------------------------
  1025. onewindow :    C function: void one_window (0 args)
  1026.  make current window the only one. 
  1027. --------------------------------------------------
  1028. open_rect :    C function: void open_rectangle (0 args)
  1029.  insert a BLANK rectangle.  The rectangle  is defined by point and mark. 
  1030. --------------------------------------------------
  1031. otherwindow :    C function: void other_window (0 args)
  1032. Prototype: Void otherwindow();
  1033. Switch to next window. 
  1034. See also: nwindows, onewindow 
  1035. --------------------------------------------------
  1036. parse_filename(fn)
  1037.  breaks a filespec into dir filename--- 
  1038.  this routine returns dir and filename such that a simple strcat will
  1039.  suffice to put them together again.  For example, on unix, /a/b/c
  1040.  returns /a/b/ and c
  1041.  
  1042. --------------------------------------------------
  1043. pipe_region :    C function: int pipe_region (1 args)
  1044.  pipes region to CMD returning number of lines written. 
  1045. --------------------------------------------------
  1046. polynom :    C function: int math_poly (0 args)
  1047.  Usage:
  1048.   a b .. c n x polynom  =y
  1049.  This computes:
  1050.   ax^n + bx^(n - 1) + ... c = y  
  1051. --------------------------------------------------
  1052. pop :    C function: void SLdo_pop (0 args)
  1053.  Prototype: Void pop ();
  1054. 'pop' is used to remove the top object from the S-Lang stack.  It is 
  1055. typically used to ignore values from function that return a value. 
  1056. --------------------------------------------------
  1057. pop2buf :    C function: void pop_to_buffer (1 args)
  1058. Prototype: Void pop2buf (String buf);
  1059. Pop up a window containing a buffer named 'buf'. If 'buf' does not exist,
  1060. it will be created. If 'buf' already exists in a window, the window containing
  1061. 'buf' will be the active one.  This function will create a new window
  1062. if necessary.
  1063. See also: pop2buf_whatbuf, setbuf, sw2buf 
  1064. --------------------------------------------------
  1065. pop2buf_whatbuf :    C function: string pop_to_buffer (1 args)
  1066. Prototype: String pop2buf_whatbuf (String buf);
  1067. This function performs the same function as 'pop2buf' except that the 
  1068. name of the buffer that 'buf' replaced in the window is returned.  This 
  1069. allows one to replace the buffer in the window with the one previously
  1070. there. 
  1071. See also: pop2buf 
  1072. --------------------------------------------------
  1073. pop_mark :    C function: void pop_mark (1 args)
  1074.  Pop last pushed mark off the mark stack. If argument is non zero, 
  1075.   move point to position of mark first. 
  1076. --------------------------------------------------
  1077. pop_spot :    C function: void pop_spot (0 args)
  1078. Prototype: Void pop_spot ();
  1079. This function is used after 'push_spot' to return to the location where
  1080. 'push_spot' was called.
  1081. See also: push_spot, pop_mark 
  1082. --------------------------------------------------
  1083. pow :    C function: int math_pow (0 args)
  1084. --------------------------------------------------
  1085. prefix_argument :    C function: int do_prefix_argument (1 args)
  1086.  Usage:  int prefix_argument(int default);
  1087.     Returns value of prefix argument if there is one otherwise
  1088.     returns 'default'. 
  1089. --------------------------------------------------
  1090. prev_mini_command
  1091. --------------------------------------------------
  1092. print_stack :    C function: void lang_print_stack (0 args)
  1093.  dumps tha S-Lang stack 
  1094. --------------------------------------------------
  1095. print_stack :    C function: void lang_print_stack (0 args)
  1096.  dumps tha S-Lang stack 
  1097. --------------------------------------------------
  1098. push_mark :    C function: void push_mark (0 args)
  1099. Prototype: Void push_mark();
  1100. This function marks the current Point as the beginning of a region.  
  1101. Other functions operate on the region defined by the Point and the Mark. 
  1102. See also: pop_mark, push_spot, markp, dupmark, check_region 
  1103. --------------------------------------------------
  1104. push_spot :    C function: void push_spot (0 args)
  1105. Prototype: Void push_spot ();
  1106. 'push_spot' pushes the location of the current buffer location onto a 
  1107. stack.  This function does not set the mark.  Use push_mark for that purpose.
  1108. The spot can be returned to using 'pop_spot'.
  1109. See also: pop_spot, push_mark 
  1110. --------------------------------------------------
  1111. putenv :    C function: void lang_putenv_cmd (0 args)
  1112. Prototype: Void putenv(String s);
  1113. This functions adds string 's' to the environment.  Typically, 's' should
  1114. be a String of the form "name=value".  It signals an error upon failure.
  1115.  
  1116. --------------------------------------------------
  1117. quit_jed :    C function: void quit_jed (0 args)
  1118.  Quit JED saving no buffers, just get out! 
  1119. --------------------------------------------------
  1120. random :    C function: int make_random_number (2 args)
  1121.  Usage:  seed n random
  1122.  Returns a random number in the range 0 to n - 1.  If seed is 0, the 
  1123.  number generated depends on previous seed.  If seed is -1, a seed based 
  1124.  on current time and pid is used, otherwise, seed is used as a seed. 
  1125. --------------------------------------------------
  1126. re_bsearch :    C function: int re_search_backward (1 args)
  1127. Prototype: Integer re_bsearch(String pattern);
  1128. Search backward for regular expression 'pattern'.  This function returns
  1129. the 1 + length of the string  matched.  If no match is found, it returns 
  1130. 0.
  1131.  
  1132. See also: bsearch, bol_bsearch, re_fsearch 
  1133. --------------------------------------------------
  1134. re_fsearch :    C function: int re_search_forward (1 args)
  1135. Prototype: Integer re_fsearch(String pattern);
  1136. Search forward for regular expression 'pattern'.  This function returns
  1137. the 1 + length of the string  matched.  If no match is found, it returns 
  1138. 0.
  1139.  
  1140. See also: fsearch, bol_fsearch, re_bsearch 
  1141. --------------------------------------------------
  1142. read_file :    C function: int find_file_cmd (1 args)
  1143.   read FILE into its own buffer  returning non zero if file exists.
  1144.   see find_file to read a file into a window. 
  1145. --------------------------------------------------
  1146. read_mini :    C function: void mini_read (3 args)
  1147.  read from minibuffer with PROMPT and DEFAULT strings using STRING
  1148.  to stuff the minibuffer.  Returns string to stack. 
  1149. --------------------------------------------------
  1150. read_with_completion :    C function: void read_object_with_completion (4 args)
  1151.  Takes 4 parameters:  PROMPT(string) DEFAULT(string) STUFF(string) 
  1152.  and TYPE(integer).
  1153.  TYPE must be one of:
  1154.     'f'   file name
  1155.     'b'   buffer name
  1156.     'F'   function name
  1157.     'V'   variable name.
  1158.     
  1159. STUFF is a string which is stuffed into the buffer.
  1160. Using this function enables completion on the object.
  1161.  
  1162. --------------------------------------------------
  1163. recenter :    C function: void recenter (1 args)
  1164.  update window with current line on Nth line of window. 
  1165.   If N is 0, recenter 
  1166. --------------------------------------------------
  1167. regexp_nth_match :    C function: void regexp_nth_match (1 args)
  1168. --------------------------------------------------
  1169. rename_file :    C function: int rename_file (2 args)
  1170.  rename file from OLD_NAME to NEW_NAME returning 0 if the 
  1171.  operation succeeds, and a non-zero value if it fails. 
  1172.  Both files must be on the same file system. 
  1173. --------------------------------------------------
  1174. replace :    C function: void replace_cmd (2 args)
  1175. Prototype Void replace(String old, String new);
  1176. Replaces all occurances of 'old' with 'new' from current point to
  1177. the end of the buffer. The Point is returned to the initial location. 
  1178. --------------------------------------------------
  1179. replace_match :    C function: int replace_match (2 args)
  1180. Prototype: Integer replace_match(String s, Integer how);
  1181. This function replaces text previously matched with `re_fsearch' or
  1182. `re_bsearch' at the current editing point with string 's'.  If 'how' is
  1183. zero, 's' is a specially formatted string of the form described below.
  1184. If 'how' is non-zero, 's' is regarded as a simple string and is used
  1185. literally.  If the replacement fails, this function returns zero
  1186. otherwise, it returns non-zero.
  1187.  
  1188. --------------------------------------------------
  1189. right :    C function: int forwchars (1 args)
  1190. Prototype: Integer right(Integer n);
  1191. This function moves the Point forward forward 'n' characters and returns
  1192. the number actually moved.  The number returned will be smaller than 'n'
  1193. if the end of the buffer is reached.
  1194. See also: left, up, down, eol, eob 
  1195. --------------------------------------------------
  1196. rmdir :    C function: int delete_directory (1 args)
  1197.  delete a directory with NAME.  Returns TRUE if successful, 0 otherwise. 
  1198.  The directory must be empty for the operation to succeed. 
  1199. --------------------------------------------------
  1200. runhooks
  1201.  Prototype: Void runhooks (String fun)
  1202.  if S-Lang function 'fun' is defined, execute it.  It does nothing if 'fun'
  1203.  does not exist.
  1204.  
  1205. --------------------------------------------------
  1206. save_search_string :    C function: void save_search_string (1 args)
  1207. Prototype: Void save_search_string(String str);
  1208. Sets the value of the read-only variable 'LAST_SEARCH' to 'str'. 
  1209. See also: LAST_SEARCH 
  1210. --------------------------------------------------
  1211. search_file :    C function: int search_file (3 args)
  1212.  search FILE for STRING returning TRUE if string found. 
  1213. --------------------------------------------------
  1214. set_abort_char :    C function: void set_abort_char (1 args)
  1215.  Change Abort character to CHAR.  The default is 7 which is ^G.
  1216.  Using this function modifies ALL keymaps 
  1217. --------------------------------------------------
  1218. set_buffer_hook :    C function: void set_buffer_hook (2 args)
  1219. Prototype: Void set_buffer_hook (String hook, String f);
  1220. Set current buffer hook 'hook' to function 'f'. 'f' is a user
  1221. defined S-Lang function.  Currently, name can be any one of:
  1222.   "par_sep"  -- returns zero if the current line does not
  1223.                 constitute the beginning or end of a paragraph.  
  1224.                 It returns non-zero otherwise.  The default value of 'hook' is 
  1225.                 'is_paragraph_separator'.
  1226.   "indent_hook" -- returns nothing.  It is called by the indent line
  1227.                 routines.
  1228.   "wrap_hook"   hook that is called after a line is wrapped.  Returns
  1229.                 nothing
  1230.  
  1231. --------------------------------------------------
  1232. set_buffer_modified_flag(modif)
  1233.  sets buf modified flag. If argument is 1, mark
  1234.  buffer as modified.  If argument is 0, mark buffer as unchanged.
  1235.  
  1236. --------------------------------------------------
  1237. set_buffer_undo(modif)
  1238.  set undo mode for buffer.  If argument is 1, undo is on.  0 turns it off
  1239.  
  1240. --------------------------------------------------
  1241. set_color :    C function: void set_term_colors (3 args)
  1242. Prototype: Void set_color(String object, String fg, String bg);
  1243. This function sets the foreground and background colors of an 'object'
  1244. to 'fg' and 'bg'.  The exact values of the strings 'fg' and 'bg' are 
  1245. system dependent.  
  1246. Valid object names are: 
  1247.   "status", "normal", "region", and "cursor".
  1248. In addition, if color syntax highlighting is enabled, the following object
  1249. names are also meaningful:
  1250.   "number", "delimeter", "keyword", "string", "comment", "operator",
  1251.   "preprocess"
  1252. See also: WANT_SYNTAX_HIGHLIGHT
  1253.  
  1254. --------------------------------------------------
  1255. set_color_esc :    C function: void set_term_color_esc (2 args)
  1256. Prototype: Void set_color_esc (String object, String esc_seq);
  1257. This function may be used to associate an escape sequence with an 
  1258. object.  The escape sequence will be set to the terminal prior to 
  1259. sending the object.  It may be used on mono terminals to underline 
  1260. objects, etc...
  1261. See 'set_color' for a list of valid object names.
  1262.  
  1263. --------------------------------------------------
  1264. set_file_translation :    C function: void set_file_trans (1 args)
  1265.  1 open files in binary, 0 in text (default) 
  1266. --------------------------------------------------
  1267. set_float_format :    C function: void set_float_format (1 args)
  1268. Prototype: Void set_float_format (String fmt);
  1269. This function is used to set the floating point format to be used
  1270. when floating point numbers are printed.  The routines that use this
  1271. are the traceback routines and the 'string' function. The default
  1272. value is "%f".
  1273.  
  1274. --------------------------------------------------
  1275. set_overwrite(n)
  1276.  Takes 1 parameter: 0 turn off overwrite
  1277.                     1 turn on overwrite
  1278.  
  1279. --------------------------------------------------
  1280. set_readonly(n)
  1281.  Takes 1 parameter: 0 turn off readonly
  1282.                     1 turn on readonly
  1283.  
  1284. --------------------------------------------------
  1285. set_status_line :    C function: void set_status_format (2 args)
  1286.   Usage:  set_status_line(String format, Integer flag);
  1287.   If flag is non-zero, format applies to the global format string 
  1288.   otherwise it applies to current buffer only.  
  1289.   Format is a string that may contain the following format specifiers:
  1290.     %b   buffer name
  1291.     %f   file name
  1292.     %v   JED version
  1293.     %t   current time --- only used if variable DISPLAY_TIME is non-zero
  1294.     %p   line number or percent string
  1295.     %%   literal '%' character
  1296.     %m   mode string
  1297.     
  1298. --------------------------------------------------
  1299. set_term_vtxxx :    C function: void do_tt_set_term_vtxxx (1 args)
  1300.  Set terminal display appropriate for a vtxxx terminal.  This function 
  1301. takes a single integer parameter.  If non-zero, the terminal type is set 
  1302. for a vt100.  This means the terminal lacks the ability to insert/delete
  1303. lines and characters.  If the parameter is zero, the terminal is assumed
  1304. to be vt102 compatable.  Unless you are using a VERY old terminal or 
  1305. a primitive emulator, use zero as the parameter. 
  1306. --------------------------------------------------
  1307. set_top_status_line :    C function: void define_top_screen_line (1 args)
  1308. Prototype: String set_top_status_line (String str);
  1309. This functions sets the string to be displayed at the top of the 
  1310. display. It returns the value of the line that was previously 
  1311. displayed.
  1312.  
  1313. See also: enable_top_status_line
  1314.  
  1315. --------------------------------------------------
  1316. setbuf :    C function: void set_buffer (1 args)
  1317. Prototype: Void setbuf(String buf);
  1318. Changes the default buffer to one named 'buf' for editing.  This change
  1319. only lasts until top level of editor loop is reached at which point the
  1320. the buffer associated with current window will be made the default.
  1321. See also: sw2buf, pop2buf, whatbuf 
  1322. --------------------------------------------------
  1323. setbuf_info :    C function: void set_buffer_info (4 args)
  1324. Prototype: Void setbuf_info(String file, String dir, String buf, Integer flags);
  1325. Sets information of the current buffer.  Here 'file' is the name of the 
  1326. file to be associated with the buffer; 'dir' is the directory to be 
  1327. associated with the buffer; buf is the name to be assigned to the buffer,
  1328. and flags describe the buffer attributes.  See 'getbuf_info' for a 
  1329. discussion of 'flags'.  Note that the actual file associated with the
  1330. buffer is located in directory 'dir' with the name 'file'.
  1331. See also: getbuf_info 
  1332. --------------------------------------------------
  1333. setkey :    C function: void set_key (2 args)
  1334. Prototype: Void setkey(String fun, String key);
  1335. 'fun' is the function that 'key' is to be assigned.  'key' can contain
  1336. the '^' character which denotes that the following character is to be
  1337. interpreted as a control character, e.g.,
  1338.  
  1339.      setkey("bob", "^Kt");
  1340.      
  1341. sets the key sequence 'Ctrl-K t' to the function 'bob' which moves the 
  1342. editing point to the beginning of the buffer.  Note that 'setkey' works 
  1343. on the "global" keymap.
  1344. See also: unsetkey, definekey. 
  1345. --------------------------------------------------
  1346. setmode :    C function: void set_mode_cmd (2 args)
  1347. Prototype:  Void setmode(String mode, Integer flags);
  1348. Sets buffer mode flags and status line mode name.  'mode' is a string 
  1349. which is displayed on the status line if the %m status line format 
  1350. specifier is used. The second argument, 'flags' is an integer with 
  1351. the possible values:
  1352.  
  1353.     0 : no mode. Very generic
  1354.     1 : Wrap mode.  Lines are automatically wrapped at wrap column.
  1355.     2 : C mode.
  1356.     4 : Language mode.  Mode does not wrap but is useful for computer 
  1357.         languages.
  1358.     8 : S-Lang mode
  1359.   0x10: Fortran mode highlighting
  1360.   0x20: TeX mode highlighting
  1361. See also: whatmode, getbuf_info, setbuf_info.  
  1362. --------------------------------------------------
  1363. shell_cmd :    C function: void shell_command (1 args)
  1364.  executes CMD in a subshell inserting output inter buffer at Point 
  1365. --------------------------------------------------
  1366. shell_cmd :    C function: void shell_command (1 args)
  1367.  executes CMD in a subshell inserting output inter buffer at Point 
  1368. --------------------------------------------------
  1369. sin :    C function: int math_sin (0 args)
  1370. --------------------------------------------------
  1371. skip_chars :    C function: void skip_chars (1 args)
  1372. Prototype: Void skip_chars(String s);
  1373. skip past all characters in string 's'.
  1374. s is a string which contains ascii chars to skip, or a rang of ascii 
  1375. chars.  So for example, "- \t0-9ai-o_" will skip the hyphen, space, tab
  1376. numerals 0 to 9, letter a, letters i to o, and underscore.
  1377.  
  1378. If the first character of 's' is '^', then the compliment of the range 
  1379. is skipped instead.  So for example,
  1380.  
  1381.     skip_chars("^A-Za-z");
  1382.  
  1383. skips ALL characters except the letters.  The backslash character may be
  1384. used to escape ONLY the FIRST character in the string.  That is, "\\^"
  1385. is to be used to skip over '^' characters.
  1386.  
  1387. See Also: bskip_chars, skip_white 
  1388. --------------------------------------------------
  1389. skip_non_word_chars :    C function: void skip_non_word_chars (0 args)
  1390.  skip over all characters that do not constitute a word. 
  1391. --------------------------------------------------
  1392. skip_white :    C function: void skip_whitespace (0 args)
  1393.  Skip past whitespace.  This does not cross lines.  
  1394. See: skip_chars 
  1395. --------------------------------------------------
  1396. skip_word_chars :    C function: void skip_word_chars (0 args)
  1397.  skip over all characters that constitute a word. 
  1398. --------------------------------------------------
  1399. skip_word_chars :    C function: void skip_word_chars (0 args)
  1400.  skip over all characters that constitute a word. 
  1401. --------------------------------------------------
  1402. slang_trace_function :    C function: void SLang_trace_fun (1 args)
  1403.  only argument is a string that specifies a function name that is 
  1404.  to be traced. See also the variable _slangtrace. 
  1405. --------------------------------------------------
  1406. slapropos :    C function: void lang_apropos (1 args)
  1407. --------------------------------------------------
  1408. splitwindow :    C function: void split_window (0 args)
  1409.  Splits current window in half making two. 
  1410. --------------------------------------------------
  1411. sqrt :    C function: int math_sqrt (0 args)
  1412. --------------------------------------------------
  1413. stat_file :    C function: int unix_stat_file (1 args)
  1414. Prototype: Integer stat_file(String file);
  1415. This function returns information about 'file' through the use of the 
  1416. system 'stat' call.  If the stat call fails, the function returns a 
  1417. negative integer.  If it is successful, it returns zero.  Upon failure it 
  1418. returns a negative number.
  1419.  
  1420. To retrieve information obtained by this call, use the 'stat_struct'
  1421. function.
  1422. See also: lstat_file, stat_struct 
  1423. --------------------------------------------------
  1424. stat_struct :    C function: int unix_stat_struct (1 args)
  1425. Prototype Integer stat_struct(String field);
  1426. This functions returns information previously obtained by a call to the
  1427. 'stat_file' or 'lstat_file' functions.  The 'field' argument specifies
  1428. what piece of information to return.   Valid values for 'field' are:
  1429.  
  1430.     "dev"
  1431.     "ino"
  1432.     "mode"
  1433.     "nlink"
  1434.     "uid"
  1435.     "gid"
  1436.     "rdev"
  1437.     "size"
  1438.     "atime"
  1439.     "mtime"
  1440.     "ctime"
  1441.     
  1442. See the man page for 'stat' for a discussion of these fields.
  1443. The following example returns the size of the file "jed.rc":
  1444.  
  1445.    variable size;
  1446.    if (stat_file("jed.rc") < 0) error ("Unable to stat file!");
  1447.    size = stat_struct("size");
  1448.    
  1449. --------------------------------------------------
  1450. str_quote_string :    C function: void SLquote_string (0 args)
  1451. Prototype: String str_quote_string(String str, String qlis, Integer quote);
  1452. Return a string identical to 'str' except that all characters in the 
  1453. string 'qlis' are escaped with the 'quote' character including the quote
  1454. character itself.
  1455.  
  1456. --------------------------------------------------
  1457. str_uncomment_string :    C function: void uncomment_string (3 args)
  1458. Prototype: String str_uncomment_string(String s, String beg, String end);
  1459. 'beg' and 'end' are strings whose characters define a set of comment 
  1460. delimeters.  This function removes comments defined by the delimeter set
  1461. from the input string 's' and returns it.  For example,
  1462.  
  1463.    str_uncommen_string ("Hello (testing) 'example' World", "'(", "')");
  1464.  
  1465. returns the string: "Hello  World"; 
  1466.  
  1467. This routine does not handle multicharacter comment delimeters and it
  1468. assumes that comments are not nested.
  1469.  
  1470. --------------------------------------------------
  1471. strcat :    C function: void SLdo_strcat (0 args)
  1472.  Prototype: String strcat(String a, String b);
  1473. Conconcatenates 'a' and 'b' and returns the result.
  1474. See also: Sprintf 
  1475. --------------------------------------------------
  1476. strcmp :    C function: void SLdo_strcmp (0 args)
  1477.  Prototype: Integer strcmp (String a, String b);
  1478. 'strcmp' performs a case sensitive comparison between two strings.  It
  1479. returns 0 if the strings are identical, a negative number if 'a' is less 
  1480. than 'b' and a positive result if 'a' is greater than 'b' (in a
  1481. lexicographic sense).
  1482. See also: strup, strlow 
  1483. --------------------------------------------------
  1484. string :    C function: void SLdo_string (0 args)
  1485.  Prototype: String string (obj);
  1486. Here 'obj' can be of any type.  The function 'string' will return a string
  1487. representation of 'obj'.
  1488. Example: string (12.34) returns "12.34"
  1489. See also: Sprintf
  1490.  
  1491. --------------------------------------------------
  1492. string_match :    C function: int string_match (3 args)
  1493. Prototype Integer string_match(String str, String pat, Integer pos);
  1494. Returns 0 if 'str' does not match regular expression specified by
  1495. 'pat'. This function performs the match starting at position 'pos' in
  1496. 'str'.  The first character of 'str' corresponds to 'pos' equal to one.
  1497. This function returns the position of the start of the match.  To find
  1498. the exact substring actually matched, use 'string_match_nth'. 
  1499. See also: string_match_nth, strcmp, strncmp
  1500.  
  1501. --------------------------------------------------
  1502. string_match_nth :    C function: int string_match_nth (1 args)
  1503. Prototype: Integer Integer string_match_nth(Integer nth);
  1504. This function returns 2 integers describing the result of the last
  1505. call to 'string_match'.  It returns both the offset into the string 
  1506. and the length of characters matches by the 'nth' submatch.  
  1507. By convention, 'nth' equal to zero means the entire match.  Otherwise,
  1508. 'nth' must be an integer, 1 to 9, and refers to the set of characters
  1509. matched by the 'nth' regular expression given by \(...\).
  1510. For example, consider:
  1511.  
  1512.    variable matched, pos, len;
  1513.    matched = string_match("hello world", "\\([a-z]+\\) \\([a-z]+\\)", 1);
  1514.    if (matched) {
  1515.        (pos, len) = string_match_nth(2);
  1516.    }
  1517.  
  1518. This will set 'matched' to 1 since a match will be found at the first
  1519. position, 'pos' to 7 since 'w' is the 7th character of the string, and
  1520. len to 5 since "world" is 5 characters long. 
  1521. --------------------------------------------------
  1522. strlen :    C function: void SLdo_strlen (0 args)
  1523.  Prototype: Integer strlen (String a);
  1524. Returns the length of 'a'.
  1525.  
  1526. --------------------------------------------------
  1527. strlow :    C function: void SLdo_strlow (0 args)
  1528.  Takes a string off the stack a replaces it with all characters
  1529.  in lowercase. 
  1530. --------------------------------------------------
  1531. strncat
  1532.  Prototype: Void strncat (String a, String b, ..., Integer n);
  1533.  Returns concatenated string "abc..."
  1534.  
  1535. --------------------------------------------------
  1536. strncmp :    C function: void SLdo_strncmp (0 args)
  1537.  like strcmp but takes an extra argument--- number of characters to
  1538. compare.  Example, "apple"  "appliance"  3 strcmp --> 0 
  1539. --------------------------------------------------
  1540. strsub :    C function: void SLdo_strsub (0 args)
  1541.  Syntax:  "string"  n ascii_value strsub
  1542. This forces string to have a char who asciii value is ascii_val at
  1543. the nth position.  The first character in the string is at position
  1544. 1. 
  1545. --------------------------------------------------
  1546. strtrim :    C function: void SLdo_strtrim (0 args)
  1547.  Trims leading and trailing whitespace from a string.  WHitespace
  1548.  is defined to be spaces, tabs, and newline chars. 
  1549. --------------------------------------------------
  1550. strup :    C function: void SLdo_strup (0 args)
  1551.  Takes a string off the stack a replaces it with all characters
  1552.  in uppercase. 
  1553. --------------------------------------------------
  1554. substr :    C function: void SLdo_substr (0 args)
  1555.  Syntax: "string" n len substr
  1556.   returns a substring with length len of string beginning at position n.
  1557.  
  1558. --------------------------------------------------
  1559. suspend :    C function: void sys_spawn_cmd (0 args)
  1560.  Suspend jed and return to calling process or spawn subprocess.
  1561. "suspend_hook" is called before suspension and "resume_hook" is called
  1562. after.  These are user defined S-Lang functions. 
  1563. --------------------------------------------------
  1564. sw2buf :    C function: void switch_to_buffer_cmd (1 args)
  1565.  Switch to BUFFER.  If BUFFER does not exist, one is created with name
  1566.   BUFFER 
  1567. --------------------------------------------------
  1568. system :    C function: int my_system (1 args)
  1569. --------------------------------------------------
  1570. tan :    C function: int math_tan (0 args)
  1571. --------------------------------------------------
  1572. text_mode()
  1573.   Mode for indenting and wrapping text
  1574.   Functions that affect this mode include:
  1575.  
  1576.     Function:                     Default Binding:
  1577.       indent_line_cmd                 TAB
  1578.       newline_and_indent_cmd          RETURN
  1579.       format_paragraph                ESC Q
  1580.       narrow_paragraph                ESC N
  1581.  
  1582.   Variables include:
  1583.       WRAP_INDENTS, WRAP
  1584.       TAB, TAB_DEFAULT
  1585.  
  1586. --------------------------------------------------
  1587. time :    C function: string get_time (0 args)
  1588.  return current date and time string 
  1589. --------------------------------------------------
  1590. trim :    C function: void trim_whitespace (0 args)
  1591. Prototype: Void trim(); 
  1592. Removes all whitespace around point.
  1593. See also: skip_chars, skip_white
  1594.  
  1595. --------------------------------------------------
  1596. tt_send :    C function: void do_tt_write_string (1 args)
  1597.  send STRING to terminal with no interpretation 
  1598. --------------------------------------------------
  1599. undefinekey :    C function: void unset_key_in_keymap (2 args)
  1600.  Undefines KEY from KEYMAP.
  1601. See: make_keymap. 
  1602. --------------------------------------------------
  1603. ungetkey :    C function: void ungetkey (1 args)
  1604.  push ASCII value of character on input stream 
  1605. --------------------------------------------------
  1606. unix_ctime :    C function: string unix_ctime (1 args)
  1607. Prototype: String unix_ctime(Integer secs);
  1608. Returns a string representation of the time as given by 'secs' seconds
  1609. since 1970. 
  1610. --------------------------------------------------
  1611. unix_kill :    C function: int unix_kill (0 args)
  1612. Prototype: Integer unix_kill(Integer pid, Integer sig);
  1613.  
  1614. --------------------------------------------------
  1615. unsetkey :    C function: void unset_key (1 args)
  1616. Prototype: Void unsetkey(String key);
  1617. Removes the defeinition of 'key' from the "global" keymap.  For example,
  1618. by default, the "global" keymap binds the keys "^[[A", "^[[B", "^[[C", 
  1619. and "^[[D" to the character movement functions.  Using 
  1620. 'unsetkey("^[[A")' will remove the binding of "^[[A" from the global 
  1621. keymap but the other three will remain.  However, 'unsetkey("^[[")' 
  1622. will remove the definition of all the above keys.
  1623. See also:  setkey, undefinekey 
  1624. --------------------------------------------------
  1625. up :    C function: int prevline (1 args)
  1626. Prototype: Integer up(Integer n);
  1627. Move Point up 'n' lines returning number of lines actually moved.  The 
  1628. number returned will be less than 'n' only if the top of the buffer is
  1629. reached.
  1630. See also: down, left, right 
  1631. --------------------------------------------------
  1632. update :    C function: void update_cmd (1 args)
  1633.  Update display.  If argument it TRUE, force update otherwise 
  1634.  update only if there is no input 
  1635. --------------------------------------------------
  1636. use_keymap :    C function: void use_keymap (1 args)
  1637.  Asscoiate KEYMAP with buffer. 
  1638. --------------------------------------------------
  1639. w132 :    C function: void screen_w132 (0 args)
  1640. --------------------------------------------------
  1641. w80 :    C function: void screen_w80 (0 args)
  1642. --------------------------------------------------
  1643. what_char :    C function: int what_char (0 args)
  1644.  returns ASCII value of character point is on. 
  1645. --------------------------------------------------
  1646. what_column :    C function: int calculate_column (0 args)
  1647. Prototype: Integer what_column();
  1648. Returns the current column number of the Point expanding tabs, etc...
  1649. The beginning of the line is at column 1.
  1650. See: whatline, whatpos, goto_column 
  1651. --------------------------------------------------
  1652. what_keymap :    C function: string what_keymap (0 args)
  1653.  returns keymap name of current buffer 
  1654. --------------------------------------------------
  1655. whatbuf :    C function: string what_buffer (0 args)
  1656. Prototype: String what_buffer();
  1657. Returns the name of the current buffer.
  1658. See also: getbuf_info, bufferp 
  1659. --------------------------------------------------
  1660. whatmode :    C function: int what_mode (0 args)
  1661.  returns buffer mode string and mode flag.  See setmode for details. 
  1662. --------------------------------------------------
  1663. whatpos ()
  1664.  display row and column information in minibuffer
  1665.  
  1666. --------------------------------------------------
  1667. which_key :    C function: int which_key (1 args)
  1668.  returns NUMBER of keys that are bound to argument followed
  1669.   by NUMBER keys.  Control Chars are expanded as 2 chars. 
  1670. --------------------------------------------------
  1671. whitespace :    C function: void insert_whitespace (1 args)
  1672.  inserts whitespace of length n using tabs and spaces.  If the global
  1673. variable  TAB is 0, only spaces are used. 
  1674. --------------------------------------------------
  1675. widen :    C function: void widen (0 args)
  1676.  Opposite of Narrow.  See narrow for additional information. 
  1677. --------------------------------------------------
  1678. window_info :    C function: int window_size_intrinsic (1 args)
  1679. Prototype Integer window_info(Integer item);
  1680. Returns information specified by 'item' about the current window.  Here
  1681. 'item' is one of:
  1682.  
  1683.     'r'  : Number of rows
  1684.     'w'  : width of window 
  1685.     'c'  : starting column (from 1)
  1686.     't'  : screen line of top line of window (from 1)
  1687.  
  1688. --------------------------------------------------
  1689. window_line :    C function: int window_line (0 args)
  1690.  returns number of line in window.  top line is 1. 
  1691. --------------------------------------------------
  1692. write_buffer :    C function: int write_buffer_cmd (1 args)
  1693.  writes buffer to FILE. Returns number of lines written or signals
  1694.   error on failure. 
  1695. --------------------------------------------------
  1696. write_region_to_file :    C function: int write_region (1 args)
  1697.  write region to FILE.  Returns number of lines written or signals
  1698.   error on failure. 
  1699. --------------------------------------------------
  1700. write_region_to_file :    C function: int write_region (1 args)
  1701.  write region to FILE.  Returns number of lines written or signals
  1702.   error on failure. 
  1703. --------------------------------------------------
  1704. xform_region :    C function: void transform_region (1 args)
  1705.  takes a control character (integer) as argument:
  1706.     'u' upcase_region
  1707.     'd' downcase_region
  1708.     'c' Capitalize region
  1709.     anything else will change case of region 
  1710. --------------------------------------------------
  1711.