diff options
| author | Dave Love | 1999-10-16 21:30:20 +0000 |
|---|---|---|
| committer | Dave Love | 1999-10-16 21:30:20 +0000 |
| commit | faa5fa58af50b4a3818c83f731657f2712e4ddb5 (patch) | |
| tree | 0f5f95b9a9f41cf4548933164ec2510b79fa0c30 /lisp | |
| parent | 3f6f75085a43a5ba3d5aaec976fc1a0d644ff8ce (diff) | |
| download | emacs-faa5fa58af50b4a3818c83f731657f2712e4ddb5.tar.gz emacs-faa5fa58af50b4a3818c83f731657f2712e4ddb5.zip | |
(edebug-install-read-eval-functions)
(edebug-uninstall-read-eval-functions): Use load-read-function,
avoiding elisp-eval.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d0abe6fe5df..424274a2aee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 1999-10-16 Dave Love <d.love@dl.ac.uk> | ||
| 2 | |||
| 3 | * emacs-lisp/edebug.el (edebug-install-read-eval-functions) | ||
| 4 | (edebug-uninstall-read-eval-functions): Use load-read-function, | ||
| 5 | avoiding elisp-eval. | ||
| 6 | |||
| 1 | 1999-10-16 Sam Steingold <sds@ksp.com> | 7 | 1999-10-16 Sam Steingold <sds@ksp.com> |
| 2 | 8 | ||
| 3 | * emacs-lisp/cl-indent.el (common-lisp-indent-function): Use `eq' | 9 | * emacs-lisp/cl-indent.el (common-lisp-indent-function): Use `eq' |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 4ec31b91853..97b85a2564c 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -504,9 +504,6 @@ Return the result of the last expression in BODY." | |||
| 504 | ;; read is redefined to maybe instrument forms. | 504 | ;; read is redefined to maybe instrument forms. |
| 505 | ;; eval-defun is redefined to check edebug-all-forms and edebug-all-defs. | 505 | ;; eval-defun is redefined to check edebug-all-forms and edebug-all-defs. |
| 506 | 506 | ||
| 507 | ;; Use the Lisp version of eval-region. | ||
| 508 | (require 'eval-reg "eval-reg") | ||
| 509 | |||
| 510 | ;; Save the original read function | 507 | ;; Save the original read function |
| 511 | (or (fboundp 'edebug-original-read) | 508 | (or (fboundp 'edebug-original-read) |
| 512 | (defalias 'edebug-original-read (symbol-function 'read))) | 509 | (defalias 'edebug-original-read (symbol-function 'read))) |
| @@ -615,15 +612,13 @@ or if an error occurs, leave point after it with mark at the original point." | |||
| 615 | (defun edebug-install-read-eval-functions () | 612 | (defun edebug-install-read-eval-functions () |
| 616 | (interactive) | 613 | (interactive) |
| 617 | ;; Don't install if already installed. | 614 | ;; Don't install if already installed. |
| 618 | (if (eq (symbol-function 'read) 'edebug-read) nil | 615 | (unless load-read-function |
| 619 | (elisp-eval-region-install) | 616 | (setq load-read-function 'edebug-read) |
| 620 | (defalias 'read 'edebug-read) | ||
| 621 | (defalias 'eval-defun 'edebug-eval-defun))) | 617 | (defalias 'eval-defun 'edebug-eval-defun))) |
| 622 | 618 | ||
| 623 | (defun edebug-uninstall-read-eval-functions () | 619 | (defun edebug-uninstall-read-eval-functions () |
| 624 | (interactive) | 620 | (interactive) |
| 625 | (elisp-eval-region-uninstall) | 621 | (setq load-read-function nil) |
| 626 | (defalias 'read (symbol-function 'edebug-original-read)) | ||
| 627 | (defalias 'eval-defun (symbol-function 'edebug-original-eval-defun))) | 622 | (defalias 'eval-defun (symbol-function 'edebug-original-eval-defun))) |
| 628 | 623 | ||
| 629 | 624 | ||