From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Increasing the rate of modeline display Date: Fri, 06 Mar 2015 10:04:55 +0200 Message-ID: <83oao6o8k8.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425629128 14522 80.91.229.3 (6 Mar 2015 08:05:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2015 08:05:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 06 09:05:21 2015 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 1YTnG4-0002a9-FH for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 09:05:20 +0100 Original-Received: from localhost ([::1]:56677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTnG2-0003Bp-N6 for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 03:05:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTnFv-0003Be-SA for emacs-devel@gnu.org; Fri, 06 Mar 2015 03:05:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTnFr-0000tY-NE for emacs-devel@gnu.org; Fri, 06 Mar 2015 03:05:11 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTnFr-0000rW-G0 for emacs-devel@gnu.org; Fri, 06 Mar 2015 03:05:07 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NKS001006B71U00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 06 Mar 2015 10:04:54 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKS000B86G5WB60@a-mtaout22.012.net.il>; Fri, 06 Mar 2015 10:04:53 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:183688 Archived-At: > Date: Thu, 5 Mar 2015 17:24:56 -0300 > From: Artur Malabarba > > Is there a way to (temporarily) increase the rate at which the mode line is > redisplayed? > > I was trying to write a package that adds a spinner to the mode line (to > indicate ongoing operations), but I hit a wall because the mode line sometimes > takes many seconds to redisplay. You cannot increase the rate of redisplay, because it is already "as fast as possible": Emacs enters redisplay whenever the Lisp interpreter has nothing else to do. There are no Emacs-induced delays that you could slash, AFAIK. In particular, any time the mode line changes it will be redisplayed immediately when Emacs has a chance to do so. "Takes many seconds" sounds like something I never saw, except when some Lisp code is running during that time. If you have Lisp code running and want to initiate redisplay while Lisp is still running, then yes, it could be a bit tricky. But it isn't clear to me that this is your case, especially as you are talking about "rate". So I guess you aren't telling us something important that prevents redisplay from kicking in in your case. Please add details, or post a simple self-contained example of the problem.