aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-10 04:18:07 +0000
committerRichard M. Stallman1993-08-10 04:18:07 +0000
commitb4196a995689d74b03138c592cffa625819cd071 (patch)
tree378a52e6264512d0ba4dea5b8adadaee0cad170e
parent09ac6f3b576e90928965ddde415490b22a8e9471 (diff)
downloademacs-b4196a995689d74b03138c592cffa625819cd071.tar.gz
emacs-b4196a995689d74b03138c592cffa625819cd071.zip
(tpu-search-internal): Changed variable
searching-forward to tpu-searching-forward. Changed "edit-picture-hook" to "picture-mode-hook" for emacs version 19.
-rw-r--r--lisp/emulation/tpu-extras.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/emulation/tpu-extras.el b/lisp/emulation/tpu-extras.el
index 22fb46a2d07..7ba2179140b 100644
--- a/lisp/emulation/tpu-extras.el
+++ b/lisp/emulation/tpu-extras.el
@@ -1,4 +1,5 @@
1;;; tpu-extras.el --- Scroll margins and free cursor mode for TPU-edt 1;;; tpu-extras.el --- Scroll margins and free cursor mode for TPU-edt
2
2;; Copyright (C) 1993 Free Software Foundation, Inc. 3;; Copyright (C) 1993 Free Software Foundation, Inc.
3 4
4;; Author: Rob Riepel <riepel@networking.stanford.edu> 5;; Author: Rob Riepel <riepel@networking.stanford.edu>
@@ -21,8 +22,6 @@
21;; along with GNU Emacs; see the file COPYING. If not, write to 22;; along with GNU Emacs; see the file COPYING. If not, write to
22;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 23;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 24
24;;; Revision: $Id: tpu-extras.el,v 1.2 1993/08/04 08:19:13 rms Exp rms $
25
26;;; Commentary: 25;;; Commentary:
27 26
28;; The functions contained in this file implement scroll margins and free 27;; The functions contained in this file implement scroll margins and free
@@ -105,7 +104,7 @@
105 104
106;;; Revision Information 105;;; Revision Information
107 106
108(defconst tpu-extras-revision "$Revision: 1.2 $" 107(defconst tpu-extras-revision "$Revision: 3.5 $"
109 "Revision number of the TPU-edt extras.") 108 "Revision number of the TPU-edt extras.")
110 109
111 110
@@ -133,7 +132,11 @@ the previous line when starting from a line beginning.")
133;;; Hooks -- Set cursor free in picture mode. 132;;; Hooks -- Set cursor free in picture mode.
134;;; Clean up when writing a file from cursor free mode. 133;;; Clean up when writing a file from cursor free mode.
135 134
136(add-hook 'edit-picture-hook 'tpu-set-cursor-free) 135(if tpu-gnu-emacs18-p
136 (or (memq 'tpu-set-cursor-free edit-picture-hook)
137 (setq edit-picture-hook
138 (cons 'tpu-set-cursor-free edit-picture-hook)))
139 (add-hook 'picture-mode-hook 'tpu-set-cursor-free))
137 140
138(defun tpu-write-file-hook nil 141(defun tpu-write-file-hook nil
139 "Eliminate whitespace at ends of lines, if the cursor is free." 142 "Eliminate whitespace at ends of lines, if the cursor is free."
@@ -374,7 +377,7 @@ A repeat count means scroll that many sections."
374 (far (save-excursion 377 (far (save-excursion
375 (goto-char bottom) (forward-line (- height 2)) (point)))) 378 (goto-char bottom) (forward-line (- height 2)) (point))))
376 (tpu-search-internal-core pat quiet) 379 (tpu-search-internal-core pat quiet)
377 (if searching-forward 380 (if tpu-searching-forward
378 (cond((> (point) far) 381 (cond((> (point) far)
379 (setq left (save-excursion (forward-line height))) 382 (setq left (save-excursion (forward-line height)))
380 (if (= 0 left) (recenter top-margin) 383 (if (= 0 left) (recenter top-margin)