summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/pp-resources
Commit message (Collapse)AuthorAgeFilesLines
* Fix pp-emacs-lisp-code printing of cons cellsLars Ingebrigtsen2022-05-171-0/+12
| | | | | * lisp/emacs-lisp/pp.el (pp--insert-lisp): Fix printing of cons cells (bug#55478).
* Improve pp-emacs-lisp-code for #'Lars Ingebrigtsen2022-01-041-0/+6
| | | | | * lisp/emacs-lisp/pp.el (pp--insert-lisp): Format (function ...) as #'.
* 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.