From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#8890: 23.3; message writing slows emacs Date: Sat, 17 Sep 2011 07:19:56 +0200 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 1316237065 27100 80.91.229.12 (17 Sep 2011 05:24:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Sep 2011 05:24:25 +0000 (UTC) Cc: 8890@debbugs.gnu.org To: Dave Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 17 07:24:21 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 1R4nO0-0002Ew-GU for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 07:24:20 +0200 Original-Received: from localhost ([::1]:48602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4nNz-0003J9-Q7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 01:24:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4nNw-0003Iw-7X for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 01:24:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4nNu-0008Sm-T1 for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 01:24:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4nNu-0008Si-QJ for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 01:24:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4nSY-0000BV-3V; Sat, 17 Sep 2011 01:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2011 05:29: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.1316237296653 (code B ref 8890); Sat, 17 Sep 2011 05:29:02 +0000 Original-Received: (at 8890) by debbugs.gnu.org; 17 Sep 2011 05:28:16 +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 1R4nRn-0000AT-Fl for submit@debbugs.gnu.org; Sat, 17 Sep 2011 01:28:16 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4nRk-0000AL-Jy for 8890@debbugs.gnu.org; Sat, 17 Sep 2011 01:28:13 -0400 Original-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 1R4nN0-0001UE-6D; Sat, 17 Sep 2011 07:23:18 +0200 In-Reply-To: (Dave Abrahams's message of "Fri, 16 Sep 2011 11:11:56 -0400") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUhGR2GamsXDxFBNkNV R1MqISj///8IBQY3KzPUzM3UDWW3AAACVElEQVQ4jY3SzW+bMBQAcNfEIse5Q+1yQ2QIjgQbKbuV j645MqgF11wicaM0kXtMMGhcuUTNf7uElXYkmzQffPn5Pb9nP7D6xwL/Awe8/xscWmUe7C8ha30y vp5cQvvZSRvf3Z9D1t6nhASzwzkcMIwrn9ILaH01dn3fx+eA78BjMPfFe8VvkCkeEI5DUvcCbPhI 70Xq3vRw6I4sFSdk1ImZ23cC+PcOgiaExBGMvkPRQRvUEJHFn4B6kBCZpzXt6wX6GzS62I5Tdg6Y NqqI9Kas+kaA1oFC6xAV43T0Ab8vDyoTGvm6qar+S0DegV/VESxGzbSiPWxOkBHqRDARAhE6iDiB JpVCxIQM7sjm9C4XYRzHldND9ySZE3tayiQJVvMhWMAyDBVJNSVDsKE1NRBM9WAxhC1sCm5w1SJn qUI15lzlxa3wV0PQJS1KdHgrFkOAJoNeYhq8OYNI92QtMeWC3A/BU6G9gaNkTcEQyjBKuHH18ESf B7Aspxrg8jh6ttc9dOOztAxuyoYmc3nd99Htyy3nKOaqXBgvP/YfkPl2zhumoZ8Ff2l2H6CUiWZU loZgzk1BvvXQLjR4hE8aKPVjhOiGDpwSMaaGvFI2TQl43pAZnpwgUxghKpRneCNsZKiM7PBxhsCq 3VYYm1p0ggeUq6ye4WMIWL1O3SAwYblTnsU12CBWuhjjI3ypFr5QozDYPs09pCOmuXiC9yALdgtH kqIaW18DT9JRCN120u7B0vUZmEph2i7M2BsBwCBWTtDOAoNvxuBx8mrG9lXIQnYEfPMLW299fQNY b94AAAAASUVORK5CYII= X-Now-Playing: Zola Jesus's _Stridulum EP_: "Run Me Out" X-MailScanner-ID: 1R4nN0-0001UE-6D MailScanner-NULL-Check: 1316841798.35157@J+17kfcHg9ror3mR1IywyQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 17 Sep 2011 01:29: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:51250 Archived-At: Dave Abrahams writes: >> So the general approach to fixing those problems is to say "use >> progress-reporter-update" since this function has the advantage of >> knowing that there will be a `progress-reporter-done' at some later >> point, which allows it to skip a message without worries. > > Hm. So there *is* a builtin functionality for this... well, that's > good. Sorry if I've wasted everyone's time on this. I didn't know about progress-reporter, so my time wasn't wasted, at least. :-) But I wonder whether a simpler, more general function would be possible. If we're outputting stuff that's not a percentage, progress-reporter doesn't help much. `message' could work as follows: 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. The net effect will be that normal messaging (where it's been a long time since the previous message) is displayed as usual, but when we enter a "high-message" storm, we start skipping messages. But we always end up showing the final message, anyway. This would be a very simple interface for programmers to deal with (i.e., "don't worry about it"), and the user wouldn't notice anything in particular -- other than Emacs being faster in some situations. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/