summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/pp-resources/code-formats.erts
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-11-05 15:27:03 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-11-05 15:27:08 +0100
commitc1865384d736cf290971e049a9d2f7869c7396da (patch)
tree841b73a8b62f5647248624459efe2c3cf47e9a15 /test/lisp/emacs-lisp/pp-resources/code-formats.erts
parentc19aa6aeb2c54bf43c09ba56d8994fda6c17b1c5 (diff)
downloademacs-c1865384d736cf290971e049a9d2f7869c7396da.tar.gz
emacs-c1865384d736cf290971e049a9d2f7869c7396da.tar.bz2
emacs-c1865384d736cf290971e049a9d2f7869c7396da.zip
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.
Diffstat (limited to 'test/lisp/emacs-lisp/pp-resources/code-formats.erts')
-rw-r--r--test/lisp/emacs-lisp/pp-resources/code-formats.erts8
1 files changed, 8 insertions, 0 deletions
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)])
+=-=-=