diff options
| author | Richard M. Stallman | 1993-03-28 22:35:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-03-28 22:35:42 +0000 |
| commit | bfb0cf0c94584fdf9764b2193f34aa3228239388 (patch) | |
| tree | 51403be4afc1bade9eb038423b993b6bbb0fbd0f | |
| parent | b3b8e915784908ca28639e48158018dec9746de4 (diff) | |
| download | emacs-bfb0cf0c94584fdf9764b2193f34aa3228239388.tar.gz emacs-bfb0cf0c94584fdf9764b2193f34aa3228239388.zip | |
Undo previous change.
| -rw-r--r-- | lisp/gosmacs.el | 19 | ||||
| -rw-r--r-- | lisp/novice.el | 9 |
2 files changed, 1 insertions, 27 deletions
diff --git a/lisp/gosmacs.el b/lisp/gosmacs.el index 359ea1cc344..93bbbaa5b80 100644 --- a/lisp/gosmacs.el +++ b/lisp/gosmacs.el | |||
| @@ -46,7 +46,7 @@ Use \\[set-gnu-bindings] to restore previous global bindings." | |||
| 46 | ("\C-x\C-n" next-error) | 46 | ("\C-x\C-n" next-error) |
| 47 | ("\C-x\C-o" switch-to-buffer) | 47 | ("\C-x\C-o" switch-to-buffer) |
| 48 | ("\C-x\C-r" insert-file) | 48 | ("\C-x\C-r" insert-file) |
| 49 | ("\C-x\C-u" undo-with-space) | 49 | ("\C-x\C-u" undo) |
| 50 | ("\C-x\C-v" find-file-other-window) | 50 | ("\C-x\C-v" find-file-other-window) |
| 51 | ("\C-x\C-z" shrink-window) | 51 | ("\C-x\C-z" shrink-window) |
| 52 | ("\C-x!" shell-command) | 52 | ("\C-x!" shell-command) |
| @@ -114,21 +114,4 @@ From the window at the lower right corner, select the one at the upper left." | |||
| 114 | (interactive) | 114 | (interactive) |
| 115 | (recenter 0)) | 115 | (recenter 0)) |
| 116 | 116 | ||
| 117 | (defun undo-with-space () | ||
| 118 | "Enter an undo loop that continues while you type SPC characters. Exit | ||
| 119 | with ESC; any other character exits and begins a new command." | ||
| 120 | (interactive) | ||
| 121 | (undo-start) | ||
| 122 | (undo-more 1) | ||
| 123 | (message "Hit <space> to undo more") | ||
| 124 | (let ((event 32)) | ||
| 125 | (while (equal event 32) | ||
| 126 | (message "undoing..") | ||
| 127 | (undo-more 1) | ||
| 128 | (message "Hit <space> to undo more") | ||
| 129 | (setq event (read-event))) | ||
| 130 | (message "Finished undoing.") | ||
| 131 | (if (not (equal event 27)) | ||
| 132 | (setq unread-command-event event)))) | ||
| 133 | |||
| 134 | ;;; gosmacs.el ends here | 117 | ;;; gosmacs.el ends here |
diff --git a/lisp/novice.el b/lisp/novice.el index 28ba34d206f..2ddbbac3250 100644 --- a/lisp/novice.el +++ b/lisp/novice.el | |||
| @@ -120,13 +120,4 @@ to future sessions." | |||
| 120 | (insert "(put '" (symbol-name command) " 'disabled t)\n") | 120 | (insert "(put '" (symbol-name command) " 'disabled t)\n") |
| 121 | (save-buffer))) | 121 | (save-buffer))) |
| 122 | 122 | ||
| 123 | ;;;###autoload | ||
| 124 | (defun enable-and-notify (&rest args) | ||
| 125 | "A novice hook for non-novices." | ||
| 126 | (put this-command 'disabled nil) | ||
| 127 | (message "You typed %s. %s was disabled. It's enabled now." | ||
| 128 | (key-description (this-command-keys)) this-command) | ||
| 129 | (sit-for 0) | ||
| 130 | (call-interactively this-command)) | ||
| 131 | |||
| 132 | ;;; novice.el ends here | 123 | ;;; novice.el ends here |