summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/pp-resources/code-formats.erts
Commit message (Collapse)AuthorAgeFilesLines
* Allow 'pp' to limit the line widthsLars Ingebrigtsen2021-11-051-0/+8
| | | | | | | | * 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.
* Tweak multi-line expressions in pp--format-functionLars Ingebrigtsen2021-11-041-1/+12
| | | | | * lisp/emacs-lisp/pp.el (pp--format-function): Fix up multi-line expressions.
* Indent lambdas/closures betterLars Ingebrigtsen2021-11-041-0/+8
| | | | | * lisp/emacs-lisp/pp.el (pp--format-function): Indent lambdas and closures better.
* Add new basic Emacs Lisp code formatting functionLars Ingebrigtsen2021-11-041-0/+97
* lisp/emacs-lisp/pp.el (pp-emacs-lisp-code): New interface function. (pp): Mention it. (pp--insert-lisp, pp--format-vector, pp--format-list) (pp--format-function, pp--format-definition, pp--insert-binding) (pp--insert, pp--indent-buffer): New helper functions.