From unknown Sat Jun 21 03:08:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21131 <21131@debbugs.gnu.org> To: bug#21131 <21131@debbugs.gnu.org> Subject: Status: printing character representation of numbers can be slow Reply-To: bug#21131 <21131@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:08:14 +0000 retitle 21131 printing character representation of numbers can be slow reassign 21131 emacs submitter 21131 Chris Stacy severity 21131 minor tag 21131 patch fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 24 22:22:36 2015 Received: (at submit) by debbugs.gnu.org; 25 Jul 2015 02:22:36 +0000 Received: from localhost ([127.0.0.1]:58277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIp6i-0006tF-0k for submit@debbugs.gnu.org; Fri, 24 Jul 2015 22:22:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40752) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIoSA-0005tj-Ms for submit@debbugs.gnu.org; Fri, 24 Jul 2015 21:40:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIoS8-0004nr-Rk for submit@debbugs.gnu.org; Fri, 24 Jul 2015 21:40:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIoS8-0004nn-Ov for submit@debbugs.gnu.org; Fri, 24 Jul 2015 21:40:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIoS7-0006J0-GY for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2015 21:40:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIoRz-0004jj-Uz for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2015 21:40:39 -0400 Received: from mail-ie0-f178.google.com ([209.85.223.178]:35362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIoRz-0004jW-Jf for bug-gnu-emacs@gnu.org; Fri, 24 Jul 2015 21:40:31 -0400 Received: by iecri3 with SMTP id ri3so31110693iec.2 for ; Fri, 24 Jul 2015 18:40:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding:date :subject:to:message-id:mime-version; bh=ORQFVmPr7KByZ4mk3ayqpEv5RT8nDscXC4SRk6vkh6k=; b=akxAv7p/v2BFcgwkjFed+SvEJRQDBCd0ZhfrCS5eCSELTPHf48frkDvZMWsGlLDqdz rNRSnHA57Rc7UolfBu+qhh28SEFw6ycm5G5NarHMmJ7p/AdXAQOs/hKL256FmSPK4BAU rEmjwDagmxcu70gC04GKmf2uW+81c5q4rsuwm/pZHAqxCGg0aBeZLfJ3u+Oc097I7Cmt ksF8Rf8hG5dmMqSRSwDfwi/nMRuldmof5erKXvRm0KKpjyH/xk9VJpkmD4l9pHSZQFbC pGcPn5E8z4iT+m2dR7VAA63kNOfnkpW+R1Fgd6TbognKCDB11DECQ7vj/Y7nVaZ/LaSh kYfg== X-Gm-Message-State: ALoCoQmuMgGCei+kTRSydbThomfTF/YFHMCSs2JzEZ/iIHuN6wlD6FPS1x4g79nz9HPy/JgcP1Ki X-Received: by 10.107.130.11 with SMTP id e11mr29989149iod.156.1437788430267; Fri, 24 Jul 2015 18:40:30 -0700 (PDT) Received: from [192.168.43.165] (144.sub-70-208-139.myvzw.com. [70.208.139.144]) by smtp.gmail.com with ESMTPSA id j3sm527001ige.0.2015.07.24.18.40.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 Jul 2015 18:40:29 -0700 (PDT) From: Chris Stacy Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 24 Jul 2015 21:40:23 -0400 Subject: minibuffer repl delay To: bug-gnu-emacs@gnu.org Message-Id: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) X-Mailer: Apple Mail (2.2102) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 24 Jul 2015 22:22:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) In Aquamacs 3.2 GNU Emacs 24.4.51.2 (x86_64-apple-darwin14.0.0, NS apple-appkit-1343.14) of 2014-11-07 (Aquamacs-3.2) on watson.local Operating System: OS X Version 10.10.4 (Build 14E46) Configured using: `configure --with-ns --without-x 'CFLAGS=3D-arch x86_64 -O3 -g -mtune=3Dcorei7 -mmacosx-version-min=3D10.6' 'LDFLAGS=3D-arch x86_64 = -O3 -g -mtune=3Dcorei7 -mmacosx-version-min=3D10.6'' Important settings: locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: savehist-mode: t smart-frame-positioning-mode: t aquamacs-autoface-mode: t recentf-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t I think this still happens in vanilla 24.5 and doesn't have anything to = do with Aquamacs. Can=E2=80=99t remember when it first appeared but it=E2=80=99s not a = very new bug. When I eval something in the scratch buffer, I get the answer = immediately: (+ 1997 120 400) 2517 But doing the same thing in the minibuffer (eval-expression) incurs a huge delay after I hit ENTER and before seeing the answer. For example, the above expression took over 7 seconds before I saw: 2117 (#o4105, #x845) I can't tell if it is just arithmetic because the delays seem to random. Sometimes there doesn't seem to be a delay. This always comes back right away: (length '(a b c d e)) 5 (#o5, #x5, ?\C-e) Sometimes this has a 2 second delay and sometimes not: (cons 'a 'b) (a . b) Sometimes the delay goes away for a while in some cases. Although never for any addition where one of the operands is more than 4 digits. This always has a 7 second delay: (+ 1299 120) Mysterious! Makes it impossible to use the minibuffer as the always-available quick desk calculator on the system, which I (used to) do constantly. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 25 02:44:52 2015 Received: (at 21131) by debbugs.gnu.org; 25 Jul 2015 06:44:52 +0000 Received: from localhost ([127.0.0.1]:58316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZItCV-0004oV-SK for submit@debbugs.gnu.org; Sat, 25 Jul 2015 02:44:52 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:57736) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZItCT-0004oJ-Dl for 21131@debbugs.gnu.org; Sat, 25 Jul 2015 02:44:50 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3mddDc2T29z3hhvT; Sat, 25 Jul 2015 08:44:48 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3mddDc1cNNzvh23; Sat, 25 Jul 2015 08:44:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id BTzS95PhXk8h; Sat, 25 Jul 2015 08:44:47 +0200 (CEST) X-Auth-Info: YnNns/GBOxdQyX8ljXw3f2sMB4y2br6lrwvoiMdCd4ZBC8f8pvmGWH3Ha6VieJcN Received: from linux.local (host-188-174-209-152.customer.m-online.net [188.174.209.152]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 25 Jul 2015 08:44:47 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id 75B7E1E52FE; Sat, 25 Jul 2015 08:44:43 +0200 (CEST) From: Andreas Schwab To: Chris Stacy Subject: Re: bug#21131: minibuffer repl delay References: X-Yow: I own seven-eighths of all the artists in downtown Burbank! Date: Sat, 25 Jul 2015 08:44:43 +0200 In-Reply-To: (Chris Stacy's message of "Fri, 24 Jul 2015 21:40:23 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21131 Cc: 21131@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Chris Stacy writes: > But doing the same thing in the minibuffer (eval-expression) > incurs a huge delay after I hit ENTER and before seeing the answer. > For example, the above expression took over 7 seconds before I saw: > > 2117 (#o4105, #x845) > > I can't tell if it is just arithmetic because the delays seem to random. It comes from trying to render the number as a character, and it can take some time to find a font that contains this character, if any. > Sometimes there doesn't seem to be a delay. > This always comes back right away: > > (length '(a b c d e)) > 5 (#o5, #x5, ?\C-e) 5 isn't a printable character, so it is rendered as ?\C-e. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 25 12:47:36 2015 Received: (at 21131) by debbugs.gnu.org; 25 Jul 2015 16:47:36 +0000 Received: from localhost ([127.0.0.1]:58698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ2bm-0003OT-IZ for submit@debbugs.gnu.org; Sat, 25 Jul 2015 12:47:35 -0400 Received: from mail-ig0-f173.google.com ([209.85.213.173]:37392) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZIuhE-00074M-Bl for 21131@debbugs.gnu.org; Sat, 25 Jul 2015 04:20:42 -0400 Received: by igbpg9 with SMTP id pg9so35295147igb.0 for <21131@debbugs.gnu.org>; Sat, 25 Jul 2015 01:20:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=ppY4sf7fohcfF6aCslHHq9JszvnzbDt9jsV7ZAmF8bo=; b=LURbfe1cz7RnfRRSIVVHzBBDH8P+LBSenviX4C6nKsWsRPt6mfhilwT59PJkwdpOcs ckOP/VmCZEaiNXlcda9VVzAuQ5/M1BeTLlxRXvbFHdB09CMKNRKfA6pBNNEtD6NWabYf dOqPMboiFx3UaEl6df5VcL2I/eWftPhInYKxARGqif+aZRnhpTK8ai4lIby2X/NiHCin tRsJRJS4xNpAZIzxOr85w34RO339APHUGWl0IT2KcGstxawBcuTt0D7Q5xEgRW3gSnGX SFPdT0tlHvBiAXH1OSIpE+ZsEMvnaHbMEEcoOYJULUUX0H/d/Sit158FBkunXavMezil Uorg== X-Gm-Message-State: ALoCoQlYzYSP8WQMfuu64kOMI3a2SVpUfW9e12uT3XXhMNt3Uvys2ZhmrfG0gkMwcgRp+e0zlB/P X-Received: by 10.50.141.164 with SMTP id rp4mr2799540igb.2.1437812439791; Sat, 25 Jul 2015 01:20:39 -0700 (PDT) Received: from [192.168.43.165] (144.sub-70-208-139.myvzw.com. [70.208.139.144]) by smtp.gmail.com with ESMTPSA id lr1sm1057774igb.10.2015.07.25.01.20.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Jul 2015 01:20:38 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: bug#21131: minibuffer repl delay From: Chris Stacy In-Reply-To: Date: Sat, 25 Jul 2015 04:20:35 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <912A587A-894C-4A4B-9A9D-BEE8E4FE1A44@dtpq.com> References: To: Andreas Schwab X-Mailer: Apple Mail (2.2102) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21131 X-Mailman-Approved-At: Sat, 25 Jul 2015 12:47:33 -0400 Cc: 21131@debbugs.gnu.org, Christopher Stacy X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > On Jul 25, 2015, at 2:44 AM, Andreas Schwab = wrote: >=20 > Chris Stacy writes: >=20 >> But doing the same thing in the minibuffer (eval-expression) >> incurs a huge delay after I hit ENTER and before seeing the answer. >> For example, the above expression took over 7 seconds before I saw: >>=20 >> 2117 (#o4105, #x845) >>=20 >> I can't tell if it is just arithmetic because the delays seem to = random. >=20 > It comes from trying to render the number as a character, and it can > take some time to find a font that contains this character, if any. Is there some setting that would prevent it from doing that? Maybe I should just write my own command; maybe there is something I can = bind? i just want a straight PRINT, like I get in *scratch* Thank you! From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 25 14:28:31 2015 Received: (at 21131) by debbugs.gnu.org; 25 Jul 2015 18:28:31 +0000 Received: from localhost ([127.0.0.1]:58714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ4BT-0005gK-Ce for submit@debbugs.gnu.org; Sat, 25 Jul 2015 14:28:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43446) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ4BR-0005gC-8p for 21131@debbugs.gnu.org; Sat, 25 Jul 2015 14:28:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJ4BQ-0000sR-CQ for 21131@debbugs.gnu.org; Sat, 25 Jul 2015 14:28:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ4BK-0000r5-0H; Sat, 25 Jul 2015 14:28:22 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZJ4BI-0003xF-31; Sat, 25 Jul 2015 14:28:20 -0400 From: Glenn Morris To: Andreas Schwab Subject: Re: bug#21131: minibuffer repl delay References: X-Spook: Emergency management Centro USDOJ Aldergrove USSS Home X-Ran: |G+*59;8c(Fv;MeU=2/xrB,;et_VFWv`6&y~a';kJ_A;h>fM8tJv{'.5{+#7]V5wrgNGzT X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sat, 25 Jul 2015 14:28:19 -0400 In-Reply-To: (Andreas Schwab's message of "Sat, 25 Jul 2015 08:44:43 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 21131 Cc: 21131@debbugs.gnu.org, Chris Stacy X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.2 (------) Andreas Schwab wrote: >> I can't tell if it is just arithmetic because the delays seem to random. > > It comes from trying to render the number as a character, and it can > take some time to find a font that contains this character, if any. I really think this behaviour should be optional, and off by default, or on a separate command. I've seen it cause this same problem over and over again. (I'm pretty sure there is at least one open bug report with the same root cause.) Personally I have never wanted/needed the character representation of numbers printed in this way. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 25 14:39:03 2015 Received: (at control) by debbugs.gnu.org; 25 Jul 2015 18:39:03 +0000 Received: from localhost ([127.0.0.1]:58726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ4Lf-0005xa-A8 for submit@debbugs.gnu.org; Sat, 25 Jul 2015 14:39:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45600) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ4Le-0005xT-2y for control@debbugs.gnu.org; Sat, 25 Jul 2015 14:39:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJ4Ld-0006Bv-EF for control@debbugs.gnu.org; Sat, 25 Jul 2015 14:39:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ4Ld-0006Br-BG for control@debbugs.gnu.org; Sat, 25 Jul 2015 14:39:01 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZJ4Ld-00030D-3h for control@debbugs.gnu.org; Sat, 25 Jul 2015 14:39:01 -0400 Subject: control message for bug 21131 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sat, 25 Jul 2015 14:39:01 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.2 (------) retitle 21131 printing character representation of numbers can be slow severity 21131 minor From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 25 14:48:50 2015 Received: (at 21131) by debbugs.gnu.org; 25 Jul 2015 18:48:50 +0000 Received: from localhost ([127.0.0.1]:58730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ4V7-0007hS-Ax for submit@debbugs.gnu.org; Sat, 25 Jul 2015 14:48:49 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:49530) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJ4V4-0007hH-6b for 21131@debbugs.gnu.org; Sat, 25 Jul 2015 14:48:47 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NS2000003XSLY00@a-mtaout22.012.net.il> for 21131@debbugs.gnu.org; Sat, 25 Jul 2015 21:48:44 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NS2000IX49789C0@a-mtaout22.012.net.il>; Sat, 25 Jul 2015 21:48:44 +0300 (IDT) Date: Sat, 25 Jul 2015 21:48:46 +0300 From: Eli Zaretskii Subject: Re: bug#21131: minibuffer repl delay In-reply-to: X-012-Sender: halo1@inter.net.il To: Glenn Morris Message-id: <83zj2kysxd.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21131 Cc: 21131@debbugs.gnu.org, schwab@linux-m68k.org, cstacy@dtpq.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Glenn Morris > Date: Sat, 25 Jul 2015 14:28:19 -0400 > Cc: 21131@debbugs.gnu.org, Chris Stacy > > I really think this behaviour should be optional, and off by default, or > on a separate command. Separate command or an optional behavior triggered by an argument, would be fine, I think. > Personally I have never wanted/needed the character representation of > numbers printed in this way. I have. One frequent (for me) use case is when I see a codepoint in hex and want to know which character that is. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 18:13:42 2016 Received: (at 21131) by debbugs.gnu.org; 9 Jul 2016 22:13:42 +0000 Received: from localhost ([127.0.0.1]:44448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM0VK-0005NJ-5t for submit@debbugs.gnu.org; Sat, 09 Jul 2016 18:13:42 -0400 Received: from mail-vk0-f44.google.com ([209.85.213.44]:35398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM0VH-0005N1-At; Sat, 09 Jul 2016 18:13:41 -0400 Received: by mail-vk0-f44.google.com with SMTP id v6so96533164vkb.2; Sat, 09 Jul 2016 15:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=h3T34OUNHoodk63PdZjwxYKCFPVoQGFrzekMQMBsve0=; b=wuIAuxmogNTy1eK0Z7F6tr7zVxcPtMPDWlMw2QlPUOy0NfjXT+r3dITjJLxhkI2CGd Tp6tg/frS5bWoxbisZBp50g2Bq9jPI0NKliHRuUtEPbPxHUnhehcblAO41bOfGBOxOmO EprXqysXoF50ShPOalIQR3/Abx6C6mVc51iK/FoGRnELGvh/Z+bq86nkBdDzMIwYzXHa rVIU00o6+SWa3taPx+E0exYbN90oCE8AfA+ahOJmkVQ8YSO4u3+z0QhmKWE0HqdggMe1 hEbE7yLrXWduwqdSK8pefmWdK90Nfoev3K9aSjyOi1Y7nA8MUkbdGL4uCqX3f4OKalLo oOgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=h3T34OUNHoodk63PdZjwxYKCFPVoQGFrzekMQMBsve0=; b=Yybd74tUZzwYoR/Iddd8BLnjwtb0/woue3o3H13LiOcsW1O4D5AR8aJAs9Hf72OKoU F0iPk9YvSAdETDUyHayheYx1bii0teVY6XEoVeeOwZnxeJ8O0v8RmDC0fYnBRUSRo7X0 bQqBAkyvP+NFWOwwWnuOM4xQ5k9SIa6CDD+0paaZyLSXOqdxiEhE1r+2OEP10ixXLWJH VvFLO/PhwAxujoEUA9sAkezV9N6hww5jYbh8wctfQM1yHvZQpqsbS+rRqget5LLvpSQP xWogROgaVHkqeMFwzgRzlcnbLQ34/n4d984jJnEeV7mvl2XBltdCdCcPymmvWG6dz6s+ PbkA== X-Gm-Message-State: ALyK8tKmVVxpz9O/Hk+DvkBmPxhq6pvY3kKrbM+aDfFsKrDBZrMr4oPQnpV2eci8T9njtsCS3dJtSnQ2vHiWQg== X-Received: by 10.159.35.40 with SMTP id 37mr4477459uae.118.1468102413991; Sat, 09 Jul 2016 15:13:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.1.41 with HTTP; Sat, 9 Jul 2016 15:13:04 -0700 (PDT) From: Richard Copley Date: Sat, 9 Jul 2016 23:13:04 +0100 Message-ID: Subject: Re: bug#23930: 25.0.95; "M-: 3072 RET" very slow to echo "3072 To: 21131@debbugs.gnu.org, control@debbugs.gnu.org, Noam Postavsky Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 21131 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) merge 23930 21131 thanks Noam Postavsky wrote: > Maybe a dup of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21131 Looks like it! Thanks, merging. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 18:18:46 2016 Received: (at control) by debbugs.gnu.org; 9 Jul 2016 22:18:46 +0000 Received: from localhost ([127.0.0.1]:44461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM0aE-00076U-8o for submit@debbugs.gnu.org; Sat, 09 Jul 2016 18:18:46 -0400 Received: from mail-vk0-f54.google.com ([209.85.213.54]:33517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM0aC-00076F-Fa for control@debbugs.gnu.org; Sat, 09 Jul 2016 18:18:44 -0400 Received: by mail-vk0-f54.google.com with SMTP id b192so96491473vke.0 for ; Sat, 09 Jul 2016 15:18:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=nZTC/IWGM4wgpfgp4Wq29XnlZxCG7pNRND0+SfdjTck=; b=wQB9QXQkXYDgOq4+ZbN8Ip03YAUIqK94ngfBlpvZo0tvQEcHWrT+qEb9kaTxW/++zR 77nGYQLLWJ0rmohq91+7XcUSHHQ+BMeT5n6Mb6f6MyDdUVeCksceWDYLgnhb+KB9lE8w J1g2/k+ywvVCosEy7rT52IW6/PlxQYPz7qRjE+7IVeRvmuul0qwCn4nlEB+nskJnnMGh aEyF6wlBoq5UfoyXh3lqgqbCH3TZcxyq4Gm4KzEng9YrY7csZa/4Lg5Z1zHLxJ7ja0+o 73GSvEgTzJ9hyXhL3e1BA+sn61ovVqpZ5Ps8qYyxf7kt0Kawuos9uIsyXAVNUgf3DAY+ FusA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=nZTC/IWGM4wgpfgp4Wq29XnlZxCG7pNRND0+SfdjTck=; b=jDjuH+d2wWETO2jF8lnKoE9nC6h6bKBd8/MSlhXmjGdsPrgtT183i+/VvAmCNM6i1u NL0pV6WBkvFpkiBQSDLi0oIALqshI0FCR/D1hNc7vQ2kAqLs35cNhTUCmihDvPbnu/u8 bXw35553U1t3wxynHxUTYwjTTtlYmsyTxXFFwZjD7xtqf7Ze+/eESPB4jSiJhIz9Sanu NWc6XX+rInj87OWJ4D9wQAm+4MUaVEcHDNWsk07xxynJYOPRPAuqB+mwNo1zraLJ+9S6 ojuqlKXxbYf0OKLuNDaI5KzkHXCxYBFRelIZrljGp0Hpt1n3s2cjet8ptLSmepM8YeGT zhbA== X-Gm-Message-State: ALyK8tK8m/iio/kBdBRTBdl1lMQeYeUbRRMJomeB5b8RzOFa+TBmbgkLX8uWQ2w4c6waMX0LRiclGYKOtpd6pA== X-Received: by 10.31.227.197 with SMTP id a188mr4913107vkh.136.1468102719150; Sat, 09 Jul 2016 15:18:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.1.41 with HTTP; Sat, 9 Jul 2016 15:18:09 -0700 (PDT) In-Reply-To: References: From: Richard Copley Date: Sat, 9 Jul 2016 23:18:09 +0100 Message-ID: Subject: Re: Processed (with 2 errors): Re: Processed (with 1 errors): Re: bug#23930: 25.0.95; "M-: 3072 RET" very slow to echo "3072 To: GNU bug tracker automated control server Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) severity 23930 minor merge 23930 21131 From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 19:59:44 2016 Received: (at control) by debbugs.gnu.org; 9 Jul 2016 23:59:44 +0000 Received: from localhost ([127.0.0.1]:44477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM29w-0002oV-Dz for submit@debbugs.gnu.org; Sat, 09 Jul 2016 19:59:44 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:34887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM29u-0002oE-OH; Sat, 09 Jul 2016 19:59:43 -0400 Received: by mail-it0-f51.google.com with SMTP id u186so35765499ita.0; Sat, 09 Jul 2016 16:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=sg+Z8r4I3tk2CdvHNX5ofQIx2JNXZtLA6zZVG1v6MkI=; b=Se7RT1ogFvGusgCB4rfqieVrh0dTh7Oujzo8MGK5E4VJg9jyfbtM3zxCdPPB2vDpzn 6x1nF69TZo/5ISA1lOH9uxYigTtirZv9Cw1Sfze/Mg6Ybs0rCynNTMW1AKgIEUPlJ0nv qHvkDx8LcWITdtfyNWaiJgIZw64UEiupCZ3NGmibm1+8obuOXt5Pg1ZAi90zY4eMyW2i WnSQ9hVHgfuTfdWDvoh6NnVhsSZ21PSCDPrPOkTHcZjxMwfGL21h/cXnVvJIpIqGNdi7 5limOzVtqrQ4d8wylUaGa7862im/exKKoUzu8eyDc4kjjcjKxL5QixmN8dPeoMiwVNn5 Ac2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=sg+Z8r4I3tk2CdvHNX5ofQIx2JNXZtLA6zZVG1v6MkI=; b=SY3//3WmoB1MhrPfmhQTXdHjEyuDk2StoCW3wJo2EztM3puaK9zj0jMz2Ll4cA/ZFA iHOQQq8+FVndKm6orNvnj2WUqoKBcUtcb/g8jtbSZ2PKgD9yucEjh39/zB/fK36Bd0nr UwgTx0JWFxyrIWoI2bSYq19sm7vBscXGrHK/BXBXt4ybJGTjgpJpQFEOt++kyYqRqk7O LHxp+g9WCBlAQcNJMATRZk2zbiOtl5Fv37lDhqO7cMzPCTC8JHFGNLMUoZCn5AzxhYAx h7XfsrmgmHQoK+l7TLrAL19O8b+DhDBfu/ExUft7c40ir3rimed7yE3nQH9+kgUGQZK1 zrow== X-Gm-Message-State: ALyK8tIFT82s4OxnnM+yN24Cpk3JlnxOZJBuDAYTa2YaQpB+WZon+c2KWTHwuZTVQnP9KA== X-Received: by 10.36.204.198 with SMTP id x189mr4530637itf.52.1468108777100; Sat, 09 Jul 2016 16:59:37 -0700 (PDT) Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id e127sm7442428ith.1.2016.07.09.16.59.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 16:59:36 -0700 (PDT) From: npostavs@users.sourceforge.net To: Stephen Berman Subject: Re: bug#23930: 25.0.95; "M-: 3072 RET" very slow to echo "3072 (#o6000, #xc00)" References: <87shvi2yiv.fsf@gmx.net> Date: Sat, 09 Jul 2016 19:59:35 -0400 In-Reply-To: <87shvi2yiv.fsf@gmx.net> (Stephen Berman's message of "Sun, 10 Jul 2016 01:16:08 +0200") Message-ID: <87r3b2gy6w.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control Cc: Richard Copley , 23930@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) forcemerge 23930 16828 quit Stephen Berman writes: > On Sat, 9 Jul 2016 17:37:23 -0400 Noam Postavsky wrote: > >> On Sat, Jul 9, 2016 at 5:32 PM, Richard Copley wrote: >>> Recipe from 'emacs -Q': >>> M-: 3072 RET >>> >>> This has the result of echoing "3072 (#o6000, #xc00)", but there's a >>> pause of around 8 seconds before the result is echoed. The long wait >>> is the bug I'm reporting. >> >> Maybe a dup of http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21131 > > And of bug#16828. Hah, which I must have looked at before, because I merged it with #19023. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 23:44:07 2017 Received: (at control) by debbugs.gnu.org; 26 Mar 2017 03:44:07 +0000 Received: from localhost ([127.0.0.1]:44871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crz67-0000NK-JD for submit@debbugs.gnu.org; Sat, 25 Mar 2017 23:44:07 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:38520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crz66-0000Mg-51; Sat, 25 Mar 2017 23:44:06 -0400 Received: by mail-it0-f54.google.com with SMTP id y18so23667899itc.1; Sat, 25 Mar 2017 20:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=f6E9rYmku5k1M2yZGuMkWdCYBOUaS87V9I2At4m+hJM=; b=adB+wWGNHY0in5JLgN+7AbV5+zbOjk8SQx0vYkDw8ih8Job+EwuDRwsNFLFt4s/jyj FiuVh+FGmX9Ew7GqiQkXwKEgzv2FrDBXkNjEbfzKc54sHf7qGVKHxIUqhiD2p7LAAcZ9 gEyM0SApKW4wJJM+9JLh9OL8H0SPUPVepi2rEqmgAMakZYsNlj9cMia767DomlhtIahI hmxt4rexVEhHwaJ59UvuDa+ZtoO2p+F7YYHVlNFkTc4psDxkxFpnrcMmC+FjLqBEfZj1 Vb/8SxwFIzfnKRmschq6aXca8ntVViVzua1gSbCjP4UAGXyaW7vGSgEoeZ78+fFZE9eJ Kb9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=f6E9rYmku5k1M2yZGuMkWdCYBOUaS87V9I2At4m+hJM=; b=nppY2/m/MOVTuaoPTbh1BG2f/ri1sJRrm/iuxA0YMVAw3kGNK9+tR2W04NphtPX3Hd vqGEmnh0vx40EBmBS1Pwqs4DyhkX4N2Kt/sXAur5X/g4MBchyIHQs3npawEjBGCpxe5C gG8TcKk1pjKAJLLcoKD4+7s0DkcA9lP4XHTSYuNxfo012OA7QOOI8fEDRy3rjIYIckim K3VCNe/0oYcNqfevbZg9aPJopoTLd9btzve7Zwhr4dbBNtIK9VpFFa3851k/qncvBJza AMULXwrZjcOIHV2pqG7aQKOvoCgb46tSyNq9oYDjvKeubUEgDxLasgOjcaC62AXMN6bi 5mPg== X-Gm-Message-State: AFeK/H1ielv9RPqgIMPAUbJ4h8UqdZts4dx/yNNdvOrNSObmwdUow50ACKZrYgHwayu+ug== X-Received: by 10.36.185.87 with SMTP id k23mr559824iti.12.1490499840568; Sat, 25 Mar 2017 20:44:00 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f196sm2081298itc.2.2017.03.25.20.43.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Mar 2017 20:43:59 -0700 (PDT) From: npostavs@users.sourceforge.net To: martin rudalics Subject: Re: bug#16828: 24.3.50; eval-expression, character representation of integer results time-consuming References: <83mwhk4v48.fsf@gnu.org> <83txbr2sye.fsf@gnu.org> <87zjljf086.fsf@rosalinde.fritz.box> <83a9di3lt1.fsf@gnu.org> <877g8mb3lh.fsf@Rainer.invalid> <530DBEEE.8060805@gmx.at> Date: Sat, 25 Mar 2017 23:45:22 -0400 In-Reply-To: <530DBEEE.8060805@gmx.at> (martin rudalics's message of "Wed, 26 Feb 2014 11:16:14 +0100") Message-ID: <87zig84s6l.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control Cc: Katsumi Yamaoka , 16828@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain tags 16828 patch quit martin rudalics writes: >> Especially on Cygwin, it's very annoying when edebugging. Displaying >> a character for the number of a point or a result of a calculation is >> useless. > > The most annoying aspect here is that it very often finds a character > with a superscript and increases the height of my echo area. Think of > how valuable this is when debugging code resizing the echo area ;-) I wonder how it could take so long to fix this silly thing. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Limit-integers-printed-as-characters-Bug-16828.patch Content-Description: patch >From 301202a7963ee377bf0f51f703e0282782c7a6c1 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sat, 25 Mar 2017 23:31:11 -0400 Subject: [PATCH v1] Limit integers printed as characters (Bug#16828) * lisp/simple.el (eval-expression-print-maximum-character): New variable. (eval-expression-print-format): Only display value as character if it's equal or less than `eval-expression-print-maximum-character'. * doc/emacs/building.texi (Lisp Eval): Document it. * etc/NEWS: Announce it. --- doc/emacs/building.texi | 6 +++++- etc/NEWS | 4 ++++ lisp/simple.el | 14 +++++++++++--- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index ba8eae0759..2ee08e2505 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi @@ -1485,7 +1485,8 @@ Lisp Eval Emacs Lisp expression preceding point in the buffer, and displays the value in the echo area. When the result of an evaluation is an integer, it is displayed together with the value in other formats -(octal, hexadecimal, and character). +(octal, hexadecimal, and character if +@code{eval-expression-print-maximum-character} allows it). If @kbd{M-:} or @kbd{C-x C-e} is given a prefix argument, it inserts the value into the current buffer at point, rather than displaying it @@ -1524,6 +1525,7 @@ Lisp Eval @vindex eval-expression-print-level @vindex eval-expression-print-length +@vindex eval-expression-print-maximum-character @vindex eval-expression-debug-on-error The options @code{eval-expression-print-level} and @code{eval-expression-print-length} control the maximum depth and @@ -1533,6 +1535,8 @@ Lisp Eval printed in full. @code{eval-expression-debug-on-error} controls whether evaluation errors invoke the debugger when these commands are used; its default is @code{t}. +@code{eval-expression-print-maximum-character} prevents large integers +from being displayed as characters. @node Lisp Interaction @section Lisp Interaction Buffers diff --git a/etc/NEWS b/etc/NEWS index 62d06f3561..c09cc390bb 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -334,6 +334,10 @@ always restricting the margin to a quarter of the window. ** Emacsclient has a new option -u/--suppress-output. The option suppresses display of return values from the server process. ++++ +** The new variable 'eval-expression-print-maximum-character' prevents +large integers from being displayed as characters. + * Editing Changes in Emacs 26.1 diff --git a/lisp/simple.el b/lisp/simple.el index 681cf83807..599c7ebf30 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1450,6 +1450,13 @@ eval-expression-debug-on-error :type 'boolean :version "21.1") +(defcustom eval-expression-print-maximum-character 127 + "The largest integer that will be displayed as a character. +This affects printing by `eval-expression-print-format'." + :group 'lisp + :type 'integer + :version "26.1") + (defun eval-expression-print-format (value) "If VALUE in an integer, return a specially formatted string. This string will typically look like \" (#o1, #x1, ?\\C-a)\". @@ -1460,9 +1467,10 @@ eval-expression-print-format (or (eq standard-output t) (zerop (prefix-numeric-value current-prefix-arg)))) (let ((char-string - (if (and (characterp value) - (char-displayable-p value)) - (prin1-char value)))) + (and (characterp value) + (<= value eval-expression-print-maximum-character) + (char-displayable-p value) + (prin1-char value)))) (if char-string (format " (#o%o, #x%x, %s)" value value char-string) (format " (#o%o, #x%x)" value value))))) -- 2.11.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 19 18:27:26 2017 Received: (at control) by debbugs.gnu.org; 19 May 2017 22:27:26 +0000 Received: from localhost ([127.0.0.1]:55702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBqMn-0007j6-Sh for submit@debbugs.gnu.org; Fri, 19 May 2017 18:27:26 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:36117) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBqMm-0007iq-Mf; Fri, 19 May 2017 18:27:25 -0400 Received: by mail-io0-f194.google.com with SMTP id f102so8652752ioi.3; Fri, 19 May 2017 15:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=s/WN7AbycwwMcEt5uy7587bFag5AmXZgnvWfPyNpGQY=; b=ZypiEDfEkqxL4qISBahlANGVFWfbqaGM9q8/II9Ln0L49oGgFgoXVBr4uRaXXWWChL OTLq+oI6hoURS0R2QVNDX+5/90tUzF7ivxO3ivxIzGlMMvmMdjXeG/DN3QBIgoQnk/4y XpFhN5+WSNXvfTdnQAArLUbFXnC9ILqDfb9XQTeEKPiVjFF8y9+PFbidIO7T214WiqUX I6suUPu1eASUK7O2hGN7SnQZWJz0y9Ct9th6Mk8w6FmcRKBy2FX5iSAeViBrpTbozEBc +baIZSezWmF45LUNR/dD3Tq/pxjzT2Z+5kr3DdsFtr1ZJljfYO3brXKNazdFmu5f12ze ATYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=s/WN7AbycwwMcEt5uy7587bFag5AmXZgnvWfPyNpGQY=; b=h9xkvucueNGUCGgBAK//ERWuDReYIT36xJpJ6HvGOSn+xZRfu8JdzZ8sODR0Sx9U8q mBGI/BRZTysgI/Y0Xc7U++MFN6VkB+Tz0lFHvaT+1iQyRZH2j0NzFscDiAkS/kVdLXoh iacPBZbloch6hRlPezCZ6u3c9QtkdjjQ9K8Kb4DMRCn5MtqlUzCALzbMB06AFvMTvG7b wo7fGCToWXb4Ua2rh/9q0WeAf9hjp/HzXs2gIWYW1rEx/oZyqFbLvW7FsfYIgy9pgs3+ JPWHxBX02kYObrw9cqVgQSTB1dp2lPydianlYsTG2/n9fz2ilOfDTnuuL351exk3NglN hiRg== X-Gm-Message-State: AODbwcDhyoyniT6/FYxmIt14GQ74AJllrS7ayrx2Ug8yEsKVmh/zwSyQ Q1yiGwVnNsdRkw== X-Received: by 10.107.140.194 with SMTP id o185mr14417471iod.139.1495232838965; Fri, 19 May 2017 15:27:18 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id f15sm4399132ioi.58.2017.05.19.15.27.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 May 2017 15:27:18 -0700 (PDT) From: npostavs@users.sourceforge.net To: Eli Zaretskii Subject: Re: bug#16828: 24.3.50; eval-expression, character representation of integer results time-consuming References: <83txbr2sye.fsf@gnu.org> <87zjljf086.fsf@rosalinde.fritz.box> <83a9di3lt1.fsf@gnu.org> <877g8mb3lh.fsf@Rainer.invalid> <530DBEEE.8060805@gmx.at> <87zig84s6l.fsf@users.sourceforge.net> <83wpbc9ldc.fsf@gnu.org> <83lgrs9k8p.fsf@gnu.org> <87inmw3x5b.fsf@users.sourceforge.net> <83fui09i5z.fsf@gnu.org> <87fui03pjr.fsf@users.sourceforge.net> <834lyg9b9t.fsf@gnu.org> <87a88752ej.fsf@users.sourceforge.net> <83y3vr9909.fsf@gnu.org> <878tltiure.fsf@users.sourceforge.net> <83efvl4ann.fsf@gnu.org> <8760gwin7f.fsf@users.sourceforge.net> <83zie81rln.fsf@gnu.org> Date: Fri, 19 May 2017 18:28:55 -0400 In-Reply-To: <83zie81rln.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 May 2017 00:09:24 +0300") Message-ID: <8737c0iiqg.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: control Cc: 16828@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) tags 16828 fixed close 16828 26.1 quit Eli Zaretskii writes: > Thanks, the new version is fine with me. Pushed to master [1: acd58c9198] [2: 267be4bdc2]. [1: acd58c9198]: 2017-05-19 18:16:38 -0400 Limit integers printed as characters (Bug#16828) http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=acd58c9198c08c3eb631a3f036b4f95073f7fe10 [2: 267be4bdc2]: 2017-05-19 18:16:15 -0400 Refactor lisp eval result printing http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=267be4bdc28564a99f45da29e84eb98838117b50 From unknown Sat Jun 21 03:08:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Jun 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator