From 25de262bd95b587beb757e1a82828ad4fffbf168 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 5 Mar 2025 18:35:35 -0500 Subject: (pp-fill): Fix bug#76715 * lisp/emacs-lisp/pp.el (pp-fill): Don't break before `.` within symbols. * test/lisp/emacs-lisp/pp-tests.el (pp-tests--bug76715): New test. --- test/lisp/emacs-lisp/pp-tests.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/lisp/emacs-lisp') diff --git a/test/lisp/emacs-lisp/pp-tests.el b/test/lisp/emacs-lisp/pp-tests.el index 68095ea08c8..d964ed38986 100644 --- a/test/lisp/emacs-lisp/pp-tests.el +++ b/test/lisp/emacs-lisp/pp-tests.el @@ -85,4 +85,13 @@ (signal (car err) (cdr err)) )))))))) +(ert-deftest pp-tests--bug76715 () + (with-temp-buffer + (let ((pp-default-function #'pp-fill) + (fill-column 8) + (val '(x. y{ z. a{ b. x. y{ z. a{ b.))) + (pp val (current-buffer)) + (goto-char (point-min)) + (should (equal (read (current-buffer)) val))))) + ;;; pp-tests.el ends here. -- cgit v1.2.3