From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 15:18:24 2014 Received: (at submit) by debbugs.gnu.org; 11 Nov 2014 20:18:24 +0000 Received: from localhost ([127.0.0.1]:57656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoHtQ-0004lP-C6 for submit@debbugs.gnu.org; Tue, 11 Nov 2014 15:18:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46672) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoHtO-0004lH-6g for submit@debbugs.gnu.org; Tue, 11 Nov 2014 15:18:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoHtH-0002bC-8Q for submit@debbugs.gnu.org; Tue, 11 Nov 2014 15:18:21 -0500 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]:57831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoHtH-0002b8-5L for submit@debbugs.gnu.org; Tue, 11 Nov 2014 15:18:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoHtB-0005Od-8r for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 15:18:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoHt5-0002aO-CE for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 15:18:09 -0500 Received: from raven.ravenbrook.com ([94.229.129.33]:38774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoHt5-0002Zf-4o for bug-gnu-emacs@gnu.org; Tue, 11 Nov 2014 15:18:03 -0500 Received: from [192.168.0.3] (cpc22-cmbg15-2-0-cust180.5-4.cable.virginm.net [86.27.176.181]) (authenticated bits=0) by raven.ravenbrook.com (8.14.8/8.14.5) with ESMTP id sABK1D5n049083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 11 Nov 2014 20:01:14 GMT (envelope-from gdr@garethrees.org) X-Authentication-Warning: raven.ravenbrook.com: Host cpc22-cmbg15-2-0-cust180.5-4.cable.virginm.net [86.27.176.181] claimed to be [192.168.0.3] From: Gareth Rees Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: 24.4; Long pause when evaluating numeric expression Message-Id: Date: Tue, 11 Nov 2014 20:01:08 +0000 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) X-Mailer: Apple Mail (2.1990.1) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (raven.ravenbrook.com [94.229.129.33]); Tue, 11 Nov 2014 20:01:14 +0000 (GMT) X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x 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: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2014-10-20 on builder10-9.porkrind.org In a fresh emacs -Q, if I type: M-: 1000000 RET there is a pause of about 10 seconds before Emacs displays: 1000000 (#o3641100, #xf4240) I suggest that the length of this pause be reduced. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 15:36:19 2014 Received: (at 19023) by debbugs.gnu.org; 11 Nov 2014 20:36:19 +0000 Received: from localhost ([127.0.0.1]:57662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoIAl-0005BV-0E for submit@debbugs.gnu.org; Tue, 11 Nov 2014 15:36:19 -0500 Received: from mtaout29.012.net.il ([80.179.55.185]:52881) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoIAi-0005BM-Kr for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 15:36:17 -0500 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NEW00B0062LEJ00@mtaout29.012.net.il> for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 22:34:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEW009QB6HNB230@mtaout29.012.net.il>; Tue, 11 Nov 2014 22:34:35 +0200 (IST) Date: Tue, 11 Nov 2014 22:36:09 +0200 From: Eli Zaretskii Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression In-reply-to: X-012-Sender: halo1@inter.net.il To: Gareth Rees Message-id: <83zjbxlbk6.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19023 Cc: 19023@debbugs.gnu.org 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: Gareth Rees > Date: Tue, 11 Nov 2014 20:01:08 +0000 > > In GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) > of 2014-10-20 on builder10-9.porkrind.org > > In a fresh emacs -Q, if I type: > > M-: 1000000 RET > > there is a pause of about 10 seconds before Emacs displays: > > 1000000 (#o3641100, #xf4240) > > I suggest that the length of this pause be reduced. My crystal ball says that this pause is due to Emacs trying to locate a font that can display a character whose codepoint is U+F4240. In which case, the pause is not n Emacs, it is in system libraries that search the available fonts. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 15:51:41 2014 Received: (at 19023) by debbugs.gnu.org; 11 Nov 2014 20:51:41 +0000 Received: from localhost ([127.0.0.1]:57667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoIPc-0005Wl-JM for submit@debbugs.gnu.org; Tue, 11 Nov 2014 15:51:40 -0500 Received: from raven.ravenbrook.com ([94.229.129.33]:56299) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoIPZ-0005WY-G2 for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 15:51:38 -0500 Received: from [192.168.0.3] (cpc22-cmbg15-2-0-cust180.5-4.cable.virginm.net [86.27.176.181]) (authenticated bits=0) by raven.ravenbrook.com (8.14.8/8.14.5) with ESMTP id sABKpZdC052711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <19023@debbugs.gnu.org>; Tue, 11 Nov 2014 20:51:35 GMT (envelope-from gdr@garethrees.org) X-Authentication-Warning: raven.ravenbrook.com: Host cpc22-cmbg15-2-0-cust180.5-4.cable.virginm.net [86.27.176.181] claimed to be [192.168.0.3] Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression From: Gareth Rees In-Reply-To: <83zjbxlbk6.fsf@gnu.org> Date: Tue, 11 Nov 2014 20:51:29 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> References: <83zjbxlbk6.fsf@gnu.org> To: 19023@debbugs.gnu.org X-Mailer: Apple Mail (2.1990.1) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (raven.ravenbrook.com [94.229.129.33]); Tue, 11 Nov 2014 20:51:35 +0000 (GMT) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19023 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: -2.3 (--) > My crystal ball says that this pause is due to Emacs trying to locate > a font that can display a character whose codepoint is U+F4240. In > which case, the pause is not n Emacs, it is in system libraries that > search the available fonts. That was my guess too, and if I was hoping to see a character at that = code point, I would have to be prepared to wait for the system to search = all the fonts to find it. But normally when I evaluate a numeric expression, I do not want to see = a character=E2=80=94I=E2=80=99m just using M-: as a calculator=E2=80=94and= so the wait is unnecessary (and a regression from 24.3).= From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 16:05:05 2014 Received: (at 19023) by debbugs.gnu.org; 11 Nov 2014 21:05:05 +0000 Received: from localhost ([127.0.0.1]:57686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoIcb-0005r0-8q for submit@debbugs.gnu.org; Tue, 11 Nov 2014 16:05:05 -0500 Received: from mtaout26.012.net.il ([80.179.55.182]:42498) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoIcY-0005qN-91 for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 16:05:03 -0500 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NEW006007LQMR00@mtaout26.012.net.il> for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 23:03:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEW007H07TZ4E00@mtaout26.012.net.il>; Tue, 11 Nov 2014 23:03:35 +0200 (IST) Date: Tue, 11 Nov 2014 23:04:54 +0200 From: Eli Zaretskii Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression In-reply-to: <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> X-012-Sender: halo1@inter.net.il To: Gareth Rees Message-id: <83y4rhla89.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 19023 Cc: 19023@debbugs.gnu.org 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: Gareth Rees > Date: Tue, 11 Nov 2014 20:51:29 +0000 > > But normally when I evaluate a numeric expression, I do not want to see a character—I’m just using M-: as a calculator But Emacs doesn't (and cannot) know what you want. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 16:42:08 2014 Received: (at 19023) by debbugs.gnu.org; 11 Nov 2014 21:42:08 +0000 Received: from localhost ([127.0.0.1]:57698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoJCS-0006jY-2w for submit@debbugs.gnu.org; Tue, 11 Nov 2014 16:42:08 -0500 Received: from raven.ravenbrook.com ([94.229.129.33]:17793) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoJCO-0006jO-R7 for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 16:42:06 -0500 Received: from [192.168.0.3] (cpc22-cmbg15-2-0-cust180.5-4.cable.virginm.net [86.27.176.181]) (authenticated bits=0) by raven.ravenbrook.com (8.14.8/8.14.5) with ESMTP id sABLg23l057882 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <19023@debbugs.gnu.org>; Tue, 11 Nov 2014 21:42:03 GMT (envelope-from gdr@garethrees.org) X-Authentication-Warning: raven.ravenbrook.com: Host cpc22-cmbg15-2-0-cust180.5-4.cable.virginm.net [86.27.176.181] claimed to be [192.168.0.3] Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression From: Gareth Rees In-Reply-To: <83y4rhla89.fsf@gnu.org> Date: Tue, 11 Nov 2014 21:41:57 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <25A71202-3D8C-43CB-AF1F-DCC33E0FFD36@garethrees.org> References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> <83y4rhla89.fsf@gnu.org> To: 19023@debbugs.gnu.org X-Mailer: Apple Mail (2.1990.1) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (raven.ravenbrook.com [94.229.129.33]); Tue, 11 Nov 2014 21:42:03 +0000 (GMT) X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 19023 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: -2.3 (--) > But Emacs doesn't (and cannot) know what you want. Surely Emacs should know that I don=E2=80=99t want to wait 10 seconds to = see the result of evaluating a numeric expression? Or if this is really = in doubt, Emacs could provide a user option by which I could tell it how = long I=E2=80=99m prepared to wait. Or Emacs could show me the numeric = result *while* it is searching the fonts, allowing me to hit C-g to = cancel the search if I am happy with just the number. For reference, the commit that introduced this problem appears to have = been 3223d013c2f94e6a0dd37879cf5faec8c0b2261d For the moment, I am working around the problem by advising = eval-expression-print-format, like this: (defun old-format (orig-fun value) (and (integerp value) (eq standard-output t) (format " (#o%o, #x%x)" value value))) (advice-add 'eval-expression-print-format :around #'old-format)= From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 17:25:57 2014 Received: (at 19023) by debbugs.gnu.org; 11 Nov 2014 22:25:57 +0000 Received: from localhost ([127.0.0.1]:57713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoJsq-0007kK-KZ for submit@debbugs.gnu.org; Tue, 11 Nov 2014 17:25:57 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:57620) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoJso-0007k7-AF for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 17:25:55 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XoJsV-0003kn-Fv; Tue, 11 Nov 2014 23:25:35 +0100 From: Lars Magne Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> <83y4rhla89.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUDJqGFak0FIZwDHZqn BA4qNIewnULAAAD17a0pGXj8ZBkpAAACbUlEQVQ4jWWUz2vbMBTHlRSXHPdGrfToqHjs2Nq07Fpo l+ZmDWK8WzVixTsWTJTekpE477oxBvtv9yTZXkIfxIj30fuhr57C2FuLJWNnb72gtY5OfQWbc+3s 3bF7KCvdGqjeG8jOqY5CXFpwn4wNlFKcP9Ne3nmrBmnXuVYclLILTtEqZAyXmDGW+4wWaCgyWwZN tSGguAZOICDnCLcZGzVmvWXMNQza9zRAxH1xMCuU2GjNXSrXLFaElsbQt6HiXHcHQdqMxtSXc7Vy EWUHxsbAbCZiuTQOdJpcLmZ/o1hy0FNDubraJN9ZDFJDmOtpjccijs51CDIPQY/vNwFAD4IBL0EC xXzJ5jxU2RGQ+qeMg/m8VCHXPcBchV9d8ZBAqWwqe4vFdjiJFeQSoKT9JdiIayvV/hzisJzkuYKF RnRZEhIEXwm8VzdS18aYNe49IJVeBxPa/Nt4q5DkZ2mAjan/qPDxdt6CJxeSJgXuXn/FMQAneUm0 FW5tqjS9vsTvd1yWJOBLczA1ojtGepXGuL/Tkk5uajhQBS9IShbsb+hySFmzXrY9eZCO8gtfd03N siPwsWkbooHYs6H4H7Hz/pfddIVMRFEPDh6s8FATEMMWJEULrGEmWB9hR+cIiEkPxoajbaqZmupH InjkwTV+plEbW/mwqTYitldowS1aO7hJRNyID/rZgxsaXTba2sMFdsn1Nw8+YTakyTZPVo0CA21n 16UaRiKyD2fjh99Nu+sqTa6SqNhhNzb2LyDtbYSdGq2ID53BRb/0gK4C7umBqwW9P6UXalGfRkwf TiN6i5MkTYQ1dgpSYX8iEbaBfzZzEuT9n/ztAAAAAElFTkSuQmCC X-Now-Playing: Various's _Deutsche Elektronische Musik 2 (1)_: "Amon =?iso-8859-1?Q?D=FC=FCl?= II - A Morning Excuse" X-Hashcash: 1:23:141111:gdr@garethrees.org::9LKa+KjK0A3qLRqt:000000000000000000000000000000000000000000041RZ X-Hashcash: 1:23:141111:19023@debbugs.gnu.org::cYbBSMKwamnMNUrD:0000000000000000000000000000000000000000A5Af X-Hashcash: 1:23:141111:eliz@gnu.org::UzayuWDXRbu1od4B:00000jzOi Date: Tue, 11 Nov 2014 23:25:35 +0100 In-Reply-To: <83y4rhla89.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Nov 2014 23:04:54 +0200") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-MailScanner-ID: 1XoJsV-0003kn-Fv X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1416349536.00346@2A4YCJe+HrCfuJbSqXI6fA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19023 Cc: 19023@debbugs.gnu.org, Gareth Rees 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.0 (/) Eli Zaretskii writes: >> But normally when I evaluate a numeric expression, I do not want to >> see a character=97I=92m just using M-: as a calculator > > But Emacs doesn't (and cannot) know what you want. I've always thought it rather strange that Emacs tries to display the character corresponding to the integer value when you M-: stuff. How useful is that, really? In my experience, I've never wanted to know the octal value or the corresponding Unicode codepoint of the integer. I have found the hex value useful, I think, once. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 20:52:25 2014 Received: (at 19023) by debbugs.gnu.org; 12 Nov 2014 01:52:25 +0000 Received: from localhost ([127.0.0.1]:57981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoN6e-0004bs-Rx for submit@debbugs.gnu.org; Tue, 11 Nov 2014 20:52:25 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:33859) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoN6c-0004bi-RF for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 20:52:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBBFYjEAsOJhIUGA0kiFTLcgEBAQEGAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IPAS-Result: Au0MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBBFYjEAsOJhIUGA0kiFTLcgEBAQEGAQEBAR6RCAeESwWLZKY8gW+EFh+CegEBAQ X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96682397" Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Nov 2014 20:52:22 -0500 Received: by pastel.home (Postfix, from userid 20848) id 1D079848C; Tue, 11 Nov 2014 20:52:22 -0500 (EST) From: Stefan Monnier To: Gareth Rees Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression Message-ID: References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> <83y4rhla89.fsf@gnu.org> <25A71202-3D8C-43CB-AF1F-DCC33E0FFD36@garethrees.org> Date: Tue, 11 Nov 2014 20:52:22 -0500 In-Reply-To: <25A71202-3D8C-43CB-AF1F-DCC33E0FFD36@garethrees.org> (Gareth Rees's message of "Tue, 11 Nov 2014 21:41:57 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19023 Cc: 19023@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.3 (/) [ Side comment. ] > (defun old-format (orig-fun value) > (and (integerp value) (eq standard-output t) > (format " (#o%o, #x%x)" value value))) > (advice-add 'eval-expression-print-format :around #'old-format) If you don't use `orig-fun', you might as well use :override rather than :around. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 20:56:29 2014 Received: (at 19023) by debbugs.gnu.org; 12 Nov 2014 01:56:29 +0000 Received: from localhost ([127.0.0.1]:57987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoNAb-0004mB-K7 for submit@debbugs.gnu.org; Tue, 11 Nov 2014 20:56:29 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:8489) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoNAZ-0004lz-1J for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 20:56:27 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IPAS-Result: Au4MAOatTlRLd+sd/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="96682689" Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Nov 2014 20:56:26 -0500 Received: by pastel.home (Postfix, from userid 20848) id 2C850848C; Tue, 11 Nov 2014 20:56:26 -0500 (EST) From: Stefan Monnier To: Lars Magne Ingebrigtsen Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression Message-ID: References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> <83y4rhla89.fsf@gnu.org> Date: Tue, 11 Nov 2014 20:56:26 -0500 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 11 Nov 2014 23:25:35 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19023 Cc: Eli Zaretskii , 19023@debbugs.gnu.org, Gareth Rees 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.3 (/) > I've always thought it rather strange that Emacs tries to display the > character corresponding to the integer value when you M-: stuff. How > useful is that, really? If you ask it this way, then it's probably never useful. But when you use M-: on an expression which returns a character, then I find it handy to see the character rather than only its integer value. But maybe this feature is more trouble than it's worth. After all, you can always use M-: (string ) RET to force Emacs to show you the character. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 21:04:47 2014 Received: (at 19023) by debbugs.gnu.org; 12 Nov 2014 02:04:47 +0000 Received: from localhost ([127.0.0.1]:57991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoNId-00057e-FP for submit@debbugs.gnu.org; Tue, 11 Nov 2014 21:04:47 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:37563) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoNIa-00057R-GZ for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 21:04:45 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XoNII-00065u-Ch; Wed, 12 Nov 2014 03:04:26 +0100 From: Lars Magne Ingebrigtsen To: Stefan Monnier Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> <83y4rhla89.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEWfnJv7+vjQzczf2NTl 4N19dXMaFRXz8e3////+//79/f3Fwb+PjIqwrar+/v3goG/KAAABUElEQVQ4jWN40YEAlQhmJwNI orOjcwWIV4GkiGEm75k9B86eiQRxJJAlZjAcuMBw9MwJTAllZ20nJesKDImXvDEX9sRGd2BKHGBl 2MN7CMyRQzFqs9EmJaC7MCV4jm49DeWgSty9cPs2NomO3ZfucjOA2e2OL5AlYk7fiYVICJtYIEl0 am/ZorR71Uqghkslfsg6ZsKYTSyCW5Al4KD7Srk1dgmWiXslsEm8DRK0qcAmIcpduMcCm0RpUKGK JVYJZuWLWHWYhrvv9MQqweKiiV3H4eqdWO24s6XY0wObhM/tox5YJY7F8M7AZnl7WlrqDGyWt4Sl pVVgddWctDQJrK4SwyVRmpamiSTxAmF7bRon1iBpKWSrwirRKFXdiVWiD5hSsEqsWoFD4iXQHV7Y JICgEyTRBZGYgSKDS0eHIy4J0nXglOggX6IPt8QL7BLzAMKlTrt2lMRIAAAAAElFTkSuQmCC X-Now-Playing: Circlesquare's _Songs About Dancing And Drugs_: "All Live But The Ending" X-Hashcash: 1:23:141112:gdr@garethrees.org::9N+J3k3RafYV6pvK:00000000000000000000000000000000000000000002hCk X-Hashcash: 1:23:141112:19023@debbugs.gnu.org::wpAyfo7XBvMu25Ti:0000000000000000000000000000000000000000hhTC X-Hashcash: 1:23:141112:eliz@gnu.org::OqHWBPsI74/yyoZU:0000128Vs X-Hashcash: 1:23:141112:monnier@iro.umontreal.ca::fbfv65dmbLN8SVzs:0000000000000000000000000000000000001PNPu Date: Wed, 12 Nov 2014 03:04:26 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 11 Nov 2014 20:56:26 -0500") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1XoNII-00065u-Ch X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1416362666.62388@Ubw9GtUIhkTQB++CovSnOA X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19023 Cc: Eli Zaretskii , 19023@debbugs.gnu.org, Gareth Rees 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.0 (/) Stefan Monnier writes: > But maybe this feature is more trouble than it's worth. After all, you > can always use M-: (string ) RET to force Emacs to show you the > character. Yeah. I tried reproducing the problem reported here, and I got nothing. But I evaluated a number of digits, and one of them took a couple of seconds to display. (This is with X over ssh over wifi.) So I'm able to reproduce the problem, and the slower the X connection is, the more severe it probably is. Unless somebody else thinks this is really useful functionality, I think we should probably just ditch it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 11 21:07:19 2014 Received: (at 19023) by debbugs.gnu.org; 12 Nov 2014 02:07:19 +0000 Received: from localhost ([127.0.0.1]:58006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoNL4-0005FW-SC for submit@debbugs.gnu.org; Tue, 11 Nov 2014 21:07:19 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:33373) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoNL3-0005FG-3Y for 19023@debbugs.gnu.org; Tue, 11 Nov 2014 21:07:17 -0500 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XoNKl-00068K-32; Wed, 12 Nov 2014 03:06:59 +0100 From: Lars Magne Ingebrigtsen To: Stefan Monnier Subject: Re: bug#19023: 24.4; Long pause when evaluating numeric expression References: <83zjbxlbk6.fsf@gnu.org> <79C49F77-295B-406F-8B5E-924415706513@garethrees.org> <83y4rhla89.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEWfnJv7+vjQzczf2NTl 4N19dXMaFRXz8e3////+//79/f3Fwb+PjIqwrar+/v3goG/KAAABUElEQVQ4jWN40YEAlQhmJwNI orOjcwWIV4GkiGEm75k9B86eiQRxJJAlZjAcuMBw9MwJTAllZ20nJesKDImXvDEX9sRGd2BKHGBl 2MN7CMyRQzFqs9EmJaC7MCV4jm49DeWgSty9cPs2NomO3ZfucjOA2e2OL5AlYk7fiYVICJtYIEl0 am/ZorR71Uqghkslfsg6ZsKYTSyCW5Al4KD7Srk1dgmWiXslsEm8DRK0qcAmIcpduMcCm0RpUKGK JVYJZuWLWHWYhrvv9MQqweKiiV3H4eqdWO24s6XY0wObhM/tox5YJY7F8M7AZnl7WlrqDGyWt4Sl pVVgddWctDQJrK4SwyVRmpamiSTxAmF7bRon1iBpKWSrwirRKFXdiVWiD5hSsEqsWoFD4iXQHV7Y JICgEyTRBZGYgSKDS0eHIy4J0nXglOggX6IPt8QL7BLzAMKlTrt2lMRIAAAAAElFTkSuQmCC X-Now-Playing: Circlesquare's _Songs About Dancing And Drugs_: "All Live But The Ending" X-Hashcash: 1:23:141112:gdr@garethrees.org::Jwm2lhE0DV5irfmz:00000000000000000000000000000000000000000001Gy/ X-Hashcash: 1:23:141112:monnier@iro.umontreal.ca::1xQvTda8HWCN5L81:00000000000000000000000000000000000006WBj X-Hashcash: 1:23:141112:19023@debbugs.gnu.org::pPc0Cl8KtAn7soqt:0000000000000000000000000000000000000000avdg X-Hashcash: 1:23:141112:eliz@gnu.org::Rz4MY4wD/Ia6U+nQ:000016EjN Date: Wed, 12 Nov 2014 03:06:58 +0100 In-Reply-To: (Stefan Monnier's message of "Tue, 11 Nov 2014 20:56:26 -0500") Message-ID: User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1XoNKl-00068K-32 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1416362819.4788@3w0BXanPxWx7QLbYc1RXwg X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19023 Cc: Eli Zaretskii , 19023@debbugs.gnu.org, Gareth Rees 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.0 (/) On the other hand, M-: (following-char) currently returns 110 (#o156, #x6e, ?n) which is useful, come to think of it. Er. So I don't know... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 30 23:45:42 2016 Received: (at control) by debbugs.gnu.org; 1 Jul 2016 03:45:42 +0000 Received: from localhost ([127.0.0.1]:33026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIpOg-0007ob-HK for submit@debbugs.gnu.org; Thu, 30 Jun 2016 23:45:42 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:34424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIpOe-0007iV-Qc for control@debbugs.gnu.org; Thu, 30 Jun 2016 23:45:41 -0400 Received: by mail-oi0-f47.google.com with SMTP id s66so94504232oif.1 for ; Thu, 30 Jun 2016 20:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=5zSM/qCZLjvwR/hkOSvtCwtuWkHVckndOBO8IPs7nnM=; b=d2SKOZzJMhU9jcPG7zezoVJqUDsRY7hjjjVJv16CcnP9M9iSAF11E+cHBPeALNish1 CBqkXtpafuMDhJGBBCewgNpk2YaEXL3bJg8cdW3Igw8BdrdU6rVZXHKH3OCe4FVKD2IK inCchyzn9w5Njr20jJOmyrvixe/kbV0M3e6CmtAIJXuapJK98m5Zpi66QM/+HiHl/vOG eSzhG2tnAyk2pao73UqdTKdApLm9N9gt6MAAKnQFvZSccAXPb2oh9scO2Vbzom0QVuhG ze7dSxuG8uokEkjxOR8tXZqBGT9bzQR0L1LFpi+aqKxtFl6C4Wh2xZdlmzkZZBqToEsQ IXhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=5zSM/qCZLjvwR/hkOSvtCwtuWkHVckndOBO8IPs7nnM=; b=N+vqNUGIiNukEt0Ais3A5UFEHTbsunlUqsozRT+gE4/6JvN5A6g41HF4V7bILSFcep WUECTj10ePFhOjcCiVIxSYdHjkvDpX4M9aBVmlwoRZWq3OLKOfFKxC0FJx6B8F+J4pmc LLv4kXn7+2Ny+KHilOoiyONVSeAIdGfdFBnhnpeNt/FpSRsRH0rQ7O2zNJFsbp5T/ZGS 6hBF1xiGssH8nE7t88OUSK2Ln4R7RD0AwhlW6a5+f1MIlYJLGXFDqiGcjoY+S8JCbTwL oTjTDzv9/xZv2oLXzEMI/zCcd2Jyj2JEzzJrRhukJ8b38ILs75BI4nz/yXa8uDA3oak6 Lm4w== X-Gm-Message-State: ALyK8tL3FPfgW8w1FO34VqtmAHP4uKGN9mBRTblPyEjCDcldx5F3UkG4dncyds/YdSalxcwJMadzEQ+MbDwKBQ== X-Received: by 10.202.5.193 with SMTP id 184mr10751655oif.143.1467344735151; Thu, 30 Jun 2016 20:45:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.52.238 with HTTP; Thu, 30 Jun 2016 20:45:34 -0700 (PDT) From: Noam Postavsky Date: Thu, 30 Jun 2016 23:45:34 -0400 X-Google-Sender-Auth: 50eM3ukSRItEs_UrIK9SZ_u24YE Message-ID: Subject: merge bugs 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 (/) # eval-expression numeric -> unicode char slow merge 16828 19023 # osx libgnutls fail merge 22929 23225 quit 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 Mon Aug 11 18:18:41 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