summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2025-03-05 18:35:35 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2025-03-05 18:35:35 -0500
commit25de262bd95b587beb757e1a82828ad4fffbf168 (patch)
treeeaf9a36778e8dc0cbabd0461012add1694c37368 /test/lisp/emacs-lisp
parent70d0da3fe0b73f7a8757a155feb5efa52e2a1c3a (diff)
downloademacs-25de262bd95b587beb757e1a82828ad4fffbf168.tar.gz
emacs-25de262bd95b587beb757e1a82828ad4fffbf168.tar.bz2
emacs-25de262bd95b587beb757e1a82828ad4fffbf168.zip
(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.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r--test/lisp/emacs-lisp/pp-tests.el9
1 files changed, 9 insertions, 0 deletions
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.