From 9796f12dfd4e6c445a135aeba3f46836d5a3aebc Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 13 Feb 1995 03:01:16 +0000 Subject: (pp-to-string): Don't use emacs-lisp-mode. Just do the parts of it we actually want. --- lisp/emacs-lisp/pp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp') diff --git a/lisp/emacs-lisp/pp.el b/lisp/emacs-lisp/pp.el index 9f4d5044855..e2aaac535f2 100644 --- a/lisp/emacs-lisp/pp.el +++ b/lisp/emacs-lisp/pp.el @@ -32,7 +32,8 @@ that `read' can handle, whenever this is possible." (set-buffer (generate-new-buffer " pp-to-string")) (unwind-protect (progn - (emacs-lisp-mode) + (lisp-mode-variables) + (set-syntax-table emacs-lisp-mode-syntax-table) (let ((print-escape-newlines pp-escape-newlines)) (prin1 object (current-buffer))) (goto-char (point-min)) -- cgit v1.2.3