From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Increasing the rate of modeline display Date: Fri, 6 Mar 2015 06:12:27 -0300 Message-ID: References: <83oao6o8k8.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1425633171 15565 80.91.229.3 (6 Mar 2015 09:12:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2015 09:12:51 +0000 (UTC) Cc: emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 06 10:12:36 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 1YToJ9-0008FF-KG for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 10:12:35 +0100 Original-Received: from localhost ([::1]:56918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YToJ8-0004tr-VC for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 04:12:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YToJ4-0004nn-AK for emacs-devel@gnu.org; Fri, 06 Mar 2015 04:12:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YToJ3-0007i5-HO for emacs-devel@gnu.org; Fri, 06 Mar 2015 04:12:30 -0500 Original-Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:35039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YToJ2-0007hS-6z; Fri, 06 Mar 2015 04:12:28 -0500 Original-Received: by labmn12 with SMTP id mn12so20125650lab.2; Fri, 06 Mar 2015 01:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=I0cEHOGkV/P/SoMFIBiXLySDR6OnOL1LeGR2BuaO/8A=; b=LVB9dhqMFBvOZ7YIIXNsrTWwrC4hi1/3GY9GBEh0Sm7y7SDCC+ddTT66QO0yS+Ncqm g5UL0459rPGWS6xCIcYjdBGg0kb2QLHOecf1hwL+w2uOE0/IC2SWG086A4dWGR2HoqnP aMjm0JPo/PR+Kh6AS97qVnkd3HKlVqxYL2p4wOqFFEvGTrInR0dsfNrPzlnwuEFqS8Kb RAoTd1yO5J0I4zrSvHt+B5IO2xRorKQy7zBDxqr5NX7BjQ3V15BdBG7g13J8s0szm3zi Ms0uw35iosxYXLXCyXfoKBMt1AmXlGmkO7e/8NngknrpeUP7zVTJp0pGvymKu2qV/2P3 L5zQ== X-Received: by 10.152.5.6 with SMTP id o6mr11980331lao.59.1425633147253; Fri, 06 Mar 2015 01:12:27 -0800 (PST) Original-Received: by 10.112.207.225 with HTTP; Fri, 6 Mar 2015 01:12:27 -0800 (PST) In-Reply-To: <83oao6o8k8.fsf@gnu.org> X-Google-Sender-Auth: qnGJIHR5T0_JIRo2OYX-cS7XK2A X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::229 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:183692 Archived-At: > 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. I think I had my wording wrong. General redisplay works fine (I see the cursor blinking and stuff like that), but the mode-line content doesn't update if I'm not interacting. I guess what I want is to `force-mode-line-redisplay' around once per second (right now, it goes without update indefinitely if the user is not interacting, see below). > 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. I ran the following after emacs -Q. (add-to-list 'mode-line-format '(:eval (number-to-string (cadr (current-time)))) 'append) This adds a number to the mode-line which changes at every second. If I'm typing text (or otherwise interacting) then I see it updating fine. If I just take my hands off the keyboard, then the number stops updating indefinitely.