]> git.eshelyaron.com Git - emacs.git/commitdiff
; (pp-display-expression): Enable undo in output buffer
authorEshel Yaron <me@eshelyaron.com>
Mon, 15 Apr 2024 08:57:56 +0000 (10:57 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 15 Apr 2024 08:57:56 +0000 (10:57 +0200)
* lisp/emacs-lisp/pp.el (pp-display-expression): Enable undo.

lisp/emacs-lisp/pp.el

index d586fc59939091d355bb3409eb18f8e7db94c849..33b583a8ffa3aaa4167b6c4ae7e18a24a5343db7 100644 (file)
@@ -358,6 +358,7 @@ after OUT-BUFFER-NAME."
       (with-current-buffer standard-output
        (emacs-lisp-mode)
        (setq buffer-read-only nil)
+       (setq buffer-undo-list nil)
         (setq-local font-lock-verbose nil)))))
 
 (defun pp-insert-short-sexp (sexp &optional width)