diff lisp/hyper-apropos.el @ 219:262b8bb4a523 r20-4b8

Import from CVS: tag r20-4b8
author cvs
date Mon, 13 Aug 2007 10:09:35 +0200
parents d44af0c54775
children 41f2f0e326e9
line wrap: on
line diff
--- a/lisp/hyper-apropos.el	Mon Aug 13 10:08:36 2007 +0200
+++ b/lisp/hyper-apropos.el	Mon Aug 13 10:09:35 2007 +0200
@@ -1,5 +1,6 @@
 ;;; hyper-apropos.el --- Hypertext emacs lisp documentation interface.
 
+;; Copyright (C)  1997 Free Software Foundation, Inc.
 ;; Copyright (C) 1994, 1995 Tinker Systems and INS Engineering Corp.
 ;; Copyright (C) 1995 Sun Microsystems.
 ;; Copyright (C) 1996 Ben Wing.
@@ -63,8 +64,6 @@
 
 ;;; Code:
 
-(require 'pp)
-
 (defgroup hyper-apropos nil
   "Hypertext emacs lisp documentation interface."
   :group 'docs
@@ -865,7 +864,7 @@
 			 (insert-face "value: " 'hyper-apropos-heading)
 			 (if hyper-apropos-prettyprint-long-values
 			     (condition-case nil
-				 (let ((pp-print-readably nil)) (pprint local))
+				 (cl-prettyprint local)
 			       (error (insert local-str)))
 			   (insert local-str))))
 		   (if global-str
@@ -874,7 +873,7 @@
 			 (insert-face "default value: " 'hyper-apropos-heading)
 			 (if hyper-apropos-prettyprint-long-values
 			     (condition-case nil
-				 (let ((pp-print-readably nil)) (pprint global))
+				 (cl-prettyprint global)
 			       (error (insert global-str)))
 			   (insert global-str)))))
 		 (indent-rigidly beg (point) 2))))
@@ -1246,10 +1245,10 @@
 	   (insert (format " for function `%S'" sym))
 	   )
 	  ((consp fun)
-	   (with-output-to-temp-buffer "*Disassemble*"
-	     (pprint (if macrop
-			 (cons 'defmacro (cons sym (cdr (cdr fun))))
-		       (cons 'defun (cons sym (cdr fun))))))
+	   (with-current-buffer "*Disassemble*"
+	     (cl-prettyprint (if macrop
+				 (cons 'defmacro (cons sym (cdr (cdr fun))))
+			       (cons 'defun (cons sym (cdr fun))))))
 	   (set-buffer "*Disassemble*")
 	   (emacs-lisp-mode))
 	  ((or (vectorp fun) (stringp fun))