]> git.eshelyaron.com Git - emacs.git/commit
Make cl-print respect print-level and print-length (bug#31559)
authorGemini Lasswell <gazally@runbox.com>
Sun, 27 May 2018 18:38:00 +0000 (11:38 -0700)
committerGemini Lasswell <gazally@runbox.com>
Sun, 27 May 2018 18:38:00 +0000 (11:38 -0700)
commit0f48d18fd2a30f29cc3592a835d2a2254c9b0afb
tree06ffe197481689bb051dfe0ebd04edaea892f13d
parent584f05cb11a8010f31beaf07c9ef4180b70d1d66
Make cl-print respect print-level and print-length (bug#31559)

* lisp/emacs-lisp/cl-print.el (cl-print--depth): New variable.
(cl-print-object) <cons>: Print ellipsis if printing depth greater
than 'print-level' or length of list greater than 'print-length'.
(cl-print-object) <vector>: Truncate printing with ellipsis if
vector is longer than 'print-length'.
(cl-print-object) <cl-structure-object>: Truncate printing with
ellipsis if structure has more slots than 'print-length'.
(cl-print-object) <:around>: Bind 'cl-print--depth'.
* test/lisp/emacs-lisp/cl-print-tests.el
(cl-print-tests-3, cl-print-tests-4): New tests.
lisp/emacs-lisp/cl-print.el
test/lisp/emacs-lisp/cl-print-tests.el