+1999-10-16 Dave Love <d.love@dl.ac.uk>
+
+ * emacs-lisp/edebug.el (edebug-install-read-eval-functions)
+ (edebug-uninstall-read-eval-functions): Use load-read-function,
+ avoiding elisp-eval.
+
1999-10-16 Sam Steingold <sds@ksp.com>
* emacs-lisp/cl-indent.el (common-lisp-indent-function): Use `eq'
;; read is redefined to maybe instrument forms.
;; eval-defun is redefined to check edebug-all-forms and edebug-all-defs.
-;; Use the Lisp version of eval-region.
-(require 'eval-reg "eval-reg")
-
;; Save the original read function
(or (fboundp 'edebug-original-read)
(defalias 'edebug-original-read (symbol-function 'read)))
(defun edebug-install-read-eval-functions ()
(interactive)
;; Don't install if already installed.
- (if (eq (symbol-function 'read) 'edebug-read) nil
- (elisp-eval-region-install)
- (defalias 'read 'edebug-read)
+ (unless load-read-function
+ (setq load-read-function 'edebug-read)
(defalias 'eval-defun 'edebug-eval-defun)))
(defun edebug-uninstall-read-eval-functions ()
(interactive)
- (elisp-eval-region-uninstall)
- (defalias 'read (symbol-function 'edebug-original-read))
+ (setq load-read-function nil)
(defalias 'eval-defun (symbol-function 'edebug-original-eval-defun)))