comparison src/term.c @ 2243:23228edebc59

Fix spacing conventions.
author Richard M. Stallman <rms@gnu.org>
date Thu, 18 Mar 1993 10:18:30 +0000
parents be1ff9cf72eb
children b6c62e4abf59
comparison
equal deleted inserted replaced
2242:ce068246b4d7 2243:23228edebc59
1285 else if (i <= 45) 1285 else if (i <= 45)
1286 fcap[1] = 'A' + i - 11; 1286 fcap[1] = 'A' + i - 11;
1287 else 1287 else
1288 fcap[1] = 'a' + i - 11; 1288 fcap[1] = 'a' + i - 11;
1289 1289
1290 if (tgetstr(fcap, address)) 1290 if (tgetstr (fcap, address))
1291 { 1291 {
1292 (void) sprintf(fkey, "f%d", i); 1292 (void) sprintf (fkey, "f%d", i);
1293 Fdefine_key (Vfunction_key_map, 1293 Fdefine_key (Vfunction_key_map,
1294 build_string (fcap), 1294 build_string (fcap),
1295 Fmake_vector (make_number (1), intern (fkey))); 1295 Fmake_vector (make_number (1), intern (fkey)));
1296 } 1296 }
1297 } 1297 }
1299 1299
1300 /* 1300 /*
1301 * Various mappings to try and get a better fit. 1301 * Various mappings to try and get a better fit.
1302 */ 1302 */
1303 { 1303 {
1304 #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \ 1304 #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \
1305 if (!tgetstr(cap1, address) && tgetstr(cap2, address)) \ 1305 if (!tgetstr (cap1, address) && tgetstr (cap2, address)) \
1306 Fdefine_key (Vfunction_key_map, \ 1306 Fdefine_key (Vfunction_key_map, \
1307 build_string (cap2), \ 1307 build_string (cap2), \
1308 Fmake_vector (make_number (1), intern (sym))) 1308 Fmake_vector (make_number (1), intern (sym)))
1309 1309
1310 /* if there's no key_next keycap, map key_npage to `next' keysym */ 1310 /* if there's no key_next keycap, map key_npage to `next' keysym */
1311 CONDITIONAL_REASSIGN("%5", "kN", "next"); 1311 CONDITIONAL_REASSIGN ("%5", "kN", "next");
1312 /* if there's no key_prev keycap, map key_ppage to `previous' keysym */ 1312 /* if there's no key_prev keycap, map key_ppage to `previous' keysym */
1313 CONDITIONAL_REASSIGN("%8", "kP", "previous"); 1313 CONDITIONAL_REASSIGN ("%8", "kP", "previous");
1314 /* if there's no key_dc keycap, map key_ic to `insert' keysym */ 1314 /* if there's no key_dc keycap, map key_ic to `insert' keysym */
1315 CONDITIONAL_REASSIGN("kD", "kI", "insert"); 1315 CONDITIONAL_REASSIGN ("kD", "kI", "insert");
1316 #undef CONDITIONAL_REASSIGN 1316 #undef CONDITIONAL_REASSIGN
1317 } 1317 }
1318 } 1318 }
1319 1319
1320 1320