aboutsummaryrefslogtreecommitdiffstats
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
parente9e56e09529697bf743c79bd45f639eb79d5abea (diff)
downloademacs-052bdd0953f7961ecdd65ffbce6a21cb26f39501.tar.gz
emacs-052bdd0953f7961ecdd65ffbce6a21cb26f39501.zip
*** empty log message ***
-rw-r--r--lisp/edmacro.el16
-rw-r--r--lisp/emulation/edt.el34
2 files changed, 25 insertions, 25 deletions
diff --git a/lisp/edmacro.el b/lisp/edmacro.el
index ba4ca94d317..a59edee69a0 100644
--- a/lisp/edmacro.el
+++ b/lisp/edmacro.el
@@ -35,8 +35,8 @@
35 prefix buffer hook)) 35 prefix buffer hook))
36 36
37(defun edit-kbd-macro (cmd &optional prefix buffer hook in-hook out-hook) 37(defun edit-kbd-macro (cmd &optional prefix buffer hook in-hook out-hook)
38 "Edit a keyboard macro which has been assigned a name by name-last-kbd-macro. 38 "Edit a keyboard macro which has been given a name by `name-last-kbd-macro'.
39\(See also edit-last-kbd-macro.)" 39\(See also `edit-last-kbd-macro'.)"
40 (interactive "CCommand name: \nP") 40 (interactive "CCommand name: \nP")
41 (and cmd 41 (and cmd
42 (edmacro-edit-macro (if in-hook 42 (edmacro-edit-macro (if in-hook
@@ -51,7 +51,7 @@
51 51
52(defun read-kbd-macro (start end) 52(defun read-kbd-macro (start end)
53 "Read the region as a keyboard macro definition. 53 "Read the region as a keyboard macro definition.
54The region is interpreted as spelled-out keystrokes, e.g., `M-x abc RET'. 54The region is interpreted as spelled-out keystrokes, e.g., \"M-x abc RET\".
55The resulting macro is installed as the \"current\" keyboard macro. 55The resulting macro is installed as the \"current\" keyboard macro.
56 56
57Symbols: RET, SPC, TAB, DEL, LFD, NUL; C-key; M-key. (Must be uppercase.) 57Symbols: RET, SPC, TAB, DEL, LFD, NUL; C-key; M-key. (Must be uppercase.)
@@ -597,7 +597,7 @@ Symbols: RET, SPC, TAB, DEL, LFD, NUL; C-key; M-key. (Must be uppercase.)
597 (boundp 'edmacro-replace-argument) 597 (boundp 'edmacro-replace-argument)
598 (boundp 'edmacro-finish-hook) 598 (boundp 'edmacro-finish-hook)
599 (eq major-mode 'edmacro-mode)) 599 (eq major-mode 'edmacro-mode))
600 (error "This command is valid only in buffers created by edit-kbd-macro.")) 600 (error "This command is valid only in buffers created by `edit-kbd-macro'."))
601 (let ((buf (current-buffer)) 601 (let ((buf (current-buffer))
602 (str (buffer-string)) 602 (str (buffer-string))
603 (func edmacro-replace-function) 603 (func edmacro-replace-function)
@@ -623,16 +623,16 @@ Symbols: RET, SPC, TAB, DEL, LFD, NUL; C-key; M-key. (Must be uppercase.)
623 (funcall hook arg)))) 623 (funcall hook arg))))
624 624
625(defun edmacro-mode () 625(defun edmacro-mode ()
626 "Keyboard Macro Editing mode. Press C-c C-c to save and exit. 626 "\\<edmacro-mode-map>Keyboard Macro Editing mode. Press \\[edmacro-finish-edit] to save and exit.
627To abort the edit, just kill this buffer with C-x k RET. 627To abort the edit, just kill this buffer with \\[kill-buffer] RET.
628 628
629The keyboard macro is represented as a series of M-x style command names. 629The keyboard macro is represented as a series of M-x style command names.
630Keystrokes which do not correspond to simple M-x commands are written as 630Keystrokes which do not correspond to simple M-x commands are written as
631\"type\" commands. When you press C-c C-c, edmacro converts each command 631\"type\" commands. When you press \\[edmacro-finish-edit], edmacro converts each command
632back into a suitable keystroke sequence; \"type\" commands are converted 632back into a suitable keystroke sequence; \"type\" commands are converted
633directly back into keystrokes." 633directly back into keystrokes."
634 (interactive) 634 (interactive)
635 (error "This mode can be enabled only by edit-kbd-macro or edit-last-kbd-macro.")) 635 (error "This mode can be enabled only by `edit-kbd-macro' or `edit-last-kbd-macro'."))
636(put 'edmacro-mode 'mode-class 'special) 636(put 'edmacro-mode 'mode-class 'special)
637 637
638(if (boundp 'edmacro-mode-map) () 638(if (boundp 'edmacro-mode-map) ()
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)