GNU logs - #34183, boring messages


Message sent to gazally@HIDDEN, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34183: 27.0.50; cl-print uses print-length for strings
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: gazally@HIDDEN, bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 23 Jan 2019 21:03:01 +0000
Resent-Message-ID: <handler.34183.B.154827733317802 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 34183
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 34183 <at> debbugs.gnu.org
Cc: Gemini Lasswell <gazally@HIDDEN>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
X-Debbugs-Original-Xcc: Gemini Lasswell <gazally@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.154827733317802
          (code B ref -1); Wed, 23 Jan 2019 21:03:01 +0000
Received: (at submit) by debbugs.gnu.org; 23 Jan 2019 21:02:13 +0000
Received: from localhost ([127.0.0.1]:43103 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gmPf3-0004d4-9j
	for submit <at> debbugs.gnu.org; Wed, 23 Jan 2019 16:02:13 -0500
Received: from eggs.gnu.org ([209.51.188.92]:52357)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1gmPf0-0004cq-Vy
 for submit <at> debbugs.gnu.org; Wed, 23 Jan 2019 16:02:12 -0500
Received: from lists.gnu.org ([209.51.188.17]:39560)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <monnier@HIDDEN>)
 id 1gmPes-0000Mj-NE
 for submit <at> debbugs.gnu.org; Wed, 23 Jan 2019 16:02:02 -0500
Received: from eggs.gnu.org ([209.51.188.92]:34320)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1gmPer-0000fA-FS
 for bug-gnu-emacs@HIDDEN; Wed, 23 Jan 2019 16:02:02 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_MED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1gmPep-0000LM-Pu
 for bug-gnu-emacs@HIDDEN; Wed, 23 Jan 2019 16:02:00 -0500
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46716)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <monnier@HIDDEN>) id 1gmPen-0000Iv-Bu
 for bug-gnu-emacs@HIDDEN; Wed, 23 Jan 2019 16:01:57 -0500
Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca
 [132.204.27.242])
 by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x0NL1s49006815
 for <bug-gnu-emacs@HIDDEN>; Wed, 23 Jan 2019 16:01:54 -0500
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id 1022AAE6E4; Wed, 23 Jan 2019 15:51:18 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
Date: Wed, 23 Jan 2019 15:51:18 -0500
Message-ID: <jwv4l9z2j3t.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Level: 
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0.9
X-NAI-Spam-Rules: 5 Rules triggered
 BEC_TRC1=0.4, BEC_TRC1_W_GEN_SPAM_FEATRE=0.4, GEN_SPAM_FEATRE=0.1, 
 EDT_SA_DN_PASS=0, RV6467=0
X-NAI-Spam-Version: 2.3.0.9418 : core <6467> : inlines <6999> : streams
 <1810947> : uri <2784531>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 132.204.246.22
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Package: Emacs
Version: 27.0.50


The code in cl-print now obeys `print-length` to limit the length of
strings.  Being able to limit the length of strings is good, but
limiting them to `print-length` chars is rather drastic since this
setting is usually applied to lists, where a setting of N corresponds to
an output that's at the very least 2*N long (assuming each element prints
as a single char, which is not the most common case).

Currently in M-: print-length defaults to 12, so any string like a file
name gets truncated after only 12 chars which is frustrating
(especially since the ability to expand the "..." doesn't work there
because you can't click in the echo area :-( Maybe that should be
another bug report / feature request).

We should probably introduce another config var to limit string length,
or multiply `print-length` by some ad-hoc factor (like 4 maybe), or use
the max of print-length and frame-width, ...


        Stefan



In GNU Emacs 27.0.50 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 3.24.3)
 of 2019-01-22 built on alfajor
Repository revision: 4e56ca18c9760d9a9429d71e36bedfe4da879a9c
Repository branch: work
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description: Debian GNU/Linux buster/sid

Recent messages:
Error during redisplay: (eval el-search--current-search) signaled (void-variable el-search--current-search)
Error during redisplay: (eval (cdr (ring-elements el-search-history))) signaled (void-variable el-search-history)
Mark saved where search started [4 times]
"123456789012..."
50 (#o62, #x32, ?2)
"123456789012..."

Warning: hide-sublevels is obsolete!
Error during redisplay: (eval el-search--current-search) signaled (void-variable el-search--current-search)
Error during redisplay: (eval (cdr (ring-elements el-search-history))) signaled (void-variable el-search-history)

Configured using:
 'configure -C --enable-checking --with-modules --enable-check-lisp-object-type
 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign'
 PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS CANNOT_DUMP LCMS2
GMP

Important settings:
  value of $LANG: fr_CH.UTF-8
  locale-coding-system: utf-8-unix

Major mode: InactiveMinibuffer

Minor modes in effect:
  c-electric-flag: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  electric-pair-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  global-compact-docstrings-mode: t
  url-handler-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  global-prettify-symbols-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/monnier/src/emacs/elpa/packages/svg/svg hides /home/monnier/src/emacs/work/lisp/svg
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides /home/monnier/src/emacs/work/lisp/progmodes/ada-mode
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-stmt hides /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-prj hides /home/monnier/src/emacs/work/lisp/progmodes/ada-prj
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-xref hides /home/monnier/src/emacs/work/lisp/progmodes/ada-xref
/home/monnier/src/emacs/elpa/packages/nadvice/nadvice hides /home/monnier/src/emacs/work/lisp/emacs-lisp/nadvice
/home/monnier/src/emacs/elpa/packages/hyperbole/set hides /home/monnier/src/emacs/work/lisp/emacs-lisp/set
/home/monnier/src/emacs/elpa/packages/landmark/landmark hides /home/monnier/src/emacs/work/lisp/obsolete/landmark
/home/monnier/src/emacs/elpa/packages/crisp/crisp hides /home/monnier/src/emacs/work/lisp/obsolete/crisp

Features:
(cl finder log-view vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir
autoload eieio-opt speedbar sb-image ezimage dframe descr-text sort
mail-extr emacsbug log-edit message sendmail rmc puny dired
dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util
rmail rmail-loaddefs time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev
mail-utils ...)

Memory information:
((conses 8 332433 72233)
 (symbols 24 32361 406) (strings 16 136261 9584) (string-bytes 1 3687406)
 (vectors 8 57650)
 (vector-slots 4 2051955 154284) (floats 8 660 432) (intervals 28 20915 582)
 (buffers 528 64))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Stefan Monnier <monnier@HIDDEN>
Subject: bug#34183: Acknowledgement (27.0.50; cl-print uses print-length
 for strings)
Message-ID: <handler.34183.B.154827733317802.ack <at> debbugs.gnu.org>
References: <jwv4l9z2j3t.fsf@HIDDEN>
X-Gnu-PR-Message: ack 34183
X-Gnu-PR-Package: emacs
Reply-To: 34183 <at> debbugs.gnu.org
Date: Wed, 23 Jan 2019 21:03:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  Gemini Lasswell <gazally@HIDDEN>
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 34183 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
34183: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34183
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#34183: 27.0.50; cl-print uses print-length for strings
Resent-From: Drew Adams <drew.adams@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 23 Jan 2019 21:49:02 +0000
Resent-Message-ID: <handler.34183.B34183.154828012321859 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 34183
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Monnier <monnier@HIDDEN>, 34183 <at> debbugs.gnu.org
Cc: Gemini Lasswell <gazally@HIDDEN>
Received: via spool by 34183-submit <at> debbugs.gnu.org id=B34183.154828012321859
          (code B ref 34183); Wed, 23 Jan 2019 21:49:02 +0000
Received: (at 34183) by debbugs.gnu.org; 23 Jan 2019 21:48:43 +0000
Received: from localhost ([127.0.0.1]:43125 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gmQO2-0005gU-Nq
	for submit <at> debbugs.gnu.org; Wed, 23 Jan 2019 16:48:42 -0500
Received: from userp2120.oracle.com ([156.151.31.85]:34628)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <drew.adams@HIDDEN>) id 1gmQO0-0005gH-Ne
 for 34183 <at> debbugs.gnu.org; Wed, 23 Jan 2019 16:48:42 -0500
Received: from pps.filterd (userp2120.oracle.com [127.0.0.1])
 by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0NLhWRE066566;
 Wed, 23 Jan 2019 21:48:34 GMT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com;
 h=mime-version :
 message-id : date : from : sender : to : cc : subject : references :
 in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02;
 bh=T/86gvXd0ksxIEKMp1sabWHDbTvUOEjFwBC4A35tJ+s=;
 b=rwdU37VzUoP4DcaRt6D3hYQ8/Kxa9E4tPsukQimhObCWhOOxszRo2rS16Zpvl4dkHGSt
 8OzTghMlgCvFHcebAnGGp8lihSAAKpsSQXqTiFxFq7Lq3fJe9nft5fSRRii8QBlF8NsX
 +lWNDtF3NfDzYdNQlg7SkVGcxP9H7u5JYcrPoX2h9K0xqphc/ic5vCKVki4avpAC194c
 cGgGwgEi704bx5epI99tlT63/7ZB2VohCl+L43W29ENebGVZxxikF8udorMT21RRN/JW
 V7eYHzCAR6ELH896zJCLATCs4ALuhAPATpZk6PmEkfBfEPs6j9ekqdL74uTQyJ3ickcP 1A== 
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by userp2120.oracle.com with ESMTP id 2q3vhrven4-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Wed, 23 Jan 2019 21:48:34 +0000
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0NLmWRi025227
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Wed, 23 Jan 2019 21:48:33 GMT
Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24])
 by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0NLmVjO009909;
 Wed, 23 Jan 2019 21:48:31 GMT
MIME-Version: 1.0
Message-ID: <b1529a87-1cee-48a5-86b6-d03a74623434@default>
Date: Wed, 23 Jan 2019 13:48:29 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
References: <jwv4l9z2j3t.fsf@HIDDEN>
In-Reply-To: <jwv4l9z2j3t.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1  (1003210) [OL
 16.0.4795.0 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9145
 signatures=668682
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0
 malwarescore=0
 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=628
 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.0.1-1810050000 definitions=main-1901230157
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> The code in cl-print now obeys `print-length` to limit the length of
> strings.  Being able to limit the length of strings is good, but
> limiting them to `print-length` chars is rather drastic since this
> setting is usually applied to lists, where a setting of N corresponds to
> an output that's at the very least 2*N long (assuming each element prints
> as a single char, which is not the most common case).
>=20
> Currently in M-: print-length defaults to 12, so any string like a file
> name gets truncated after only 12 chars which is frustrating
> (especially since the ability to expand the "..." doesn't work there
> because you can't click in the echo area :-( Maybe that should be
> another bug report / feature request).
>=20
> We should probably introduce another config var to limit string length,
> or multiply `print-length` by some ad-hoc factor (like 4 maybe), or use
> the max of print-length and frame-width, ...

Why don't we have a naming convention that lets users
know whether some function is (1) intended to emulate
a Common Lisp function or it is instead either just
(2) a helper function used to define such an emulation
function or (3) a function that has no relation to
Common Lisp, which someone (unfortunately) decided to
give the prefix `cl-'?  Things that have prefix `cl-'
seem to be all over the map.

Anyway, in Common Lisp the print functions (which we
apparently have no emulations for) take arguments that
control print length, circle handling etc.  They don't
just variables to control such things.

http://clhs.lisp.se/Body/f_wr_pr.htm





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.