diff options
| author | Dave Love | 2000-03-26 16:36:17 +0000 |
|---|---|---|
| committer | Dave Love | 2000-03-26 16:36:17 +0000 |
| commit | 5e871da0a62f277ad8170956cdb0ad65af386dc2 (patch) | |
| tree | 2285d0cfa763abb4928f94c1977c2a55e3ebb4f0 | |
| parent | 19d1bc27d323a55ea6d57d6d13786e5bc5787f73 (diff) | |
| download | emacs-5e871da0a62f277ad8170956cdb0ad65af386dc2.tar.gz emacs-5e871da0a62f277ad8170956cdb0ad65af386dc2.zip | |
(lisp-eval-defun): Make arglist compatible with inf-lisp version.
(eval-defun-1): Fix custom-declare-variable case.
| -rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 6905fcb39da..718cc35d06a 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el | |||
| @@ -278,8 +278,8 @@ if that value is non-nil." | |||
| 278 | (set-syntax-table lisp-mode-syntax-table) | 278 | (set-syntax-table lisp-mode-syntax-table) |
| 279 | (run-hooks 'lisp-mode-hook)) | 279 | (run-hooks 'lisp-mode-hook)) |
| 280 | 280 | ||
| 281 | ;; This will do unless shell.el is loaded. | 281 | ;; This will do unless inf-lisp.el is loaded. |
| 282 | (defun lisp-eval-defun nil | 282 | (defun lisp-eval-defun (&optional and-go) |
| 283 | "Send the current defun to the Lisp process made by \\[run-lisp]." | 283 | "Send the current defun to the Lisp process made by \\[run-lisp]." |
| 284 | (interactive) | 284 | (interactive) |
| 285 | (error "Process lisp does not exist")) | 285 | (error "Process lisp does not exist")) |
| @@ -395,11 +395,12 @@ With argument, print output into current buffer." | |||
| 395 | (cdr-safe (cdr-safe form))) | 395 | (cdr-safe (cdr-safe form))) |
| 396 | ;; Force variable to be bound. | 396 | ;; Force variable to be bound. |
| 397 | (cons 'defconst (cdr form))) | 397 | (cons 'defconst (cdr form))) |
| 398 | ;; `defcustom' is now macroexpanded to `custom-declare-variable'. | 398 | ;; `defcustom' is now macroexpanded to |
| 399 | ;; `custom-declare-variable' with a quoted value arg. | ||
| 399 | ((and (eq (car form) 'custom-declare-variable) | 400 | ((and (eq (car form) 'custom-declare-variable) |
| 400 | (default-boundp (eval (nth 1 form)))) | 401 | (default-boundp (eval (nth 1 form)))) |
| 401 | ;; Force variable to be bound. | 402 | ;; Force variable to be bound. |
| 402 | (set-default (eval (nth 1 form)) (eval (nth 2 form))) | 403 | (set-default (eval (nth 1 form)) (eval (nth 1 (nth 2 form)))) |
| 403 | form) | 404 | form) |
| 404 | ((eq (car form) 'progn) | 405 | ((eq (car form) 'progn) |
| 405 | (cons 'progn (mapcar 'eval-defun-1 (cdr form)))) | 406 | (cons 'progn (mapcar 'eval-defun-1 (cdr form)))) |