diff options
| author | Eric S. Raymond | 1993-03-17 23:50:29 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1993-03-17 23:50:29 +0000 |
| commit | 11838c0e241de7e4b6bf309b95df3efdc73851a0 (patch) | |
| tree | ab49a6215a589f4bbb2013332a1e6919173fb2d2 /src | |
| parent | c3d80a47376f6be6e3bf01eee601f2f5c3ed0586 (diff) | |
| download | emacs-11838c0e241de7e4b6bf309b95df3efdc73851a0.tar.gz emacs-11838c0e241de7e4b6bf309b95df3efdc73851a0.zip | |
Less klugey version of fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/term.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c index ecbca87c8b7..8c824294134 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -1238,7 +1238,6 @@ term_get_fkeys (address) | |||
| 1238 | char **address; | 1238 | char **address; |
| 1239 | { | 1239 | { |
| 1240 | extern char *tgetstr (); | 1240 | extern char *tgetstr (); |
| 1241 | char capval[32]; | ||
| 1242 | int i; | 1241 | int i; |
| 1243 | 1242 | ||
| 1244 | for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++) | 1243 | for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++) |
| @@ -1288,7 +1287,7 @@ term_get_fkeys (address) | |||
| 1288 | else | 1287 | else |
| 1289 | fcap[1] = 'a' + i - 11; | 1288 | fcap[1] = 'a' + i - 11; |
| 1290 | 1289 | ||
| 1291 | if (tgetstr(fcap, &capval)) | 1290 | if (tgetstr(fcap, address)) |
| 1292 | { | 1291 | { |
| 1293 | (void) sprintf(fkey, "f%d", i); | 1292 | (void) sprintf(fkey, "f%d", i); |
| 1294 | Fdefine_key (Vfunction_key_map, | 1293 | Fdefine_key (Vfunction_key_map, |
| @@ -1303,7 +1302,7 @@ term_get_fkeys (address) | |||
| 1303 | */ | 1302 | */ |
| 1304 | { | 1303 | { |
| 1305 | #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \ | 1304 | #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \ |
| 1306 | if (!tgetstr(cap1, &capval) && tgetstr(cap2, &capval)) \ | 1305 | if (!tgetstr(cap1, address) && tgetstr(cap2, address)) \ |
| 1307 | Fdefine_key (Vfunction_key_map, \ | 1306 | Fdefine_key (Vfunction_key_map, \ |
| 1308 | build_string (cap2), \ | 1307 | build_string (cap2), \ |
| 1309 | Fmake_vector (make_number (1), intern (sym))) | 1308 | Fmake_vector (make_number (1), intern (sym))) |