]> git.eshelyaron.com Git - emacs.git/commit
Correct the `cond' forms in cl-print-string-with-limit
authorAlan Mackenzie <acm@muc.de>
Tue, 3 Oct 2023 10:22:26 +0000 (10:22 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 3 Oct 2023 10:22:26 +0000 (10:22 +0000)
commit849de5aa1a42cae6ae1504804acf0c7fb8b13860
treec24357949ad161d878e862663d9722acd0590584
parent21c81f49e7b8347a7f8bc52024b53ec1a13108d3
Correct the `cond' forms in cl-print-string-with-limit

In this function, calling with limit bound to t will cause an
error in any of the cond forms which set print-length, etc.
Correct them!

* lisp/emacs-lisp/cl-print.el (cl-print-string-with-limit):
Amend the doc string.  In the cond forms in the bindings for
print-length, etc., test the value t first.  Amend those for
print-length and print-level also to test for a zero value of
limit.
lisp/emacs-lisp/cl-print.el