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#25122: 24.5; function describe-variable hangs on large variables Date: Sat, 11 Mar 2017 15:55:50 -0800 (PST) Message-ID: <840af776-d1c9-4c81-a126-a6414a197a83@default> References: <20161206022112.GF25778@E15-2016.optimum.net> <87twahk19y.fsf@gmail.com> <87d1h4fld5.fsf@users.sourceforge.net> <871sxkyv2m.fsf@gmail.com> <87mvcs8j7w.fsf@users.sourceforge.net> <87lgsbtxwe.fsf@gmail.com> <871su38ogm.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489276639 23295 195.159.176.226 (11 Mar 2017 23:57:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Mar 2017 23:57:19 +0000 (UTC) Cc: 25122@debbugs.gnu.org, Stefan Monnier , Boruch Baum To: npostavs@users.sourceforge.net, Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 12 00:57:10 2017 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 1cmqsl-0004gr-Rq for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 00:57:07 +0100 Original-Received: from localhost ([::1]:45060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmqsq-0006uY-99 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Mar 2017 18:57:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmqsj-0006uG-JR for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 18:57:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmqsg-0000v8-Hg for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 18:57:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53642) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmqsg-0000uq-Da for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 18:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmqsf-0003ZZ-Uo for bug-gnu-emacs@gnu.org; Sat, 11 Mar 2017 18:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Mar 2017 23:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25122 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25122-submit@debbugs.gnu.org id=B25122.148927656213658 (code B ref 25122); Sat, 11 Mar 2017 23:57:01 +0000 Original-Received: (at 25122) by debbugs.gnu.org; 11 Mar 2017 23:56:02 +0000 Original-Received: from localhost ([127.0.0.1]:51841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmqri-0003YE-Gd for submit@debbugs.gnu.org; Sat, 11 Mar 2017 18:56:02 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:19513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmqrg-0003XQ-GC for 25122@debbugs.gnu.org; Sat, 11 Mar 2017 18:56:00 -0500 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v2BNtrhw032191 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 11 Mar 2017 23:55:54 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v2BNtrfP001807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 11 Mar 2017 23:55:53 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v2BNtq1G007204; Sat, 11 Mar 2017 23:55:52 GMT In-Reply-To: <871su38ogm.fsf@users.sourceforge.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] 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:130501 Archived-At: > >> I think the better way out is to do less work. E.g. bound the total > >> amount printed (and replace the rest with "..." that can be expanded o= n > >> demand). >=20 > Yes, there's no method that will achieve "instant" speeds for > load-history sized lists (well except for plain prin1, but that output > is hardly readable). >=20 > > The problem will be here again when you hit RET on "..." >=20 > Perhaps we could run the printing in a thread and suspend it after > printing X lines. Then hitting RET on "..." would just print another X > lines. (Caveat: I'm not really following this thread.) If you plan to do things like what I think you're suggesting, which will make a user hit several keys (e.g. RET on ... repeatedly) then please make that behavior _optional_. Give users the _possibility_ to just print the whole thing, without any other action (no prefix arg, no clicking ... etc.). I generally don't mind waiting, for example, and I don't want to have to hit ... and wait for a bit more - I want the whole thing the first time. And if/when you do show the value only partially, please make that _obvious_ to users. They should _immediately_ know that they are not seeing the full value.