comparison src/keymap.c @ 502:7039e6323819

[xemacs-hg @ 2001-05-04 22:41:46 by ben] ----------------------- byte-comp warning fixes ----------------- New functions for cleanly eliminating byte-compiler warnings. Their definitions require no changes at all in bytecomp.el, meaning that any package that wants to use them and be compatible with older versions of XEmacs need only copy the code and rename the functions (i.e. prefix them with the package name). Eliminate byte-compiler warnings using the new functions in bytecomp-runtime.el. Move coding-system-put,get,category, since they're not Mule-specific and are used in prefer-coding-system. font.el was incredibly ugly. Clean it up. Avoid using defsubst for any exported functions, to avoid possible compatibility problems if we later change the internal interface. (It happened before, with face accessors, between 19.8 and 19.9). Fix tons of warnings. Clean up (new function gpm-is-supported-p eliminates duplicate code in gpm-create/delete-device-hook) and eliminate warnings. ---------- make byte-recompile-directory work in the --------- core `lisp' dir, even in the absence of a Mule XEmacs (i.e. make it skip the Mule files rather than trying to compile them). now you should be able to do `touch *.el' in the `lisp' dir, then M-x byte-recompile-directory, and get no warnings. Avoid trying to compile Mule files in byte-recompile-directory when we're not in a Mule XEmacs, since we're highly likely to get syntax errors. Add a coding-system cookie to all Mule files so that byte-recompile-directory ignores them. Magic cookie function moved to files.el from code-files.el (for use by bytecomp even in a non-coding-system XEmacs), and changed names and semantics for use by bytecomp. NOTE: IMO this is an internal function that we can change as we like (and there is absolutely no code anywhere else using the function). ---------------- GUI improvements: menus, help ------------------- Rearrange order of keymap declarations to be alphabetical. Improve help on help to include all bindings, and group by category. Add bindings for new Info commands. Remove warnings. Use command-hyper-apropos in place of command-apropos. Add a function to do the equivalent of command-apropos. Evals its help-text argument so you can put expressions there. Used now by help-for-help. Add binding to continue text searches. Expand index searches to work over multiple info documents. Add commands to search text/index in User and Lispref. Add new entry, "Uncomment Region" (parallels "Comment Out Region"). Redo Help menu; add bindings for new Info commands to search the index or text of the User and Lispref manuals. Add command for mark-paragraph, activate-region. Make Edit->R accelerator be rectangle, not register (more commonly used), and put rectangle first. Fix the Edit Init File entry to never load the .elc file. Simplify the default-popup-menu. Add Cmds->Tabs menu. Use kp-left not kp_left, etc. ---------------- Miscellaneous bug fixes/cleanup ------------------- byte-compiler-options: Correct doc string. easy-menu-do-define: fix extra quote. fill-paragraph-or-region:Rewrite to be more correct -- use call-interactively so that we always get exactly the same behavior as if the functions were called directly. No need to fiddle with zmacs-region-stays, now that bogus clearing of it (2001-04-28 src/ChangeLog) is removed. Put dialog titles back in -- this time correctly. Fix various other problems with leaks and such. key-sequence-list-description: Clean up fun to always correctly canonicalize. Clean up Kinsoku comments, synch comment-region with FSF 20.7. * simple.el (region-exists-p): * simple.el (region-active-p): Add comment about which one is correct to use in menu specs. * sound.el (load-sound-file): Minor code clean up. * startup.el: * startup.el (command-line-early): * startup.el (initial-scratch-message): Comment changes. Add info about sample.init.el to splash screen. Improve initial-scratch-message and clarify purpose of Scratch buffer. Fix byte-compile warning. ------------------------ Added features ------------------------- Add new variable to control whether etags checks all parent directories for tag files. (On by default.) * hash-table.el: New file, useful utility functions. * dumped-lisp.el (preloaded-file-list): Dump hash-table.el. ------------ notable bug fix: Windows event code -------------- Get critical quit working. ------------ notable bug fix and new feature: regex code -------------- Shy groups were implemented in a horrible, half-assed way that would cause them to screw up regex searching in most cases. Fixed to work correctly. Also extended back-reference syntax past 9. Only is recognized as such if there are at least that many non-shy groups; and optionally will warn about such uses, to catch old code that might be using them differently. (Added variable to control this in search.c -- `warn-about-possibly-incompatible-back- references', on by default for the moment. Declared in lisp.h. ---------------- process/SIGIO improvements ------------------- define USE_GETADDRINFO to replace more complex conditional, and use it. the code conditionalized on this in unix_open_network_stream had *serious* problems handling errors. it's now fixed, and major amounts of duplicate code between the two versions were combined. don't disable SIGIO and other interrupts unless CONNECT_NEEDS_SLOWED_INTERRUPTS is defined -- don't penalize OS's without bugs. similarly for a freebsd bug that was affecting all OS's. * s\ultrix.h: define CONNECT_NEEDS_SLOWED_INTERRUPTS, since that's the OS mentioned as having a kernel bug. * sysdep.c (request_sigio_on_device): * sysdep.c (unrequest_sigio_on_device): fix SIGIO problems on Linux. add check for O_ASYNC in case it's defined and FASYNC isn't. add comment about other ways to do SIGIO on Linux. * callproc.c (Fold_call_process_internal): * process.c (Fstart_process_internal): Deal with the possibility that `default-directory' doesn't have terminating slash. Correct comments about vfork. ---------------- Miscellaneous bug fixes/cleanup ------------------- * callint.c (Finteractive): Add lots of documentation -- exactly what the Lisp equivalents of all the interactive specs are. * console.h (struct console): change type of quit_char to Emchar. * event-msw.c (lstream_type_create_mswindows_selectable): spacing change. Eliminate events-mod.h and combine into events.h. * emacs.c: * emacs.c (make_arg_list_1): * emacs.c (main_1): A couple of char->Extbyte changes, add a comment. * glyphs-msw.c: Correct indentation of function defns to not exceed 80 cols. Try (sort of) to fix some code that sets the colors of the progress gauge. (Commented out) * keymap.c (syms_of_keymap): use DEFSYMBOL. * process.c (read_process_output): No need to fiddle with zmacs_region_stays, now that bogus clearing of it (see below) is removed. * search.c (Freplace_match): warning fix.
author ben
date Fri, 04 May 2001 22:42:35 +0000
parents 4a8bb4aa9740
children 183866b06e0b
comparison
equal deleted inserted replaced
501:0a255b32b157 502:7039e6323819
35 #include "events.h" 35 #include "events.h"
36 #include "frame.h" 36 #include "frame.h"
37 #include "insdel.h" 37 #include "insdel.h"
38 #include "keymap.h" 38 #include "keymap.h"
39 #include "window.h" 39 #include "window.h"
40 #include "events-mod.h"
41 40
42 41
43 /* A keymap contains six slots: 42 /* A keymap contains six slots:
44 43
45 parents Ordered list of keymaps to search after 44 parents Ordered list of keymaps to search after
4221 void 4220 void
4222 syms_of_keymap (void) 4221 syms_of_keymap (void)
4223 { 4222 {
4224 INIT_LRECORD_IMPLEMENTATION (keymap); 4223 INIT_LRECORD_IMPLEMENTATION (keymap);
4225 4224
4226 defsymbol (&Qminor_mode_map_alist, "minor-mode-map-alist"); 4225 DEFSYMBOL (Qminor_mode_map_alist);
4227 4226
4228 defsymbol (&Qkeymapp, "keymapp"); 4227 DEFSYMBOL (Qkeymapp);
4229 4228
4230 defsymbol (&Qsuppress_keymap, "suppress-keymap"); 4229 DEFSYMBOL (Qsuppress_keymap);
4231 4230
4232 defsymbol (&Qmodeline_map, "modeline-map"); 4231 DEFSYMBOL (Qmodeline_map);
4233 defsymbol (&Qtoolbar_map, "toolbar-map"); 4232 DEFSYMBOL (Qtoolbar_map);
4234 4233
4235 DEFSUBR (Fkeymap_parents); 4234 DEFSUBR (Fkeymap_parents);
4236 DEFSUBR (Fset_keymap_parents); 4235 DEFSUBR (Fset_keymap_parents);
4237 DEFSUBR (Fkeymap_name); 4236 DEFSUBR (Fkeymap_name);
4238 DEFSUBR (Fset_keymap_name); 4237 DEFSUBR (Fset_keymap_name);
4263 DEFSUBR (Fwhere_is_internal); 4262 DEFSUBR (Fwhere_is_internal);
4264 DEFSUBR (Fdescribe_bindings_internal); 4263 DEFSUBR (Fdescribe_bindings_internal);
4265 4264
4266 DEFSUBR (Ftext_char_description); 4265 DEFSUBR (Ftext_char_description);
4267 4266
4268 defsymbol (&Qcontrol, "control"); 4267 DEFSYMBOL (Qcontrol);
4269 defsymbol (&Qctrl, "ctrl"); 4268 DEFSYMBOL (Qctrl);
4270 defsymbol (&Qmeta, "meta"); 4269 DEFSYMBOL (Qmeta);
4271 defsymbol (&Qsuper, "super"); 4270 DEFSYMBOL (Qsuper);
4272 defsymbol (&Qhyper, "hyper"); 4271 DEFSYMBOL (Qhyper);
4273 defsymbol (&Qalt, "alt"); 4272 DEFSYMBOL (Qalt);
4274 defsymbol (&Qshift, "shift"); 4273 DEFSYMBOL (Qshift);
4275 defsymbol (&Qbutton0, "button0"); 4274 DEFSYMBOL (Qbutton0);
4276 defsymbol (&Qbutton1, "button1"); 4275 DEFSYMBOL (Qbutton1);
4277 defsymbol (&Qbutton2, "button2"); 4276 DEFSYMBOL (Qbutton2);
4278 defsymbol (&Qbutton3, "button3"); 4277 DEFSYMBOL (Qbutton3);
4279 defsymbol (&Qbutton4, "button4"); 4278 DEFSYMBOL (Qbutton4);
4280 defsymbol (&Qbutton5, "button5"); 4279 DEFSYMBOL (Qbutton5);
4281 defsymbol (&Qbutton6, "button6"); 4280 DEFSYMBOL (Qbutton6);
4282 defsymbol (&Qbutton7, "button7"); 4281 DEFSYMBOL (Qbutton7);
4283 defsymbol (&Qbutton0up, "button0up"); 4282 DEFSYMBOL (Qbutton0up);
4284 defsymbol (&Qbutton1up, "button1up"); 4283 DEFSYMBOL (Qbutton1up);
4285 defsymbol (&Qbutton2up, "button2up"); 4284 DEFSYMBOL (Qbutton2up);
4286 defsymbol (&Qbutton3up, "button3up"); 4285 DEFSYMBOL (Qbutton3up);
4287 defsymbol (&Qbutton4up, "button4up"); 4286 DEFSYMBOL (Qbutton4up);
4288 defsymbol (&Qbutton5up, "button5up"); 4287 DEFSYMBOL (Qbutton5up);
4289 defsymbol (&Qbutton6up, "button6up"); 4288 DEFSYMBOL (Qbutton6up);
4290 defsymbol (&Qbutton7up, "button7up"); 4289 DEFSYMBOL (Qbutton7up);
4291 defsymbol (&Qmouse_1, "mouse-1"); 4290 DEFSYMBOL (Qmouse_1);
4292 defsymbol (&Qmouse_2, "mouse-2"); 4291 DEFSYMBOL (Qmouse_2);
4293 defsymbol (&Qmouse_3, "mouse-3"); 4292 DEFSYMBOL (Qmouse_3);
4294 defsymbol (&Qmouse_4, "mouse-4"); 4293 DEFSYMBOL (Qmouse_4);
4295 defsymbol (&Qmouse_5, "mouse-5"); 4294 DEFSYMBOL (Qmouse_5);
4296 defsymbol (&Qmouse_6, "mouse-6"); 4295 DEFSYMBOL (Qmouse_6);
4297 defsymbol (&Qmouse_7, "mouse-7"); 4296 DEFSYMBOL (Qmouse_7);
4298 defsymbol (&Qdown_mouse_1, "down-mouse-1"); 4297 DEFSYMBOL (Qdown_mouse_1);
4299 defsymbol (&Qdown_mouse_2, "down-mouse-2"); 4298 DEFSYMBOL (Qdown_mouse_2);
4300 defsymbol (&Qdown_mouse_3, "down-mouse-3"); 4299 DEFSYMBOL (Qdown_mouse_3);
4301 defsymbol (&Qdown_mouse_4, "down-mouse-4"); 4300 DEFSYMBOL (Qdown_mouse_4);
4302 defsymbol (&Qdown_mouse_5, "down-mouse-5"); 4301 DEFSYMBOL (Qdown_mouse_5);
4303 defsymbol (&Qdown_mouse_6, "down-mouse-6"); 4302 DEFSYMBOL (Qdown_mouse_6);
4304 defsymbol (&Qdown_mouse_7, "down-mouse-7"); 4303 DEFSYMBOL (Qdown_mouse_7);
4305 defsymbol (&Qmenu_selection, "menu-selection"); 4304 DEFSYMBOL (Qmenu_selection);
4306 defsymbol (&QLFD, "LFD"); 4305 DEFSYMBOL (QLFD);
4307 defsymbol (&QTAB, "TAB"); 4306 DEFSYMBOL (QTAB);
4308 defsymbol (&QRET, "RET"); 4307 DEFSYMBOL (QRET);
4309 defsymbol (&QESC, "ESC"); 4308 DEFSYMBOL (QESC);
4310 defsymbol (&QDEL, "DEL"); 4309 DEFSYMBOL (QDEL);
4311 defsymbol (&QSPC, "SPC"); 4310 DEFSYMBOL (QSPC);
4312 defsymbol (&QBS, "BS"); 4311 DEFSYMBOL (QBS);
4313 } 4312 }
4314 4313
4315 void 4314 void
4316 vars_of_keymap (void) 4315 vars_of_keymap (void)
4317 { 4316 {