version 1.33, 2012/03/14 13:56:35 |
version 1.34, 2012/04/12 04:47:59 |
|
|
|
|
#include "kbd.h" |
#include "kbd.h" |
#include "key.h" |
#include "key.h" |
#ifndef NO_MACRO |
|
#include "macro.h" |
#include "macro.h" |
#endif /* !NO_MACRO */ |
|
|
|
static int showall(struct buffer *, KEYMAP *, char *); |
static int showall(struct buffer *, KEYMAP *, char *); |
static int findbind(KEYMAP *, PF, char *, size_t); |
static int findbind(KEYMAP *, PF, char *, size_t); |
|
|
char *pep; |
char *pep; |
char dprompt[80]; |
char dprompt[80]; |
|
|
#ifndef NO_MACRO |
|
if (inmacro) |
if (inmacro) |
return (TRUE); /* ignore inside keyboard macro */ |
return (TRUE); /* ignore inside keyboard macro */ |
#endif /* !NO_MACRO */ |
|
num = strlcpy(dprompt, "Describe key briefly: ", sizeof(dprompt)); |
num = strlcpy(dprompt, "Describe key briefly: ", sizeof(dprompt)); |
if (num >= sizeof(dprompt)) |
if (num >= sizeof(dprompt)) |
num = sizeof(dprompt) - 1; |
num = sizeof(dprompt) - 1; |
|
|
do { |
do { |
funct = doscan(kp, getkey(FALSE), NULL); |
funct = doscan(kp, getkey(FALSE), NULL); |
} while (funct == NULL || funct == help_help); |
} while (funct == NULL || funct == help_help); |
#ifndef NO_MACRO |
|
if (macrodef && macrocount < MAXMACRO) |
if (macrodef && macrocount < MAXMACRO) |
macro[macrocount - 1].m_funct = funct; |
macro[macrocount - 1].m_funct = funct; |
#endif /* !NO_MACRO */ |
|
return ((*funct)(f, n)); |
return ((*funct)(f, n)); |
} |
} |
|
|