]> git.eshelyaron.com Git - emacs.git/commitdiff
(pp-to-string): Don't use emacs-lisp-mode.
authorRichard M. Stallman <rms@gnu.org>
Mon, 13 Feb 1995 03:01:16 +0000 (03:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 13 Feb 1995 03:01:16 +0000 (03:01 +0000)
Just do the parts of it we actually want.

lisp/emacs-lisp/pp.el

index 9f4d5044855117cd7220666ddd7776ef86b20c49..e2aaac535f28a8f7a50b68221871e50b736b1d59 100644 (file)
@@ -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))