From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Proposal for a new mechanism for delayed stuff Date: Mon, 31 Dec 2012 15:09:55 +0100 Message-ID: References: <87pq1y46ao.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356963016 25981 80.91.229.3 (31 Dec 2012 14:10:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Dec 2012 14:10:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 31 15:10:32 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tpg4V-0005zB-HV for ged-emacs-devel@m.gmane.org; Mon, 31 Dec 2012 15:10:31 +0100 Original-Received: from localhost ([::1]:48423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpg4G-0005o3-Jd for ged-emacs-devel@m.gmane.org; Mon, 31 Dec 2012 09:10:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpg48-0005mF-IU for emacs-devel@gnu.org; Mon, 31 Dec 2012 09:10:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tpg45-0001b5-MS for emacs-devel@gnu.org; Mon, 31 Dec 2012 09:10:08 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:52565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tpg45-0001aP-GZ for emacs-devel@gnu.org; Mon, 31 Dec 2012 09:10:05 -0500 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 1Tpg3w-0004PX-7f; Mon, 31 Dec 2012 15:09:56 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEXXfU52LiorDQ4ZBQWu UT29XUGp5+S0AAACdUlEQVQ4jUVUW47DIAx0pfBfs+R/MbnAwgWgMv90Bfe/yo5Jpa0q5TGZGXvs hGInWquulsqPNu5jDHKDiKQPAGNNX0rgMGgs3F+DBOc4ugUgsq7l8CfQJGolcktbKZlP3AadTEpC pdmgYhRdziA3HHlQtAUl9wKlQ8vUIP8S8VFx4h6plLOuz4+aiFjJNI5iWmqG8CGFtFjddKSSpaMk KIGhv3huV6xfReTa9ZpUf5RyVTTrAmdJEtbUMY2B+qMBR2CfULyqrg3wV0b3i97aUVeCvc6+OgBG Wdodaz1SFmHtXbVT44BWuE9Gob7kkhtuQ4q5PkBhHImQfSlsnG6Ak5R9ZNRszZcfBLSlKvlUfLT4 D3RrY9E+N2AP5hPNuw1E0/oHkNcYLwNy0BPlAzhkXyG5dyp3lIoZ1R0kpoeE5gYytGi6PvW1lTsd c5uUqympjQJ5pcxoaz8Cit4AaZJU5JxYia0FF2IDpgSB/YTpDWQmG5Kb52WBTaR3m5RIGRFhfM1h XVDVvE1EqHybu3vUt8hzam+ypQqBtDfhaRQkjsEZAIbUjQTbMJvey38Y8tzAG8GI1dVYPoxzAw+M xbZ1ThSYzFyuvW50z95MlhdJlCTewC92FZugzVuB8g/YlcTQtT0de6ZUbsA1yVura8CQGBtz7RdI g1nenZBjY4QNtIalQsGmVUGBB15h5MuTTetCwYrOmIT34mBTebvDAyboNzMoyBcde0NCxym+AQC8 jd415dcHWO+6vwyPiA+Cg/StBWBaShgt8j7JafiYYIt4x215x+FsrJD1YYwFEwMsjBP22s7Z+LQ3 +3kD1rLlcpg23jpHJ/0BB227iSQTpMIAAAAASUVORK5CYII= X-Now-Playing: Mission Of Burma's _Learn How (2)_: "Second Television" In-Reply-To: (Stefan Monnier's message of "Sat, 29 Dec 2012 01:30:16 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1Tpg3w-0004PX-7f MailScanner-NULL-Check: 1357567796.69713@9UEiZ3YdvcPYm6PQf3Ab6A X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156031 Archived-At: Stefan Monnier writes: >> (with-timeout-forms >> (progn >> (bla) >> (bla)) >> (1.5 (message "This is sure taking a lot of time...")) >> (10 (message "This is sure taking forever!"))) > > Maybe an alternative would be a `current-state-message' global variable, > which is then displayed once per second that Emacs is busy. Sure, that would also handle the "tell the user what's going on" use case, and we could have a convenience macro `with-current-state-message' that would simply be an `unwind-protect' to clear out the state message. But `with-timeout-form' would be kinda generally useful, I think. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/