diff options
| author | Richard M. Stallman | 1992-10-08 06:44:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1992-10-08 06:44:43 +0000 |
| commit | 67f3e2fdf0f56b27821b328c3573fa6ecfd0ba1b (patch) | |
| tree | 2cdb09213e17848498f65d6a19264b17838be593 | |
| parent | 92ad69b62e62455ca7dfd42d141fce3f15ff3fcc (diff) | |
| download | emacs-67f3e2fdf0f56b27821b328c3573fa6ecfd0ba1b.tar.gz emacs-67f3e2fdf0f56b27821b328c3573fa6ecfd0ba1b.zip | |
(inferior-scheme-filter-regexp):
Move definition of this var up before first use.
(scheme-buffer): Define variable.
| -rw-r--r-- | lisp/cmuscheme.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el index 15795ee5714..6d39774822f 100644 --- a/lisp/cmuscheme.el +++ b/lisp/cmuscheme.el | |||
| @@ -136,6 +136,8 @@ | |||
| 136 | (define-key scheme-mode-map "\C-c\C-l" 'scheme-load-file) | 136 | (define-key scheme-mode-map "\C-c\C-l" 'scheme-load-file) |
| 137 | (define-key scheme-mode-map "\C-c\C-k" 'scheme-compile-file) ;k for "kompile" | 137 | (define-key scheme-mode-map "\C-c\C-k" 'scheme-compile-file) ;k for "kompile" |
| 138 | 138 | ||
| 139 | (defvar scheme-buffer) | ||
| 140 | |||
| 139 | (defun inferior-scheme-mode () | 141 | (defun inferior-scheme-mode () |
| 140 | "Major mode for interacting with an inferior Scheme process. | 142 | "Major mode for interacting with an inferior Scheme process. |
| 141 | 143 | ||
| @@ -187,14 +189,14 @@ to continue it." | |||
| 187 | (setq comint-get-old-input (function scheme-get-old-input)) | 189 | (setq comint-get-old-input (function scheme-get-old-input)) |
| 188 | (run-hooks 'inferior-scheme-mode-hook)) | 190 | (run-hooks 'inferior-scheme-mode-hook)) |
| 189 | 191 | ||
| 190 | (defun scheme-input-filter (str) | ||
| 191 | "Don't save anything matching inferior-scheme-filter-regexp" | ||
| 192 | (not (string-match inferior-scheme-filter-regexp str))) | ||
| 193 | |||
| 194 | (defvar inferior-scheme-filter-regexp "\\`\\s *\\S ?\\S ?\\s *\\'" | 192 | (defvar inferior-scheme-filter-regexp "\\`\\s *\\S ?\\S ?\\s *\\'" |
| 195 | "*Input matching this regexp are not saved on the history list. | 193 | "*Input matching this regexp are not saved on the history list. |
| 196 | Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.") | 194 | Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.") |
| 197 | 195 | ||
| 196 | (defun scheme-input-filter (str) | ||
| 197 | "Don't save anything matching inferior-scheme-filter-regexp" | ||
| 198 | (not (string-match inferior-scheme-filter-regexp str))) | ||
| 199 | |||
| 198 | (defun scheme-get-old-input () | 200 | (defun scheme-get-old-input () |
| 199 | "Snarf the sexp ending at point" | 201 | "Snarf the sexp ending at point" |
| 200 | (save-excursion | 202 | (save-excursion |