From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66267: Document cl-print.el in the CL manual. Date: Wed, 11 Oct 2023 15:02:57 +0300 Message-ID: <835y3dv026.fsf@gnu.org> References: <83fs2wyl5p.fsf@gnu.org> <83v8bevhv2.fsf@gnu.org> <83bkd6ux40.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28817"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66267@debbugs.gnu.org, monnier@iro.umontreal.ca To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 11 14:04:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qqXwm-0007DA-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Oct 2023 14:04:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqXwK-0001yp-R2; Wed, 11 Oct 2023 08:03:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqXwC-0001wo-FQ for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 08:03:47 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqXwC-00023o-31 for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 08:03:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqXwX-0002ub-IR for bug-gnu-emacs@gnu.org; Wed, 11 Oct 2023 08:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Oct 2023 12:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66267 X-GNU-PR-Package: emacs Original-Received: via spool by 66267-submit@debbugs.gnu.org id=B66267.169702582211166 (code B ref 66267); Wed, 11 Oct 2023 12:04:01 +0000 Original-Received: (at 66267) by debbugs.gnu.org; 11 Oct 2023 12:03:42 +0000 Original-Received: from localhost ([127.0.0.1]:37699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqXwE-0002u2-8v for submit@debbugs.gnu.org; Wed, 11 Oct 2023 08:03:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqXwC-0002tp-C2 for 66267@debbugs.gnu.org; Wed, 11 Oct 2023 08:03:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqXvk-0001yS-3o; Wed, 11 Oct 2023 08:03:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vA5k9YvOuASa/5i0k8Nl9ONQefklWl5Yh9hqipAz64s=; b=sZvVNc+c+8kO IuvWsCdrTBj0OE+YPuxWI6zFrDdlHMUjTDuSrNX7Y2L0oM/9ocUo/S2/avGoytPFztAAuGYDOJIsE s8OydJwQyCKbyAqspn6BOsT1JJw0d54oIe1q0p/LwMFvUA6+nEbmkl80rMQYbrUVVScfNJPCSAUw8 tG4AzjlH0tlx+ihWOGSgD4Qwm1U0USvaymQJibCiYo3YPkYYqR6kt7l2pkgzGUajUlBmnmYWWyEhb Tfi8gMNApE4dlaSyma715nbtbRvgAPdcBg/gUqaNhpV6U0JkCOEQDC2G14asSAr9TVIYFW0H0hdc1 A7t0Nu2Mc1EyhN8SUqXQ7Q==; In-Reply-To: (message from Alan Mackenzie on Tue, 10 Oct 2023 20:42:13 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272251 Archived-At: > Date: Tue, 10 Oct 2023 20:42:13 +0000 > Cc: monnier@iro.umontreal.ca, 66267@debbugs.gnu.org > From: Alan Mackenzie > > > > > > +should respect @code{print-length}, @code{print-level}, and > > > > > +@code{cl-print-string-length}. @var{limit} may be @code{nil} or zero > > > > > +in which case @var{print-function} will be called with these settings > > > > > +bound to @code{nil}, and it can also be @code{t} in which case > > > > > +@var{print-function} will be called with their current values. > > > > > + > > > > > +Use this function with @code{cl-prin1} to print an object, > > > > > +abbreviating it with ellipses to fit within a size limit. > > > > ^^^^^^^^ > > > > "ellipsis" > > > > No. "EllipsEs" is the plural of "ellipsIs". > > > ??? You say "abbreviating it with ellipses". "It" is singular, so it > > gets abbreviated with only one ellipsis, not with several ones. > > Not necessarily. Something like a cons structure or vector printed by > cl-prin1 can have several, or even many ellipses in it. Last week I got > a line from an ERT backtrace containing 42 ellipses - which incidentally > made it nearly useless for debugging. Then something like this is in order, I think: Use this function with @code{cl-prin1} to print an object, possibly abbreviating it with one or more ellipses to fit within the size limit. > By the way, I forgot one detail about the patch. I've written it on the > assumption that bug #66392 "Add raw printing for byte compiled functions > to cl-prin1, etc." gets OK'd. Stefan M. has already explicitly expressed > no objection to it. If that bug isn't OK, it's a simple matter to amend > the cl.texi patch. Would you take a quick peep at it, please? Thanks! I have no objections to it.