summaryrefslogtreecommitdiff
path: root/lisp/emulation
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/crisp.el2
-rw-r--r--lisp/emulation/cua-base.el2
-rw-r--r--lisp/emulation/cua-gmrk.el2
-rw-r--r--lisp/emulation/cua-rect.el2
-rw-r--r--lisp/emulation/edt-lk201.el2
-rw-r--r--lisp/emulation/edt-mapper.el2
-rw-r--r--lisp/emulation/edt-pc.el2
-rw-r--r--lisp/emulation/edt-vt100.el2
-rw-r--r--lisp/emulation/edt.el2
-rw-r--r--lisp/emulation/keypad.el2
-rw-r--r--lisp/emulation/pc-mode.el2
-rw-r--r--lisp/emulation/pc-select.el2
-rw-r--r--lisp/emulation/tpu-edt.el153
-rw-r--r--lisp/emulation/tpu-extras.el2
-rw-r--r--lisp/emulation/tpu-mapper.el426
-rw-r--r--lisp/emulation/vip.el2
-rw-r--r--lisp/emulation/viper-cmd.el2
-rw-r--r--lisp/emulation/viper-ex.el2
-rw-r--r--lisp/emulation/viper-init.el2
-rw-r--r--lisp/emulation/viper-keym.el2
-rw-r--r--lisp/emulation/viper-macs.el2
-rw-r--r--lisp/emulation/viper-mous.el2
-rw-r--r--lisp/emulation/viper-util.el2
-rw-r--r--lisp/emulation/viper.el2
-rw-r--r--lisp/emulation/ws-mode.el2
25 files changed, 300 insertions, 325 deletions
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el
index f267f6fa0ab..b5fd7ee602c 100644
--- a/lisp/emulation/crisp.el
+++ b/lisp/emulation/crisp.el
@@ -1,7 +1,7 @@
;;; crisp.el --- CRiSP/Brief Emacs emulator
;; Copyright (C) 1997, 1998, 1999, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Gary D. Foster <Gary.Foster@Corp.Sun.COM>
;; Keywords: emulations brief crisp
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 1f696788869..2bc37a9bc95 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -1,7 +1,7 @@
;;; cua-base.el --- emulate CUA key bindings
;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kim F. Storm <storm@cua.dk>
;; Keywords: keyboard emulation convenience cua
diff --git a/lisp/emulation/cua-gmrk.el b/lisp/emulation/cua-gmrk.el
index 6211a3c3154..be87804f196 100644
--- a/lisp/emulation/cua-gmrk.el
+++ b/lisp/emulation/cua-gmrk.el
@@ -1,7 +1,7 @@
;;; cua-gmrk.el --- CUA unified global mark support
;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kim F. Storm <storm@cua.dk>
;; Keywords: keyboard emulations convenience cua mark
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index f6b50336815..93709f7660c 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -1,7 +1,7 @@
;;; cua-rect.el --- CUA unified rectangle support
;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kim F. Storm <storm@cua.dk>
;; Keywords: keyboard emulations convenience CUA
diff --git a/lisp/emulation/edt-lk201.el b/lisp/emulation/edt-lk201.el
index 41ef7e86498..91db5bc70f9 100644
--- a/lisp/emulation/edt-lk201.el
+++ b/lisp/emulation/edt-lk201.el
@@ -1,7 +1,7 @@
;;; edt-lk201.el --- enhanced EDT keypad mode emulation for LK-201 keyboards
;; Copyright (C) 1986, 1992, 1993, 1995, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
diff --git a/lisp/emulation/edt-mapper.el b/lisp/emulation/edt-mapper.el
index d26c88b751f..79dabcc7433 100644
--- a/lisp/emulation/edt-mapper.el
+++ b/lisp/emulation/edt-mapper.el
@@ -1,7 +1,7 @@
;;; edt-mapper.el --- create an EDT LK-201 map file for X-Windows Emacs
;; Copyright (C) 1994, 1995, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
diff --git a/lisp/emulation/edt-pc.el b/lisp/emulation/edt-pc.el
index 0d6a4964813..5bfaf828ea6 100644
--- a/lisp/emulation/edt-pc.el
+++ b/lisp/emulation/edt-pc.el
@@ -1,7 +1,7 @@
;;; edt-pc.el --- enhanced EDT keypad mode emulation for PC 101 keyboards
;; Copyright (C) 1986, 1994, 1995, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
diff --git a/lisp/emulation/edt-vt100.el b/lisp/emulation/edt-vt100.el
index fbe56c2c341..e534927adc2 100644
--- a/lisp/emulation/edt-vt100.el
+++ b/lisp/emulation/edt-vt100.el
@@ -1,7 +1,7 @@
;;; edt-vt100.el --- enhanced EDT keypad mode emulation for VT series terminals
;; Copyright (C) 1986, 1992, 1993, 1995, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el
index 1674e7a266b..eca3ce0f400 100644
--- a/lisp/emulation/edt.el
+++ b/lisp/emulation/edt.el
@@ -1,7 +1,7 @@
;;; edt.el --- enhanced EDT keypad mode emulation for GNU Emacs 19
;; Copyright (C) 1986, 1992, 1993, 1994, 1995, 2000, 2001, 2002, 2003,
-;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Kevin Gallagher <Kevin.Gallagher@boeing.com>
;; Maintainer: Kevin Gallagher <Kevin.Gallagher@boeing.com>
diff --git a/lisp/emulation/keypad.el b/lisp/emulation/keypad.el
index 307eadd069a..565caf2368c 100644
--- a/lisp/emulation/keypad.el
+++ b/lisp/emulation/keypad.el
@@ -1,7 +1,7 @@
;;; keypad.el --- simplified keypad bindings
;; Copyright (C) 2002, 2003, 2004, 2005, 2006,
-;; 2007 Free Software Foundation, Inc.
+;; 2007, 2008 Free Software Foundation, Inc.
;; Author: Kim F. Storm <storm@cua.dk>
;; Keywords: keyboard convenience
diff --git a/lisp/emulation/pc-mode.el b/lisp/emulation/pc-mode.el
index 6e04d678f69..075da633cef 100644
--- a/lisp/emulation/pc-mode.el
+++ b/lisp/emulation/pc-mode.el
@@ -1,7 +1,7 @@
;;; pc-mode.el --- emulate certain key bindings used on PCs
;; Copyright (C) 1995, 2001, 2002, 2003, 2004, 2005,
-;; 2006, 2007 Free Software Foundation, Inc.
+;; 2006, 2007, 2008 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: emulations
diff --git a/lisp/emulation/pc-select.el b/lisp/emulation/pc-select.el
index c35044b70ec..956c61ee098 100644
--- a/lisp/emulation/pc-select.el
+++ b/lisp/emulation/pc-select.el
@@ -3,7 +3,7 @@
;;; including key bindings.
;; Copyright (C) 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Staats <michael@thp.Uni-Duisburg.DE>
;; Keywords: convenience emulation
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index c5ae34e0f07..686a79c9350 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -1,7 +1,7 @@
;;; tpu-edt.el --- Emacs emulating TPU emulating EDT
;; Copyright (C) 1993, 1994, 1995, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Rob Riepel <riepel@networking.stanford.edu>
;; Maintainer: Rob Riepel <riepel@networking.stanford.edu>
@@ -66,11 +66,10 @@
;; style keyboards. VT terminal emulators, including xterm with the
;; appropriate key translations, work just fine too.
-;; TPU-edt works with X-windows. This is accomplished through a TPU-edt X
-;; key map. The TPU-edt module tpu-mapper creates this map and stores it
-;; in a file. Tpu-mapper will be run automatically the first time you
-;; invoke the X-windows version of emacs, or you can run it by hand. See
-;; the commentary in tpu-mapper.el for details.
+;; TPU-edt works with X-windows. This is accomplished through a TPU-edt
+;; X key map. The tpu-mapper command creates this map and stores it in a
+;; file. See the tpu-mapper command help for more information, or just
+;; run it and follow the directions.
;; %% Differences Between TPU-edt and DEC TPU/edt
@@ -80,7 +79,7 @@
;; mark". The mark is set at one end of a selected region; the cursor is
;; at the other. In cases where the selected region cannot be shown in
;; inverse video an at sign (@) appears in the mode line when mark is set.
-;; The native emacs command ^X^X (Control-X twice) exchanges the cursor
+;; The native Emacs command ^X^X (Control-X twice) exchanges the cursor
;; with the mark; this provides a handy way to find the location of the
;; mark.
@@ -92,8 +91,8 @@
;; approximation of free mode, see the commentary in tpu-extras.el for
;; details.
-;; Like TPU, emacs uses multiple buffers. Some buffers are used to hold
-;; files you are editing; other "internal" buffers are used for emacs' own
+;; Like TPU, Emacs uses multiple buffers. Some buffers are used to hold
+;; files you are editing; other "internal" buffers are used for Emacs' own
;; purposes (like showing you help). Here are some commands for dealing
;; with buffers.
@@ -115,9 +114,9 @@
;; Note that the buffers associated with deleted windows still exist!
;; Like TPU, TPU-edt has a "command" function, invoked with Gold-KP7 or
-;; Do. Most of the commands available are emacs commands. Some TPU
+;; Do. Most of the commands available are Emacs commands. Some TPU
;; commands are available, they are: replace, exit, quit, include, and
-;; Get (unfortunately, "get" is an internal emacs function, so we are
+;; Get (unfortunately, "get" is an internal Emacs function, so we are
;; stuck with "Get" - to make life easier, Get is available as Gold-g).
;; TPU-edt supports the recall of commands, file names, and search
@@ -128,10 +127,10 @@
;; a small help file showing the default keypad layout, control key
;; functions, and Gold key functions. Pressing any key inside of help
;; splits the screen and prints a description of the function of the
-;; pressed key. Gold-PF2 invokes the native emacs help, with its
+;; pressed key. Gold-PF2 invokes the native Emacs help, with its
;; zillions of options.
-;; Thanks to emacs, TPU-edt has some extensions that may make your life
+;; Thanks to Emacs, TPU-edt has some extensions that may make your life
;; easier, or at least more interesting. For example, Gold-r toggles
;; TPU-edt rectangular mode. In rectangular mode, Remove and Insert work
;; on rectangles. Likewise, Gold-* toggles TPU-edt regular expression
@@ -147,27 +146,27 @@
;; twice) on a particular line moves you back to the original window
;; at that line. Occur is on Gold-o.
-;; Finally, as you edit, remember that all the power of emacs is at
+;; Finally, as you edit, remember that all the power of Emacs is at
;; your disposal. It really is a fantastic tool. You may even want to
-;; take some time and read the emacs tutorial; perhaps not to learn the
-;; native emacs key bindings, but to get a feel for all the things
-;; emacs can do for you. The emacs tutorial is available from the
-;; emacs help function: "Gold-PF2 t"
+;; take some time and read the Emacs tutorial; perhaps not to learn the
+;; native Emacs key bindings, but to get a feel for all the things
+;; Emacs can do for you. The Emacs tutorial is available from the
+;; Emacs help function: "Gold-PF2 t"
;; %% Starting TPU-edt
;; All you have to do to start TPU-edt, is turn it on. This can be
-;; done from the command line when running emacs.
+;; done from the command line when running Emacs.
;; prompt> emacs -f tpu-edt
-;; If you've already started emacs, turn on TPU-edt using the tpu-edt
+;; If you've already started Emacs, turn on TPU-edt using the tpu-edt
;; command. First press `M-x' (that's usually `ESC' followed by `x')
;; and type `tpu-edt' followed by a carriage return.
;; If you like TPU-edt and want to use it all the time, you can start
-;; TPU-edt using the emacs initialization file, .emacs. Simply create
+;; TPU-edt using the Emacs initialization file, .emacs. Simply create
;; a .emacs file in your home directory containing the line:
;; (tpu-edt)
@@ -177,10 +176,10 @@
;; %% Customizing TPU-edt using the Emacs Initialization File
-;; The following is a sample emacs initialization file. It shows how to
+;; The following is a sample Emacs initialization file. It shows how to
;; invoke TPU-edt, and how to customize it.
-;; ; .emacs - a sample emacs initialization file
+;; ; .emacs - a sample Emacs initialization file
;; ; Turn on TPU-edt
;; (tpu-edt)
@@ -200,12 +199,12 @@
;; (setq require-final-newline t)
;; ; Emacs uses Control-s and Control-q. Problems can occur when using
-;; ; emacs on terminals that use these codes for flow control (Xon/Xoff
-;; ; flow control). These lines disable emacs' use of these characters.
+;; ; Emacs on terminals that use these codes for flow control (Xon/Xoff
+;; ; flow control). These lines disable Emacs' use of these characters.
;; (global-unset-key "\C-s")
;; (global-unset-key "\C-q")
-;; ; The emacs universal-argument function is very useful.
+;; ; The Emacs universal-argument function is very useful.
;; ; This line maps universal-argument to Gold-PF1.
;; (define-key tpu-gold-map [kp_f1] 'universal-argument) ; Gold-PF1
@@ -225,9 +224,9 @@
;; %% Regular Expressions in TPU-edt
;; Gold-* toggles TPU-edt regular expression mode. In regular expression
-;; mode, find, find next, replace, and substitute accept emacs regular
-;; expressions. A complete list of emacs regular expressions can be found
-;; using the emacs "info" command (it's somewhat like the VMS help
+;; mode, find, find next, replace, and substitute accept Emacs regular
+;; expressions. A complete list of Emacs regular expressions can be found
+;; using the Emacs "info" command (it's somewhat like the VMS help
;; command). Try the following sequence of commands:
;; DO info <enter info mode>
@@ -256,13 +255,13 @@
;; Gold-^ Add a string at BOL in region or buffer
;; Gold-$ Add a string at EOL in region or buffer
-;; There is also a TPU-edt interface to the native emacs string replacement
+;; There is also a TPU-edt interface to the native Emacs string replacement
;; commands. Gold-/ invokes this command. It accepts regular expressions
;; if TPU-edt is in regular expression mode. Given a repeat count, it will
;; perform the replacement without prompting for confirmation.
;; This command replaces empty strings correctly, however, it has its
-;; drawbacks. As a native emacs command, it has a different interface
+;; drawbacks. As a native Emacs command, it has a different interface
;; than the emulated TPU commands. Also, it works only in the forward
;; direction, regardless of the current TPU-edt direction.
@@ -292,7 +291,7 @@
;;; User Configurable Variables
;;;
(defcustom tpu-have-ispell t
- "If non-nil (default), TPU-edt uses ispell for spell checking."
+ "If non-nil (default), TPU-edt uses Ispell for spell checking."
:type 'boolean
:group 'tpu)
@@ -695,15 +694,15 @@ GOLD is the ASCII 7-bit escape sequence <ESC>OP.")
(set-marker tpu-match-end-mark nil))
(defun tpu-match-beginning nil
- "Returns the location of the last match beginning."
+ "Return the location of the last match beginning."
(marker-position tpu-match-beginning-mark))
(defun tpu-match-end nil
- "Returns the location of the last match end."
+ "Return the location of the last match end."
(marker-position tpu-match-end-mark))
(defun tpu-check-match nil
- "Returns t if point is between tpu-match markers.
+ "Return t if point is between tpu-match markers.
Otherwise sets the tpu-match markers to nil and returns nil."
;; make sure 1- marker is in this buffer
;; 2- point is at or after beginning marker
@@ -814,7 +813,7 @@ Top line is 0. Counts each text line only once, even if it wraps."
(message "Mark %d set." num))
(defun tpu-goto-breadcrumb (num)
- "Returns to a breadcrumb set with drop-breadcrumb."
+ "Return to a breadcrumb set with drop-breadcrumb."
(interactive "p")
(cond ((get tpu-breadcrumb-plist num)
(switch-to-buffer (car (get tpu-breadcrumb-plist num)))
@@ -873,7 +872,7 @@ With argument, fill and justify."
tpu-version))
(defun tpu-reset-screen-size (height width)
- "Sets the screen size."
+ "Set the screen size."
(interactive "nnew screen height: \nnnew screen width: ")
(set-frame-height (selected-frame) height)
(set-frame-width (selected-frame) width))
@@ -895,8 +894,8 @@ With argument, fill and justify."
(if tpu-newline-and-indent-p " and indents." "."))))
(defun tpu-spell-check nil
- "Checks the spelling of the region, or of the entire buffer if no
- region is selected."
+ "Check the spelling of the region, or of the entire buffer,
+if no region is selected."
(interactive)
(cond (tpu-have-ispell
(if (tpu-mark) (ispell-region (tpu-mark) (point)) (ispell-buffer)))
@@ -905,7 +904,7 @@ With argument, fill and justify."
(if (tpu-mark) (tpu-unselect t)))
(defun tpu-toggle-overwrite-mode nil
- "Switches in and out of overwrite mode"
+ "Switch in and out of overwrite mode."
(interactive)
(cond (overwrite-mode
(tpu-local-set-key "\177" tpu-saved-delete-func)
@@ -916,8 +915,7 @@ With argument, fill and justify."
(overwrite-mode 1))))
(defun tpu-special-insert (num)
- "Insert a character or control code according to
-its ASCII decimal value."
+ "Insert a character or control code according to its ASCII decimal value."
(interactive "P")
(if overwrite-mode (delete-char 1))
(insert (if num num 0)))
@@ -935,19 +933,19 @@ This is useful for inserting control characters."
;;; TPU line-mode commands
;;;
(defun tpu-include (file)
- "TPU-like include file"
+ "TPU-like include file."
(interactive "fInclude file: ")
(insert-file-contents file)
(message ""))
(defun tpu-get (file)
- "TPU-like get file"
+ "TPU-like get file."
(interactive "FFile to get: ")
(find-file file find-file-wildcards))
(defun tpu-what-line nil
- "Tells what line the point is on,
- and the total number of lines in the buffer."
+ "Tell what line the point is on,
+and the total number of lines in the buffer."
(interactive)
(if (eobp)
(message "You are at the End of Buffer. The last line is %d."
@@ -1216,12 +1214,12 @@ This is useful for inserting control characters."
;;; Auto-insert
;;;
(defun tpu-insert-escape nil
- "Inserts an escape character, and so becomes the escape-key alias."
+ "Insert an escape character, and so becomes the escape-key alias."
(interactive)
(insert "\e"))
(defun tpu-insert-formfeed nil
- "Inserts a formfeed character."
+ "Insert a formfeed character."
(interactive)
(insert "\C-L"))
@@ -1232,7 +1230,7 @@ This is useful for inserting control characters."
(defvar tpu-saved-control-r nil "Saved value of Control-r.")
(defun tpu-end-define-macro-key (key)
- "Ends the current macro definition"
+ "End the current macro definition."
(interactive "kPress the key you want to use to do what was just learned: ")
(end-kbd-macro nil)
(global-set-key key last-kbd-macro)
@@ -1250,7 +1248,7 @@ This is useful for inserting control characters."
;;; Buffers and Windows
;;;
(defun tpu-kill-buffer nil
- "Kills the current buffer. If tpu-kill-buffers-silently is non-nil,
+ "Kill the current buffer. If tpu-kill-buffers-silently is non-nil,
kills modified buffers without asking."
(interactive)
(if tpu-kill-buffers-silently (set-buffer-modified-p nil))
@@ -1281,7 +1279,7 @@ kills modified buffers without asking."
(switch-to-buffer (car (reverse list)))))
(defun tpu-make-file-buffer-list (buffer-list)
- "Returns names from BUFFER-LIST excluding those beginning with a space or star."
+ "Return names from BUFFER-LIST excluding those beginning with a space or star."
(delq nil (mapcar '(lambda (b)
(if (or (= (aref (buffer-name b) 0) ? )
(= (aref (buffer-name b) 0) ?*)) nil b))
@@ -1304,7 +1302,7 @@ kills modified buffers without asking."
;;; Search
;;;
(defun tpu-toggle-regexp nil
- "Switches in and out of regular expression search and replace mode."
+ "Switch in and out of regular expression search and replace mode."
(interactive)
(setq tpu-regexp-p (not tpu-regexp-p))
(tpu-set-search)
@@ -1370,8 +1368,8 @@ The search is performed in the current direction."
(declare-function tpu-emacs-rev-search "tpu-edt")
(defun tpu-set-search (&optional arg)
- "Set the search functions and set the search direction to the current
-direction. If an argument is specified, don't set the search direction."
+ "Set the search functions and set the search direction to the current direction.
+If an argument is specified, don't set the search direction."
(if (not arg) (setq tpu-searching-forward tpu-advance))
(cond (tpu-searching-forward
(cond (tpu-regexp-p
@@ -1428,7 +1426,7 @@ direction. If an argument is specified, don't set the search direction."
(defalias 'tpu-search-internal-core (symbol-function 'tpu-search-internal))
(defun tpu-check-search-case (string)
- "Returns t if string contains upper case."
+ "Return t if string contains upper case."
;; if using regexp, eliminate upper case forms (\B \W \S.)
(if tpu-regexp-p
(let ((pat (copy-sequence string)) (case-fold-search nil) (pos 0))
@@ -1476,7 +1474,7 @@ Used for reversing a search in progress."
;;; Select / Unselect
;;;
(defun tpu-select (&optional quiet)
- "Sets the mark to define one end of a region."
+ "Set the mark to define one end of a region."
(interactive "P")
(cond ((tpu-mark)
(tpu-unselect quiet))
@@ -1486,7 +1484,7 @@ Used for reversing a search in progress."
(if (not quiet) (message "Move the text cursor to select text.")))))
(defun tpu-unselect (&optional quiet)
- "Removes the mark to unselect the current region."
+ "Remove the mark to unselect the current region."
(interactive "P")
(deactivate-mark)
(setq mark-ring nil)
@@ -1509,8 +1507,7 @@ Used for reversing a search in progress."
(if tpu-rectangular-p "en" "dis"))))
(defun tpu-arrange-rectangle nil
- "Adjust point and mark to mark upper left and lower right
-corners of a rectangle."
+ "Adjust point and mark to upper left and lower right corners of a rectangle."
(let ((mc (current-column))
(pc (progn (exchange-point-and-mark) (current-column))))
@@ -1575,14 +1572,14 @@ The text is saved for the tpu-paste command."
(tpu-error "No selection active."))))
(defun tpu-cut (arg)
- "Copy selected region to the cut buffer. In the absence of an
-argument, delete the selected region too."
+ "Copy selected region to the cut buffer.
+In the absence of an argument, delete the selected region too."
(interactive "P")
(if arg (tpu-store-text) (tpu-cut-text)))
(defun tpu-append-region (arg)
- "Append selected region to the tpu-cut buffer. In the absence of an
-argument, delete the selected region too."
+ "Append selected region to the tpu-cut buffer.
+In the absence of an argument, delete the selected region too."
(interactive "P")
(cond ((tpu-mark)
(let ((beg (region-beginning)) (end (region-end)))
@@ -1658,8 +1655,8 @@ They are saved for the TPU-edt undelete-words command."
(delete-region beg (point))))
(defun tpu-delete-current-char (num)
- "Delete one or specified number of characters after point. The last
-character deleted is saved for the TPU-edt undelete-char command."
+ "Delete one or specified number of characters after point.
+The last character deleted is saved for the TPU-edt undelete-char command."
(interactive "p")
(while (and (> num 0) (not (eobp)))
(setq tpu-last-deleted-char (char-after (point)))
@@ -1742,8 +1739,8 @@ With argument reinserts the character that many times."
(tpu-error "No selection active."))))
(defun tpu-substitute (num)
- "Replace the selected region with the contents of the cut buffer, and
-repeat most recent search. A numeric argument serves as a repeat count.
+ "Replace the selected region with the contents of the cut buffer,
+and repeat most recent search. A numeric argument serves as a repeat count.
A negative argument means replace all occurrences of the search string."
(interactive "p")
(cond ((or (tpu-mark) (tpu-check-match))
@@ -1820,10 +1817,10 @@ A negative argument means replace all occurrences of the search string."
(message "Replaced %s occurrence%s." strings (if (not (= 1 strings)) "s" ""))))
(defun tpu-emacs-replace (&optional dont-ask)
- "A TPU-edt interface to the Emacs replace functions. If TPU-edt is
-currently in regular expression mode, the Emacs regular expression
-replace functions are used. If an argument is supplied, replacements
-are performed without asking. Only works in forward direction."
+ "A TPU-edt interface to the Emacs replace functions.
+If TPU-edt is currently in regular expression mode, the Emacs regular
+expression replace functions are used. If an argument is supplied,
+replacements are performed without asking. Only works in forward direction."
(interactive "P")
(cond (dont-ask
(setq current-prefix-arg nil)
@@ -1872,7 +1869,7 @@ or each line of the entire buffer if no region is selected."
(end-of-line) (insert text) (forward-line))))))
(defun tpu-trim-line-ends nil
- "Removes trailing whitespace from every line in the buffer."
+ "Remove trailing whitespace from every line in the buffer."
(interactive)
(save-match-data
(save-excursion
@@ -2274,7 +2271,7 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll."
(setq tpu-control-keys tpu-style)))
(defun tpu-toggle-control-keys nil
- "Toggles control key bindings between TPU-edt and Emacs."
+ "Toggle control key bindings between TPU-edt and Emacs."
(interactive)
(tpu-reset-control-keys (not tpu-control-keys))
(and (interactive-p)
@@ -2325,7 +2322,7 @@ Accepts a prefix argument for the number of tpu-pan-columns to scroll."
(defun tpu-load-xkeys (file)
"Load the TPU-edt X-windows key definitions FILE.
If FILE is nil, try to load a default file. The default file names are
-`~/.tpu-lucid-keys' for Lucid emacs, and `~/.tpu-keys' for Emacs."
+`~/.tpu-lucid-keys' for XEmacs, and `~/.tpu-keys' for Emacs."
(interactive "fX key definition file: ")
(cond (file
(setq file (expand-file-name file)))
@@ -2347,10 +2344,10 @@ If FILE is nil, try to load a default file. The default file names are
(cond ((file-readable-p file)
(load-file file))
(t
- ;; FIXME: This used to force the user to build `file'. With the
- ;; new code, such a file is not even necessary, but we'll keep
- ;; a warning message.
- (message "%s not found: use tpu-mapper.el to create it"
+ ;; This used to force the user to build `file'. With the
+ ;; new code, such a file may not be necessary. In case it
+ ;; is, issue a message giving a hint as to how to build it.
+ (message "%s not found: use M-x tpu-mapper to create it"
(abbreviate-file-name file)))))
(defun tpu-copy-keyfile (oldname newname)
diff --git a/lisp/emulation/tpu-extras.el b/lisp/emulation/tpu-extras.el
index 062082a295a..518b60db2ec 100644
--- a/lisp/emulation/tpu-extras.el
+++ b/lisp/emulation/tpu-extras.el
@@ -1,7 +1,7 @@
;;; tpu-extras.el --- scroll margins and free cursor mode for TPU-edt
;; Copyright (C) 1993, 1994, 1995, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Rob Riepel <riepel@networking.stanford.edu>
;; Maintainer: Rob Riepel <riepel@networking.stanford.edu>
diff --git a/lisp/emulation/tpu-mapper.el b/lisp/emulation/tpu-mapper.el
index b3ad67ec4df..49d67f437f8 100644
--- a/lisp/emulation/tpu-mapper.el
+++ b/lisp/emulation/tpu-mapper.el
@@ -1,7 +1,7 @@
;;; tpu-mapper.el --- create a TPU-edt X-windows keymap file
;; Copyright (C) 1993, 1994, 1995, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Rob Riepel <riepel@networking.stanford.edu>
;; Maintainer: Rob Riepel <riepel@networking.stanford.edu>
@@ -26,57 +26,11 @@
;;; Commentary:
-;; This emacs lisp program can be used to create an emacs lisp file that
-;; defines the TPU-edt keypad for emacs running on x-windows. Please read
-;; the "Usage" AND "Known Problems" sections before attempting to run this
-;; program.
-
-;;; Usage:
-
-;; Simply load this file into the X-windows version of emacs using the
-;; following command.
-
-;; emacs -q -l tpu-mapper
-
-;; The "-q" option prevents loading of your .emacs file (commands therein
-;; might confuse this program).
-
-;; An instruction screen showing the TPU-edt keypad will be displayed, and
-;; you will be prompted to press the TPU-edt editing keys. Tpu-mapper 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.
+;; This Emacs Lisp program can be used to create an Emacs Lisp file that
+;; defines the TPU-edt keypad for Emacs running on X-Windows.
;;; Code:
-
-;;;
-;;; Make sure we're running X-windows and Emacs version 19
-;;;
-(cond
- ((not (and window-system (not (string-lessp emacs-version "19"))))
- (error "tpu-mapper requires running in Emacs 19, with an X display")))
-
-
;;;
;;; Key variables
;;;
@@ -89,37 +43,89 @@
(defvar tpu-enter-seq nil)
(defvar tpu-return-seq nil)
-
;;;
-;;; Make sure the window is big enough to display the instructions
+;;; Key mapping function
;;;
-(if (featurep 'xemacs) (set-screen-size (selected-screen) 80 36)
- (set-frame-size (selected-frame) 80 36))
+(defun tpu-map-key (ident descrip func gold-func)
+ (interactive)
+ (if (featurep 'xemacs)
+ (progn
+ (setq tpu-key-seq (read-key-sequence
+ (format "Press %s%s: " ident descrip))
+ tpu-key (format "[%s]" (event-key (aref tpu-key-seq 0))))
+ (unless (equal tpu-key tpu-return)
+ (set-buffer "Keys")
+ (insert (format"(global-set-key %s %s)\n" tpu-key func))
+ (set-buffer "Gold-Keys")
+ (insert (format "(define-key GOLD-map %s %s)\n" tpu-key gold-func))))
+ (message "Press %s%s: " ident descrip)
+ (setq tpu-key-seq (read-event)
+ tpu-key (format "[%s]" tpu-key-seq))
+ (unless (equal tpu-key tpu-return)
+ (set-buffer "Keys")
+ (insert (format"(define-key tpu-global-map %s %s)\n" tpu-key func))
+ (set-buffer "Gold-Keys")
+ (insert (format "(define-key tpu-gold-map %s %s)\n" tpu-key gold-func))))
+ (set-buffer "Directions")
+ tpu-key)
+;;;###autoload
+(defun tpu-mapper ()
+ "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."
+ (interactive)
-;;;
-;;; Create buffers - Directions, Keys, Gold-Keys
-;;;
-(if (not (get-buffer "Directions")) (generate-new-buffer "Directions"))
-(if (not (get-buffer "Keys")) (generate-new-buffer "Keys"))
-(if (not (get-buffer "Gold-Keys")) (generate-new-buffer "Gold-Keys"))
+ ;; Make sure we're running X-windows
+ (if (not window-system)
+ (error "tpu-mapper requires running Emacs with an X display"))
-;;;
-;;; Put headers in the Keys buffer
-;;;
-(set-buffer "Keys")
-(insert "\
+ ;; Make sure the window is big enough to display the instructions
+
+ (if (featurep 'xemacs) (set-screen-size (selected-screen) 80 36)
+ (set-frame-size (selected-frame) 80 36))
+
+ ;; Create buffers - Directions, Keys, Gold-Keys
+
+ (if (not (get-buffer "Directions")) (generate-new-buffer "Directions"))
+ (if (not (get-buffer "Keys")) (generate-new-buffer "Keys"))
+ (if (not (get-buffer "Gold-Keys")) (generate-new-buffer "Gold-Keys"))
+
+ ;; Put headers in the Keys buffer
+
+ (set-buffer "Keys")
+ (insert "\
;; Key definitions for TPU-edt
;;
")
+ ;; Display directions
-;;;
-;;; Display directions
-;;;
-(switch-to-buffer "Directions")
-(insert "
+ (switch-to-buffer "Directions")
+ (insert "
This program prompts you to press keys to create a custom keymap file
for use with the x-windows version of Emacs and TPU-edt.
@@ -153,225 +159,197 @@
")
-(delete-other-windows)
-(goto-char (point-min))
+ (delete-other-windows)
+ (goto-char (point-min))
-;;;
-;;; Save <CR> for future reference
-;;;
-(cond
- ((featurep 'xemacs)
- (setq tpu-return-seq (read-key-sequence "Hit carriage-return <CR> to continue "))
- (setq tpu-return (concat "[" (format "%s" (event-key (aref tpu-return-seq 0))) "]")))
- (t
- (message "Hit carriage-return <CR> to continue ")
- (setq tpu-return-seq (read-event))
- (setq tpu-return (concat "[" (format "%s" tpu-return-seq) "]"))))
+ ;; Save <CR> for future reference
+ (cond
+ ((featurep 'xemacs)
+ (setq tpu-return-seq (read-key-sequence "Hit carriage-return <CR> to continue "))
+ (setq tpu-return (concat "[" (format "%s" (event-key (aref tpu-return-seq 0))) "]")))
+ (t
+ (message "Hit carriage-return <CR> to continue ")
+ (setq tpu-return-seq (read-event))
+ (setq tpu-return (concat "[" (format "%s" tpu-return-seq) "]"))))
-;;;
-;;; Key mapping functions
-;;;
-(defun tpu-map-key (ident descrip func gold-func)
- (interactive)
- (if (featurep 'xemacs)
- (progn
- (setq tpu-key-seq (read-key-sequence
- (format "Press %s%s: " ident descrip))
- tpu-key (format "[%s]" (event-key (aref tpu-key-seq 0))))
- (unless (equal tpu-key tpu-return)
- (set-buffer "Keys")
- (insert (format"(global-set-key %s %s)\n" tpu-key func))
- (set-buffer "Gold-Keys")
- (insert (format "(define-key GOLD-map %s %s)\n" tpu-key gold-func))))
- (message "Press %s%s: " ident descrip)
- (setq tpu-key-seq (read-event)
- tpu-key (format "[%s]" tpu-key-seq))
- (unless (equal tpu-key tpu-return)
- (set-buffer "Keys")
- (insert (format"(define-key tpu-global-map %s %s)\n" tpu-key func))
- (set-buffer "Gold-Keys")
- (insert (format "(define-key tpu-gold-map %s %s)\n" tpu-key gold-func))))
- (set-buffer "Directions")
- tpu-key)
+ ;; Build the keymap file
-(set-buffer "Keys")
-(insert "
+ (set-buffer "Keys")
+ (insert "
;; Arrows
;;
")
-(set-buffer "Gold-Keys")
-(insert "
+ (set-buffer "Gold-Keys")
+ (insert "
;; GOLD Arrows
;;
")
-(set-buffer "Directions")
-
-(tpu-map-key "Up-Arrow" "" "'tpu-previous-line" "'tpu-move-to-beginning")
-(tpu-map-key "Down-arrow" "" "'tpu-next-line" "'tpu-move-to-end")
-(tpu-map-key "Right-arrow" "" "'tpu-forward-char" "'end-of-line")
-(tpu-map-key "Left-arrow" "" "'tpu-backward-char" "'beginning-of-line")
+ (set-buffer "Directions")
+ (tpu-map-key "Up-Arrow" "" "'tpu-previous-line" "'tpu-move-to-beginning")
+ (tpu-map-key "Down-arrow" "" "'tpu-next-line" "'tpu-move-to-end")
+ (tpu-map-key "Right-arrow" "" "'tpu-forward-char" "'end-of-line")
+ (tpu-map-key "Left-arrow" "" "'tpu-backward-char" "'beginning-of-line")
-(set-buffer "Keys")
-(insert "
+ (set-buffer "Keys")
+ (insert "
;; PF keys
;;
")
-(set-buffer "Gold-Keys")
-(insert "
+ (set-buffer "Gold-Keys")
+ (insert "
;; GOLD PF keys
;;
")
-(set-buffer "Directions")
+ (set-buffer "Directions")
-(tpu-map-key "PF1" " - The GOLD key" "GOLD-map" "'keyboard-quit")
-(tpu-map-key "PF2" " - The Keypad Help key" "'tpu-help" "'help-for-help")
-(tpu-map-key "PF3" " - The Find/Find-Next key" "'tpu-search-again" "'tpu-search")
-(tpu-map-key "PF4" " - The Del/Undelete Line key" "'tpu-delete-current-line" "'tpu-undelete-lines")
+ (tpu-map-key "PF1" " - The GOLD key" "GOLD-map" "'keyboard-quit")
+ (tpu-map-key "PF2" " - The Keypad Help key" "'tpu-help" "'help-for-help")
+ (tpu-map-key "PF3" " - The Find/Find-Next key" "'tpu-search-again" "'tpu-search")
+ (tpu-map-key "PF4" " - The Del/Undelete Line key" "'tpu-delete-current-line" "'tpu-undelete-lines")
-(set-buffer "Keys")
-(insert "
+ (set-buffer "Keys")
+ (insert "
;; KP0-9 KP- KP, KP. and KPenter
;;
")
-(set-buffer "Gold-Keys")
-(insert "
+ (set-buffer "Gold-Keys")
+ (insert "
;; GOLD KP0-9 KP- KP, and KPenter
;;
")
-(set-buffer "Directions")
-
-(tpu-map-key "KP-0" " - The Line/Open-Line key" "'tpu-line" "'open-line")
-(tpu-map-key "KP-1" " - The Word/Change-Case key" "'tpu-word" "'tpu-change-case")
-(tpu-map-key "KP-2" " - The EOL/Delete-EOL key" "'tpu-end-of-line" "'tpu-delete-to-eol")
-(tpu-map-key "KP-3" " - The Character/Special-Insert key" "'tpu-char" "'tpu-special-insert")
-(setq tpu-kp4 (tpu-map-key "KP-4" " - The Forward/Bottom key" "'tpu-advance-direction" "'tpu-move-to-end"))
-(setq tpu-kp5 (tpu-map-key "KP-5" " - The Reverse/Top key" "'tpu-backup-direction" "'tpu-move-to-beginning"))
-(tpu-map-key "KP-6" " - The Remove/Insert key" "'tpu-cut" "'tpu-paste")
-(tpu-map-key "KP-7" " - The Page/Do key" "'tpu-page" "'execute-extended-command")
-(tpu-map-key "KP-8" " - The Section/Fill key" "'tpu-scroll-window" "'tpu-fill")
-(tpu-map-key "KP-9" " - The Append/Replace key" "'tpu-append-region" "'tpu-replace")
-(tpu-map-key "KP--" " - The Delete/Undelete Word key" "'tpu-delete-current-word" "'tpu-undelete-words")
-(tpu-map-key "KP-," " - The Delete/Undelete Character key" "'tpu-delete-current-char" "'tpu-undelete-char")
-(tpu-map-key "KP-." " - The Select/Reset key" "'tpu-select" "'tpu-unselect")
-(tpu-map-key "KP-Enter" " - The Enter key on the numeric keypad" "'newline" "'tpu-substitute")
-;; Save the enter key
-(setq tpu-enter tpu-key)
-(setq tpu-enter-seq tpu-key-seq)
-
-(set-buffer "Keys")
-(insert "
+ (set-buffer "Directions")
+
+ (tpu-map-key "KP-0" " - The Line/Open-Line key" "'tpu-line" "'open-line")
+ (tpu-map-key "KP-1" " - The Word/Change-Case key" "'tpu-word" "'tpu-change-case")
+ (tpu-map-key "KP-2" " - The EOL/Delete-EOL key" "'tpu-end-of-line" "'tpu-delete-to-eol")
+ (tpu-map-key "KP-3" " - The Character/Special-Insert key" "'tpu-char" "'tpu-special-insert")
+ (setq tpu-kp4 (tpu-map-key "KP-4" " - The Forward/Bottom key" "'tpu-advance-direction" "'tpu-move-to-end"))
+ (setq tpu-kp5 (tpu-map-key "KP-5" " - The Reverse/Top key" "'tpu-backup-direction" "'tpu-move-to-beginning"))
+ (tpu-map-key "KP-6" " - The Remove/Insert key" "'tpu-cut" "'tpu-paste")
+ (tpu-map-key "KP-7" " - The Page/Do key" "'tpu-page" "'execute-extended-command")
+ (tpu-map-key "KP-8" " - The Section/Fill key" "'tpu-scroll-window" "'tpu-fill")
+ (tpu-map-key "KP-9" " - The Append/Replace key" "'tpu-append-region" "'tpu-replace")
+ (tpu-map-key "KP--" " - The Delete/Undelete Word key" "'tpu-delete-current-word" "'tpu-undelete-words")
+ (tpu-map-key "KP-," " - The Delete/Undelete Character key" "'tpu-delete-current-char" "'tpu-undelete-char")
+ (tpu-map-key "KP-." " - The Select/Reset key" "'tpu-select" "'tpu-unselect")
+ (tpu-map-key "KP-Enter" " - The Enter key on the numeric keypad" "'newline" "'tpu-substitute")
+ ;; Save the enter key
+ (setq tpu-enter tpu-key)
+ (setq tpu-enter-seq tpu-key-seq)
+
+ (set-buffer "Keys")
+ (insert "
;; Editing keypad (find, insert, remove)
;; (select, prev, next)
;;
")
-(set-buffer "Gold-Keys")
-(insert "
+ (set-buffer "Gold-Keys")
+ (insert "
;; GOLD Editing keypad (find, insert, remove)
;; (select, prev, next)
;;
")
-(set-buffer "Directions")
+ (set-buffer "Directions")
-(tpu-map-key "Find" " - The Find key on the editing keypad" "'tpu-search" "'nil")
-(tpu-map-key "Insert" " - The Insert key on the editing keypad" "'tpu-paste" "'nil")
-(tpu-map-key "Remove" " - The Remove key on the editing keypad" "'tpu-cut" "'tpu-store-text")
-(tpu-map-key "Select" " - The Select key on the editing keypad" "'tpu-select" "'tpu-unselect")
-(tpu-map-key "Prev Scr" " - The Prev Scr key on the editing keypad" "'tpu-scroll-window-down" "'tpu-previous-window")
-(tpu-map-key "Next Scr" " - The Next Scr key on the editing keypad" "'tpu-scroll-window-up" "'tpu-next-window")
+ (tpu-map-key "Find" " - The Find key on the editing keypad" "'tpu-search" "'nil")
+ (tpu-map-key "Insert" " - The Insert key on the editing keypad" "'tpu-paste" "'nil")
+ (tpu-map-key "Remove" " - The Remove key on the editing keypad" "'tpu-cut" "'tpu-store-text")
+ (tpu-map-key "Select" " - The Select key on the editing keypad" "'tpu-select" "'tpu-unselect")
+ (tpu-map-key "Prev Scr" " - The Prev Scr key on the editing keypad" "'tpu-scroll-window-down" "'tpu-previous-window")
+ (tpu-map-key "Next Scr" " - The Next Scr key on the editing keypad" "'tpu-scroll-window-up" "'tpu-next-window")
-(set-buffer "Keys")
-(insert "
+ (set-buffer "Keys")
+ (insert "
;; F10-14 Help Do F17
;;
")
-(set-buffer "Gold-Keys")
-(insert "
+ (set-buffer "Gold-Keys")
+ (insert "
;; GOLD F10-14 Help Do F17
;;
")
-(set-buffer "Directions")
-
-(tpu-map-key "F10" " - Invokes the Exit function on VT200+ terminals" "'tpu-exit" "'nil")
-(tpu-map-key "F11" " - Inserts an Escape character into the text" "'tpu-insert-escape" "'nil")
-(tpu-map-key "Backspace" " - Not Delete nor ^H! Sometimes on the F12 key" "'tpu-next-beginning-of-line" "'nil")
-(tpu-map-key "F13" " - Invokes the delete previous word function" "'tpu-delete-previous-word" "'nil")
-(tpu-map-key "F14" " - Toggles insert/overstrike modes" "'tpu-toggle-overwrite-mode" "'nil")
-(tpu-map-key "Help" " - Brings up the help screen, same as PF2" "'tpu-help" "'describe-bindings")
-(tpu-map-key "Do" " - Invokes the COMMAND function" "'execute-extended-command" "'nil")
-(tpu-map-key "F17" "" "'tpu-goto-breadcrumb" "'tpu-drop-breadcrumb")
-
-(set-buffer "Gold-Keys")
-(cond
- ((not (equal tpu-enter tpu-return))
- (insert "
+ (set-buffer "Directions")
+
+ (tpu-map-key "F10" " - Invokes the Exit function on VT200+ terminals" "'tpu-exit" "'nil")
+ (tpu-map-key "F11" " - Inserts an Escape character into the text" "'tpu-insert-escape" "'nil")
+ (tpu-map-key "Backspace" " - Not Delete nor ^H! Sometimes on the F12 key" "'tpu-next-beginning-of-line" "'nil")
+ (tpu-map-key "F13" " - Invokes the delete previous word function" "'tpu-delete-previous-word" "'nil")
+ (tpu-map-key "F14" " - Toggles insert/overstrike modes" "'tpu-toggle-overwrite-mode" "'nil")
+ (tpu-map-key "Help" " - Brings up the help screen, same as PF2" "'tpu-help" "'describe-bindings")
+ (tpu-map-key "Do" " - Invokes the COMMAND function" "'execute-extended-command" "'nil")
+ (tpu-map-key "F17" "" "'tpu-goto-breadcrumb" "'tpu-drop-breadcrumb")
+
+ (set-buffer "Gold-Keys")
+ (cond
+ ((not (equal tpu-enter tpu-return))
+ (insert "
;; Minibuffer map additions to make KP_enter = RET
;;
")
- (insert (format "(define-key minibuffer-local-map %s 'exit-minibuffer)\n" tpu-enter))
- (insert (format "(define-key minibuffer-local-ns-map %s 'exit-minibuffer)\n" tpu-enter))
- (insert (format "(define-key minibuffer-local-completion-map %s 'exit-minibuffer)\n" tpu-enter))
- (insert (format "(define-key minibuffer-local-must-match-map %s 'minibuffer-complete-and-exit)\n" tpu-enter))))
+ (insert (format "(define-key minibuffer-local-map %s 'exit-minibuffer)\n" tpu-enter))
+ ;; These are not necessary because they are inherited.
+ ;; (insert (format "(define-key minibuffer-local-ns-map %s 'exit-minibuffer)\n" tpu-enter))
+ ;; (insert (format "(define-key minibuffer-local-completion-map %s 'exit-minibuffer)\n" tpu-enter))
+ (insert (format "(define-key minibuffer-local-must-match-map %s 'minibuffer-complete-and-exit)\n" tpu-enter))))
-(cond
- ((not (or (equal tpu-kp4 tpu-return) (equal tpu-kp5 tpu-return)))
- (insert "
+ (cond
+ ((not (or (equal tpu-kp4 tpu-return) (equal tpu-kp5 tpu-return)))
+ (insert "
;; Minibuffer map additions to allow KP-4/5 termination of search strings.
;;
")
- (insert (format "(define-key minibuffer-local-map %s 'tpu-search-forward-exit)\n" tpu-kp4))
- (insert (format "(define-key minibuffer-local-map %s 'tpu-search-backward-exit)\n" tpu-kp5))))
+ (insert (format "(define-key minibuffer-local-map %s 'tpu-search-forward-exit)\n" tpu-kp4))
+ (insert (format "(define-key minibuffer-local-map %s 'tpu-search-backward-exit)\n" tpu-kp5))))
-(insert "
+ (insert "
;; Define the tpu-help-enter/return symbols
;;
")
-(cond ((featurep 'xemacs)
- (insert (format "(setq tpu-help-enter \"%s\")\n" tpu-enter-seq))
- (insert (format "(setq tpu-help-return \"%s\")\n" tpu-return-seq))
- (insert "(setq tpu-help-N \"[#<keypress-event N>]\")\n")
- (insert "(setq tpu-help-n \"[#<keypress-event n>]\")\n")
- (insert "(setq tpu-help-P \"[#<keypress-event P>]\")\n")
- (insert "(setq tpu-help-p \"[#<keypress-event p>]\")\n"))
- (t
- (insert (format "(setq tpu-help-enter \"%s\")\n" tpu-enter))))
+ (cond ((featurep 'xemacs)
+ (insert (format "(setq tpu-help-enter \"%s\")\n" tpu-enter-seq))
+ (insert (format "(setq tpu-help-return \"%s\")\n" tpu-return-seq))
+ (insert "(setq tpu-help-N \"[#<keypress-event N>]\")\n")
+ (insert "(setq tpu-help-n \"[#<keypress-event n>]\")\n")
+ (insert "(setq tpu-help-P \"[#<keypress-event P>]\")\n")
+ (insert "(setq tpu-help-p \"[#<keypress-event p>]\")\n"))
+ (t
+ (insert (format "(setq tpu-help-enter \"%s\")\n" tpu-enter))))
-(append-to-buffer "Keys" 1 (point))
-(set-buffer "Keys")
+ (append-to-buffer "Keys" 1 (point))
+ (set-buffer "Keys")
-;;;
-;;; Save the key mapping program
-;;;
-(let ((file
- (convert-standard-filename
- (if (featurep 'xemacs) "~/.tpu-lucid-keys" "~/.tpu-keys"))))
- (set-visited-file-name
- (read-file-name (format "Save key mapping to file (default %s): " file) "" file)))
-(save-buffer)
+ ;; Save the key mapping program
-;;;
-;;; Load the newly defined keys and clean up
-;;;
-(eval-buffer)
-(kill-buffer (current-buffer))
-(kill-buffer "*scratch*")
-(kill-buffer "Gold-Keys")
+ (let ((file
+ (convert-standard-filename
+ (if (featurep 'xemacs) "~/.tpu-lucid-keys" "~/.tpu-keys"))))
+ (set-visited-file-name
+ (read-file-name (format "Save key mapping to file (default %s): " file) "" file)))
+ (save-buffer)
-;;;
-;;; Let them know it worked.
-;;;
-(switch-to-buffer "Directions")
-(erase-buffer)
-(insert "
+ ;; Load the newly defined keys and clean up
+
+ (require 'tpu-edt)
+ (eval-buffer)
+ (kill-buffer (current-buffer))
+ (kill-buffer "*scratch*")
+ (kill-buffer "Gold-Keys")
+
+ ;; Let them know it worked.
+
+ (switch-to-buffer "Directions")
+ (erase-buffer)
+ (insert "
A custom TPU-edt keymap file has been created.
Press GOLD-k to remove this buffer and continue editing.
")
-(goto-char (point-min))
+ (goto-char (point-min)))
;; arch-tag: bab5872f-cd3a-4c1c-aedb-047b67646f6c
;;; tpu-mapper.el ends here
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el
index e6fdd55f7c4..b4f80a9e1ed 100644
--- a/lisp/emulation/vip.el
+++ b/lisp/emulation/vip.el
@@ -1,7 +1,7 @@
;;; vip.el --- a VI Package for GNU Emacs
;; Copyright (C) 1986, 1987, 1988, 1992, 1993, 1998, 2001, 2002, 2003,
-;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Masahiko Sato <ms@sail.stanford.edu>
;; Keywords: emulations
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 8603169819f..3d74286589c 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -1,7 +1,7 @@
;;; viper-cmd.el --- Vi command support for Viper
;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el
index ccc06e0b938..6ce34852235 100644
--- a/lisp/emulation/viper-ex.el
+++ b/lisp/emulation/viper-ex.el
@@ -1,7 +1,7 @@
;;; viper-ex.el --- functions implementing the Ex commands for Viper
;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003,
-;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index c91886e0329..d0f89751d57 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -1,7 +1,7 @@
;;; viper-init.el --- some common definitions for Viper
;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el
index 85a94075720..f76a9310518 100644
--- a/lisp/emulation/viper-keym.el
+++ b/lisp/emulation/viper-keym.el
@@ -1,7 +1,7 @@
;;; viper-keym.el --- Viper keymaps
;; Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index 6eb7687c4e6..a9e24f28e7b 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -1,7 +1,7 @@
;;; viper-macs.el --- functions implementing keyboard macros for Viper
;; Copyright (C) 1994, 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper-mous.el b/lisp/emulation/viper-mous.el
index dd727cd5f84..be2739777eb 100644
--- a/lisp/emulation/viper-mous.el
+++ b/lisp/emulation/viper-mous.el
@@ -1,7 +1,7 @@
;;; viper-mous.el --- mouse support for Viper
;; Copyright (C) 1994, 1995, 1996, 1997, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index 78f54b3d63c..33061565196 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -1,7 +1,7 @@
;;; viper-util.el --- Utilities used by viper.el
;; Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003,
-;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index bb3e4eb583d..19d3a7f018a 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -4,7 +4,7 @@
;; Viper Is also a Package for Emacs Rebels.
;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-;; 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
;; Keywords: emulations
diff --git a/lisp/emulation/ws-mode.el b/lisp/emulation/ws-mode.el
index ee14d587e22..80fcfd333ed 100644
--- a/lisp/emulation/ws-mode.el
+++ b/lisp/emulation/ws-mode.el
@@ -1,7 +1,7 @@
;;; ws-mode.el --- WordStar emulation mode for GNU Emacs
;; Copyright (C) 1991, 2001, 2002, 2003, 2004, 2005,
-;; 2006, 2007 Free Software Foundation, Inc.
+;; 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: Juergen Nickelsen <nickel@cs.tu-berlin.de>
;; Version: 0.7