[BACK]Return to keymap.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/keymap.c between version 1.5 and 1.6

version 1.5, 2001/01/29 01:58:08 version 1.6, 2001/05/23 16:14:00
Line 133 
Line 133 
         onlywind,               /* 1 */          onlywind,               /* 1 */
         splitwind,              /* 2 */          splitwind,              /* 2 */
         rescan,                 /* 3 */          rescan,                 /* 3 */
         prefix,                 /* 4 */          NULL,                   /* 4 */
 };  };
   
 static PF cXeq[] = {  static PF cXeq[] = {
Line 322 
Line 322 
         forwchar,               /* ^F */          forwchar,               /* ^F */
         ctrlg,                  /* ^G */          ctrlg,                  /* ^G */
 #ifndef NO_HELP  #ifndef NO_HELP
         prefix,                 /* ^H */          NULL,                   /* ^H */
 #else /* !NO_HELP */  #else /* !NO_HELP */
         rescan,                 /* ^H */          rescan,                 /* ^H */
 #endif /* !NO_HELP */  #endif /* !NO_HELP */
Line 344 
Line 344 
         universal_argument,     /* ^U */          universal_argument,     /* ^U */
         forwpage,               /* ^V */          forwpage,               /* ^V */
         killregion,             /* ^W */          killregion,             /* ^W */
         prefix,                 /* ^X */          NULL,                   /* ^X */
         yank,                   /* ^Y */          yank,                   /* ^Y */
         spawncli,               /* ^Z */          spawncli,               /* ^Z */
 };  };
   
 static PF fund_esc[] = {  static PF fund_esc[] = {
         prefix,                 /* esc */          NULL,                   /* esc */
         rescan,                 /* ^\ selfinsert is default on fundamental */          rescan,                 /* ^\ selfinsert is default on fundamental */
         rescan,                 /* ^] */          rescan,                 /* ^] */
         rescan,                 /* ^^ */          rescan,                 /* ^^ */
Line 482 
Line 482 
         forwchar,               /* ^F */          forwchar,               /* ^F */
         ctrlg,                  /* ^G */          ctrlg,                  /* ^G */
 #ifndef NO_HELP  #ifndef NO_HELP
         prefix,                 /* ^H */          NULL,                   /* ^H */
 #endif /* !NO_HELP */  #endif /* !NO_HELP */
 };  };
   
Line 499 
Line 499 
         universal_argument,     /* ^U */          universal_argument,     /* ^U */
         forwpage,               /* ^V */          forwpage,               /* ^V */
         rescan,                 /* ^W */          rescan,                 /* ^W */
         prefix,                 /* ^X */          NULL,                   /* ^X */
 };  };
   
 static PF diredcz[] = {  static PF diredcz[] = {
         spawncli,               /* ^Z */          spawncli,               /* ^Z */
         prefix,                 /* esc */          NULL,                   /* esc */
         rescan,                 /* ^\ */          rescan,                 /* ^\ */
         rescan,                 /* ^] */          rescan,                 /* ^] */
         rescan,                 /* ^^ */          rescan,                 /* ^^ */
Line 651 
Line 651 
   
 /*  /*
  * Warning: functnames MUST be in alphabetical order!  (due to binary search   * Warning: functnames MUST be in alphabetical order!  (due to binary search
  * in name_function.)  If the function is prefix, it must be listed with the   * in name_function.)  If the function is NULL, it must be listed with the
  * same name in the map_table above.   * same name in the map_table above.
  */   */
 FUNCTNAMES functnames[] = {  FUNCTNAMES functnames[] = {
Line 671 
Line 671 
 #ifdef BSMAP  #ifdef BSMAP
         {bsmap, "bsmap-mode"},          {bsmap, "bsmap-mode"},
 #endif /* BSMAP */  #endif /* BSMAP */
         {prefix, "c-x 4 prefix"},          {NULL, "c-x 4 prefix"},
         {prefix, "c-x prefix"},          {NULL, "c-x prefix"},
 #ifndef NO_MACRO  #ifndef NO_MACRO
         {executemacro, "call-last-kbd-macro"},          {executemacro, "call-last-kbd-macro"},
 #endif /* !NO_MACRO */  #endif /* !NO_MACRO */
Line 722 
Line 722 
         {gotoeob, "end-of-buffer"},          {gotoeob, "end-of-buffer"},
         {gotoeol, "end-of-line"},          {gotoeol, "end-of-line"},
         {enlargewind, "enlarge-window"},          {enlargewind, "enlarge-window"},
         {prefix, "esc prefix"},          {NULL, "esc prefix"},
 #ifndef NO_STARTUP  #ifndef NO_STARTUP
         {evalbuffer, "eval-current-buffer"},          {evalbuffer, "eval-current-buffer"},
         {evalexpr, "eval-expression"},          {evalexpr, "eval-expression"},
 #endif /* !NO_STARTUP */  #endif /* !NO_STARTUP */
         {swapmark, "exchange-point-and-mark"},          {swapmark, "exchange-point-and-mark"},
         {extend, "execute-extended-command"},          {extend, "execute-extended-command"},
         {prefix, "extra prefix 1"},          {NULL, "extra prefix 1"},
         {prefix, "extra prefix 2"},          {NULL, "extra prefix 2"},
         {prefix, "extra prefix 3"},          {NULL, "extra prefix 3"},
         {prefix, "extra prefix 4"},          {NULL, "extra prefix 4"},
         {prefix, "extra prefix 5"},          {NULL, "extra prefix 5"},
         {fillpara, "fill-paragraph"},          {fillpara, "fill-paragraph"},
         {filevisit, "find-file"},          {filevisit, "find-file"},
         {poptofile, "find-file-other-window"},          {poptofile, "find-file-other-window"},
Line 744 
Line 744 
         {unbindtokey, "global-unset-key"},          {unbindtokey, "global-unset-key"},
         {gotoline, "goto-line"},          {gotoline, "goto-line"},
 #ifndef NO_HELP  #ifndef NO_HELP
         {prefix, "help"},          {NULL, "help"},
         {help_help, "help-help"},          {help_help, "help-help"},
 #endif /* !NO_HELP */  #endif /* !NO_HELP */
         {insert, "insert"},          {insert, "insert"},
Line 1010 
Line 1010 
 {  {
         FUNCTNAMES      *fnp = &functnames[0];          FUNCTNAMES      *fnp = &functnames[0];
   
         if (fpoint == prefix)          if (fpoint == NULL)
                 /* ambiguous */                  /* ambiguous */
                 return (char *)NULL;                  return (char *)NULL;
         do {          do {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6