comparison src/keymap.c @ 2421:ab71ad6ff3dd

[xemacs-hg @ 2004-12-06 03:50:53 by ben] (none) README.packages: Document use of --package-prefix. Fix error in specifying standard package location. make-docfile.c: Use QXE_PATH_MAX. info.el: Correct doc string giving example package path. menubar-items.el: Move Prefix Rectangle command up one level. xemacs/packages.texi: Add long form of Lisp Reference Manual to links. Add links pointing to Lisp Reference Manual for more detailed package discussion. lispref/range-tables.texi: Document range-table changes. internals/internals.texi: Update history section. elhash.c, elhash.h, profile.c: Create inchash_eq() to allow direct incrementing of hash-table entry. Use in profile.c to try to reduce profiling overhead. Increase initial size of profile hash tables to reduce profiling overhead. buffer.c, device-msw.c, dialog-msw.c, dired-msw.c, editfns.c, event-msw.c, events.c, glyphs-msw.c, keymap.c, objects-msw.c, process-nt.c, syswindows.h, text.c, text.h, unexnt.c: Rename xetcs* -> qxetcs* for consistency with qxestr*. Rename ei*_c(_*) -> ei*_ascii(_*) since they work with ASCII-only strings not "C strings", whatever those are. This is the last place where "c" was incorrectly being used for "ascii". dialog-msw.c, dumper.c, event-msw.c, fileio.c, glyphs-gtk.c, glyphs-x.c, nt.c, process-nt.c, realpath.c, sysdep.c, sysfile.h, unexcw.c, unexnext.c, unexnt.c: Try to avoid differences in systems that do or do not include final null byte in PATH_MAX. Create PATH_MAX_INTERNAL and PATH_MAX_EXTERNAL and use them everywhere. Rewrite code in dumper.c to avoid use of PATH_MAX. When necessary in nt.c, use _MAX_PATH instead of MAX_PATH to be consistent with other places. text.c: Code to short-circuit when binary or Unicode was not working due to EOL wrapping. Fix this code to work when either no EOL autodetection or no CR's or LF's in the text. lisp.h, rangetab.c, rangetab.h, regex.c, search.c: Implement different types of ranges (open/closed start and end). Change default to be start-closed, end-open.
author ben
date Mon, 06 Dec 2004 03:52:23 +0000
parents ecf1ebac70d8
children 3d8143fc88e1
comparison
equal deleted inserted replaced
2420:ad56e5a6d09f 2421:ab71ad6ff3dd
3333 3333
3334 Lisp_Object rest; 3334 Lisp_Object rest;
3335 LIST_LOOP (rest, key) 3335 LIST_LOOP (rest, key)
3336 { 3336 {
3337 Lisp_Object keysym = XCAR (rest); 3337 Lisp_Object keysym = XCAR (rest);
3338 if (EQ (keysym, Qcontrol)) eicat_c (bufp, "C-"); 3338 if (EQ (keysym, Qcontrol)) eicat_ascii (bufp, "C-");
3339 else if (EQ (keysym, Qctrl)) eicat_c (bufp, "C-"); 3339 else if (EQ (keysym, Qctrl)) eicat_ascii (bufp, "C-");
3340 else if (EQ (keysym, Qmeta)) eicat_c (bufp, "M-"); 3340 else if (EQ (keysym, Qmeta)) eicat_ascii (bufp, "M-");
3341 else if (EQ (keysym, Qsuper)) eicat_c (bufp, "S-"); 3341 else if (EQ (keysym, Qsuper)) eicat_ascii (bufp, "S-");
3342 else if (EQ (keysym, Qhyper)) eicat_c (bufp, "H-"); 3342 else if (EQ (keysym, Qhyper)) eicat_ascii (bufp, "H-");
3343 else if (EQ (keysym, Qalt)) eicat_c (bufp, "A-"); 3343 else if (EQ (keysym, Qalt)) eicat_ascii (bufp, "A-");
3344 else if (EQ (keysym, Qshift)) eicat_c (bufp, "Sh-"); 3344 else if (EQ (keysym, Qshift)) eicat_ascii (bufp, "Sh-");
3345 else if (CHAR_OR_CHAR_INTP (keysym)) 3345 else if (CHAR_OR_CHAR_INTP (keysym))
3346 eicat_ch (bufp, XCHAR_OR_CHAR_INT (keysym)); 3346 eicat_ch (bufp, XCHAR_OR_CHAR_INT (keysym));
3347 else 3347 else
3348 { 3348 {
3349 CHECK_SYMBOL (keysym); 3349 CHECK_SYMBOL (keysym);
3350 #if 0 /* This is bogus */ 3350 #if 0 /* This is bogus */
3351 if (EQ (keysym, QKlinefeed)) eicat_c (bufp, "LFD"); 3351 if (EQ (keysym, QKlinefeed)) eicat_ascii (bufp, "LFD");
3352 else if (EQ (keysym, QKtab)) eicat_c (bufp, "TAB"); 3352 else if (EQ (keysym, QKtab)) eicat_ascii (bufp, "TAB");
3353 else if (EQ (keysym, QKreturn)) eicat_c (bufp, "RET"); 3353 else if (EQ (keysym, QKreturn)) eicat_ascii (bufp, "RET");
3354 else if (EQ (keysym, QKescape)) eicat_c (bufp, "ESC"); 3354 else if (EQ (keysym, QKescape)) eicat_ascii (bufp, "ESC");
3355 else if (EQ (keysym, QKdelete)) eicat_c (bufp, "DEL"); 3355 else if (EQ (keysym, QKdelete)) eicat_ascii (bufp, "DEL");
3356 else if (EQ (keysym, QKspace)) eicat_c (bufp, "SPC"); 3356 else if (EQ (keysym, QKspace)) eicat_ascii (bufp, "SPC");
3357 else if (EQ (keysym, QKbackspace)) eicat_c (bufp, "BS"); 3357 else if (EQ (keysym, QKbackspace)) eicat_ascii (bufp, "BS");
3358 else 3358 else
3359 #endif 3359 #endif
3360 eicat_lstr (bufp, XSYMBOL (keysym)->name); 3360 eicat_lstr (bufp, XSYMBOL (keysym)->name);
3361 if (!NILP (XCDR (rest))) 3361 if (!NILP (XCDR (rest)))
3362 invalid_argument ("Invalid key description", key); 3362 invalid_argument ("Invalid key description", key);
3565 { 3565 {
3566 XSET_EVENT_KEY_KEYSYM (event, keys[i].keysym); 3566 XSET_EVENT_KEY_KEYSYM (event, keys[i].keysym);
3567 XSET_EVENT_KEY_MODIFIERS (event, KEY_DATA_MODIFIERS (&keys[i])); 3567 XSET_EVENT_KEY_MODIFIERS (event, KEY_DATA_MODIFIERS (&keys[i]));
3568 format_event_object (buf, event, 1); 3568 format_event_object (buf, event, 1);
3569 if (i < count - 1) 3569 if (i < count - 1)
3570 eicat_c (buf, " "); 3570 eicat_ascii (buf, " ");
3571 } 3571 }
3572 Fdeallocate_event (event); 3572 Fdeallocate_event (event);
3573 } 3573 }
3574 3574
3575 3575