aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-11 05:01:04 +0000
committerRichard M. Stallman1993-08-11 05:01:04 +0000
commit0b7f4d1b60720615c2e1fbcfaa4b8f00d3d52c1e (patch)
treecbc31917531959633741cf3eb89e218b1615d73c
parent4cb9d259e0dbeb457456062b1c7160c05ffc850b (diff)
downloademacs-0b7f4d1b60720615c2e1fbcfaa4b8f00d3d52c1e.tar.gz
emacs-0b7f4d1b60720615c2e1fbcfaa4b8f00d3d52c1e.zip
(tpu-help): Use variables for "n" and "p".
(tpu-help-N, tpu-help-n, tpu-help-P, tpu-help-p): New vars.
-rw-r--r--lisp/emulation/tpu-edt.el21
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index 0e9263d6f02..cbe014457f5 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -5,7 +5,7 @@
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>
7;; Version: 3.1 7;; Version: 3.1
8;; Keywords: tpu edt tpu-edt 8;; Keywords: edt emulations
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -30,7 +30,7 @@
30;;; Revision and Version Information 30;;; Revision and Version Information
31;;; 31;;;
32(defconst tpu-version "3.1" "TPU-edt version number.") 32(defconst tpu-version "3.1" "TPU-edt version number.")
33(defconst tpu-revision "$Revision: 6.10 $" "Revision number of TPU-edt.") 33(defconst tpu-revision "$Revision: 6.11 $" "Revision number of TPU-edt.")
34 34
35 35
36;;; 36;;;
@@ -647,6 +647,10 @@ its ASCII decimal value."
647 647
648(defvar tpu-help-enter (format "%s" "\eOM")) ; tpu-help enter key symbol 648(defvar tpu-help-enter (format "%s" "\eOM")) ; tpu-help enter key symbol
649(defvar tpu-help-return (format "%s" "\r")) ; tpu-help enter key symbol 649(defvar tpu-help-return (format "%s" "\r")) ; tpu-help enter key symbol
650(defvar tpu-help-N "N") ; tpu-help "N" symbol
651(defvar tpu-help-n "n") ; tpu-help "n" symbol
652(defvar tpu-help-P "P") ; tpu-help "P" symbol
653(defvar tpu-help-p "p") ; tpu-help "p" symbol
650 654
651(defun tpu-help nil 655(defun tpu-help nil
652 "Display TPU-edt help." 656 "Display TPU-edt help."
@@ -669,8 +673,8 @@ its ASCII decimal value."
669 (tpu-line-to-top-of-window) 673 (tpu-line-to-top-of-window)
670 674
671 ;; Prompt for keys to describe, based on screen state (split/not split) 675 ;; Prompt for keys to describe, based on screen state (split/not split)
672 (let ((key nil) (split nil)) 676 (let ((key nil) (fkey nil) (split nil))
673 (while (not (equal tpu-help-return (format "%s" key))) 677 (while (not (equal tpu-help-return fkey))
674 (if split 678 (if split
675 (setq key 679 (setq key
676 (read-key-sequence 680 (read-key-sequence
@@ -687,10 +691,11 @@ its ASCII decimal value."
687 ;; RETURN - Exit from TPU-help 691 ;; RETURN - Exit from TPU-help
688 ;; default - describe the key 692 ;; default - describe the key
689 ;; 693 ;;
690 (cond ((equal tpu-help-enter (format "%s" key)) 694 (setq fkey (format "%s" key))
695 (cond ((equal tpu-help-enter fkey)
691 (setq split nil) 696 (setq split nil)
692 (delete-other-windows)) 697 (delete-other-windows))
693 ((or (equal "N" key) (equal "n" key)) 698 ((or (equal tpu-help-N fkey) (equal tpu-help-n fkey))
694 (cond (split 699 (cond (split
695 (condition-case nil 700 (condition-case nil
696 (scroll-other-window 8) 701 (scroll-other-window 8)
@@ -699,7 +704,7 @@ its ASCII decimal value."
699 (forward-page) 704 (forward-page)
700 (forward-line 1) 705 (forward-line 1)
701 (tpu-line-to-top-of-window)))) 706 (tpu-line-to-top-of-window))))
702 ((or (equal "P" key) (equal "p" key)) 707 ((or (equal tpu-help-P fkey) (equal tpu-help-p fkey))
703 (cond (split 708 (cond (split
704 (condition-case nil 709 (condition-case nil
705 (scroll-other-window -8) 710 (scroll-other-window -8)
@@ -708,7 +713,7 @@ its ASCII decimal value."
708 (backward-page 2) 713 (backward-page 2)
709 (forward-line 1) 714 (forward-line 1)
710 (tpu-line-to-top-of-window)))) 715 (tpu-line-to-top-of-window))))
711 ((not (equal tpu-help-return (format "%s" key))) 716 ((not (equal tpu-help-return fkey))
712 (setq split t) 717 (setq split t)
713 (describe-key key) 718 (describe-key key)
714 ;; If the key is undefined, leave the 719 ;; If the key is undefined, leave the