]> git.eshelyaron.com Git - emacs.git/commit
pp.el (pp-default-function): New custom var
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 16 Jun 2023 17:31:13 +0000 (13:31 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 17 Jun 2023 21:21:03 +0000 (17:21 -0400)
commit184106be2678f18ae90ccd35d69c2ccd61198b0a
tree5fc9b6119db6135ec3ca9258ce53f6917402f143
parentf411cc3a9578eae4ea4549959109817a467f9a16
pp.el (pp-default-function): New custom var

* lisp/emacs-lisp/pp.el (pp-use-max-width): Make obsolete.
(pp-default-function): New custom var.
(pp--object, pp--region): New helper functions.
(pp-29): New function, extracted from `pp-to-string`.
(pp-to-string): Add `pp-function` arg and obey `pp-default-function`.
(pp-28): New function, extracted from `pp-buffer`.
(pp-buffer): Rewrite, to obey `pp-default-function`.
(pp): Obey `pp-default-function`.
(pp-emacs-lisp-code): Add new calling convention to apply it to a region.
lisp/emacs-lisp/pp.el