From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#25122: 24.5; function describe-variable hangs on large variables Date: Sun, 12 Mar 2017 06:57:41 +0100 Message-ID: <87d1dnrq96.fsf@gmail.com> 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 X-Trace: blaine.gmane.org 1489298293 19756 195.159.176.226 (12 Mar 2017 05:58:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 05:58:13 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 24.5.1 Cc: 25122@debbugs.gnu.org, Stefan Monnier , Boruch Baum To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 12 06:58:09 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 1cmwW7-0004RV-74 for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 06:58:07 +0100 Original-Received: from localhost ([::1]:45701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmwWD-0005JV-C7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 00:58:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmwW7-0005JD-7T for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2017 00:58:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmwW2-0004Ev-9U for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2017 00:58:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cmwW2-0004El-5J for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2017 00:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cmwW1-0007R2-OE for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2017 00:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Mar 2017 05:58: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.148929827328563 (code B ref 25122); Sun, 12 Mar 2017 05:58:01 +0000 Original-Received: (at 25122) by debbugs.gnu.org; 12 Mar 2017 05:57:53 +0000 Original-Received: from localhost ([127.0.0.1]:51934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmwVt-0007Qd-Ey for submit@debbugs.gnu.org; Sun, 12 Mar 2017 00:57:53 -0500 Original-Received: from mail-wr0-f194.google.com ([209.85.128.194]:33960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cmwVr-0007QQ-FV for 25122@debbugs.gnu.org; Sun, 12 Mar 2017 00:57:51 -0500 Original-Received: by mail-wr0-f194.google.com with SMTP id u48so16255009wrc.1 for <25122@debbugs.gnu.org>; Sat, 11 Mar 2017 21:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=4sU3DnYbbZCpoXgqQ/0ajqhLiJfuF4BcyXkS12D1QH4=; b=CNNeLyv2N9rrL+Vh7qsZWwjHXQLPWY5iELkjpRTFaB+188bEmJBp8003ypo+sb1IRw ur7Wk9kwwMtjppZtIMRLB9O05TTv4uVTICv/U1xapIbhYp9x2XCS5Xl+BfyZHMPlRsND RTLRDhqmQjHUsSMvu8cP+k5Tg70TrVUaTfBA5Ck7zknHAzbCZ6/rb0sJ5gEGqu+NFxgu VtD5Z1iDo1EZt2rXjXP/vw3PV11oY77uQc56nIPgajxO9zlUQPmcfeqSwha5DZq3pngu Lw/RynfB4t5PAwVZQ54yg46kGDMC4IVNjlcYipgUAz+AKMCaB/miNEfet1JilnUD5pJy Sx4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=4sU3DnYbbZCpoXgqQ/0ajqhLiJfuF4BcyXkS12D1QH4=; b=nm2gzPSkqCLS4o2wL+q1iiPCLRhkJAX+bvxfkIHT3rrwVraY3T8TIVWk4yVZSrNeSp qnK5889BCBqxCFEoYyYZHhuutI8BIbFhUrinMbdQ/Ewixget9FNjxBAvHAq4LLpf+3Yh JWNxkQ0ZY9N/zDI41pzI84J0N2r4UpikHrF4culHNaBKO4YvUisPg1vSKNEtUUeNtwln EldzcnGezuPTiCdtMgO5/VOaZ77XcSDIRI6CMYKHtw9lKcQQeuh+sU6iomRxMwtoRtFl qDJhmmrTmQz9Rk4FaufSmN1GrejhZakLpZ+7NJ0gqNPsUFX1TsmVmzCz5+fYZVXWD4aE LXEA== X-Gm-Message-State: AMke39k8grlXPZwFlkwg+Vw+iCO81tewmK66YMNH4R7jZfilaXse+2wbmwBNq3hBywCZRg== X-Received: by 10.223.170.200 with SMTP id i8mr25734668wrc.79.1489298265627; Sat, 11 Mar 2017 21:57:45 -0800 (PST) Original-Received: from dell-14z ([37.165.155.81]) by smtp.gmail.com with ESMTPSA id f67sm6195056wmd.0.2017.03.11.21.57.43 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 11 Mar 2017 21:57:44 -0800 (PST) In-reply-to: <871su38ogm.fsf@users.sourceforge.net> 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:130506 Archived-At: npostavs@users.sourceforge.net writes: > Perhaps we could run the printing in a thread This is a good idea. > and suspend it after printing X lines. Instead just print something like "Computing foo value ..." and let finish the thread, letting user reading and moving cursor in docstring while it finishes, once done save-excursion and send message "Computing foo value done". > Then hitting RET on "..." would just print another X lines. I think like Drew that this would be annoying. That said, what's the reason of choosing the slower approach to compute value (in a thread or not) instead of using the approach described in the advice I sent here which takes 1s to compute load-history instead of 3mn ? (I use this advice since one year now without any problems). -- Thierry