aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-20 22:22:07 +0000
committerRichard M. Stallman1994-06-20 22:22:07 +0000
commit18376c7cf8550e399cbbee22b88278a8892e8bfb (patch)
tree21776ea3cd8e17b85f640aba82ed0d091dc6225e
parenta515f569db1021e680f3bc7fa3f94ce6dddd2d75 (diff)
downloademacs-18376c7cf8550e399cbbee22b88278a8892e8bfb.tar.gz
emacs-18376c7cf8550e399cbbee22b88278a8892e8bfb.zip
Change size of selected screen. Reposition after
printing help. Null default directory for save. Produce minibuffer key bindings for kp4 and kp5. (tpu-kp4, tpu-kp5): New variables. (tpu-mapper-revision): Variable deleted.
-rw-r--r--lisp/emulation/tpu-mapper.el30
1 files changed, 18 insertions, 12 deletions
diff --git a/lisp/emulation/tpu-mapper.el b/lisp/emulation/tpu-mapper.el
index 75dd4d0a9a5..4db45b15368 100644
--- a/lisp/emulation/tpu-mapper.el
+++ b/lisp/emulation/tpu-mapper.el
@@ -1,6 +1,6 @@
1;;; tpu-mapper.el --- Create a TPU-edt keymap file for x-windows emacs. 1;;; tpu-mapper.el --- Create a TPU-edt keymap file for x-windows emacs.
2 2
3;; Copyright (C) 1993 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994 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>
@@ -67,13 +67,6 @@
67;;; Code: 67;;; Code:
68 68
69;;; 69;;;
70;;; Revision Information
71;;;
72(defconst tpu-mapper-revision "$Revision: 1.4 $"
73 "Revision number of TPU-edt x-windows emacs key mapper.")
74
75
76;;;
77;;; Make sure we're running X-windows and Emacs version 19 70;;; Make sure we're running X-windows and Emacs version 19
78;;; 71;;;
79(cond 72(cond
@@ -99,6 +92,8 @@
99;;; 92;;;
100;;; Key variables 93;;; Key variables
101;;; 94;;;
95(defvar tpu-kp4 nil)
96(defvar tpu-kp5 nil)
102(defvar tpu-key nil) 97(defvar tpu-key nil)
103(defvar tpu-enter nil) 98(defvar tpu-enter nil)
104(defvar tpu-return nil) 99(defvar tpu-return nil)
@@ -110,7 +105,7 @@
110;;; 105;;;
111;;; Make sure the window is big enough to display the instructions 106;;; Make sure the window is big enough to display the instructions
112;;; 107;;;
113(if tpu-lucid-emacs19-p (set-screen-size nil 80 36) 108(if tpu-lucid-emacs19-p (set-screen-size (selected-screen) 80 36)
114 (set-frame-size (selected-frame) 80 36)) 109 (set-frame-size (selected-frame) 80 36))
115 110
116 111
@@ -171,6 +166,7 @@
171 166
172") 167")
173(delete-other-windows) 168(delete-other-windows)
169(goto-char (point-min))
174 170
175;;; 171;;;
176;;; Save <CR> for future reference 172;;; Save <CR> for future reference
@@ -275,8 +271,8 @@
275(tpu-map-key "KP-1" " - The Word/Change-Case key" "'tpu-word" "'tpu-change-case") 271(tpu-map-key "KP-1" " - The Word/Change-Case key" "'tpu-word" "'tpu-change-case")
276(tpu-map-key "KP-2" " - The EOL/Delete-EOL key" "'tpu-end-of-line" "'tpu-delete-to-eol") 272(tpu-map-key "KP-2" " - The EOL/Delete-EOL key" "'tpu-end-of-line" "'tpu-delete-to-eol")
277(tpu-map-key "KP-3" " - The Character/Special-Insert key" "'tpu-char" "'tpu-special-insert") 273(tpu-map-key "KP-3" " - The Character/Special-Insert key" "'tpu-char" "'tpu-special-insert")
278(tpu-map-key "KP-4" " - The Forward/Bottom key" "'tpu-advance-direction" "'tpu-move-to-end") 274(setq tpu-kp4 (tpu-map-key "KP-4" " - The Forward/Bottom key" "'tpu-advance-direction" "'tpu-move-to-end"))
279(tpu-map-key "KP-5" " - The Reverse/Top key" "'tpu-backup-direction" "'tpu-move-to-beginning") 275(setq tpu-kp5 (tpu-map-key "KP-5" " - The Reverse/Top key" "'tpu-backup-direction" "'tpu-move-to-beginning"))
280(tpu-map-key "KP-6" " - The Remove/Insert key" "'tpu-cut" "'tpu-paste") 276(tpu-map-key "KP-6" " - The Remove/Insert key" "'tpu-cut" "'tpu-paste")
281(tpu-map-key "KP-7" " - The Page/Do key" "'tpu-page" "'execute-extended-command") 277(tpu-map-key "KP-7" " - The Page/Do key" "'tpu-page" "'execute-extended-command")
282(tpu-map-key "KP-8" " - The Section/Fill key" "'tpu-scroll-window" "'tpu-fill") 278(tpu-map-key "KP-8" " - The Section/Fill key" "'tpu-scroll-window" "'tpu-fill")
@@ -344,6 +340,16 @@
344 (insert (format "(define-key minibuffer-local-completion-map %s 'exit-minibuffer)\n" tpu-enter)) 340 (insert (format "(define-key minibuffer-local-completion-map %s 'exit-minibuffer)\n" tpu-enter))
345 (insert (format "(define-key minibuffer-local-must-match-map %s 'minibuffer-complete-and-exit)\n" tpu-enter)))) 341 (insert (format "(define-key minibuffer-local-must-match-map %s 'minibuffer-complete-and-exit)\n" tpu-enter))))
346 342
343(cond
344 ((not (or (equal tpu-kp4 tpu-return) (equal tpu-kp5 tpu-return)))
345 (insert "
346;; Minibuffer map additions to allow KP-4/5 termination of search strings.
347;;
348")
349
350 (insert (format "(define-key minibuffer-local-map %s 'tpu-search-forward-exit)\n" tpu-kp4))
351 (insert (format "(define-key minibuffer-local-map %s 'tpu-search-backward-exit)\n" tpu-kp5))))
352
347(insert " 353(insert "
348;; Define the tpu-help-enter/return symbols 354;; Define the tpu-help-enter/return symbols
349;; 355;;
@@ -367,7 +373,7 @@
367;;; 373;;;
368(let ((file (if tpu-lucid-emacs19-p "~/.tpu-lucid-keys" "~/.tpu-gnu-keys"))) 374(let ((file (if tpu-lucid-emacs19-p "~/.tpu-lucid-keys" "~/.tpu-gnu-keys")))
369 (set-visited-file-name 375 (set-visited-file-name
370 (read-file-name (format "Save key mapping to file (default %s): " file) nil file))) 376 (read-file-name (format "Save key mapping to file (default %s): " file) "" file)))
371(save-buffer) 377(save-buffer)
372 378
373(message "That's it! Press any key to exit") 379(message "That's it! Press any key to exit")