0
|
1 ;;; tpu-extras.el --- Scroll margins and free cursor mode for TPU-edt
|
|
2
|
72
|
3 ;; Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
|
0
|
4
|
|
5 ;; Author: Rob Riepel <riepel@networking.stanford.edu>
|
|
6 ;; Maintainer: Rob Riepel <riepel@networking.stanford.edu>
|
|
7 ;; Keywords: emulations
|
|
8
|
|
9 ;; This file is part of XEmacs.
|
185
|
10 ;; XEmacs modifications by Kevin Oberman <oberman@es.net>
|
0
|
11
|
|
12 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
13 ;; under the terms of the GNU General Public License as published by
|
|
14 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
15 ;; any later version.
|
|
16
|
|
17 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
185
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20 ;; GNU General Public License for more details.
|
0
|
21
|
|
22 ;; You should have received a copy of the GNU General Public License
|
185
|
23 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
25 ;; Boston, MA 02111-1307, USA.
|
72
|
26
|
185
|
27 ;;; Synced up with FSF 19.34 and XEmacs 19.16
|
0
|
28
|
|
29 ;;; Commentary:
|
|
30
|
72
|
31 ;; Use the functions defined here to customize TPU-edt to your tastes by
|
|
32 ;; setting scroll margins and/or turning on free cursor mode. Here's an
|
|
33 ;; example for your .emacs file.
|
|
34
|
|
35 ;; (tpu-set-cursor-free) ; Set cursor free.
|
|
36 ;; (tpu-set-scroll-margins "10%" "15%") ; Set scroll margins.
|
|
37
|
|
38 ;; Scroll margins and cursor binding can be changed from within emacs using
|
|
39 ;; the following commands:
|
|
40
|
|
41 ;; tpu-set-scroll-margins or set scroll margins
|
|
42 ;; tpu-set-cursor-bound or set cursor bound
|
|
43 ;; tpu-set-cursor-free or set cursor free
|
|
44
|
|
45 ;; Additionally, Gold-F toggles between bound and free cursor modes.
|
|
46
|
|
47 ;; Note that switching out of free cursor mode or exiting TPU-edt while in
|
|
48 ;; free cursor mode strips trailing whitespace from every line in the file.
|
|
49
|
|
50
|
|
51 ;;; Details:
|
|
52
|
0
|
53 ;; The functions contained in this file implement scroll margins and free
|
|
54 ;; cursor mode. The following keys and commands are affected.
|
|
55
|
|
56 ;; key/command function scroll cursor
|
|
57
|
|
58 ;; Up-Arrow previous line x x
|
|
59 ;; Down-Arrow next line x x
|
|
60 ;; Right-Arrow next character x
|
|
61 ;; Left-Arrow previous character x
|
|
62 ;; KP0 next or previous line x
|
|
63 ;; KP7 next or previous page x
|
|
64 ;; KP8 next or previous screen x
|
|
65 ;; KP2 next or previous end-of-line x x
|
|
66 ;; Control-e current end-of-line x
|
|
67 ;; Control-h previous beginning-of-line x
|
|
68 ;; Next Scr next screen x
|
|
69 ;; Prev Scr previous screen x
|
|
70 ;; Search find a string x
|
|
71 ;; Replace find and replace a string x
|
|
72 ;; Newline insert a newline x
|
|
73 ;; Paragraph next or previous paragraph x
|
|
74 ;; Auto-Fill break lines on spaces x
|
|
75
|
|
76 ;; These functions are not part of the base TPU-edt for the following
|
|
77 ;; reasons:
|
|
78
|
|
79 ;; Free cursor mode is implemented with the emacs picture-mode functions.
|
|
80 ;; These functions support moving the cursor all over the screen, however,
|
|
81 ;; when the cursor is moved past the end of a line, spaces or tabs are
|
|
82 ;; appended to the line - even if no text is entered in that area. In
|
|
83 ;; order for a free cursor mode to work exactly like TPU/edt, this trailing
|
|
84 ;; whitespace needs to be dealt with in every function that might encounter
|
|
85 ;; it. Such global changes are impractical, however, free cursor mode is
|
|
86 ;; too valuable to abandon completely, so it has been implemented in those
|
|
87 ;; functions where it serves best.
|
|
88
|
|
89 ;; The implementation of scroll margins adds overhead to previously
|
|
90 ;; simple and often used commands. These commands are now responsible
|
|
91 ;; for their normal operation and part of the display function. There
|
|
92 ;; is a possibility that this display overhead could adversely affect the
|
|
93 ;; performance of TPU-edt on slower computers. In order to support the
|
|
94 ;; widest range of computers, scroll margin support is optional.
|
|
95
|
72
|
96 ;; It's actually not known whether the overhead associated with scroll
|
|
97 ;; margin support is significant. If you find that it is, please send
|
0
|
98 ;; a note describing the extent of the performance degradation. Be sure
|
|
99 ;; to include a description of the platform where you're running TPU-edt.
|
|
100 ;; Send your note to the address provided by Gold-V.
|
|
101
|
|
102 ;; Even with these differences and limitations, these functions implement
|
|
103 ;; important aspects of the real TPU/edt. Those who miss free cursor mode
|
|
104 ;; and/or scroll margins will appreciate these implementations.
|
|
105
|
|
106 ;;; Code:
|
|
107
|
|
108
|
72
|
109 ;;; Gotta have tpu-edt
|
0
|
110
|
72
|
111 (require 'tpu-edt)
|
0
|
112
|
|
113
|
|
114 ;;; Customization variables
|
|
115
|
|
116 (defconst tpu-top-scroll-margin 0
|
|
117 "*Scroll margin at the top of the screen.
|
|
118 Interpreted as a percent of the current window size.")
|
|
119 (defconst tpu-bottom-scroll-margin 0
|
|
120 "*Scroll margin at the bottom of the screen.
|
|
121 Interpreted as a percent of the current window size.")
|
|
122
|
|
123 (defvar tpu-backward-char-like-tpu t
|
|
124 "*If non-nil, in free cursor mode backward-char (left-arrow) works
|
|
125 just like TPU/edt. Otherwise, backward-char will move to the end of
|
|
126 the previous line when starting from a line beginning.")
|
|
127
|
|
128
|
|
129 ;;; Global variables
|
|
130
|
|
131 (defvar tpu-cursor-free nil
|
|
132 "If non-nil, let the cursor roam free.")
|
|
133
|
|
134
|
|
135 ;;; Hooks -- Set cursor free in picture mode.
|
|
136 ;;; Clean up when writing a file from cursor free mode.
|
|
137
|
72
|
138 (add-hook 'picture-mode-hook 'tpu-set-cursor-free)
|
0
|
139
|
|
140 (defun tpu-write-file-hook nil
|
|
141 "Eliminate whitespace at ends of lines, if the cursor is free."
|
|
142 (if (and (buffer-modified-p) tpu-cursor-free) (picture-clean)))
|
|
143
|
|
144 (or (memq 'tpu-write-file-hook write-file-hooks)
|
|
145 (setq write-file-hooks
|
|
146 (cons 'tpu-write-file-hook write-file-hooks)))
|
|
147
|
|
148
|
|
149 ;;; Utility routines for implementing scroll margins
|
|
150
|
|
151 (defun tpu-top-check (beg lines)
|
|
152 "Enforce scroll margin at the top of screen."
|
|
153 (let ((margin (/ (* (window-height) tpu-top-scroll-margin) 100)))
|
|
154 (cond ((< beg margin) (recenter beg))
|
|
155 ((< (- beg lines) margin) (recenter margin)))))
|
|
156
|
|
157 (defun tpu-bottom-check (beg lines)
|
|
158 "Enforce scroll margin at the bottom of screen."
|
|
159 (let* ((height (window-height))
|
|
160 (margin (+ 1 (/ (* height tpu-bottom-scroll-margin) 100)))
|
|
161 ;; subtract 1 from height because it includes mode line
|
|
162 (difference (- height margin 1)))
|
|
163 (cond ((> beg difference) (recenter beg))
|
|
164 ((> (+ beg lines) difference) (recenter (- margin))))))
|
|
165
|
|
166
|
|
167 ;;; Movement by character
|
|
168
|
|
169 (defun tpu-forward-char (num)
|
|
170 "Move right ARG characters (left if ARG is negative)."
|
|
171 (interactive "p")
|
185
|
172 (setq zmacs-region-stays t)
|
0
|
173 (if tpu-cursor-free (picture-forward-column num) (forward-char num)))
|
|
174
|
|
175 (defun tpu-backward-char (num)
|
|
176 "Move left ARG characters (right if ARG is negative)."
|
|
177 (interactive "p")
|
185
|
178 (setq zmacs-region-stays t)
|
0
|
179 (cond ((not tpu-cursor-free)
|
|
180 (backward-char num))
|
|
181 (tpu-backward-char-like-tpu
|
|
182 (picture-backward-column num))
|
|
183 ((bolp)
|
|
184 (backward-char 1)
|
|
185 (picture-end-of-line)
|
|
186 (picture-backward-column (1- num)))
|
|
187 (t
|
|
188 (picture-backward-column num))))
|
|
189
|
|
190
|
|
191 ;;; Movement by line
|
|
192
|
|
193 (defun tpu-next-line (num)
|
|
194 "Move to next line.
|
|
195 Prefix argument serves as a repeat count."
|
|
196 (interactive "p")
|
185
|
197 (setq zmacs-region-stays t)
|
0
|
198 (let ((beg (tpu-current-line)))
|
|
199 (if tpu-cursor-free (or (eobp) (picture-move-down num))
|
|
200 (next-line-internal num))
|
|
201 (tpu-bottom-check beg num)
|
|
202 (setq this-command 'next-line)))
|
|
203
|
|
204 (defun tpu-previous-line (num)
|
|
205 "Move to previous line.
|
|
206 Prefix argument serves as a repeat count."
|
|
207 (interactive "p")
|
185
|
208 (setq zmacs-region-stays t)
|
0
|
209 (let ((beg (tpu-current-line)))
|
|
210 (if tpu-cursor-free (picture-move-up num) (next-line-internal (- num)))
|
|
211 (tpu-top-check beg num)
|
|
212 (setq this-command 'previous-line)))
|
|
213
|
|
214 (defun tpu-next-beginning-of-line (num)
|
|
215 "Move to beginning of line; if at beginning, move to beginning of next line.
|
|
216 Accepts a prefix argument for the number of lines to move."
|
|
217 (interactive "p")
|
185
|
218 (setq zmacs-region-stays t)
|
0
|
219 (let ((beg (tpu-current-line)))
|
|
220 (backward-char 1)
|
|
221 (forward-line (- 1 num))
|
|
222 (tpu-top-check beg num)))
|
|
223
|
|
224 (defun tpu-next-end-of-line (num)
|
|
225 "Move to end of line; if at end, move to end of next line.
|
|
226 Accepts a prefix argument for the number of lines to move."
|
|
227 (interactive "p")
|
185
|
228 (setq zmacs-region-stays t)
|
0
|
229 (let ((beg (tpu-current-line)))
|
|
230 (cond (tpu-cursor-free
|
|
231 (let ((beg (point)))
|
|
232 (if (< 1 num) (forward-line num))
|
|
233 (picture-end-of-line)
|
|
234 (if (<= (point) beg) (progn (forward-line) (picture-end-of-line)))))
|
|
235 (t
|
|
236 (forward-char)
|
|
237 (end-of-line num)))
|
|
238 (tpu-bottom-check beg num)))
|
|
239
|
|
240 (defun tpu-previous-end-of-line (num)
|
|
241 "Move EOL upward.
|
|
242 Accepts a prefix argument for the number of lines to move."
|
|
243 (interactive "p")
|
185
|
244 (setq zmacs-region-stays t)
|
0
|
245 (let ((beg (tpu-current-line)))
|
|
246 (cond (tpu-cursor-free
|
|
247 (picture-end-of-line (- 1 num)))
|
|
248 (t
|
|
249 (end-of-line (- 1 num))))
|
|
250 (tpu-top-check beg num)))
|
|
251
|
|
252 (defun tpu-current-end-of-line nil
|
|
253 "Move point to end of current line."
|
|
254 (interactive)
|
185
|
255 (setq zmacs-region-stays t)
|
0
|
256 (let ((beg (point)))
|
|
257 (if tpu-cursor-free (picture-end-of-line) (end-of-line))
|
|
258 (if (= beg (point)) (message "You are already at the end of a line."))))
|
|
259
|
|
260 (defun tpu-forward-line (num)
|
|
261 "Move to beginning of next line.
|
|
262 Prefix argument serves as a repeat count."
|
|
263 (interactive "p")
|
|
264 (let ((beg (tpu-current-line)))
|
|
265 (next-line-internal num)
|
|
266 (tpu-bottom-check beg num)
|
|
267 (beginning-of-line)))
|
|
268
|
|
269 (defun tpu-backward-line (num)
|
|
270 "Move to beginning of previous line.
|
|
271 Prefix argument serves as repeat count."
|
|
272 (interactive "p")
|
185
|
273 (setq zmacs-region-stays t)
|
0
|
274 (let ((beg (tpu-current-line)))
|
72
|
275 (or (bolp) (>= 0 num) (setq num (- num 1)))
|
0
|
276 (next-line-internal (- num))
|
|
277 (tpu-top-check beg num)
|
|
278 (beginning-of-line)))
|
|
279
|
|
280
|
|
281 ;;; Movement by paragraph
|
|
282
|
|
283 (defun tpu-paragraph (num)
|
|
284 "Move to the next paragraph in the current direction.
|
|
285 A repeat count means move that many paragraphs."
|
|
286 (interactive "p")
|
185
|
287 (setq zmacs-region-stays t)
|
0
|
288 (let* ((left nil)
|
|
289 (beg (tpu-current-line))
|
|
290 (height (window-height))
|
|
291 (top-percent
|
|
292 (if (= 0 tpu-top-scroll-margin) 10 tpu-top-scroll-margin))
|
|
293 (bottom-percent
|
|
294 (if (= 0 tpu-bottom-scroll-margin) 15 tpu-bottom-scroll-margin))
|
|
295 (top-margin (/ (* height top-percent) 100))
|
|
296 (bottom-up-margin (+ 1 (/ (* height bottom-percent) 100)))
|
|
297 (bottom-margin (max beg (- height bottom-up-margin 1)))
|
|
298 (top (save-excursion (move-to-window-line top-margin) (point)))
|
|
299 (bottom (save-excursion (move-to-window-line bottom-margin) (point)))
|
|
300 (far (save-excursion
|
|
301 (goto-char bottom) (forward-line (- height 2)) (point))))
|
|
302 (cond (tpu-advance
|
|
303 (tpu-next-paragraph num)
|
|
304 (cond((> (point) far)
|
|
305 (setq left (save-excursion (forward-line height)))
|
|
306 (if (= 0 left) (recenter top-margin)
|
|
307 (recenter (- left bottom-up-margin))))
|
|
308 (t
|
|
309 (and (> (point) bottom) (recenter bottom-margin)))))
|
|
310 (t
|
|
311 (tpu-previous-paragraph num)
|
|
312 (and (< (point) top) (recenter (min beg top-margin)))))))
|
|
313
|
|
314
|
|
315 ;;; Movement by page
|
|
316
|
|
317 (defun tpu-page (num)
|
|
318 "Move to the next page in the current direction.
|
|
319 A repeat count means move that many pages."
|
|
320 (interactive "p")
|
185
|
321 (setq zmacs-region-stays t)
|
0
|
322 (let* ((left nil)
|
|
323 (beg (tpu-current-line))
|
|
324 (height (window-height))
|
|
325 (top-percent
|
|
326 (if (= 0 tpu-top-scroll-margin) 10 tpu-top-scroll-margin))
|
|
327 (bottom-percent
|
|
328 (if (= 0 tpu-bottom-scroll-margin) 15 tpu-bottom-scroll-margin))
|
|
329 (top-margin (/ (* height top-percent) 100))
|
|
330 (bottom-up-margin (+ 1 (/ (* height bottom-percent) 100)))
|
|
331 (bottom-margin (max beg (- height bottom-up-margin 1)))
|
|
332 (top (save-excursion (move-to-window-line top-margin) (point)))
|
|
333 (bottom (save-excursion (move-to-window-line bottom-margin) (point)))
|
|
334 (far (save-excursion
|
|
335 (goto-char bottom) (forward-line (- height 2)) (point))))
|
|
336 (cond (tpu-advance
|
|
337 (forward-page num)
|
|
338 (cond((> (point) far)
|
|
339 (setq left (save-excursion (forward-line height)))
|
|
340 (if (= 0 left) (recenter top-margin)
|
|
341 (recenter (- left bottom-up-margin))))
|
|
342 (t
|
|
343 (and (> (point) bottom) (recenter bottom-margin)))))
|
|
344 (t
|
|
345 (backward-page num)
|
|
346 (and (< (point) top) (recenter (min beg top-margin)))))))
|
|
347
|
|
348
|
|
349 ;;; Scrolling
|
|
350
|
|
351 (defun tpu-scroll-window-down (num)
|
|
352 "Scroll the display down to the next section.
|
|
353 A repeat count means scroll that many sections."
|
|
354 (interactive "p")
|
185
|
355 (setq zmacs-region-stays t)
|
0
|
356 (let* ((beg (tpu-current-line))
|
|
357 (height (1- (window-height)))
|
|
358 (lines (* num (/ (* height tpu-percent-scroll) 100))))
|
|
359 (next-line-internal (- lines))
|
|
360 (tpu-top-check beg lines)))
|
|
361
|
|
362 (defun tpu-scroll-window-up (num)
|
|
363 "Scroll the display up to the next section.
|
|
364 A repeat count means scroll that many sections."
|
|
365 (interactive "p")
|
185
|
366 (setq zmacs-region-stays t)
|
0
|
367 (let* ((beg (tpu-current-line))
|
|
368 (height (1- (window-height)))
|
|
369 (lines (* num (/ (* height tpu-percent-scroll) 100))))
|
|
370 (next-line-internal lines)
|
|
371 (tpu-bottom-check beg lines)))
|
|
372
|
|
373
|
|
374 ;;; Replace the TPU-edt internal search function
|
|
375
|
|
376 (defun tpu-search-internal (pat &optional quiet)
|
|
377 "Search for a string or regular expression."
|
|
378 (let* ((left nil)
|
|
379 (beg (tpu-current-line))
|
|
380 (height (window-height))
|
|
381 (top-percent
|
|
382 (if (= 0 tpu-top-scroll-margin) 10 tpu-top-scroll-margin))
|
|
383 (bottom-percent
|
|
384 (if (= 0 tpu-bottom-scroll-margin) 15 tpu-bottom-scroll-margin))
|
|
385 (top-margin (/ (* height top-percent) 100))
|
|
386 (bottom-up-margin (+ 1 (/ (* height bottom-percent) 100)))
|
|
387 (bottom-margin (max beg (- height bottom-up-margin 1)))
|
|
388 (top (save-excursion (move-to-window-line top-margin) (point)))
|
|
389 (bottom (save-excursion (move-to-window-line bottom-margin) (point)))
|
|
390 (far (save-excursion
|
|
391 (goto-char bottom) (forward-line (- height 2)) (point))))
|
|
392 (tpu-search-internal-core pat quiet)
|
|
393 (if tpu-searching-forward
|
|
394 (cond((> (point) far)
|
|
395 (setq left (save-excursion (forward-line height)))
|
|
396 (if (= 0 left) (recenter top-margin)
|
|
397 (recenter (- left bottom-up-margin))))
|
|
398 (t
|
|
399 (and (> (point) bottom) (recenter bottom-margin))))
|
|
400 (and (< (point) top) (recenter (min beg top-margin))))))
|
|
401
|
|
402
|
|
403
|
|
404 ;;; Replace the newline, newline-and-indent, and do-auto-fill functions
|
|
405
|
|
406 (or (fboundp 'tpu-old-newline)
|
|
407 (fset 'tpu-old-newline (symbol-function 'newline)))
|
|
408 (or (fboundp 'tpu-old-do-auto-fill)
|
|
409 (fset 'tpu-old-do-auto-fill (symbol-function 'do-auto-fill)))
|
|
410 (or (fboundp 'tpu-old-newline-and-indent)
|
|
411 (fset 'tpu-old-newline-and-indent (symbol-function 'newline-and-indent)))
|
|
412
|
|
413 (defun newline (&optional num)
|
|
414 "Insert a newline. With arg, insert that many newlines.
|
|
415 In Auto Fill mode, can break the preceding line if no numeric arg.
|
|
416 This is the TPU-edt version that respects the bottom scroll margin."
|
|
417 (interactive "p")
|
185
|
418 (setq zmacs-region-stays t)
|
0
|
419 (let ((beg (tpu-current-line)))
|
|
420 (or num (setq num 1))
|
|
421 (tpu-old-newline num)
|
|
422 (tpu-bottom-check beg num)))
|
|
423
|
|
424 (defun newline-and-indent nil
|
|
425 "Insert a newline, then indent according to major mode.
|
|
426 Indentation is done using the current indent-line-function.
|
|
427 In programming language modes, this is the same as TAB.
|
|
428 In some text modes, where TAB inserts a tab, this indents
|
|
429 to the specified left-margin column. This is the TPU-edt
|
|
430 version that respects the bottom scroll margin."
|
|
431 (interactive)
|
185
|
432 (setq zmacs-region-stays t)
|
0
|
433 (let ((beg (tpu-current-line)))
|
|
434 (tpu-old-newline-and-indent)
|
|
435 (tpu-bottom-check beg 1)))
|
|
436
|
|
437 (defun do-auto-fill nil
|
|
438 "TPU-edt version that respects the bottom scroll margin."
|
|
439 (let ((beg (tpu-current-line)))
|
|
440 (tpu-old-do-auto-fill)
|
|
441 (tpu-bottom-check beg 1)))
|
|
442
|
|
443
|
|
444 ;;; Function to set scroll margins
|
|
445
|
72
|
446 ;;;###autoload
|
0
|
447 (defun tpu-set-scroll-margins (top bottom)
|
|
448 "Set scroll margins."
|
|
449 (interactive
|
|
450 "sEnter top scroll margin (N lines or N%% or RETURN for current value): \
|
|
451 \nsEnter bottom scroll margin (N lines or N%% or RETURN for current value): ")
|
185
|
452 (setq zmacs-region-stays t)
|
0
|
453 ;; set top scroll margin
|
|
454 (or (string= top "")
|
|
455 (if (string= "%" (substring top -1))
|
|
456 (setq tpu-top-scroll-margin (string-to-int top))
|
|
457 (setq tpu-top-scroll-margin
|
|
458 (/ (1- (+ (* (string-to-int top) 100) (window-height)))
|
|
459 (window-height)))))
|
|
460 ;; set bottom scroll margin
|
|
461 (or (string= bottom "")
|
|
462 (if (string= "%" (substring bottom -1))
|
|
463 (setq tpu-bottom-scroll-margin (string-to-int bottom))
|
|
464 (setq tpu-bottom-scroll-margin
|
|
465 (/ (1- (+ (* (string-to-int bottom) 100) (window-height)))
|
|
466 (window-height)))))
|
|
467 ;; report scroll margin settings if running interactively
|
|
468 (and (interactive-p)
|
|
469 (message "Scroll margins set. Top = %s%%, Bottom = %s%%"
|
|
470 tpu-top-scroll-margin tpu-bottom-scroll-margin)))
|
|
471
|
|
472
|
|
473 ;;; Functions to set cursor bound or free
|
|
474
|
72
|
475 ;;;###autoload
|
0
|
476 (defun tpu-set-cursor-free nil
|
|
477 "Allow the cursor to move freely about the screen."
|
|
478 (interactive)
|
185
|
479 (setq zmacs-region-stays t)
|
0
|
480 (setq tpu-cursor-free t)
|
|
481 (substitute-key-definition 'tpu-set-cursor-free
|
|
482 'tpu-set-cursor-bound
|
|
483 GOLD-map)
|
|
484 (message "The cursor will now move freely about the screen."))
|
|
485
|
72
|
486 ;;;###autoload
|
0
|
487 (defun tpu-set-cursor-bound nil
|
|
488 "Constrain the cursor to the flow of the text."
|
|
489 (interactive)
|
185
|
490 (setq zmacs-region-stays t)
|
0
|
491 (picture-clean)
|
|
492 (setq tpu-cursor-free nil)
|
|
493 (substitute-key-definition 'tpu-set-cursor-bound
|
|
494 'tpu-set-cursor-free
|
|
495 GOLD-map)
|
|
496 (message "The cursor is now bound to the flow of your text."))
|
|
497
|
|
498 ;;; tpu-extras.el ends here
|