aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-10-09 01:18:29 +0000
committerRichard M. Stallman2007-10-09 01:18:29 +0000
commit03d5bbb07176bacb206fd5c17620dfc04c9df72a (patch)
treef16eb1f79996055296264c9f46f59d3bf5783e17
parentee3c2877bf62577130d2d91731cceaced9cdad98 (diff)
downloademacs-03d5bbb07176bacb206fd5c17620dfc04c9df72a.tar.gz
emacs-03d5bbb07176bacb206fd5c17620dfc04c9df72a.zip
(edebug-install-custom-print-funcs)
(edebug-install-custom-print, edebug-reset-print-funcs) (edebug-uninstall-custom-print, edebug-uninstall-custom-print-funcs): Functions deleted. (edebug-prin1, edebug-print, edebug-prin1-to-string) (edebug-format, edebug-message): Define directly as aliases.
-rw-r--r--lisp/emacs-lisp/edebug.el44
1 files changed, 6 insertions, 38 deletions
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index e975a0f0bea..63b2db96fc6 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -3675,44 +3675,6 @@ Return the result of the last expression."
3675 3675
3676;;; Printing 3676;;; Printing
3677 3677
3678;; Replace printing functions.
3679
3680;; obsolete names
3681(define-obsolete-function-alias 'edebug-install-custom-print-funcs
3682 'edebug-install-custom-print "22.1")
3683(define-obsolete-function-alias 'edebug-reset-print-funcs
3684 'edebug-uninstall-custom-print "22.1")
3685(define-obsolete-function-alias 'edebug-uninstall-custom-print-funcs
3686 'edebug-uninstall-custom-print "22.1")
3687
3688(defun edebug-install-custom-print ()
3689 "Replace print functions used by Edebug with custom versions."
3690 ;; Modifying the custom print functions, or changing print-length,
3691 ;; print-level, print-circle, custom-print-list or custom-print-vector
3692 ;; have immediate effect.
3693 (interactive)
3694 (require 'cust-print)
3695 (defalias 'edebug-prin1 'custom-prin1)
3696 (defalias 'edebug-print 'custom-print)
3697 (defalias 'edebug-prin1-to-string 'custom-prin1-to-string)
3698 (defalias 'edebug-format 'custom-format)
3699 (defalias 'edebug-message 'custom-message)
3700 "Installed")
3701
3702(eval-and-compile
3703 (defun edebug-uninstall-custom-print ()
3704 "Replace edebug custom print functions with internal versions."
3705 (interactive)
3706 (defalias 'edebug-prin1 'prin1)
3707 (defalias 'edebug-print 'print)
3708 (defalias 'edebug-prin1-to-string 'prin1-to-string)
3709 (defalias 'edebug-format 'format)
3710 (defalias 'edebug-message 'message)
3711 "Uninstalled")
3712
3713 ;; Default print functions are the same as Emacs'.
3714 (edebug-uninstall-custom-print))
3715
3716 3678
3717(defun edebug-report-error (edebug-value) 3679(defun edebug-report-error (edebug-value)
3718 ;; Print an error message like command level does. 3680 ;; Print an error message like command level does.
@@ -3759,6 +3721,12 @@ Return the result of the last expression."
3759 3721
3760;;; Read, Eval and Print 3722;;; Read, Eval and Print
3761 3723
3724(defalias 'edebug-prin1 'prin1)
3725(defalias 'edebug-print 'print)
3726(defalias 'edebug-prin1-to-string 'prin1-to-string)
3727(defalias 'edebug-format 'format)
3728(defalias 'edebug-message 'message)
3729
3762(defun edebug-eval-expression (edebug-expr) 3730(defun edebug-eval-expression (edebug-expr)
3763 "Evaluate an expression in the outside environment. 3731 "Evaluate an expression in the outside environment.
3764If interactive, prompt for the expression. 3732If interactive, prompt for the expression.