From c1865384d736cf290971e049a9d2f7869c7396da Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 5 Nov 2021 15:27:03 +0100 Subject: Allow 'pp' to limit the line widths * lisp/emacs-lisp/pp.el (pp-max-width, pp-use-max-width): New user options (bug#11934). (pp-to-string): Use it. (pp--insert-lisp): Tweak whether to use standard-output or not. (pp--max-width): New function. --- test/lisp/emacs-lisp/pp-resources/code-formats.erts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/lisp/emacs-lisp/pp-resources/code-formats.erts') diff --git a/test/lisp/emacs-lisp/pp-resources/code-formats.erts b/test/lisp/emacs-lisp/pp-resources/code-formats.erts index c2733d84dae..2b2001d0964 100644 --- a/test/lisp/emacs-lisp/pp-resources/code-formats.erts +++ b/test/lisp/emacs-lisp/pp-resources/code-formats.erts @@ -114,3 +114,11 @@ Name: code-formats10 "+" (string-replace " " "+" query))) =-=-= + + +Name: code-formats11 + +=-= +(lambda () + [(foo bar) (foo bar)]) +=-=-= -- cgit v1.2.3