;ELC ;;; compiled by kwzh@churchy.gnu.ai.mit.edu on Sun Jun 11 18:39:13 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/edt-mapper.el ;;; emacs version 19.28.93.1. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19.28.90"))) (error "`edt-mapper.el' was compiled for Emacs 19.29 or later")) (byte-code "\n ™c!!ć" [window-system emacs-version "19" "\n\n Whoa! This isn't going to work...\n\n You must run edt-mapper.el under X-windows and Emacs version 19.\n\n Press any key to exit. " sit-for 600 kill-emacs t] 2) #@51 Non-NIL if we are running Lucid Emacs version 19. (defconst edt-lucid-emacs19-p (string-match "Lucid" emacs-version) (#$ . 736)) (byte-code "! B! B!  B!- B!: B!G B Y#` #!j!!t!qc!c  !H!\"Q! \"Qqed|c" [boundp edt-key nil current-load-list edt-enter edt-return edt-key-seq edt-enter-seq edt-return-seq edt-lucid-emacs19-p set-screen-size 80 36 set-frame-size selected-frame get-buffer "Directions" generate-new-buffer "Keys" ";;\n;; Key definitions for the EDT emulation within GNU Emacs\n;;\n\n(defconst *EDT-keys*\n '(\n" switch-to-buffer "\n EDT MAPPER\n\n You will be asked to press keys to create a custom mapping (under\n X-Windows) of your keypad keys and function keys so that they can emulate\n the LK-201 keypad and function keys or the subset of keys found on a \n VT-100 series terminal keyboard. (The LK-201 keyboard is the standard\n keyboard attached to VT-200 series terminals, and above.) \n\n Sometimes, edt-mapper will ignore a key you press, and just continue to\n prompt for the same key. This can happen when your window manager sucks\n up the key and doesn't pass it on to emacs, or it could be an emacs bug.\n Either way, there's nothing that edt-mapper can do about it. You must\n press RETURN, to skip the current key and continue. Later, you and/or\n your local X guru can try to figure out why the key is being ignored.\n\n Start by pressing the RETURN key, and continue by pressing the keys\n specified in the mini-buffer. If you want to entirely omit a key, \n because your keyboard does not have a corresponding key, for example, \n just press RETURN at the prompt.\n\n" delete-other-windows read-key-sequence "Hit carriage-return to continue " "[" format "%s" event-key 0 "]" message read-event "\n\n\n\n PRESS THE KEY SPECIFIED IN THE MINIBUFFER BELOW.\n\n\n\n\n Here's a picture of the standard LK-201 keypad for reference:\n\n _______________________ _______________________________\n | HELP | DO | | F17 | F18 | F19 | F20 |\n | | | | | | | |\n |_______|_______________| |_______|_______|_______|_______|\n _______________________ _______________________________\n | FIND |INSERT |REMOVE | | PF1 | PF2 | PF3 | PF4 |\n | | | | | | | | |\n |_______|_______|_______| |_______|_______|_______|_______|\n |SELECT |PREVIOU| NEXT | | KP7 | KP8 | KP9 | KP- |\n | | | | | | | | |\n |_______|_______|_______| |_______|_______|_______|_______|\n | UP | | KP4 | KP5 | KP6 | KP, |\n | | | | | | |\n _______|_______|_______ |_______|_______|_______|_______|\n | LEFT | DOWN | RIGHT | | KP1 | KP2 | KP3 | |\n | | | | | | | | |\n |_______|_______|_______| |_______|_______|_______| KPE |\n | KP0 | KPP | |\n | | | |\n |_______________|_______|_______|\n\n"] 6) (defalias 'edt-lucid-map-key #[(ident descrip func gold-func) " \f#! H!\"Q \f*q  #cq " [read-key-sequence format "Press %s%s: " ident descrip edt-key-seq "[" "%s" event-key 0 "]" edt-key edt-return "Keys" " (\"%s\" . %s)\n" "Directions"] 7 nil nil]) (defalias 'edt-gnu-map-key #[(ident descrip) "\n #  \"Q\n *q\n\n#cq6q\n\"cq\n" [message "Press %s%s: " ident descrip read-event edt-key-seq "[" format "%s" "]" edt-key edt-return "Keys" " (\"%s\" . %s)\n" "Directions" " (\"%s\" . \"\" )\n"] 5 nil nil]) (byte-code " ‚\nMqcq\"\"\"\"qcq\"\"\"\"qcq\"\"\"\"\"\"\"\"\"\"\"\"\"\"5678qcq\"\"\"@A\"BC\"DE\"qFcqGH\"IJ\"KL\"MN\"OP\"QR\"ST\"UV\"WX\"YZ\"[\\\"]^\"_`\"ab\"cd\"ef\"gh\"ij\"kl\"mn\"qed|ocp!qqcrstu!srsr\"qvc wxyz{|}y\"~y#!) !!!" [edt-map-key edt-lucid-emacs19-p edt-lucid-map-key edt-gnu-map-key "Keys" "\n;;\n;; Arrows\n;;\n" "Directions" "UP" " - The Up Arrow Key" "DOWN" " - The Down Arrow Key" "LEFT" " - The Left Arrow Key" "RIGHT" " - The Right Arrow Key" "\n;;\n;; PF keys\n;;\n" "PF1" " - The PF1 (GOLD) Key" "PF2" " - The Keypad PF2 Key" "PF3" " - The Keypad PF3 Key" "PF4" " - The Keypad PF4 Key" "\n;;\n;; KP0-9 KP- KP, KPP and KPE\n;;\n" "KP0" " - The Keypad 0 Key" "KP1" " - The Keypad 1 Key" "KP2" " - The Keypad 2 Key" "KP3" " - The Keypad 3 Key" "KP4" " - The Keypad 4 Key" "KP5" " - The Keypad 5 Key" "KP6" " - The Keypad 6 Key" "KP7" " - The Keypad 7 Key" "KP8" " - The Keypad 8 Key" "KP9" " - The Keypad 9 Key" "KP-" " - The Keypad - Key" "KP," " - The Keypad , Key" "KPP" " - The Keypad . Key" "KPE" " - The Keypad Enter Key" edt-key edt-enter edt-key-seq edt-enter-seq "\n;;\n;; Editing keypad (FIND, INSERT, REMOVE)\n;; (SELECT, PREVIOUS, NEXT)\n;;\n" "FIND" " - The Find key on the editing keypad" "INSERT" " - The Insert key on the editing keypad" "REMOVE" " - The Remove key on the editing keypad" "SELECT" " - The Select key on the editing keypad" "PREVIOUS" " - The Prev Scr key on the editing keypad" "NEXT" " - The Next Scr key on the editing keypad" "\n;;\n;; F1-14 Help Do F17-F20\n;;\n" "F1" " - F1 Function Key" "F2" " - F2 Function Key" "F3" " - F3 Function Key" "F4" " - F4 Function Key" "F5" " - F5 Function Key" "F6" " - F6 Function Key" "F7" " - F7 Function Key" "F8" " - F8 Function Key" "F9" " - F9 Function Key" "F10" " - F10 Function Key" "F11" " - F11 Function Key" "F12" " - F12 Function Key" "F13" " - F13 Function Key" "F14" " - F14 Function Key" "HELP" " - HELP Function Key" "DO" " - DO Function Key" "F17" " - F17 Function Key" "F18" " - F18 Function Key" "F19" " - F19 Function Key" "F20" " - F20 Function Key" "\n ADDITIONAL FUNCTION KEYS\n\n Your keyboard may have additional function keys which do not\n correspond to any LK-201 keys. The EDT Emulation can be\n configured to recognize those keys, since you may wish to add your\n own key bindings to those keys.\n \n For example, suppose your keyboard has a keycap marked \"Line Del\"\n and you wish to add it to the list of keys which can be customized\n by the EDT Emulation. First, assign a unique single-word name to\n the key for use by the EDT Emulation, let's say \"linedel\", in this\n example. Then, at the \"EDT Key Name:\" prompt, enter \"linedel\",\n followed by a press of the RETURN key. Finally, when prompted,\n press the \"Line Del\" key. You now will be able to bind functions\n to \"linedel\" and \"Gold-linedel\" in edt-user.el in just the same way\n you can customize bindings of the standard LK-201 keys.\n\n When you have no additional function keys to specify, just press\n RETURN at the \"EDT Key Name:\" prompt. (If you change your mind\n AFTER you enter an EDT Key Name and before you press a key at the\n \"Press\" prompt, you may omit the key by simply pressing RETURN at\n the prompt.)\n" switch-to-buffer ";;\n;; Extra Keys \n;;\n" "" EDT-key-name read-string "EDT Key Name: " " )\n )\n" "~/.edt-lucid-keys" "~/.edt-gnu-keys" file set-visited-file-name read-file-name format "Save key mapping to file (default %s): " nil save-buffer message "That's it! Press any key to exit" sit-for 600 kill-emacs t] 5)