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 13:34:16 +0200 Message-ID: <834mpynyvb.fsf@gnu.org> References: <83oao6o8k8.fsf@gnu.org> <83fv9io2b2.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425641682 29372 80.91.229.3 (6 Mar 2015 11:34:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Mar 2015 11:34:42 +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 12:34:28 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 1YTqWR-00020T-7q for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 12:34:27 +0100 Original-Received: from localhost ([::1]:57524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTqWQ-00049L-N4 for ged-emacs-devel@m.gmane.org; Fri, 06 Mar 2015 06:34:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTqWN-00049C-4t for emacs-devel@gnu.org; Fri, 06 Mar 2015 06:34:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTqWH-0006L5-IF for emacs-devel@gnu.org; Fri, 06 Mar 2015 06:34:22 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:47760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTqWH-0006Kw-AP for emacs-devel@gnu.org; Fri, 06 Mar 2015 06:34:17 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NKS00200FY5JW00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 06 Mar 2015 13:34:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKS002RKG529O90@a-mtaout22.012.net.il>; Fri, 06 Mar 2015 13:34:14 +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:183696 Archived-At: > Date: Fri, 6 Mar 2015 08:20:41 -0300 > From: Artur Malabarba > Cc: emacs-devel > > > How can Emacs know that the value of the eval form changed? It can't, > > unless it actually eval's it, can it? > > Yes, I understand why the default behavior is like that. I was > wondering whether there was a simple way to change that temporarily > (e.g. have the mode-line update at least once per second). We could perhaps add a feature for this kind of applications, if it's deemed important. In general, there are options to inhibit redisplay optimizations, but they are meant for debugging only, and so are enabled only if you build with --enable-checking=glyphs. > > You will see that 'display-time', which does similar things, uses a > > timer, which changes the mode-line contents independently of Emacs > > recomputing it. > > Thanks for the pointer. I've now resigned to using timers as well > (wasn't terrible, but about half the code is dedicated to that now > =/). Couldn't you just slightly customize display-time instead? It can be told to update once a second, perhaps even faster (I didn't try faster than once a second, though).