]> git.eshelyaron.com Git - emacs.git/commit
Allow 'pp' to limit the line widths
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Nov 2021 14:27:03 +0000 (15:27 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Nov 2021 14:27:08 +0000 (15:27 +0100)
commitc1865384d736cf290971e049a9d2f7869c7396da
tree841b73a8b62f5647248624459efe2c3cf47e9a15
parentc19aa6aeb2c54bf43c09ba56d8994fda6c17b1c5
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.
etc/NEWS
lisp/emacs-lisp/pp.el
test/lisp/emacs-lisp/pp-resources/code-formats.erts