comparison src/events.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
1540 Lstream_byte_count (XLSTREAM (stream))); 1540 Lstream_byte_count (XLSTREAM (stream)));
1541 Lstream_delete (XLSTREAM (stream)); 1541 Lstream_delete (XLSTREAM (stream));
1542 UNGCPRO; 1542 UNGCPRO;
1543 return; 1543 return;
1544 } 1544 }
1545 case magic_eval_event: eicat_c (buf, "magic-eval"); return; 1545 case magic_eval_event: eicat_ascii (buf, "magic-eval"); return;
1546 case pointer_motion_event: eicat_c (buf, "motion"); return; 1546 case pointer_motion_event: eicat_ascii (buf, "motion"); return;
1547 case misc_user_event: eicat_c (buf, "misc-user"); return; 1547 case misc_user_event: eicat_ascii (buf, "misc-user"); return;
1548 case eval_event: eicat_c (buf, "eval"); return; 1548 case eval_event: eicat_ascii (buf, "eval"); return;
1549 case process_event: eicat_c (buf, "process"); return; 1549 case process_event: eicat_ascii (buf, "process"); return;
1550 case timeout_event: eicat_c (buf, "timeout"); return; 1550 case timeout_event: eicat_ascii (buf, "timeout"); return;
1551 case empty_event: eicat_c (buf, "empty"); return; 1551 case empty_event: eicat_ascii (buf, "empty"); return;
1552 case dead_event: eicat_c (buf, "DEAD-EVENT"); return; 1552 case dead_event: eicat_ascii (buf, "DEAD-EVENT"); return;
1553 default: 1553 default:
1554 abort (); 1554 abort ();
1555 return; 1555 return;
1556 } 1556 }
1557 #define modprint(x,y) \ 1557 #define modprint(x,y) \
1558 do { if (brief) eicat_c (buf, (y)); else eicat_c (buf, (x)); } while (0) 1558 do { if (brief) eicat_ascii (buf, (y)); else eicat_ascii (buf, (x)); } while (0)
1559 if (mod & XEMACS_MOD_CONTROL) modprint ("control-", "C-"); 1559 if (mod & XEMACS_MOD_CONTROL) modprint ("control-", "C-");
1560 if (mod & XEMACS_MOD_META) modprint ("meta-", "M-"); 1560 if (mod & XEMACS_MOD_META) modprint ("meta-", "M-");
1561 if (mod & XEMACS_MOD_SUPER) modprint ("super-", "S-"); 1561 if (mod & XEMACS_MOD_SUPER) modprint ("super-", "S-");
1562 if (mod & XEMACS_MOD_HYPER) modprint ("hyper-", "H-"); 1562 if (mod & XEMACS_MOD_HYPER) modprint ("hyper-", "H-");
1563 if (mod & XEMACS_MOD_ALT) modprint ("alt-", "A-"); 1563 if (mod & XEMACS_MOD_ALT) modprint ("alt-", "A-");
1564 if (mod & XEMACS_MOD_SHIFT) modprint ("shift-", "Sh-"); 1564 if (mod & XEMACS_MOD_SHIFT) modprint ("shift-", "Sh-");
1565 if (mouse_p) 1565 if (mouse_p)
1566 { 1566 {
1567 eicat_c (buf, "button"); 1567 eicat_ascii (buf, "button");
1568 --mouse_p; 1568 --mouse_p;
1569 } 1569 }
1570 1570
1571 #undef modprint 1571 #undef modprint
1572 1572
1584 else if (EQ (key, QKdelete)) str = "DEL"; 1584 else if (EQ (key, QKdelete)) str = "DEL";
1585 else if (EQ (key, QKspace)) str = "SPC"; 1585 else if (EQ (key, QKspace)) str = "SPC";
1586 else if (EQ (key, QKbackspace)) str = "BS"; 1586 else if (EQ (key, QKbackspace)) str = "BS";
1587 } 1587 }
1588 if (str) 1588 if (str)
1589 eicat_c (buf, str); 1589 eicat_ascii (buf, str);
1590 else 1590 else
1591 eicat_lstr (buf, XSYMBOL (key)->name); 1591 eicat_lstr (buf, XSYMBOL (key)->name);
1592 } 1592 }
1593 else 1593 else
1594 abort (); 1594 abort ();
1595 if (mouse_p) 1595 if (mouse_p)
1596 eicat_c (buf, "up"); 1596 eicat_ascii (buf, "up");
1597 } 1597 }
1598 1598
1599 void 1599 void
1600 upshift_event (Lisp_Object event) 1600 upshift_event (Lisp_Object event)
1601 { 1601 {