-;;; tpu-mapper.el --- Create a TPU-edt keymap file for x-windows emacs.
+;;; tpu-mapper.el --- create a TPU-edt X-windows keymap file
-;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994, 1995, 2002, 2003, 2004,
+;; 2005 Free Software Foundation, Inc.
;; Author: Rob Riepel <riepel@networking.stanford.edu>
;; Maintainer: Rob Riepel <riepel@networking.stanford.edu>
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING. If not, write to
-;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+;; along with GNU Emacs; see the file COPYING. If not, write to the
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
;;; Commentary:
;;; Usage:
-;; Simply load this file into the X-windows version of emacs (version 19)
-;; using the following command.
+;; Simply load this file into the X-windows version of emacs using the
+;; following command.
-;; emacs -q -l tpu-mapper.el
+;; emacs -q -l tpu-mapper
;; The "-q" option prevents loading of your .emacs file (commands therein
;; might confuse this program).
;; 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 loading TPU-edt. Here's how
+;; 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"))
-;; (load "tpu-edt")
+;; (tpu-edt)
;;; Known Problems:
;;; Code:
+
;;;
;;; Make sure we're running X-windows and Emacs version 19
;;;
;;; Decide whether we're running Lucid Emacs or Emacs itself.
;;;
(defconst tpu-lucid-emacs19-p (string-match "Lucid" emacs-version)
- "Non-NIL if we are running Lucid Emacs version 19.")
+ "Non-nil if we are running Lucid Emacs version 19.")
;;;
(t
(message "Hit carriage-return <CR> to continue ")
(setq tpu-return-seq (read-event))
- (setq tpu-return (concat "[" (format "%s" tpu-return-seq) "]"))))
+ (setq tpu-return (concat "[" (format "%s" tpu-return-seq) "]"))))
;;;
;;;
;;; Save the key mapping program
;;;
-(let ((file (if tpu-lucid-emacs19-p "~/.tpu-lucid-keys" "~/.tpu-keys")))
+(let ((file
+ (convert-standard-filename
+ (if tpu-lucid-emacs19-p "~/.tpu-lucid-keys" "~/.tpu-keys"))))
(set-visited-file-name
(read-file-name (format "Save key mapping to file (default %s): " file) "" file)))
(save-buffer)
;;;
;;; Load the newly defined keys and clean up
;;;
-(eval-current-buffer)
+(eval-buffer)
(kill-buffer (current-buffer))
(kill-buffer "*scratch*")
(kill-buffer "Gold-Keys")
")
(goto-char (point-min))
+;;; arch-tag: bab5872f-cd3a-4c1c-aedb-047b67646f6c
;;; tpu-mapper.el ends here