aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorRichard M. Stallman1991-02-28 19:32:54 +0000
committerRichard M. Stallman1991-02-28 19:32:54 +0000
commit052bdd0953f7961ecdd65ffbce6a21cb26f39501 (patch)
tree31b27854b48ee14e3c444db417997c11062a48db /lisp/emulation
parente9e56e09529697bf743c79bd45f639eb79d5abea (diff)
downloademacs-052bdd0953f7961ecdd65ffbce6a21cb26f39501.tar.gz
emacs-052bdd0953f7961ecdd65ffbce6a21cb26f39501.zip
*** empty log message ***
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/edt.el34
1 files changed, 17 insertions, 17 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el
index f980ddb3d52..5a2611d9460 100644
--- a/lisp/emulation/edt.el
+++ b/lisp/emulation/edt.el
@@ -21,16 +21,16 @@
21(require 'keypad) 21(require 'keypad)
22 22
23(defvar edt-last-deleted-lines "" 23(defvar edt-last-deleted-lines ""
24 "Last text deleted by an EDT emulation line-delete command.") 24 "Last text deleted by an EDT emulation `line-delete' command.")
25(defvar edt-last-deleted-words "" 25(defvar edt-last-deleted-words ""
26 "Last text deleted by an EDT emulation word-delete command.") 26 "Last text deleted by an EDT emulation `word-delete' command.")
27(defvar edt-last-deleted-chars "" 27(defvar edt-last-deleted-chars ""
28 "Last text deleted by an EDT emulation character-delete command.") 28 "Last text deleted by an EDT emulation `character-delete' command.")
29 29
30(defun delete-current-line (num) 30(defun delete-current-line (num)
31 "Delete one or specified number of lines after point. 31 "Delete one or specified number of lines after point.
32This includes the newline character at the end of each line. 32This includes the newline character at the end of each line.
33They are saved for the EDT undelete-lines command." 33They are saved for the EDT `undelete-lines' command."
34 (interactive "p") 34 (interactive "p")
35 (let ((beg (point))) 35 (let ((beg (point)))
36 (forward-line num) 36 (forward-line num)
@@ -43,7 +43,7 @@ They are saved for the EDT undelete-lines command."
43(defun delete-to-eol (num) 43(defun delete-to-eol (num)
44 "Delete text up to end of line. 44 "Delete text up to end of line.
45With argument, delete up to to Nth line-end past point. 45With argument, delete up to to Nth line-end past point.
46They are saved for the EDT undelete-lines command." 46They are saved for the EDT `undelete-lines' command."
47 (interactive "p") 47 (interactive "p")
48 (let ((beg (point))) 48 (let ((beg (point)))
49 (forward-char 1) 49 (forward-char 1)
@@ -54,7 +54,7 @@ They are saved for the EDT undelete-lines command."
54 54
55(defun delete-current-word (num) 55(defun delete-current-word (num)
56 "Delete one or specified number of words after point. 56 "Delete one or specified number of words after point.
57They are saved for the EDT undelete-words command." 57They are saved for the EDT `undelete-words' command."
58 (interactive "p") 58 (interactive "p")
59 (let ((beg (point))) 59 (let ((beg (point)))
60 (forward-word num) 60 (forward-word num)
@@ -64,7 +64,7 @@ They are saved for the EDT undelete-words command."
64 64
65(defun edt-delete-previous-word (num) 65(defun edt-delete-previous-word (num)
66 "Delete one or specified number of words before point. 66 "Delete one or specified number of words before point.
67They are saved for the EDT undelete-words command." 67They are saved for the EDT `undelete-words' command."
68 (interactive "p") 68 (interactive "p")
69 (let ((beg (point))) 69 (let ((beg (point)))
70 (forward-word (- num)) 70 (forward-word (- num))
@@ -74,7 +74,7 @@ They are saved for the EDT undelete-words command."
74 74
75(defun delete-current-char (num) 75(defun delete-current-char (num)
76 "Delete one or specified number of characters after point. 76 "Delete one or specified number of characters after point.
77They are saved for the EDT undelete-chars command." 77They are saved for the EDT `undelete-chars' command."
78 (interactive "p") 78 (interactive "p")
79 (setq edt-last-deleted-chars 79 (setq edt-last-deleted-chars
80 (buffer-substring (point) (min (point-max) (+ (point) num)))) 80 (buffer-substring (point) (min (point-max) (+ (point) num))))
@@ -82,24 +82,24 @@ They are saved for the EDT undelete-chars command."
82 82
83(defun delete-previous-char (num) 83(defun delete-previous-char (num)
84 "Delete one or specified number of characters before point. 84 "Delete one or specified number of characters before point.
85They are saved for the EDT undelete-chars command." 85They are saved for the EDT `undelete-chars' command."
86 (interactive "p") 86 (interactive "p")
87 (setq edt-last-deleted-chars 87 (setq edt-last-deleted-chars
88 (buffer-substring (max (point-min) (- (point) num)) (point))) 88 (buffer-substring (max (point-min) (- (point) num)) (point)))
89 (delete-region (max (point-min) (- (point) num)) (point))) 89 (delete-region (max (point-min) (- (point) num)) (point)))
90 90
91(defun undelete-lines () 91(defun undelete-lines ()
92 "Yank lines deleted by last EDT line-deletion command." 92 "Yank lines deleted by last EDT `line-delete' command."
93 (interactive) 93 (interactive)
94 (insert edt-last-deleted-lines)) 94 (insert edt-last-deleted-lines))
95 95
96(defun undelete-words () 96(defun undelete-words ()
97 "Yank words deleted by last EDT word-deletion command." 97 "Yank words deleted by last EDT `word-delete' command."
98 (interactive) 98 (interactive)
99 (insert edt-last-deleted-words)) 99 (insert edt-last-deleted-words))
100 100
101(defun undelete-chars () 101(defun undelete-chars ()
102 "Yank characters deleted by last EDT character-deletion command." 102 "Yank characters deleted by last EDT `character-delete' command."
103 (interactive) 103 (interactive)
104 (insert edt-last-deleted-chars)) 104 (insert edt-last-deleted-chars))
105 105
@@ -185,7 +185,7 @@ Accepts a prefix argument for the number of paragraphs."
185 (goto-char (/ (* (point-max) perc) 100)))) 185 (goto-char (/ (* (point-max) perc) 100))))
186 186
187(defun update-mode-line () 187(defun update-mode-line ()
188 "Make sure mode-line in the current buffer reflects all changes." 188 "Ensure mode-line reflects all changes."
189 (set-buffer-modified-p (buffer-modified-p)) 189 (set-buffer-modified-p (buffer-modified-p))
190 (sit-for 0)) 190 (sit-for 0))
191 191
@@ -264,11 +264,11 @@ and mark-paragraph for other modes."
264 264
265;;; Key Bindings 265;;; Key Bindings
266(defun edt-emulation-on () 266(defun edt-emulation-on ()
267 "Begin emulating DEC's EDT editor. 267 "Emulate DEC's EDT editor.
268Certain keys are rebound; including nearly all keypad keys. 268Note that many keys are rebound; including nearly all keypad keys.
269Use \\[edt-emulation-off] to undo all rebindings except the keypad keys. 269Use \\[edt-emulation-off] to undo all rebindings except the keypad keys.
270Note that this function does not work if called directly from the .emacs file. 270Note that this function does not work if called directly from the .emacs file.
271Instead, the .emacs file should do (setq term-setup-hook 'edt-emulation-on) 271Instead, the .emacs file should do \"(setq term-setup-hook 'edt-emulation-on)\"
272Then this function will be called at the time when it will work." 272Then this function will be called at the time when it will work."
273 (interactive) 273 (interactive)
274 (advance-direction) 274 (advance-direction)
@@ -315,7 +315,7 @@ The keys redefined by \\[edt-emulation-on] are given their old definitions."
315(fset 'GOLD-prefix GOLD-map) 315(fset 'GOLD-prefix GOLD-map)
316 316
317(defvar GOLD-map (make-keymap) 317(defvar GOLD-map (make-keymap)
318 "GOLD-map maps the function keys on the VT100 keyboard preceeded 318 "`GOLD-map' maps the function keys on the VT100 keyboard preceeded
319by the PF1 key. GOLD is the ASCII the 7-bit escape sequence <ESC>OP.") 319by the PF1 key. GOLD is the ASCII the 7-bit escape sequence <ESC>OP.")
320 320
321(defun define-keypad-key (keymap function-keymap-slot definition) 321(defun define-keypad-key (keymap function-keymap-slot definition)