1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-12-18 07:16:23 -05:00

Move edef.h out of bind.h and buffer.h out of edef.h.

This commit is contained in:
Renaud 2013-10-09 10:48:00 +08:00
parent dc3e8984ab
commit 7573dcd226
6 changed files with 1373 additions and 1379 deletions

View File

@ -126,15 +126,15 @@ depend: ${SRC}
# DO NOT DELETE THIS LINE -- make depend uses it # DO NOT DELETE THIS LINE -- make depend uses it
ansi.o: ansi.c estruct.h retcode.h edef.h buffer.h crypt.h line.h utf8.h ansi.o: ansi.c estruct.h retcode.h edef.h
basic.o: basic.c basic.h buffer.h crypt.h line.h utf8.h display.h \ basic.o: basic.c basic.h buffer.h crypt.h line.h utf8.h display.h \
estruct.h retcode.h edef.h input.h bind.h random.h terminal.h defines.h \ estruct.h retcode.h edef.h input.h bind.h random.h terminal.h defines.h \
window.h window.h
bindable.o: bindable.c bindable.h defines.h buffer.h crypt.h line.h \ bindable.o: bindable.c bindable.h defines.h buffer.h crypt.h line.h \
utf8.h display.h edef.h estruct.h retcode.h file.h input.h bind.h lock.h \ utf8.h display.h edef.h estruct.h retcode.h file.h input.h bind.h lock.h \
terminal.h terminal.h
bind.o: bind.c bind.h edef.h buffer.h crypt.h line.h utf8.h estruct.h \ bind.o: bind.c bind.h edef.h estruct.h retcode.h bindable.h buffer.h \
retcode.h bindable.h display.h ebind.h exec.h file.h flook.h input.h \ crypt.h line.h utf8.h display.h ebind.h exec.h file.h flook.h input.h \
names.h window.h defines.h names.h window.h defines.h
buffer.o: buffer.c buffer.h crypt.h line.h utf8.h defines.h display.h \ buffer.o: buffer.c buffer.h crypt.h line.h utf8.h defines.h display.h \
edef.h estruct.h retcode.h file.h input.h bind.h window.h edef.h estruct.h retcode.h file.h input.h bind.h window.h
@ -142,46 +142,41 @@ crypt.o: crypt.c crypt.h
display.o: display.c display.h buffer.h crypt.h line.h utf8.h estruct.h \ display.o: display.c display.h buffer.h crypt.h line.h utf8.h estruct.h \
retcode.h edef.h input.h bind.h termio.h terminal.h defines.h version.h \ retcode.h edef.h input.h bind.h termio.h terminal.h defines.h version.h \
wrapper.h window.h wrapper.h window.h
ebind.o: ebind.c ebind.h basic.h bind.h edef.h buffer.h crypt.h line.h \ ebind.o: ebind.c ebind.h basic.h bind.h edef.h estruct.h retcode.h \
utf8.h estruct.h retcode.h bindable.h eval.h exec.h file.h isearch.h \ bindable.h buffer.h crypt.h line.h utf8.h eval.h exec.h file.h isearch.h \
random.h region.h search.h spawn.h window.h defines.h word.h random.h region.h search.h spawn.h window.h defines.h word.h
eval.o: eval.c eval.h basic.h bind.h edef.h buffer.h crypt.h line.h \ eval.o: eval.c eval.h basic.h bind.h buffer.h crypt.h line.h utf8.h \
utf8.h estruct.h retcode.h display.h exec.h execute.h flook.h input.h \ display.h estruct.h retcode.h edef.h exec.h execute.h flook.h input.h \
random.h search.h terminal.h defines.h termio.h version.h window.h random.h search.h terminal.h defines.h termio.h version.h window.h
exec.o: exec.c exec.h buffer.h crypt.h line.h utf8.h bind.h edef.h \ exec.o: exec.c exec.h buffer.h crypt.h line.h utf8.h bind.h display.h \
estruct.h retcode.h display.h eval.h file.h flook.h input.h window.h \ estruct.h retcode.h edef.h eval.h file.h flook.h input.h window.h \
defines.h defines.h
execute.o: execute.c execute.h edef.h buffer.h crypt.h line.h utf8.h \ execute.o: execute.c execute.h edef.h estruct.h retcode.h bind.h random.h \
estruct.h retcode.h bind.h random.h display.h file.h terminal.h \ display.h file.h crypt.h buffer.h line.h utf8.h terminal.h defines.h \
defines.h window.h window.h
file.o: file.c file.h crypt.h retcode.h buffer.h line.h utf8.h defines.h \ file.o: file.c file.h crypt.h retcode.h buffer.h line.h utf8.h defines.h \
estruct.h edef.h execute.h fileio.h input.h bind.h lock.h log.h window.h estruct.h edef.h execute.h fileio.h input.h bind.h lock.h log.h window.h
fileio.o: fileio.c fileio.h crypt.h retcode.h defines.h fileio.o: fileio.c fileio.h crypt.h retcode.h defines.h
flook.o: flook.c flook.h retcode.h defines.h fileio.h crypt.h flook.o: flook.c flook.h retcode.h defines.h fileio.h crypt.h
globals.o: globals.c defines.h edef.h buffer.h crypt.h line.h utf8.h \ globals.o: globals.c defines.h edef.h estruct.h retcode.h
estruct.h retcode.h ibmpc.o: ibmpc.c estruct.h retcode.h edef.h
ibmpc.o: ibmpc.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \ input.o: input.c input.h bind.h edef.h estruct.h retcode.h bindable.h \
utf8.h display.h exec.h names.h terminal.h defines.h wrapper.h
input.o: input.c input.h bind.h edef.h buffer.h crypt.h line.h utf8.h \
estruct.h retcode.h bindable.h display.h exec.h names.h terminal.h \
defines.h wrapper.h
isearch.o: isearch.c isearch.h basic.h buffer.h crypt.h line.h utf8.h \ isearch.o: isearch.c isearch.h basic.h buffer.h crypt.h line.h utf8.h \
display.h estruct.h retcode.h edef.h input.h bind.h search.h terminal.h \ display.h estruct.h retcode.h edef.h input.h bind.h search.h terminal.h \
defines.h window.h defines.h window.h
line.o: line.c line.h utf8.h buffer.h crypt.h edef.h estruct.h retcode.h \ line.o: line.c line.h utf8.h buffer.h crypt.h edef.h estruct.h retcode.h \
log.h window.h defines.h log.h window.h defines.h
lock.o: lock.c lock.h estruct.h retcode.h display.h edef.h buffer.h \ lock.o: lock.c lock.h estruct.h retcode.h display.h edef.h input.h bind.h
crypt.h line.h utf8.h input.h bind.h
log.o: log.c log.h retcode.h log.o: log.c log.h retcode.h
main.o: main.c basic.h bind.h edef.h buffer.h crypt.h line.h utf8.h \ main.o: main.c basic.h bind.h bindable.h buffer.h crypt.h line.h utf8.h \
estruct.h retcode.h bindable.h display.h eval.h execute.h file.h input.h \ display.h edef.h estruct.h retcode.h eval.h execute.h file.h input.h \
lock.h log.h random.h search.h terminal.h defines.h termio.h version.h \ lock.h log.h random.h search.h terminal.h defines.h termio.h version.h \
window.h window.h
names.o: names.c names.h basic.h bind.h edef.h buffer.h crypt.h line.h \ names.o: names.c names.h basic.h bind.h bindable.h buffer.h crypt.h \
utf8.h estruct.h retcode.h bindable.h display.h eval.h exec.h file.h \ line.h utf8.h display.h eval.h exec.h file.h retcode.h isearch.h \
isearch.h region.h random.h search.h spawn.h window.h defines.h word.h region.h random.h search.h spawn.h window.h defines.h word.h
pklock.o: pklock.c pklock.h estruct.h retcode.h edef.h buffer.h crypt.h \ pklock.o: pklock.c pklock.h estruct.h retcode.h edef.h
line.h utf8.h
posix.o: posix.c termio.h posix.o: posix.c termio.h
random.o: random.c random.h basic.h buffer.h crypt.h line.h utf8.h \ random.o: random.c random.h basic.h buffer.h crypt.h line.h utf8.h \
display.h estruct.h retcode.h edef.h execute.h input.h bind.h log.h \ display.h estruct.h retcode.h edef.h execute.h input.h bind.h log.h \
@ -195,12 +190,11 @@ spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \
display.h estruct.h retcode.h edef.h file.h flook.h input.h bind.h log.h \ display.h estruct.h retcode.h edef.h file.h flook.h input.h bind.h log.h \
terminal.h window.h terminal.h window.h
tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h edef.h \ tcap.o: tcap.c terminal.h defines.h display.h estruct.h retcode.h edef.h \
buffer.h crypt.h line.h utf8.h termio.h termio.h
termio.o: termio.c termio.h estruct.h retcode.h utf8.h termio.o: termio.c termio.h estruct.h retcode.h utf8.h
utf8.o: utf8.c utf8.h utf8.o: utf8.c utf8.h
vmsvt.o: vmsvt.c estruct.h retcode.h edef.h buffer.h crypt.h line.h \ vmsvt.o: vmsvt.c estruct.h retcode.h edef.h
utf8.h vt52.o: vt52.c estruct.h retcode.h edef.h
vt52.o: vt52.c estruct.h retcode.h edef.h buffer.h crypt.h line.h utf8.h
window.o: window.c window.h defines.h buffer.h crypt.h line.h utf8.h \ window.o: window.c window.h defines.h buffer.h crypt.h line.h utf8.h \
basic.h display.h edef.h estruct.h retcode.h execute.h terminal.h \ basic.h display.h edef.h estruct.h retcode.h execute.h terminal.h \
wrapper.h wrapper.h

839
bind.c

File diff suppressed because it is too large Load Diff

2
bind.h
View File

@ -1,8 +1,6 @@
#ifndef _BIND_H_ #ifndef _BIND_H_
#define _BIND_H_ #define _BIND_H_
#include "edef.h"
#define APROP 1 /* Add code for Apropos command */ #define APROP 1 /* Add code for Apropos command */
#if APROP #if APROP

795
ebind.c
View File

@ -1,11 +1,11 @@
/* ebind.c -- implements ebind.h */ /* ebind.c -- implements ebind.h */
#include "ebind.h" #include "ebind.h"
/* ebind.c /* ebind.c
* *
* Initial default key to function bindings * Initial default key to function bindings
* *
* Modified by Petri Kutvonen * Modified by Petri Kutvonen
*/ */
#include <stdlib.h> #include <stdlib.h>
@ -13,6 +13,7 @@
#include "basic.h" #include "basic.h"
#include "bind.h" #include "bind.h"
#include "edef.h"
#include "bindable.h" #include "bindable.h"
#include "buffer.h" #include "buffer.h"
#include "eval.h" #include "eval.h"
@ -34,407 +35,407 @@
* control-X commands. * control-X commands.
*/ */
struct key_tab keytab[NBINDS] = { struct key_tab keytab[NBINDS] = {
{CONTROL | 'A', gotobol} {CONTROL | 'A', gotobol}
, ,
{CONTROL | 'B', backchar} {CONTROL | 'B', backchar}
, ,
{CONTROL | 'C', insspace} {CONTROL | 'C', insspace}
, ,
{CONTROL | 'D', forwdel} {CONTROL | 'D', forwdel}
, ,
{CONTROL | 'E', gotoeol} {CONTROL | 'E', gotoeol}
, ,
{CONTROL | 'F', forwchar} {CONTROL | 'F', forwchar}
, ,
{CONTROL | 'G', ctrlg} {CONTROL | 'G', ctrlg}
, ,
{CONTROL | 'H', backdel} {CONTROL | 'H', backdel}
, ,
{CONTROL | 'I', insert_tab} {CONTROL | 'I', insert_tab}
, ,
{CONTROL | 'J', indent} {CONTROL | 'J', indent}
, ,
{CONTROL | 'K', killtext} {CONTROL | 'K', killtext}
, ,
{CONTROL | 'L', redraw} {CONTROL | 'L', redraw}
, ,
{CONTROL | 'M', insert_newline} {CONTROL | 'M', insert_newline}
, ,
{CONTROL | 'N', forwline} {CONTROL | 'N', forwline}
, ,
{CONTROL | 'O', openline} {CONTROL | 'O', openline}
, ,
{CONTROL | 'P', backline} {CONTROL | 'P', backline}
, ,
{CONTROL | 'Q', quote} {CONTROL | 'Q', quote}
, ,
{CONTROL | 'R', backsearch} {CONTROL | 'R', backsearch}
, ,
{CONTROL | 'S', forwsearch} {CONTROL | 'S', forwsearch}
, ,
{CONTROL | 'T', twiddle} {CONTROL | 'T', twiddle}
, ,
{CONTROL | 'U', unarg} {CONTROL | 'U', unarg}
, ,
{CONTROL | 'V', forwpage} {CONTROL | 'V', forwpage}
, ,
{CONTROL | 'W', killregion} {CONTROL | 'W', killregion}
, ,
{CONTROL | 'X', cex} {CONTROL | 'X', cex}
, ,
{CONTROL | 'Y', yank} {CONTROL | 'Y', yank}
, ,
{CONTROL | 'Z', backpage} {CONTROL | 'Z', backpage}
, ,
{CONTROL | ']', metafn} {CONTROL | ']', metafn}
, ,
{CTLX | CONTROL | 'B', listbuffers} {CTLX | CONTROL | 'B', listbuffers}
, ,
{CTLX | CONTROL | 'C', quit} {CTLX | CONTROL | 'C', quit}
, /* Hard quit. */ , /* Hard quit. */
#if PKCODE & AEDIT #if PKCODE & AEDIT
{CTLX | CONTROL | 'A', detab} {CTLX | CONTROL | 'A', detab}
, ,
#endif #endif
#if PKCODE
{CTLX | CONTROL | 'D', filesave}
, /* alternative */
#else
#if AEDIT
{CTLX | CONTROL | 'D', detab}
,
#endif
#endif
#if AEDIT
{CTLX | CONTROL | 'E', entab}
,
#endif
{CTLX | CONTROL | 'F', filefind}
,
{CTLX | CONTROL | 'I', insfile}
,
{CTLX | CONTROL | 'L', lowerregion}
,
{CTLX | CONTROL | 'M', delmode}
,
{CTLX | CONTROL | 'N', mvdnwind}
,
{CTLX | CONTROL | 'O', deblank}
,
{CTLX | CONTROL | 'P', mvupwind}
,
{CTLX | CONTROL | 'R', fileread}
,
{CTLX | CONTROL | 'S', filesave}
,
#if AEDIT
{CTLX | CONTROL | 'T', trim}
,
#endif
{CTLX | CONTROL | 'U', upperregion}
,
{CTLX | CONTROL | 'V', viewfile}
,
{CTLX | CONTROL | 'W', filewrite}
,
{CTLX | CONTROL | 'X', swapmark}
,
{CTLX | CONTROL | 'Z', shrinkwind}
,
{CTLX | '?', deskey}
,
{CTLX | '!', spawn}
,
{CTLX | '@', pipecmd}
,
{CTLX | '#', filter_buffer}
,
{CTLX | '$', execprg}
,
{CTLX | '=', showcpos}
,
{CTLX | '(', ctlxlp}
,
{CTLX | ')', ctlxrp}
,
{CTLX | '^', enlargewind}
,
{CTLX | '0', delwind}
,
{CTLX | '1', onlywind}
,
{CTLX | '2', splitwind}
,
{CTLX | 'A', setvar}
,
{CTLX | 'B', usebuffer}
,
{CTLX | 'C', spawncli}
,
#if BSD | __hpux | SVR4
{CTLX | 'D', bktoshell}
,
#endif
{CTLX | 'E', ctlxe}
,
{CTLX | 'F', setfillcol}
,
{CTLX | 'K', killbuffer}
,
{CTLX | 'M', setemode}
,
{CTLX | 'N', filename}
,
{CTLX | 'O', nextwind}
,
{CTLX | 'P', prevwind}
,
#if PKCODE
{CTLX | 'Q', quote}
, /* alternative */
#endif
#if ISRCH
{CTLX | 'R', risearch}
,
{CTLX | 'S', fisearch}
,
#endif
{CTLX | 'W', resize}
,
{CTLX | 'X', nextbuffer}
,
{CTLX | 'Z', enlargewind}
,
#if WORDPRO
{META | CONTROL | 'C', wordcount}
,
#endif
#if PKCODE
{META | CONTROL | 'D', newsize}
,
#endif
#if PROC
{META | CONTROL | 'E', execproc}
,
#endif
#if CFENCE
{META | CONTROL | 'F', getfence}
,
#endif
{META | CONTROL | 'H', delbword}
,
{META | CONTROL | 'K', unbindkey}
,
{META | CONTROL | 'L', reposition}
,
{META | CONTROL | 'M', delgmode}
,
{META | CONTROL | 'N', namebuffer}
,
{META | CONTROL | 'R', qreplace}
,
{META | CONTROL | 'S', newsize}
,
{META | CONTROL | 'T', newwidth}
,
{META | CONTROL | 'V', scrnextdw}
,
#if WORDPRO
{META | CONTROL | 'W', killpara}
,
#endif
{META | CONTROL | 'Z', scrnextup}
,
{META | ' ', setmark}
,
{META | '?', help}
,
{META | '!', reposition}
,
{META | '.', setmark}
,
{META | '>', gotoeob}
,
{META | '<', gotobob}
,
{META | '~', unmark}
,
#if APROP
{META | 'A', apro}
,
#endif
{META | 'B', backword}
,
{META | 'C', capword}
,
{META | 'D', delfword}
,
#if CRYPT
{META | 'E', set_encryption_key}
,
#endif
{META | 'F', forwword}
,
{META | 'G', gotoline}
,
#if PKCODE
#if WORDPRO
{META | 'J', justpara}
,
#endif
#endif
{META | 'K', bindtokey}
,
{META | 'L', lowerword}
,
{META | 'M', setgmode}
,
#if WORDPRO
{META | 'N', gotoeop}
,
{META | 'P', gotobop}
,
{META | 'Q', fillpara}
,
#endif
{META | 'R', sreplace}
,
#if PKCODE
{META | 'S', forwsearch}
, /* alternative P.K. */
#else
#if BSD
{META | 'S', bktoshell}
,
#endif
#endif
{META | 'U', upperword}
,
{META | 'V', backpage}
,
{META | 'W', copyregion}
,
{META | 'X', namedcmd}
,
{META | 'Z', quickexit}
,
{META | 0x7F, delbword}
,
#if MSDOS
{SPEC | CONTROL | '_', forwhunt}
,
{SPEC | CONTROL | 'S', backhunt}
,
{SPEC | 71, gotobol}
,
{SPEC | 72, backline}
,
{SPEC | 73, backpage}
,
{SPEC | 75, backchar}
,
{SPEC | 77, forwchar}
,
{SPEC | 79, gotoeol}
,
{SPEC | 80, forwline}
,
{SPEC | 81, forwpage}
,
{SPEC | 82, insspace}
,
{SPEC | 83, forwdel}
,
{SPEC | 115, backword}
,
{SPEC | 116, forwword}
,
#if WORDPRO
{SPEC | 132, gotobop}
,
{SPEC | 118, gotoeop}
,
#endif
{SPEC | 84, cbuf1}
,
{SPEC | 85, cbuf2}
,
{SPEC | 86, cbuf3}
,
{SPEC | 87, cbuf4}
,
{SPEC | 88, cbuf5}
,
{SPEC | 89, cbuf6}
,
{SPEC | 90, cbuf7}
,
{SPEC | 91, cbuf8}
,
{SPEC | 92, cbuf9}
,
{SPEC | 93, cbuf10}
,
#if PKCODE #if PKCODE
{SPEC | 117, gotoeob} {CTLX | CONTROL | 'D', filesave}
, , /* alternative */
{SPEC | 119, gotobob} #else
, #if AEDIT
{SPEC | 141, gotobop} {CTLX | CONTROL | 'D', detab}
, ,
{SPEC | 145, gotoeop} #endif
, #endif
{SPEC | 146, yank} #if AEDIT
, {CTLX | CONTROL | 'E', entab}
{SPEC | 147, killregion} ,
, #endif
{CTLX | CONTROL | 'F', filefind}
,
{CTLX | CONTROL | 'I', insfile}
,
{CTLX | CONTROL | 'L', lowerregion}
,
{CTLX | CONTROL | 'M', delmode}
,
{CTLX | CONTROL | 'N', mvdnwind}
,
{CTLX | CONTROL | 'O', deblank}
,
{CTLX | CONTROL | 'P', mvupwind}
,
{CTLX | CONTROL | 'R', fileread}
,
{CTLX | CONTROL | 'S', filesave}
,
#if AEDIT
{CTLX | CONTROL | 'T', trim}
,
#endif
{CTLX | CONTROL | 'U', upperregion}
,
{CTLX | CONTROL | 'V', viewfile}
,
{CTLX | CONTROL | 'W', filewrite}
,
{CTLX | CONTROL | 'X', swapmark}
,
{CTLX | CONTROL | 'Z', shrinkwind}
,
{CTLX | '?', deskey}
,
{CTLX | '!', spawn}
,
{CTLX | '@', pipecmd}
,
{CTLX | '#', filter_buffer}
,
{CTLX | '$', execprg}
,
{CTLX | '=', showcpos}
,
{CTLX | '(', ctlxlp}
,
{CTLX | ')', ctlxrp}
,
{CTLX | '^', enlargewind}
,
{CTLX | '0', delwind}
,
{CTLX | '1', onlywind}
,
{CTLX | '2', splitwind}
,
{CTLX | 'A', setvar}
,
{CTLX | 'B', usebuffer}
,
{CTLX | 'C', spawncli}
,
#if BSD | __hpux | SVR4
{CTLX | 'D', bktoshell}
,
#endif
{CTLX | 'E', ctlxe}
,
{CTLX | 'F', setfillcol}
,
{CTLX | 'K', killbuffer}
,
{CTLX | 'M', setemode}
,
{CTLX | 'N', filename}
,
{CTLX | 'O', nextwind}
,
{CTLX | 'P', prevwind}
,
#if PKCODE
{CTLX | 'Q', quote}
, /* alternative */
#endif
#if ISRCH
{CTLX | 'R', risearch}
,
{CTLX | 'S', fisearch}
,
#endif
{CTLX | 'W', resize}
,
{CTLX | 'X', nextbuffer}
,
{CTLX | 'Z', enlargewind}
,
#if WORDPRO
{META | CONTROL | 'C', wordcount}
,
#endif
#if PKCODE
{META | CONTROL | 'D', newsize}
,
#endif
#if PROC
{META | CONTROL | 'E', execproc}
,
#endif
#if CFENCE
{META | CONTROL | 'F', getfence}
,
#endif
{META | CONTROL | 'H', delbword}
,
{META | CONTROL | 'K', unbindkey}
,
{META | CONTROL | 'L', reposition}
,
{META | CONTROL | 'M', delgmode}
,
{META | CONTROL | 'N', namebuffer}
,
{META | CONTROL | 'R', qreplace}
,
{META | CONTROL | 'S', newsize}
,
{META | CONTROL | 'T', newwidth}
,
{META | CONTROL | 'V', scrnextdw}
,
#if WORDPRO
{META | CONTROL | 'W', killpara}
,
#endif
{META | CONTROL | 'Z', scrnextup}
,
{META | ' ', setmark}
,
{META | '?', help}
,
{META | '!', reposition}
,
{META | '.', setmark}
,
{META | '>', gotoeob}
,
{META | '<', gotobob}
,
{META | '~', unmark}
,
#if APROP
{META | 'A', apro}
,
#endif
{META | 'B', backword}
,
{META | 'C', capword}
,
{META | 'D', delfword}
,
#if CRYPT
{META | 'E', set_encryption_key}
,
#endif
{META | 'F', forwword}
,
{META | 'G', gotoline}
,
#if PKCODE
#if WORDPRO
{META | 'J', justpara}
,
#endif
#endif
{META | 'K', bindtokey}
,
{META | 'L', lowerword}
,
{META | 'M', setgmode}
,
#if WORDPRO
{META | 'N', gotoeop}
,
{META | 'P', gotobop}
,
{META | 'Q', fillpara}
,
#endif
{META | 'R', sreplace}
,
#if PKCODE
{META | 'S', forwsearch}
, /* alternative P.K. */
#else
#if BSD
{META | 'S', bktoshell}
,
#endif
#endif
{META | 'U', upperword}
,
{META | 'V', backpage}
,
{META | 'W', copyregion}
,
{META | 'X', namedcmd}
,
{META | 'Z', quickexit}
,
{META | 0x7F, delbword}
,
#if MSDOS
{SPEC | CONTROL | '_', forwhunt}
,
{SPEC | CONTROL | 'S', backhunt}
,
{SPEC | 71, gotobol}
,
{SPEC | 72, backline}
,
{SPEC | 73, backpage}
,
{SPEC | 75, backchar}
,
{SPEC | 77, forwchar}
,
{SPEC | 79, gotoeol}
,
{SPEC | 80, forwline}
,
{SPEC | 81, forwpage}
,
{SPEC | 82, insspace}
,
{SPEC | 83, forwdel}
,
{SPEC | 115, backword}
,
{SPEC | 116, forwword}
,
#if WORDPRO
{SPEC | 132, gotobop}
,
{SPEC | 118, gotoeop}
,
#endif
{SPEC | 84, cbuf1}
,
{SPEC | 85, cbuf2}
,
{SPEC | 86, cbuf3}
,
{SPEC | 87, cbuf4}
,
{SPEC | 88, cbuf5}
,
{SPEC | 89, cbuf6}
,
{SPEC | 90, cbuf7}
,
{SPEC | 91, cbuf8}
,
{SPEC | 92, cbuf9}
,
{SPEC | 93, cbuf10}
,
#if PKCODE
{SPEC | 117, gotoeob}
,
{SPEC | 119, gotobob}
,
{SPEC | 141, gotobop}
,
{SPEC | 145, gotoeop}
,
{SPEC | 146, yank}
,
{SPEC | 147, killregion}
,
#endif #endif
#endif #endif
#if VT220 #if VT220
{SPEC | '1', fisearch} {SPEC | '1', fisearch}
, /* VT220 keys */ , /* VT220 keys */
{SPEC | '2', yank} {SPEC | '2', yank}
, ,
{SPEC | '3', killregion} {SPEC | '3', killregion}
, ,
{SPEC | '4', setmark} {SPEC | '4', setmark}
, ,
{SPEC | '5', backpage} {SPEC | '5', backpage}
, ,
{SPEC | '6', forwpage} {SPEC | '6', forwpage}
, ,
{SPEC | 'A', backline} {SPEC | 'A', backline}
, ,
{SPEC | 'B', forwline} {SPEC | 'B', forwline}
, ,
{SPEC | 'C', forwchar} {SPEC | 'C', forwchar}
, ,
{SPEC | 'D', backchar} {SPEC | 'D', backchar}
, ,
{SPEC | 'c', metafn} {SPEC | 'c', metafn}
, ,
{SPEC | 'd', backchar} {SPEC | 'd', backchar}
, ,
{SPEC | 'e', forwline} {SPEC | 'e', forwline}
, ,
{SPEC | 'f', gotobob} {SPEC | 'f', gotobob}
, ,
{SPEC | 'h', help} {SPEC | 'h', help}
, ,
{SPEC | 'i', cex} {SPEC | 'i', cex}
, ,
#endif #endif
{0x7F, backdel} {0x7F, backdel}
, ,
/* special internal bindings */ /* special internal bindings */
{ SPEC | META | 'W', wrapword }, /* called on word wrap */ { SPEC | META | 'W', wrapword }, /* called on word wrap */
{ SPEC | META | 'C', nullproc }, /* every command input */ { SPEC | META | 'C', nullproc }, /* every command input */
{ SPEC | META | 'R', nullproc }, /* on file read */ { SPEC | META | 'R', nullproc }, /* on file read */
{ SPEC | META | 'X', nullproc }, /* on window change P.K. */ { SPEC | META | 'X', nullproc }, /* on window change P.K. */
{0, NULL} {0, NULL}
}; };

1
edef.h
View File

@ -10,7 +10,6 @@
#ifndef EDEF_H_ #ifndef EDEF_H_
#define EDEF_H_ #define EDEF_H_
#include "buffer.h"
#include "estruct.h" #include "estruct.h"
/* Initialized global external declarations. */ /* Initialized global external declarations. */

1057
input.c

File diff suppressed because it is too large Load Diff