# HG changeset patch # User Stefan Monnier # Date 1079969544 0 # Node ID a8550ca246ebc235d02df2ce86e5c834c74846bd # Parent 96f7b2598aa3d3555eeea5f9ba2f4b21717bc7e2 (pp-eval-expression): Simplify. diff -r 96f7b2598aa3 -r a8550ca246eb lisp/emacs-lisp/pp.el --- a/lisp/emacs-lisp/pp.el Mon Mar 22 15:31:46 2004 +0000 +++ b/lisp/emacs-lisp/pp.el Mon Mar 22 15:32:24 2004 +0000 @@ -1,6 +1,6 @@ ;;; pp.el --- pretty printer for Emacs Lisp -;; Copyright (C) 1989, 1993, 2001 Free Software Foundation, Inc. +;; Copyright (C) 1989, 1993, 2001, 2004 Free Software Foundation, Inc. ;; Author: Randal Schwartz ;; Keywords: lisp @@ -120,12 +120,10 @@ (message "%s" (buffer-substring (point-min) (point))) )))))) (with-output-to-temp-buffer "*Pp Eval Output*" - (pp (car values))) - (save-excursion - (set-buffer "*Pp Eval Output*") - (emacs-lisp-mode) - (make-local-variable 'font-lock-verbose) - (setq font-lock-verbose nil)))) + (pp (car values)) + (with-current-buffer standard-output + (emacs-lisp-mode) + (set (make-local-variable 'font-lock-verbose) nil))))) ;;;###autoload (defun pp-eval-last-sexp (arg)