Mercurial > emacs
comparison lisp/emacs-lisp/lisp-mode.el @ 5103:40b068fb4c37
(lisp-eval-defun): Renamed from lisp-send-defun.
(lisp-mode-map): Use new name lisp-eval-defun.
Move run-lisp to C-x C-z.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 22 Nov 1993 00:41:35 +0000 |
parents | 45169f86d3a4 |
children | 4f76564fc2cd |
comparison
equal
deleted
inserted
replaced
5102:e035ea595cf6 | 5103:40b068fb4c37 |
---|---|
149 | 149 |
150 (if lisp-mode-map | 150 (if lisp-mode-map |
151 () | 151 () |
152 (setq lisp-mode-map | 152 (setq lisp-mode-map |
153 (nconc (make-sparse-keymap) shared-lisp-mode-map)) | 153 (nconc (make-sparse-keymap) shared-lisp-mode-map)) |
154 (define-key lisp-mode-map "\e\C-x" 'lisp-send-defun) | 154 (define-key lisp-mode-map "\e\C-x" 'lisp-eval-defun) |
155 (define-key lisp-mode-map "\C-c\C-l" 'run-lisp)) | 155 (define-key lisp-mode-map "\C-c\C-z" 'run-lisp)) |
156 | 156 |
157 (defun lisp-mode () | 157 (defun lisp-mode () |
158 "Major mode for editing Lisp code for Lisps other than GNU Emacs Lisp. | 158 "Major mode for editing Lisp code for Lisps other than GNU Emacs Lisp. |
159 Commands: | 159 Commands: |
160 Delete converts tabs to spaces as it moves back. | 160 Delete converts tabs to spaces as it moves back. |
173 (lisp-mode-variables t) | 173 (lisp-mode-variables t) |
174 (set-syntax-table lisp-mode-syntax-table) | 174 (set-syntax-table lisp-mode-syntax-table) |
175 (run-hooks 'lisp-mode-hook)) | 175 (run-hooks 'lisp-mode-hook)) |
176 | 176 |
177 ;; This will do unless shell.el is loaded. | 177 ;; This will do unless shell.el is loaded. |
178 (defun lisp-send-defun nil | 178 (defun lisp-eval-defun nil |
179 "Send the current defun to the Lisp process made by \\[run-lisp]." | 179 "Send the current defun to the Lisp process made by \\[run-lisp]." |
180 (interactive) | 180 (interactive) |
181 (error "Process lisp does not exist")) | 181 (error "Process lisp does not exist")) |
182 | 182 |
183 (defvar lisp-interaction-mode-map () | 183 (defvar lisp-interaction-mode-map () |