home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
gnu
/
src
/
baseline
/
jove-4.14.6.lha
/
jove-4.14.6
/
funcdefs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-10
|
15KB
|
428 lines
/***************************************************************************
* This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE *
* is provided to you without charge, and with no warranty. You may give *
* away copies of JOVE, including sources, provided that this notice is *
* included in all the files. *
***************************************************************************/
#include "jove.h"
#include "ctype.h"
#ifdef UNIX
# ifndef SYSV
# include <sgtty.h>
# endif
#endif
#ifndef TXT_TO_C
#ifdef MAC
# define WIRED_CMD(c) (c),'\0','\0' /* for About Jove... */
#else
# define WIRED_CMD(c) (c)
#endif /* MAC */
#else /* TXT_TO_C */
#ifdef MAC
# define WIRED_CMD(c) 0,'\0','\0'
#else
# define WIRED_CMD(c) 0
#endif
#endif /* TXT_TO_C */
/* Table of commands
*
* Note: must be kept in alphabetical order (the truth is more complicated).
*/
const struct cmd commands[] = {
#ifdef LISP
FUNCTION, "add-lisp-special", WIRED_CMD(AddSpecial),
#endif
FUNCTION, "append-region", WIRED_CMD(AppReg),
FUNCTION, "apropos", WIRED_CMD(Apropos),
FUNCTION, "auto-execute-command", WIRED_CMD(CAutoExec),
FUNCTION, "auto-execute-macro", WIRED_CMD(MAutoExec),
DefMinor(Fill), "auto-fill-mode", WIRED_CMD(NULL),
DefMinor(Indent), "auto-indent-mode", WIRED_CMD(NULL),
FUNCTION, "backward-character", WIRED_CMD(BackChar),
FUNCTION, "backward-list", WIRED_CMD(BList),
FUNCTION, "backward-paragraph", WIRED_CMD(BackPara),
FUNCTION, "backward-s-expression", WIRED_CMD(BSexpr),
FUNCTION, "backward-sentence", WIRED_CMD(Bos),
FUNCTION, "backward-up-list", WIRED_CMD(BUpList),
FUNCTION, "backward-word", WIRED_CMD(BackWord),
FUNCTION, "begin-kbd-macro", WIRED_CMD(Remember),
FUNCTION, "beginning-of-file", WIRED_CMD(Bof),
FUNCTION, "beginning-of-line", WIRED_CMD(Bol),
FUNCTION, "beginning-of-window", WIRED_CMD(Bow),
FUNCTION, "bind-keymap-to-key", WIRED_CMD(KmBind),
FUNCTION, "bind-macro-to-key", WIRED_CMD(BindMac),
#ifdef ABBREV
FUNCTION, "bind-macro-to-word-abbrev", WIRED_CMD(BindMtoW),
#endif
FUNCTION, "bind-to-key", WIRED_CMD(BindAKey),
FUNCTION, "buffer-position", WIRED_CMD(BufPos),
DefMajor(CMODE), "c-mode", WIRED_CMD(NULL),
MODFUNC, "case-character-capitalize", WIRED_CMD(CapChar),
MODFUNC, "case-region-lower", WIRED_CMD(CasRegLower),
MODFUNC, "case-region-upper", WIRED_CMD(CasRegUpper),
MODFUNC, "case-word-capitalize", WIRED_CMD(CapWord),
MODFUNC, "case-word-lower", WIRED_CMD(LowWord),
MODFUNC, "case-word-upper", WIRED_CMD(UppWord),
FUNCTION, "cd", WIRED_CMD(Chdir),
MODFUNC, "character-to-octal-insert", WIRED_CMD(ChrToOct),
FUNCTION, "clear-and-redraw", WIRED_CMD(ClAndRedraw),
#ifndef MAC
FUNCTION, "compile-it", WIRED_CMD(MakeErrors),
#endif
#ifdef PTYPROCS
FUNCTION, "continue-process", WIRED_CMD(ProcCont),
#endif
FUNCTION, "copy-region", WIRED_CMD(CopyRegion),
#ifndef MAC
FUNCTION, "current-error", WIRED_CMD(ShowErr),
#endif
FUNCTION, "date", WIRED_CMD(prCTIME),
#ifdef ABBREV
FUNCTION, "define-global-word-abbrev", WIRED_CMD(DefGAbbrev),
#endif
FUNCTION, "define-macro", WIRED_CMD(DefKBDMac),
#ifdef ABBREV
FUNCTION, "define-mode-word-abbrev", WIRED_CMD(DefMAbbrev),
#endif
MODFUNC, "delete-blank-lines", WIRED_CMD(DelBlnkLines),
FUNCTION, "delete-buffer", WIRED_CMD(BufKill),
FUNCTION, "delete-current-window", WIRED_CMD(DelCurWindow),
FUNCTION, "delete-macro", WIRED_CMD(DelMacro),
MODFUNC, "delete-next-character", WIRED_CMD(DelNChar),
FUNCTION, "delete-other-windows", WIRED_CMD(OneWindow),
MODFUNC, "delete-previous-character", WIRED_CMD(DelPChar),
MODFUNC, "delete-white-space", WIRED_CMD(DelWtSpace),
FUNCTION, "describe-bindings", WIRED_CMD(DescBindings),
FUNCTION, "describe-command", WIRED_CMD(DescCom),
FUNCTION, "describe-key", WIRED_CMD(KeyDesc),
FUNCTION, "describe-variable", WIRED_CMD(DescCom),
FUNCTION, "digit", WIRED_CMD(Digit),
FUNCTION, "digit-0", WIRED_CMD(Digit0),
FUNCTION, "digit-1", WIRED_CMD(Digit1),
FUNCTION, "digit-2", WIRED_CMD(Digit2),
FUNCTION, "digit-3", WIRED_CMD(Digit3),
FUNCTION, "digit-4", WIRED_CMD(Digit4),
FUNCTION, "digit-5", WIRED_CMD(Digit5),
FUNCTION, "digit-6", WIRED_CMD(Digit6),
FUNCTION, "digit-7", WIRED_CMD(Digit7),
FUNCTION, "digit-8", WIRED_CMD(Digit8),
FUNCTION, "digit-9", WIRED_CMD(Digit9),
FUNCTION, "dirs", WIRED_CMD(prDIRS),
FUNCTION, "down-list", WIRED_CMD(FDownList),
#ifdef PTYPROCS
FUNCTION, "dstop-process", WIRED_CMD(ProcDStop),
#endif
#ifdef ABBREV
FUNCTION, "edit-word-abbrevs", WIRED_CMD(EditAbbrevs),
#endif
FUNCTION, "end-kbd-macro", WIRED_CMD(Forget),
FUNCTION, "end-of-file", WIRED_CMD(Eof),
FUNCTION, "end-of-line", WIRED_CMD(Eol),
FUNCTION, "end-of-window", WIRED_CMD(Eow),
#ifdef PTYPROCS
FUNCTION, "eof-process", WIRED_CMD(ProcEof),
#endif
FUNCTION, "erase-buffer", WIRED_CMD(BufErase),
FUNCTION, "exchange-point-and-mark", WIRED_CMD(PtToMark),
FUNCTION, "execute-kbd-macro", WIRED_CMD(ExecMacro),
FUNCTION, "execute-macro", WIRED_CMD(RunMacro),
FUNCTION, "execute-named-command", WIRED_CMD(Extend),
FUNCTION, "exit-jove", WIRED_CMD(Leave),
#ifdef CMT_FMT
MODFUNC, "fill-comment", WIRED_CMD(Comment),
#endif /* CMT_FMT */
MODFUNC, "fill-paragraph", WIRED_CMD(Justify),
MODFUNC, "fill-region", WIRED_CMD(RegJustify),
#ifndef MAC
MODFUNC, "filter-region", WIRED_CMD(FilterRegion),
#endif
FUNCTION, "find-file", WIRED_CMD(FindFile),
FUNCTION, "find-tag", WIRED_CMD(FindTag),
FUNCTION, "find-tag-at-point", WIRED_CMD(FDotTag),
FUNCTION, "first-non-blank", WIRED_CMD(ToIndent),
FUNCTION, "forward-character", WIRED_CMD(ForChar),
FUNCTION, "forward-list", WIRED_CMD(FList),
FUNCTION, "forward-paragraph", WIRED_CMD(ForPara),
FUNCTION, "forward-s-expression", WIRED_CMD(FSexpr),
FUNCTION, "forward-sentence", WIRED_CMD(Eos),
FUNCTION, "forward-word", WIRED_CMD(ForWord),
DefMajor(FUNDAMENTAL), "fundamental-mode", WIRED_CMD(NULL),
FUNCTION, "gather-numeric-argument", WIRED_CMD(TimesFour),
FUNCTION, "goto-line", WIRED_CMD(GoLine),
FUNCTION, "goto-window-with-buffer", WIRED_CMD(GotoWind),
#ifdef LISP
MODFUNC, "grind-s-expr", WIRED_CMD(GSexpr),
#endif
FUNCTION, "grow-window", WIRED_CMD(GrowWindowCmd),
MODFUNC, "handle-tab", WIRED_CMD(Tab),
FUNCTION, "i-search-forward", WIRED_CMD(IncFSearch),
FUNCTION, "i-search-reverse", WIRED_CMD(IncRSearch),
#ifdef IPROCS
FUNCTION, "i-shell-command", WIRED_CMD(Iprocess),
#endif
MODFUNC, "insert-file", WIRED_CMD(InsFile),
#ifdef IPROCS
FUNCTION, "interrupt-process", WIRED_CMD(ProcInt),
#endif
MODFUNC, "kill-next-word", WIRED_CMD(DelNWord),
MODFUNC, "kill-previous-word", WIRED_CMD(DelPWord),
#ifdef IPROCS
FUNCTION, "kill-process", WIRED_CMD(ProcKill),
#endif
MODFUNC, "kill-region", WIRED_CMD(DelReg),
MODFUNC, "kill-s-expression", WIRED_CMD(KillExpr),
FUNCTION, "kill-some-buffers", WIRED_CMD(KillSome),
MODFUNC, "kill-to-beginning-of-sentence", WIRED_CMD(KillBos),
MODFUNC, "kill-to-end-of-line", WIRED_CMD(KillEOL),
MODFUNC, "kill-to-end-of-sentence", WIRED_CMD(KillEos),
FUNCTION, "left-margin-here", WIRED_CMD(SetLMargin),
#ifdef LISP
DefMajor(LISPMODE), "lisp-mode", WIRED_CMD(NULL),
#endif
FUNCTION, "list-buffers", WIRED_CMD(BufList),
#ifdef IPROCS
FUNCTION, "list-processes", WIRED_CMD(ProcList),
#endif
FUNCTION, "make-buffer-unmodified", WIRED_CMD(NotModified),
FUNCTION, "make-keymap", WIRED_CMD(MakeKMap),
FUNCTION, "make-macro-interactive", WIRED_CMD(MacInter),
FUNCTION, "name-kbd-macro", WIRED_CMD(NameMac),
MODFUNC, "newline", WIRED_CMD(Newline),
MODFUNC, "newline-and-backup", WIRED_CMD(OpenLine),
MODFUNC, "newline-and-indent", WIRED_CMD(LineAI),
#ifndef MAC
FUNCTION, "next-error", WIRED_CMD(NextError),
#endif
FUNCTION, "next-line", WIRED_CMD(NextLine),
FUNCTION, "next-page", WIRED_CMD(NextPage),
FUNCTION, "next-window", WIRED_CMD(NextWindow),
FUNCTION, "number-lines-in-window", WIRED_CMD(WNumLines),
DefMinor(OverWrite), "over-write-mode", WIRED_CMD(NULL),
FUNCTION, "page-next-window", WIRED_CMD(PageNWind),
MODFUNC, "paren-flash", WIRED_CMD(DoParen),
#ifndef MAC
FUNCTION, "parse-errors", WIRED_CMD(ErrParse),
#endif
#ifdef SPELL
FUNCTION, "parse-spelling-errors-in-buffer", WIRED_CMD(SpelWords),
#endif
#ifdef JOB_