comparison lisp/emulation/tpu-mapper.el @ 12685:2005991db844

Comment changes.
author Richard M. Stallman <rms@gnu.org>
date Thu, 27 Jul 1995 07:35:25 +0000
parents 74168f918db7
children 83f275dcd93a
comparison
equal deleted inserted replaced
12684:74e59068a948 12685:2005991db844
1 ;;; tpu-mapper.el --- Create a TPU-edt keymap file for x-windows emacs. 1 ;;; tpu-mapper.el --- Create a TPU-edt X-windows keymap file
2 2
3 ;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. 3 ;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
4 4
5 ;; Author: Rob Riepel <riepel@networking.stanford.edu> 5 ;; Author: Rob Riepel <riepel@networking.stanford.edu>
6 ;; Maintainer: Rob Riepel <riepel@networking.stanford.edu> 6 ;; Maintainer: Rob Riepel <riepel@networking.stanford.edu>
29 ;; the "Usage" AND "Known Problems" sections before attempting to run this 29 ;; the "Usage" AND "Known Problems" sections before attempting to run this
30 ;; program. 30 ;; program.
31 31
32 ;;; Usage: 32 ;;; Usage:
33 33
34 ;; Simply load this file into the X-windows version of emacs (version 19) 34 ;; Simply load this file into the X-windows version of emacs using the
35 ;; using the following command. 35 ;; following command.
36 36
37 ;; emacs -q -l tpu-mapper.el 37 ;; emacs -q -l tpu-mapper
38 38
39 ;; The "-q" option prevents loading of your .emacs file (commands therein 39 ;; The "-q" option prevents loading of your .emacs file (commands therein
40 ;; might confuse this program). 40 ;; might confuse this program).
41 41
42 ;; An instruction screen showing the TPU-edt keypad will be displayed, and 42 ;; An instruction screen showing the TPU-edt keypad will be displayed, and
47 ;; keypads). 47 ;; keypads).
48 48
49 ;; Finally, you will be prompted for the name of the file to store the key 49 ;; Finally, you will be prompted for the name of the file to store the key
50 ;; definitions. If you chose the default, TPU-edt will find it and load it 50 ;; definitions. If you chose the default, TPU-edt will find it and load it
51 ;; automatically. If you specify a different file name, you will need to 51 ;; automatically. If you specify a different file name, you will need to
52 ;; set the variable "tpu-xkeys-file" before loading TPU-edt. Here's how 52 ;; set the variable "tpu-xkeys-file" before starting TPU-edt. Here's how
53 ;; you might go about doing that in your .emacs file. 53 ;; you might go about doing that in your .emacs file.
54 54
55 ;; (setq tpu-xkeys-file (expand-file-name "~/.my-emacs-x-keys")) 55 ;; (setq tpu-xkeys-file (expand-file-name "~/.my-emacs-x-keys"))
56 ;; (load "tpu-edt") 56 ;; (tpu-edt)
57 57
58 ;;; Known Problems: 58 ;;; Known Problems:
59 59
60 ;; Sometimes, tpu-mapper will ignore a key you press, and just continue to 60 ;; Sometimes, tpu-mapper will ignore a key you press, and just continue to
61 ;; prompt for the same key. This can happen when your window manager sucks 61 ;; prompt for the same key. This can happen when your window manager sucks
63 ;; Either way, there's nothing that tpu-mapper can do about it. You must 63 ;; Either way, there's nothing that tpu-mapper can do about it. You must
64 ;; press RETURN, to skip the current key and continue. Later, you and/or 64 ;; press RETURN, to skip the current key and continue. Later, you and/or
65 ;; your local X guru can try to figure out why the key is being ignored. 65 ;; your local X guru can try to figure out why the key is being ignored.
66 66
67 ;;; Code: 67 ;;; Code:
68
68 69
69 ;;; 70 ;;;
70 ;;; Make sure we're running X-windows and Emacs version 19 71 ;;; Make sure we're running X-windows and Emacs version 19
71 ;;; 72 ;;;
72 (cond 73 (cond
168 (setq tpu-return-seq (read-key-sequence "Hit carriage-return <CR> to continue ")) 169 (setq tpu-return-seq (read-key-sequence "Hit carriage-return <CR> to continue "))
169 (setq tpu-return (concat "[" (format "%s" (event-key (aref tpu-return-seq 0))) "]"))) 170 (setq tpu-return (concat "[" (format "%s" (event-key (aref tpu-return-seq 0))) "]")))
170 (t 171 (t
171 (message "Hit carriage-return <CR> to continue ") 172 (message "Hit carriage-return <CR> to continue ")
172 (setq tpu-return-seq (read-event)) 173 (setq tpu-return-seq (read-event))
173 (setq tpu-return (concat "[" (format "%s" tpu-return-seq) "]")))) 174 (setq tpu-return (concat "[" (format "%s" tpu-return-seq) "]"))))
174 175
175 176
176 ;;; 177 ;;;
177 ;;; Key mapping functions 178 ;;; Key mapping functions
178 ;;; 179 ;;;