aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-10-08 06:44:58 +0000
committerRichard M. Stallman1992-10-08 06:44:58 +0000
commit7b02ee3c41fdbf75c122ad96099e7b6407d9c5ff (patch)
tree549dbb1d7a254b8c6a3bd15be928a8f92872c965
parent67f3e2fdf0f56b27821b328c3573fa6ecfd0ba1b (diff)
downloademacs-7b02ee3c41fdbf75c122ad96099e7b6407d9c5ff.tar.gz
emacs-7b02ee3c41fdbf75c122ad96099e7b6407d9c5ff.zip
(cmulisp-mode): Eliminate compatibility code calling
lisp-mode-variables with no arg. (cmulisp-mode-map): Use shared-lisp-mode-map as tail. (cmulisp-args-to-list): Fix typo in recursive call. (cmulisp-buffer): Define variable.
-rw-r--r--lisp/cmulisp.el11
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/cmulisp.el b/lisp/cmulisp.el
index 11fc14af064..8a406e7e85f 100644
--- a/lisp/cmulisp.el
+++ b/lisp/cmulisp.el
@@ -135,8 +135,8 @@ mode. Default is whitespace followed by 0 or 1 single-letter :keyword
135(defvar cmulisp-mode-map nil) 135(defvar cmulisp-mode-map nil)
136(cond ((not cmulisp-mode-map) 136(cond ((not cmulisp-mode-map)
137 (setq cmulisp-mode-map 137 (setq cmulisp-mode-map
138 (full-copy-sparse-keymap comint-mode-map)) 138 (nconc (full-copy-sparse-keymap comint-mode-map)
139 (lisp-mode-commands cmulisp-mode-map) 139 shared-lisp-mode-map))
140 (define-key cmulisp-mode-map "\C-x\C-e" 'lisp-eval-last-sexp) 140 (define-key cmulisp-mode-map "\C-x\C-e" 'lisp-eval-last-sexp)
141 (define-key cmulisp-mode-map "\C-c\C-l" 'lisp-load-file) 141 (define-key cmulisp-mode-map "\C-c\C-l" 'lisp-load-file)
142 (define-key cmulisp-mode-map "\C-c\C-k" 'lisp-compile-file) 142 (define-key cmulisp-mode-map "\C-c\C-k" 'lisp-compile-file)
@@ -160,6 +160,7 @@ mode. Default is whitespace followed by 0 or 1 single-letter :keyword
160(define-key lisp-mode-map "\C-c\C-f" 'lisp-show-function-documentation) 160(define-key lisp-mode-map "\C-c\C-f" 'lisp-show-function-documentation)
161(define-key lisp-mode-map "\C-c\C-v" 'lisp-show-variable-documentation) 161(define-key lisp-mode-map "\C-c\C-v" 'lisp-show-variable-documentation)
162 162
163(defvar cmulisp-buffer)
163 164
164;;; This function exists for backwards compatibility. 165;;; This function exists for backwards compatibility.
165;;; Previous versions of this package bound commands to C-c <letter> 166;;; Previous versions of this package bound commands to C-c <letter>
@@ -266,9 +267,7 @@ to continue it."
266 (setq major-mode 'cmulisp-mode) 267 (setq major-mode 'cmulisp-mode)
267 (setq mode-name "CMU Lisp") 268 (setq mode-name "CMU Lisp")
268 (setq mode-line-process '(": %s")) 269 (setq mode-line-process '(": %s"))
269 (if (string-match "^18.4" emacs-version) ; hack. 270 (lisp-mode-variables t)
270 (lisp-mode-variables) ; This is right for 18.49
271 (lisp-mode-variables t)) ; This is right for 18.50
272 (use-local-map cmulisp-mode-map) ;c-c c-k for "kompile" file 271 (use-local-map cmulisp-mode-map) ;c-c c-k for "kompile" file
273 (setq comint-get-old-input (function lisp-get-old-input)) 272 (setq comint-get-old-input (function lisp-get-old-input))
274 (setq comint-input-filter (function lisp-input-filter)) 273 (setq comint-input-filter (function lisp-input-filter))
@@ -317,7 +316,7 @@ comint-mode-hook is run).
317 (t (let ((pos (string-match "[^ \t]" string))) 316 (t (let ((pos (string-match "[^ \t]" string)))
318 (if (null pos) 317 (if (null pos)
319 nil 318 nil
320 (cmulsip-args-to-list (substring string pos 319 (cmulisp-args-to-list (substring string pos
321 (length string))))))))) 320 (length string)))))))))
322 321
323(defun lisp-eval-region (start end &optional and-go) 322(defun lisp-eval-region (start end &optional and-go)