comparison lisp/emulation/tpu-edt.el @ 73743:3d9ebd99f905

(tpu-help-text, tpu-save-all-buffers-kill-emacs, tpu-emacs-replace, tpu-reset-control-keys): Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Mon, 06 Nov 2006 02:34:27 +0000
parents 067115a6e738
children 1d4b1a32fd66 02cf29720f31
comparison
equal deleted inserted replaced
73742:7c812bf3912c 73743:3d9ebd99f905
430 430
431 (defvar GOLD-map 431 (defvar GOLD-map
432 (let ((map (make-keymap))) 432 (let ((map (make-keymap)))
433 (define-key map "\e[" GOLD-CSI-map) ; GOLD-CSI map 433 (define-key map "\e[" GOLD-CSI-map) ; GOLD-CSI map
434 (define-key map "\eO" GOLD-SS3-map) ; GOLD-SS3 map 434 (define-key map "\eO" GOLD-SS3-map) ; GOLD-SS3 map
435 ;; 435 ;;
436 (define-key map "\C-A" 'tpu-toggle-overwrite-mode) ; ^A 436 (define-key map "\C-A" 'tpu-toggle-overwrite-mode) ; ^A
437 (define-key map "\C-B" 'nil) ; ^B 437 (define-key map "\C-B" 'nil) ; ^B
438 (define-key map "\C-C" 'nil) ; ^C 438 (define-key map "\C-C" 'nil) ; ^C
439 (define-key map "\C-D" 'nil) ; ^D 439 (define-key map "\C-D" 'nil) ; ^D
440 (define-key map "\C-E" 'nil) ; ^E 440 (define-key map "\C-E" 'nil) ; ^E
555 GOLD is the ASCII 7-bit escape sequence <ESC>OP.") 555 GOLD is the ASCII 7-bit escape sequence <ESC>OP.")
556 556
557 (defvar SS3-map 557 (defvar SS3-map
558 (let ((map (make-sparse-keymap))) 558 (let ((map (make-sparse-keymap)))
559 (define-key map "P" GOLD-map) ; GOLD map 559 (define-key map "P" GOLD-map) ; GOLD map
560 ;; 560 ;;
561 (define-key map "A" 'tpu-previous-line) ; up 561 (define-key map "A" 'tpu-previous-line) ; up
562 (define-key map "B" 'tpu-next-line) ; down 562 (define-key map "B" 'tpu-next-line) ; down
563 (define-key map "C" 'tpu-forward-char) ; right 563 (define-key map "C" 'tpu-forward-char) ; right
564 (define-key map "D" 'tpu-backward-char) ; left 564 (define-key map "D" 'tpu-backward-char) ; left
565 565
1139 O Occur - show following lines containing REGEXP 1139 O Occur - show following lines containing REGEXP
1140 Q Quit - exit without saving anything 1140 Q Quit - exit without saving anything
1141 R Toggle rectangular mode for remove and insert 1141 R Toggle rectangular mode for remove and insert
1142 S Search and substitute - line mode REPLACE command 1142 S Search and substitute - line mode REPLACE command
1143 1143
1144 ^T Toggle control key bindings between TPU and emacs 1144 ^T Toggle control key bindings between TPU and Emacs
1145 U Undo - undo the last edit 1145 U Undo - undo the last edit
1146 W Write - save current buffer 1146 W Write - save current buffer
1147 X Exit - save all modified buffers and exit 1147 X Exit - save all modified buffers and exit
1148 1148
1149 \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\f 1149 \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\f
1290 (interactive) 1290 (interactive)
1291 (if tpu-kill-buffers-silently (set-buffer-modified-p nil)) 1291 (if tpu-kill-buffers-silently (set-buffer-modified-p nil))
1292 (kill-buffer (current-buffer))) 1292 (kill-buffer (current-buffer)))
1293 1293
1294 (defun tpu-save-all-buffers-kill-emacs nil 1294 (defun tpu-save-all-buffers-kill-emacs nil
1295 "Save all buffers and exit emacs." 1295 "Save all buffers and exit Emacs."
1296 (interactive) 1296 (interactive)
1297 (let ((delete-old-versions t)) 1297 (let ((delete-old-versions t))
1298 (save-buffers-kill-emacs t))) 1298 (save-buffers-kill-emacs t)))
1299 1299
1300 (defun tpu-write-current-buffers nil 1300 (defun tpu-write-current-buffers nil
1850 1850
1851 (move-overlay tpu-replace-overlay 1 1 (current-buffer)) 1851 (move-overlay tpu-replace-overlay 1 1 (current-buffer))
1852 (message "Replaced %s occurrence%s." strings (if (not (= 1 strings)) "s" "")))) 1852 (message "Replaced %s occurrence%s." strings (if (not (= 1 strings)) "s" ""))))
1853 1853
1854 (defun tpu-emacs-replace (&optional dont-ask) 1854 (defun tpu-emacs-replace (&optional dont-ask)
1855 "A TPU-edt interface to the emacs replace functions. If TPU-edt is 1855 "A TPU-edt interface to the Emacs replace functions. If TPU-edt is
1856 currently in regular expression mode, the emacs regular expression 1856 currently in regular expression mode, the Emacs regular expression
1857 replace functions are used. If an argument is supplied, replacements 1857 replace functions are used. If an argument is supplied, replacements
1858 are performed without asking. Only works in forward direction." 1858 are performed without asking. Only works in forward direction."
1859 (interactive "P") 1859 (interactive "P")
1860 (cond (dont-ask 1860 (cond (dont-ask
1861 (setq current-prefix-arg nil) 1861 (setq current-prefix-arg nil)
2283 (define-key global-map "\C-w" 'redraw-display) ; ^W 2283 (define-key global-map "\C-w" 'redraw-display) ; ^W
2284 (define-key global-map "\C-z" 'tpu-exit) ; ^Z 2284 (define-key global-map "\C-z" 'tpu-exit) ; ^Z
2285 (setq tpu-control-keys t)) 2285 (setq tpu-control-keys t))
2286 2286
2287 (defun tpu-reset-control-keys (tpu-style) 2287 (defun tpu-reset-control-keys (tpu-style)
2288 "Set control keys to TPU or emacs style functions." 2288 "Set control keys to TPU or Emacs style functions."
2289 (let* ((tpu (and tpu-style (not tpu-control-keys))) 2289 (let* ((tpu (and tpu-style (not tpu-control-keys)))
2290 (emacs (and (not tpu-style) tpu-control-keys)) 2290 (emacs (and (not tpu-style) tpu-control-keys))
2291 (doit (or tpu emacs))) 2291 (doit (or tpu emacs)))
2292 (cond (doit 2292 (cond (doit
2293 (if emacs (setq tpu-global-map (copy-keymap global-map))) 2293 (if emacs (setq tpu-global-map (copy-keymap global-map)))