]> git.eshelyaron.com Git - emacs.git/commit
Stop truncating strings too much in cl-print-string-with-limit
authorAlan Mackenzie <acm@muc.de>
Fri, 29 Sep 2023 16:14:04 +0000 (16:14 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 29 Sep 2023 16:14:04 +0000 (16:14 +0000)
commit01229fe0096e936ea8f4fad0d64967671c4b1892
tree2eb47a1e060ab41c91cecf880b40b38c016d10b8
parent6e4432673ca716755b8a71ed50011336ac57c2e4
Stop truncating strings too much in cl-print-string-with-limit

This fixes bug#65680, by introducing a new variable limiting
the length of a printed string, rather than abusing
print-length for that purpose.

* lisp/emacs-lisp/cl-print.el (cl-print-string-length): New
variable.
(cl-print-object <string>, cl-print--string-props): Use
cl-print-string-length rather than print-length here.
(cl-print-string-with-limit): bind cl-print-string-length based
on argument `limit'.  Decrement it by a quarter at each trial
iteration of printing.
lisp/emacs-lisp/cl-print.el