From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8890: 23.3; message writing slows emacs Date: Sun, 18 Sep 2011 09:16:43 -0400 Message-ID: References: <83ehzgvbwj.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316351838 3665 80.91.229.12 (18 Sep 2011 13:17:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Sep 2011 13:17:18 +0000 (UTC) Cc: Dave Abrahams , 8890@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 18 15:17:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R5HF9-0004EJ-VS for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 15:17:12 +0200 Original-Received: from localhost ([::1]:41238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5HF8-0006ca-O5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Sep 2011 09:17:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5HF6-0006cV-5P for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 09:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R5HF5-0003mV-6j for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 09:17:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R5HF5-0003mP-5I for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 09:17:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R5HJq-0001ML-AY for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2011 09:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2011 13:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8890-submit@debbugs.gnu.org id=B8890.13163521065201 (code B ref 8890); Sun, 18 Sep 2011 13:22:02 +0000 Original-Received: (at 8890) by debbugs.gnu.org; 18 Sep 2011 13:21:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5HJY-0001Lp-3m for submit@debbugs.gnu.org; Sun, 18 Sep 2011 09:21:45 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R5HJV-0001Lf-48 for 8890@debbugs.gnu.org; Sun, 18 Sep 2011 09:21:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EALzudU5FpZ7x/2dsb2JhbABBp0Z4gVMBAQQBViMFCws0EhQYDSSICrU3hngEoE6ERA X-IronPort-AV: E=Sophos;i="4.68,400,1312171200"; d="scan'208";a="136971664" Original-Received: from 69-165-158-241.dsl.teksavvy.com (HELO pastel.home) ([69.165.158.241]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Sep 2011 09:16:44 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BF76E591E3; Sun, 18 Sep 2011 09:16:43 -0400 (EDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 18 Sep 2011 08:50:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 18 Sep 2011 09:22:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51409 Archived-At: >>> If it's been less than (say) 50th of a second since the previous >>> message, then don't message anything. However, set up a timer in a >>> 100th of a second's time to display that message -- if nothing else has >>> been displayed in the mean time. >> That's much too tricky to implement. Making it reliable is going to >> be painful. > Is it getting a timer to work that's tricky? Yes, getting the timer to work, canceling it when needed, etc... It's fiddly. Especially when compared to the simplicity of progress-reporter-update/progress-reporter-done. > If we're not going to make `message' just behave, then a function pair > like `message-maybe' (which wouldn't output anything that arrives too > fast) and a `message-flush' (to say that we're finished with the dubious > messaging) might do the trick. They exist and are called progress-reporter-update and progress-reporter-done respectively. They just need to be improved to allow non-numerical non-nil updates. Stefan