diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-11-05 15:27:03 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-11-05 15:27:08 +0100 |
commit | c1865384d736cf290971e049a9d2f7869c7396da (patch) | |
tree | 841b73a8b62f5647248624459efe2c3cf47e9a15 /test/lisp/emacs-lisp/pp-resources/code-formats.erts | |
parent | c19aa6aeb2c54bf43c09ba56d8994fda6c17b1c5 (diff) | |
download | emacs-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.erts | 8 |
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)]) +=-=-= |