;ELC
;;; Compiled by LTX@Xue-LingTaos-MacBook-Pro.local on Wed Mar 16 23:12:45 2011
;;; from file /Users/LTX/Projects/Emacs/emacs/lisp/emulation/tpu-mapper.el
;;; in Emacs version 24.0.50.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\301B\302\301!\204\303\301\304\"\210\305B\302\305!\204\303\305\304\"\210\306B\302\306!\204-\303\306\304\"\210\307B\302\307!\204<\303\307\304\"\210\310B\302\310!\204K\303\310\304\"\210\311B\302\311!\204Z\303\311\304\"\210\312B\302\312!\204i\303\312\304\"\210\313B\302\313!\204x\303\313\304\"\210\304\207" [current-load-list tpu-kp4 default-boundp set-default nil tpu-kp5 tpu-key tpu-enter tpu-return tpu-key-seq tpu-enter-seq tpu-return-seq] 3)
(defalias 'tpu-map-key #[(ident descrip func gold-func) "\306\307	#\210\310 \311\312\n\"\211\f\232\204)\313q\210\311\314
#c\210\315q\210\311\316#c\210\317q\210\207" [ident descrip tpu-key-seq tpu-key tpu-return func message "Press %s%s: " read-event format "[%s]" "Keys" "(define-key tpu-global-map %s %s)\n" "Gold-Keys" "(define-key tpu-gold-map %s %s)\n" "Directions" gold-func] 5 nil nil])
#@1285 Create an Emacs lisp file defining the TPU-edt keypad for X-windows.

This command displays an instruction screen showing the TPU-edt keypad
and asks you to press the TPU-edt editing keys.  It uses the keys you
press to create an Emacs Lisp file that will define a TPU-edt keypad
for your X server.  You can even re-arrange the standard EDT keypad to
suit your tastes (or to cope with those silly Sun and PC keypads).

Finally, you will be prompted for the name of the file to store the key
definitions.  If you chose the default, TPU-edt will find it and load it
automatically.  If you specify a different file name, you will need to
set the variable ``tpu-xkeys-file'' before starting TPU-edt.  Here's how
you might go about doing that in your .emacs file.

  (setq tpu-xkeys-file (expand-file-name "~/.my-emacs-x-keys"))
  (tpu-edt)

Known Problems:

Sometimes, tpu-mapper will ignore a key you press, and just continue to
prompt for the same key.  This can happen when your window manager sucks
up the key and doesn't pass it on to Emacs, or it could be an Emacs bug.
Either way, there's nothing that tpu-mapper can do about it.  You must
press RETURN, to skip the current key and continue.  Later, you and/or
your local X guru can try to figure out why the key is being ignored.
(defalias 'tpu-mapper #[nil "\204\306\307!\210\310\311 \312\313#\210\314\315!\204\316\315!\210\314\317!\204#\316\317!\210\314\320!\204-\316\320!\210\317q\210\321c\210\322\315!\210\323c\210\324 \210eb\210\325\326!\210\327 \330\331\332	\"\333Q\317q\210\334c\210\320q\210\335c\210\315q\210\336\337\340\341\342$\210\336\343\340\344\345$\210\336\346\340\347\350$\210\336\351\340\352\353$\210\317q\210\354c\210\320q\210\355c\210\315q\210\336\356\357\360\361$\210\336\362\363\364\365$\210\336\366\367\370\371$\210\336\372\373\374\375$\210\317q\210\376c\210\320q\210\377c\210\315q\210\336\201D\201E\201F\201G$\210\336\201H\201I\201J\201K$\210\336\201L\201M\201N\201O$\210\336\201P\201Q\201R\201S$\210\336\201T\201U\201V\345$\336\201W\201X\201Y\342$\336\201Z\201[\201\\\201]$\210\336\201^\201_\201`\201a$\210\336\201b\201c\201d\201e$\210\336\201f\201g\201h\201i$\210\336\201j\201k\201l\201m$\210\336\201n\201o\201p\201q$\210\336\201r\201s\201t\201u$\210\336\201v\201w\201x\201y$\210
@AB\317q\210\201zc\210\320q\210\201{c\210\315q\210\336\201|\201}\371\201~$\210\336\201\201\200\201]\201~$\210\336\201\201\201\202\201\\\201\203$\210\336\201\204\201\205\201t\201u$\210\336\201\206\201\207\201\210\201\211$\210\336\201\212\201\213\201\214\201\215$\210\317q\210\201\216c\210\320q\210\201\217c\210\315q\210\336\201\220\201\221\201\222\201~$\210\336\201\223\201\224\201\225\201~$\210\336\201\226\201\227\201\230\201~$\210\336\201\231\201\232\201\233\201~$\210\336\201\234\201\235\201\236\201~$\210\336\201\237\201\240\364\201\241$\210\336\201\242\201\243\201a\201~$\210\336\201\244\340\201\245\201\246$\210\320q\210@\n\232\204\234\201\247c\210\331\201\250@\"c\210\331\201\251@\"c\210\n\232\204\275\f\n\232\204\275\201\252c\210\331\201\253\"c\210\331\201\254\f\"c\210\201\255c\210\331\201\256@\"c\210\201\257\317\201\260`#\210\317q\210\201\261\201\262!C\201\263\201\264\331\201\265C\"\340C#!\210)\201\266 \210\201\267\201\270!\210\201\271 \210\201\272p!\210\201\272\201\273!\210\201\272\320!\210\322\315!\210\201\274 \210\201\275c\210eb\207" [window-system tpu-return-seq tpu-return tpu-kp4 tpu-kp5 tpu-key error "tpu-mapper requires running Emacs with an X display" set-frame-size selected-frame 80 36 get-buffer "Directions" generate-new-buffer "Keys" "Gold-Keys" ";;  Key definitions for TPU-edt\n;;\n" switch-to-buffer "\n    This program prompts you to press keys to create a custom keymap file\n    for use with the x-windows version of Emacs and TPU-edt.\n\n    Start by pressing the RETURN key, and continue by pressing the keys\n    specified in the mini-buffer.  You can re-arrange the TPU-edt keypad\n    by pressing any key you want at any prompt.  If you want to entirely\n    omit a key, just press RETURN at the prompt.\n\n    Here's a picture of the standard TPU/edt keypad for reference:\n\n          _______________________    _______________________________\n         | HELP  |      Do       |  |       |       |       |       |\n         |KeyDefs|               |  |       |       |       |       |\n         |_______|_______________|  |_______|_______|_______|_______|\n          _______________________    _______________________________\n         | Find  |Insert |Remove |  | Gold  | HELP  |FndNxt | Del L |\n         |       |       |Sto Tex|  |  key  |E-Help | Find  |Undel L|\n         |_______|_______|_______|  |_______|_______|_______|_______|\n         |Select |Pre Scr|Nex Scr|  | Page  | Sect  |Append | Del W |\n         | Reset |Pre Win|Nex Win|  |  Do   | Fill  |Replace|Undel W|\n         |_______|_______|_______|  |_______|_______|_______|_______|\n                 |Move up|          |Forward|Reverse|Remove | Del C |\n                 |  Top  |          |Bottom |  Top  |Insert |Undel C|\n          _______|_______|_______   |_______|_______|_______|_______|\n         |Mov Lef|Mov Dow|Mov Rig|  | Word  |  EOL  | Char  |       |\n         |StaOfLi|Bottom |EndOfLi|  |ChngCas|Del EOL|SpecIns| Enter |\n         |_______|_______|_______|  |_______|_______|_______|       |\n                                    |     Line      |Select | Subs  |\n                                    |   Open Line   | Reset |       |\n                                    |_______________|_______|_______|\n\n\n" delete-other-windows message "Hit carriage-return <CR> to continue " read-event "[" format "%s" "]" "\n;;  Arrows\n;;\n" "\n;;  GOLD Arrows\n;;\n" tpu-map-key "Up-Arrow" "" "'tpu-previous-line" "'tpu-move-to-beginning" "Down-arrow" "'tpu-next-line" "'tpu-move-to-end" "Right-arrow" "'tpu-forward-char" "'end-of-line" "Left-arrow" "'tpu-backward-char" "'beginning-of-line" "\n;;  PF keys\n;;\n" "\n;;  GOLD PF keys\n;;\n" "PF1" " - The GOLD key" "GOLD-map" "'keyboard-quit" "PF2" " - The Keypad Help key" "'tpu-help" "'help-for-help" "PF3" " - The Find/Find-Next key" "'tpu-search-again" "'tpu-search" "PF4" " - The Del/Undelete Line key" "'tpu-delete-current-line" "'tpu-undelete-lines" "\n;;  KP0-9 KP- KP, KP. and KPenter\n;;\n" "\n;;  GOLD KP0-9 KP- KP, and KPenter\n;;\n" tpu-enter tpu-key-seq tpu-enter-seq file "KP-0" " - The Line/Open-Line key" "'tpu-line" "'open-line" "KP-1" " - The Word/Change-Case key" "'tpu-word" "'tpu-change-case" "KP-2" " - The EOL/Delete-EOL key" "'tpu-end-of-line" "'tpu-delete-to-eol" "KP-3" " - The Character/Special-Insert key" "'tpu-char" "'tpu-special-insert" "KP-4" " - The Forward/Bottom key" "'tpu-advance-direction" "KP-5" " - The Reverse/Top key" "'tpu-backup-direction" "KP-6" " - The Remove/Insert key" "'tpu-cut" "'tpu-paste" "KP-7" " - The Page/Do key" "'tpu-page" "'execute-extended-command" "KP-8" " - The Section/Fill key" "'tpu-scroll-window" "'tpu-fill" "KP-9" " - The Append/Replace key" "'tpu-append-region" "'tpu-replace" "KP--" " - The Delete/Undelete Word key" "'tpu-delete-current-word" "'tpu-undelete-words" "KP-," " - The Delete/Undelete Character key" "'tpu-delete-current-char" "'tpu-undelete-char" "KP-." " - The Select/Reset key" "'tpu-select" "'tpu-unselect" "KP-Enter" " - The Enter key on the numeric keypad" "'newline" "'tpu-substitute" "\n;;  Editing keypad (find, insert, remove)\n;;                 (select, prev, next)\n;;\n" "\n;;  GOLD Editing keypad (find, insert, remove)\n;;                      (select, prev, next)\n;;\n" "Find" " - The Find key on the editing keypad" "'nil" "Insert" " - The Insert key on the editing keypad" "Remove" " - The Remove key on the editing keypad" "'tpu-store-text" "Select" " - The Select key on the editing keypad" "Prev Scr" " - The Prev Scr key on the editing keypad" "'tpu-scroll-window-down" "'tpu-previous-window" "Next Scr" " - The Next Scr key on the editing keypad" "'tpu-scroll-window-up" "'tpu-next-window" "\n;;  F10-14 Help Do F17\n;;\n" "\n;;  GOLD F10-14 Help Do F17\n;;\n" "F10" " - Invokes the Exit function on VT200+ terminals" "'tpu-exit" "F11" " - Inserts an Escape character into the text" "'tpu-insert-escape" "Backspace" " - Not Delete nor ^H!  Sometimes on the F12 key" "'tpu-next-beginning-of-line" "F13" " - Invokes the delete previous word function" "'tpu-delete-previous-word" "F14" " - Toggles insert/overstrike modes" "'tpu-toggle-overwrite-mode" "Help" " - Brings up the help screen, same as PF2" "'describe-bindings" "Do" " - Invokes the COMMAND function" "F17" "'tpu-goto-breadcrumb" "'tpu-drop-breadcrumb" "\n;;  Minibuffer map additions to make KP_enter = RET\n;;\n" "(define-key minibuffer-local-map %s 'exit-minibuffer)\n" "(define-key minibuffer-local-must-match-map %s 'minibuffer-complete-and-exit)\n" "\n;;  Minibuffer map additions to allow KP-4/5 termination of search strings.\n;;\n" "(define-key minibuffer-local-map %s 'tpu-search-forward-exit)\n" "(define-key minibuffer-local-map %s 'tpu-search-backward-exit)\n" "\n;;  Define the tpu-help-enter/return symbols\n;;\n" "(setq tpu-help-enter \"%s\")\n" append-to-buffer 1 convert-standard-filename "~/.tpu-keys" set-visited-file-name read-file-name "Save key mapping to file (default %s): " save-buffer require tpu-edt eval-buffer kill-buffer "*scratch*" erase-buffer "\n    A custom TPU-edt keymap file has been created.\n\n    Press GOLD-k to remove this buffer and continue editing.\n"] 5 (#$ . 1440) nil])
