home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / pine3.07 / pico / efunc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-24  |  6.3 KB  |  155 lines

  1. /*
  2.  * Program:    Pine's composer and pico's function declarations
  3.  *
  4.  * Modifier:    Michael Seibel
  5.  *        Networks and Distributed Computing
  6.  *        Computing & Communications
  7.  *        University of Washington
  8.  *        Administration Building, AG-44
  9.  *        Seattle, WA  98195
  10.  *        Internet: mikes@cac.washington.edu
  11.  *
  12.  * Date:    14 Jan 90
  13.  * Last Edited:    9 Jan 1991
  14.  *
  15.  * Copyright 1991 by the University of Washington
  16.  *
  17.  *  Permission to use, copy, modify, and distribute this software and its
  18.  * documentation for any purpose and without fee is hereby granted, provided
  19.  * that the above copyright notice appears in all copies and that both the
  20.  * above copyright notice and this permission notice appear in supporting
  21.  * documentation, and that the name of the University of Washington not be
  22.  * used in advertising or publicity pertaining to distribution of the software
  23.  * without specific, written prior permission.  This software is made
  24.  * available "as is", and
  25.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  26.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  27.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  28.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  29.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  31.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  32.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  33.  *
  34.  */
  35. /*    EFUNC.H:    MicroEMACS function declarations and names
  36.  
  37.         This file list all the C code functions used by MicroEMACS
  38.     and the names to use to bind keys to them. To add functions,
  39.     declare it here in both the extern function list and the name
  40.     binding table.
  41.  
  42.     Update History:
  43.  
  44.     Daniel Lawrence
  45. */
  46.  
  47. #ifndef    EFUNC_H
  48. #define    EFUNC_H
  49.  
  50.  
  51. /*    External function declarations        */
  52.  
  53. extern  int     abort_composer();       /* Bag the whole burrito    */
  54. extern  int     suspend_composer();     /* Bag the whole burrito, for now */
  55. extern  int     ctrlg();                /* Abort out of things          */
  56. #ifdef    SPELLER
  57. extern  int     spell();                /* Pico spelling checker        */
  58. #endif
  59. extern  int     wquit();                /* Pico Quit                    */
  60. extern  int     quickexit();            /* Pico Quit from tool mode     */
  61. extern  int     HeaderEditor();        /* edit mail header stuff       */
  62. extern  int     spell();       /* hide mail header stuff       */
  63. extern  int     fileread();             /* Get a file, read only        */
  64. extern  int     filefind();        /* Get a file, read write       */
  65. extern  int     filewrite();            /* Write a file                 */
  66. extern  int     filesave();             /* Save current file            */
  67. extern  int     filename();             /* Adjust file name             */
  68. extern  int     getccol();              /* Get current column           */
  69. extern  int     gotobol();              /* Move to start of line        */
  70. extern  int     forwchar();             /* Move forward by characters   */
  71. extern  int     gotoeol();              /* Move to end of line          */
  72. extern  int     backchar();             /* Move backward by characters  */
  73. extern  int     forwline();             /* Move forward by lines        */
  74. extern  int     backline();             /* Move backward by lines       */
  75. extern  int     forwpage();             /* Move forward by pages        */
  76. extern  int     backpage();             /* Move backward by pages       */
  77. extern  int     gotobob();              /* Move to start of buffer      */
  78. extern  int     gotoeob();              /* Move to end of buffer        */
  79. extern  int     setfillcol();           /* Set fill column.             */
  80. extern  int     setmark();              /* Set mark                     */
  81. extern  int     swapmark();             /* Swap "." and mark            */
  82. extern  int     forwsearch();           /* Search forward               */
  83. extern  int     showcpos();             /* Show the cursor position     */
  84. extern  int     reposition();           /* Reposition window            */
  85. extern  int     refresh();              /* Refresh the screen           */
  86. extern  int     tab();                  /* Insert tab                   */
  87. extern  int     newline();              /* Insert CR-LF                 */
  88. extern  int     forwword();             /* Advance by words             */
  89. extern  int     forwdel();              /* Forward delete               */
  90. extern  int     backdel();              /* Backward delete              */
  91. extern  int     killtext();             /* Kill a line                  */
  92. extern  int     yank();                 /* Yank back from killbuffer.   */
  93. extern    int    gotobop();        /* go to begining/paragraph    */
  94. extern    int    gotoeop();        /* go to end/paragraph        */
  95. extern    int    fillpara();        /* fill current paragraph    */
  96. extern    int    whelp();        /* get the help file here    */
  97. extern    int    insfile();        /* insert a file        */
  98.  
  99. #if    JOB_CONTROL
  100. extern    int    bktoshell();        /* suspend emacs to parent shell*/
  101. extern    int    rtfrmshell();        /* return from a suspended state*/
  102. extern    int    alt_editor();        /* edit body with another editor */
  103. #endif    /* JOB_CONTROL */
  104.  
  105. /*    Name to function binding table
  106.  
  107.         This table gives the names of all the bindable functions
  108.     end their C function address. These are used for the bind-to-key
  109.     function.
  110. */
  111.  
  112. #ifdef    maindef
  113.  
  114. NBIND    names[] = {
  115.     {"backward-character",        backchar},
  116.     {"begining-of-file",        gotobob},
  117.     {"begining-of-line",        gotobol},
  118.     {"buffer-position",        showcpos},
  119.     {"delete-next-character",    forwdel},
  120.     {"delete-previous-character",    backdel},
  121.     {"end-of-file",            gotoeob},
  122.     {"end-of-line",            gotoeol},
  123. #ifdef    SPELLER
  124.     {"spell-check",            spell},
  125. #endif
  126.     {"exit-emacs",            wquit},
  127.     {"exit-emacs-quick",        quickexit},
  128.     {"fill-paragraph",        fillpara},
  129.     {"forward-character",        forwchar},
  130.     {"handle-tab",            tab},
  131.     {"help",            whelp},
  132.     {"insert-file",            insfile},
  133.     {"newline",            newline},
  134.     {"next-line",            forwline},
  135.     {"next-page",            forwpage},
  136.     {"next-paragraph",        gotoeop},
  137.     {"next-word",            forwword},
  138.     {"previous-line",        backline},
  139.     {"previous-page",        backpage},
  140.     {"previous-paragraph",        gotobop},
  141.     {"read-file",            fileread},
  142.     {"search-forward",        forwsearch},
  143.     {"set-fill-column",        setfillcol},
  144. #if    JOB_CONTROL
  145.     {"suspend-emacs",        bktoshell},
  146. #endif
  147.     {"write-file",            filewrite},
  148.     {"yank",            yank},
  149.  
  150.     {"",            NULL}
  151. };
  152.  
  153. #endif
  154. #endif    /* EFUNC_H */
  155.