From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32064: 26; doc string of `eval-last-sexp' Date: Thu, 5 Jul 2018 13:15:16 -0700 (PDT) Message-ID: <0d7bb132-057e-431e-a5fa-86e15b99879a@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530821650 15003 195.159.176.226 (5 Jul 2018 20:14:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2018 20:14:10 +0000 (UTC) To: 32064@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 05 22:14:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbAdh-0003n2-CD for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2018 22:14:05 +0200 Original-Received: from localhost ([::1]:54688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbAfo-0007po-Jb for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jul 2018 16:16:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbAfe-0007oR-Gf for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:16:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbAfa-0008RH-G1 for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:16:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fbAfa-0008R4-CL for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fbAfa-00052z-62 for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jul 2018 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32064 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153082174019367 (code B ref -1); Thu, 05 Jul 2018 20:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Jul 2018 20:15:40 +0000 Original-Received: from localhost ([127.0.0.1]:48011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbAfE-00052J-9Z for submit@debbugs.gnu.org; Thu, 05 Jul 2018 16:15:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbAfA-000525-UW for submit@debbugs.gnu.org; Thu, 05 Jul 2018 16:15:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbAf4-0007iu-Bh for submit@debbugs.gnu.org; Thu, 05 Jul 2018 16:15:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39870) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fbAf4-0007if-35 for submit@debbugs.gnu.org; Thu, 05 Jul 2018 16:15:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fbAf2-0007X6-Mz for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:15:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fbAew-0007ek-QR for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:15:26 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:48904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fbAew-0007ds-GE for bug-gnu-emacs@gnu.org; Thu, 05 Jul 2018 16:15:22 -0400 Original-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 w65KESKN086558 for ; Thu, 5 Jul 2018 20:15:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=vwCAY7jPmojt6P7xxa+vDz758WEh7IKzCdgSyxgxByQ=; b=BQZ9cDUuB5U7i3UWHKVRSLup4MaGfYzzCortoNT3C5Ies8vf8H7bNtyGz8W0PP2WzKPT H1hVUljbpVlC8kcXbXEkhm9cbOLDfXbGELn95DCcurh2EEPsL39zqQYxKYVSmP8/d2P9 igP2bUiVvUOzMGdrSURbVGJp3Zj8mhAvXrKLoyhiFMtw8usp/W94HILHsw51xUcwOWpk G9JK3SPOJEL0X/wRar81DV9C9yS0YvDnU8lpaNIR1l3QDevzjMf3apKWazwtiX8A2KSp ghEJoeC5t/eBEZVYjBW+V2FTMHkYP46Omjvun1o/8zFZcjfVG7W9mSka24Ur7H5Cg5K5 gg== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2k0dnjqa7x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 05 Jul 2018 20:15:19 +0000 Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w65KFIUb017270 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 5 Jul 2018 20:15:19 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w65KFHGM007008 for ; Thu, 5 Jul 2018 20:15:18 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4705.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8945 signatures=668704 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807050224 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148231 Archived-At: The doc string was messed up a bit in Emacs 26, apparently for the fix of bug #4118. >From this, which makes sense: Normally, this function truncates long output according to the value of the variables `eval-expression-print-length' and `eval-expression-print-level'. With a prefix argument of zero, however, there is no such truncation. Such a prefix argument also causes integers to be printed in several additional formats (octal, hexadecimal, and character). The text was changed to this, which does not make sense at all: Normally, this function truncates long output according to the value of the variables 'eval-expression-print-length' and 'eval-expression-print-level'. With a prefix argument of zero, however, there is no such truncation. Such a prefix argument also causes integers to be printed in several additional formats (octal, hexadecimal, and character when the prefix argument is -1 or the integer is 'eval-expression-print-maximum-character' or less). Both old and new say that with a prefix arg of ZERO ("such a prefix argument") the behavior is to do both of these things: 1. Do not truncate. 2. Print in additional formats. That's fine. But the Emacs 26+ version also says that with a ZERO prefix arg ("such a prefix argument"), if the prefix arg is ALSO -1 (impossible) or if "the integer" (what integer?) is less than or equal to the value of `eval-expression-print-maximum-character', the additional formats include "character". A character is not a format, so it's unclear what printing in format "character" means. But the main problem with this is that it makes us try to understand a prefix arg that is BOTH zero and -1, and it leaves us wondering what "the integer" is that is tested against `eval-expression-print-maximum-character' when the prefix arg is zero. If "the integer" is just the numeric prefix arg then the <=3D `eval-expression-print-maximum-character' could be clear - but there should be no connection with the value being zero ("such a prefix arg"). Just say: If zero then no truncation. If <=3D `eval...' then ___ (whatever is meant by "character format" printing). In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''