GNU bug report logs - #10539
24.0.92; low display-time-interval makes Emacs slow

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: michael_heerdegen@HIDDEN; dated Wed, 18 Jan 2012 01:52:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 31 Jan 2012 03:50:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 22:50:46 2012
Received: from localhost ([127.0.0.1]:46068 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rs4k1-0007i0-Te
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 22:50:46 -0500
Received: from mtaout20.012.net.il ([80.179.55.166]:44610)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1Rs4jz-0007hn-W4
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 22:50:44 -0500
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0LYN00D0095PBY00@HIDDEN> for
	10539 <at> debbugs.gnu.org; Tue, 31 Jan 2012 05:50:24 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.229.57.191]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYN00D4L9BZBX10@HIDDEN>;
	Tue, 31 Jan 2012 05:50:24 +0200 (IST)
Date: Tue, 31 Jan 2012 05:48:25 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <jwvehug6edl.fsf-monnier+emacs@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Stefan Monnier <monnier@HIDDEN>
Message-id: <83ehugr0qe.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <7cvcnv2g9v.fsf@HIDDEN>
	<83wr8awi01.fsf@HIDDEN> <jwvwr89olcc.fsf-monnier+emacs@HIDDEN>
	<8362ftrspq.fsf@HIDDEN> <jwvehug6edl.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: rgm@HIDDEN, michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
> Date: Mon, 30 Jan 2012 17:01:53 -0500
> 
> The corresponding parts would be:
> 1- the place where the C code (run via the Elisp code of
>    force-mode-line-update) sets those vars.
> 2- the place in the C code where those vars are checked later on during
>    redisplay so that they cause the mode-line to be refreshed.

OK, will do.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 22:02:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 17:02:15 2012
Received: from localhost ([127.0.0.1]:45713 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrzIg-0006Vf-5w
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 17:02:15 -0500
Received: from pruche.dit.umontreal.ca ([132.204.246.22]:45420)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1RrzIc-0006VT-ME
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 17:02:08 -0500
Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca
	[132.204.27.242])
	by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q0UM1siZ015743;
	Mon, 30 Jan 2012 17:01:54 -0500
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id F0F2EB4431; Mon, 30 Jan 2012 17:01:53 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
Message-ID: <jwvehug6edl.fsf-monnier+emacs@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <7cvcnv2g9v.fsf@HIDDEN>
	<83wr8awi01.fsf@HIDDEN> <jwvwr89olcc.fsf-monnier+emacs@HIDDEN>
	<8362ftrspq.fsf@HIDDEN>
Date: Mon, 30 Jan 2012 17:01:53 -0500
In-Reply-To: <8362ftrspq.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 30 Jan
	2012 19:44:01 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-NAI-Spam-Flag: NO
X-NAI-Spam-Threshold: 5
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV4117=0
X-NAI-Spam-Version: 2.2.0.9309 : core <4117> : streams <724356> : uri <1056749>
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.5 (---)

>> > I don't mind, but I'd like Chong's and Stefan's opinion on this first.
>> > The way the function is (was) implemented it exploits intimate
>> > knowledge about redisplay's inner workings.  Maybe we should simply
>> > expose to Lisp the corresponding internal variables instead, or
>> > provide Lisp primitive functions to set them?
>> I don't mind the current code, but it deserves a comment pointing to the
>> corresponding part of the C code that is affected.
> The two internal variables in question (update_mode_lines and
> windows_or_buffers_changed) affect many parts of the display code, and
> also appear in buffer.c, window.c, and a bunch of other files.  Just
> grep for them, they are all over the place.

Indeed, that's why a comment is needed: the corresponding info is not
easy to find.

> So I'm unsure what you mean by "corresponding part of the C code".

The corresponding parts would be:
1- the place where the C code (run via the Elisp code of
   force-mode-line-update) sets those vars.
2- the place in the C code where those vars are checked later on during
   redisplay so that they cause the mode-line to be refreshed.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 19:06:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 14:06:50 2012
Received: from localhost ([127.0.0.1]:45579 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrwYz-0002Q1-7g
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 14:06:50 -0500
Received: from mtaout23.012.net.il ([80.179.55.175]:33560)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1RrwYw-0002Pi-KN
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 14:06:47 -0500
Received: from conversion-daemon.a-mtaout23.012.net.il by
	a-mtaout23.012.net.il (HyperSendmail v2007.08) id
	<0LYM00600L09J200@HIDDEN> for
	10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 21:06:28 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.229.57.191]) by a-mtaout23.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYM00693L2REI70@HIDDEN>;
	Mon, 30 Jan 2012 21:06:28 +0200 (IST)
Date: Mon, 30 Jan 2012 21:04:28 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <4F26DDB4.5060307@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: martin rudalics <rudalics@HIDDEN>
Message-id: <83pqe1qaf7.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <4F25872E.9000803@HIDDEN>
	<83aa56qsa3.fsf@HIDDEN> <4F266EE0.2050302@HIDDEN>
	<831uqhrruy.fsf@HIDDEN> <4F26DDB4.5060307@HIDDEN>
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.5 (/)

> Date: Mon, 30 Jan 2012 19:13:08 +0100
> From: martin rudalics <rudalics@HIDDEN>
> CC: rgm@HIDDEN, michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
> 
> Neither `with-current-buffer' nor `other-buffer' change a window or a
> buffer.  What am I missing?

At least at some point they did.  I will have to run Emacs under a
debugger to refresh my faulting memory.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 18:14:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 13:14:36 2012
Received: from localhost ([127.0.0.1]:45520 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrvkS-0000M7-0j
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 13:14:36 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:49247)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rudalics@HIDDEN>) id 1RrvkQ-0000Lq-HV
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 13:14:35 -0500
Received: (qmail invoked by alias); 30 Jan 2012 18:14:17 -0000
Received: from 62-47-55-78.adsl.highway.telekom.at (EHLO [62.47.55.78])
	[62.47.55.78]
	by mail.gmx.net (mp002) with SMTP; 30 Jan 2012 19:14:17 +0100
X-Authenticated: #14592706
X-Provags-ID: V01U2FsdGVkX18Wm0cs7PQWC9KHPkN4yBzGT/mapk+cW6aonaZNsd
	HgI3vZwCdmToel
Message-ID: <4F26DDB4.5060307@HIDDEN>
Date: Mon, 30 Jan 2012 19:13:08 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <4F25872E.9000803@HIDDEN>
	<83aa56qsa3.fsf@HIDDEN> <4F266EE0.2050302@HIDDEN>
	<831uqhrruy.fsf@HIDDEN>
In-Reply-To: <831uqhrruy.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.3 (/)

 >>  >> Can you tell me which flag (with-current-buffer (other-buffer)) sets?
 >>  >
 >>  > windows_or_buffers_changed, AFAIR.
 >>
 >> (with-current-buffer (other-buffer)) does neither change the contents of
 >> a window nor those of a buffer (unless it recreates *scratch*).
 >
 > Sorry, I don't understand what you are trying to convey.

If I understand windows_or_buffers_changed correctly, it is only set
when either a window changes (resized, another buffer displayed in it,
...) or a buffer is changed (text inserted, `point' changes, ...).
Neither `with-current-buffer' nor `other-buffer' change a window or a
buffer.  What am I missing?

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 18:04:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 13:04:50 2012
Received: from localhost ([127.0.0.1]:45490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rrvaz-00006c-D3
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 13:04:50 -0500
Received: from mtaout20.012.net.il ([80.179.55.166]:41527)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1Rrvax-00006O-An
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 13:04:47 -0500
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0LYM00700H5UZP00@HIDDEN> for
	10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 20:04:30 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.229.57.191]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYM007TSI7GK960@HIDDEN>;
	Mon, 30 Jan 2012 20:04:29 +0200 (IST)
Date: Mon, 30 Jan 2012 20:02:29 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <4F266EE0.2050302@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: martin rudalics <rudalics@HIDDEN>
Message-id: <831uqhrruy.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <4F25872E.9000803@HIDDEN>
	<83aa56qsa3.fsf@HIDDEN> <4F266EE0.2050302@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Mon, 30 Jan 2012 11:20:16 +0100
> From: martin rudalics <rudalics@HIDDEN>
> CC: rgm@HIDDEN, michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
> 
>  >> Can you tell me which flag (with-current-buffer (other-buffer)) sets?
>  >
>  > windows_or_buffers_changed, AFAIR.
> 
> (with-current-buffer (other-buffer)) does neither change the contents of
> a window nor those of a buffer (unless it recreates *scratch*).

Sorry, I don't understand what you are trying to convey.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 17:46:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 12:46:36 2012
Received: from localhost ([127.0.0.1]:45465 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrvJM-000877-A7
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 12:46:36 -0500
Received: from mtaout20.012.net.il ([80.179.55.166]:36339)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1RrvJJ-00086m-11
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 12:46:34 -0500
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0LYM00700H5UZP00@HIDDEN> for
	10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 19:46:02 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.229.57.191]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYM007U5HCOZF10@HIDDEN>;
	Mon, 30 Jan 2012 19:46:00 +0200 (IST)
Date: Mon, 30 Jan 2012 19:44:01 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <jwvwr89olcc.fsf-monnier+emacs@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Stefan Monnier <monnier@HIDDEN>
Message-id: <8362ftrspq.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <7cvcnv2g9v.fsf@HIDDEN>
	<83wr8awi01.fsf@HIDDEN> <jwvwr89olcc.fsf-monnier+emacs@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Stefan Monnier <monnier@HIDDEN>
> Cc: Glenn Morris <rgm@HIDDEN>,  michael_heerdegen@HIDDEN,  10539 <at> debbugs.gnu.org
> Date: Sun, 29 Jan 2012 23:40:29 -0500
> 
> > I don't mind, but I'd like Chong's and Stefan's opinion on this first.
> > The way the function is (was) implemented it exploits intimate
> > knowledge about redisplay's inner workings.  Maybe we should simply
> > expose to Lisp the corresponding internal variables instead, or
> > provide Lisp primitive functions to set them?
> 
> I don't mind the current code, but it deserves a comment pointing to the
> corresponding part of the C code that is affected.

The two internal variables in question (update_mode_lines and
windows_or_buffers_changed) affect many parts of the display code, and
also appear in buffer.c, window.c, and a bunch of other files.  Just
grep for them, they are all over the place.

So I'm unsure what you mean by "corresponding part of the C code".




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 10:21:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 30 05:21:47 2012
Received: from localhost ([127.0.0.1]:44615 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RroMt-0005Ez-9A
	for submit <at> debbugs.gnu.org; Mon, 30 Jan 2012 05:21:47 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:39764)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rudalics@HIDDEN>) id 1RroMr-0005Ek-Fi
	for 10539 <at> debbugs.gnu.org; Mon, 30 Jan 2012 05:21:46 -0500
Received: (qmail invoked by alias); 30 Jan 2012 10:21:26 -0000
Received: from 62-47-49-102.adsl.highway.telekom.at (EHLO [62.47.49.102])
	[62.47.49.102]
	by mail.gmx.net (mp019) with SMTP; 30 Jan 2012 11:21:26 +0100
X-Authenticated: #14592706
X-Provags-ID: V01U2FsdGVkX19eIP5pvaVeHHvlIg3c1covpKMQU01XIRlVesEdG9
	kR2xQ5HpRMXs4V
Message-ID: <4F266EE0.2050302@HIDDEN>
Date: Mon, 30 Jan 2012 11:20:16 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <4F25872E.9000803@HIDDEN>
	<83aa56qsa3.fsf@HIDDEN>
In-Reply-To: <83aa56qsa3.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

 >> Can you tell me which flag (with-current-buffer (other-buffer)) sets?
 >
 > windows_or_buffers_changed, AFAIR.

(with-current-buffer (other-buffer)) does neither change the contents of
a window nor those of a buffer (unless it recreates *scratch*).

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 04:40:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 29 23:40:45 2012
Received: from localhost ([127.0.0.1]:44423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rrj2r-0004nX-6C
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2012 23:40:45 -0500
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26234)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1Rrj2o-0004nK-Kt
	for 10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 23:40:43 -0500
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EAI8eJk9FpZaC/2dsb2JhbABDrCiCMoEGgXIBAQQBViMFCws0EhQYDSSID7d5iGUEDgICAwcCBAUBAwIDDAYJAwGEGAIEAx+DNwSIP5pzhFc
X-IronPort-AV: E=Sophos;i="4.71,590,1320642000"; d="scan'208";a="160095202"
Received: from 69-165-150-130.dsl.teksavvy.com (HELO pastel.home)
	([69.165.150.130])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	29 Jan 2012 23:40:29 -0500
Received: by pastel.home (Postfix, from userid 20848)
	id 4048D58ECC; Sun, 29 Jan 2012 23:40:29 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
Message-ID: <jwvwr89olcc.fsf-monnier+emacs@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <7cvcnv2g9v.fsf@HIDDEN>
	<83wr8awi01.fsf@HIDDEN>
Date: Sun, 29 Jan 2012 23:40:29 -0500
In-Reply-To: <83wr8awi01.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 29 Jan
	2012 19:11:58 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, Glenn Morris <rgm@HIDDEN>, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

> I don't mind, but I'd like Chong's and Stefan's opinion on this first.
> The way the function is (was) implemented it exploits intimate
> knowledge about redisplay's inner workings.  Maybe we should simply
> expose to Lisp the corresponding internal variables instead, or
> provide Lisp primitive functions to set them?

I don't mind the current code, but it deserves a comment pointing to the
corresponding part of the C code that is affected.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 29 Jan 2012 18:28:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 29 13:28:56 2012
Received: from localhost ([127.0.0.1]:44058 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrZUl-0006Ne-Fe
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2012 13:28:55 -0500
Received: from mtaout22.012.net.il ([80.179.55.172]:46014)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1RrZUi-0006NJ-Nx
	for 10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 13:28:53 -0500
Received: from conversion-daemon.a-mtaout22.012.net.il by
	a-mtaout22.012.net.il (HyperSendmail v2007.08) id
	<0LYK00100OMQXB00@HIDDEN> for
	10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 20:28:34 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout22.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYK00193ONHW410@HIDDEN>;
	Sun, 29 Jan 2012 20:28:34 +0200 (IST)
Date: Sun, 29 Jan 2012 20:26:28 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <4F25872E.9000803@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: martin rudalics <rudalics@HIDDEN>
Message-id: <83aa56qsa3.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <4F25872E.9000803@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, rgm@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> Date: Sun, 29 Jan 2012 18:51:42 +0100
> From: martin rudalics <rudalics@HIDDEN>
> CC: Glenn Morris <rgm@HIDDEN>, michael_heerdegen@HIDDEN, 
>  10539 <at> debbugs.gnu.org
> 
>  > Calling force-mode-line-update with ALL non-nil forces a more thorough
>  > redisplay (because it sets a flag which causes redisplay not to trust
>  > the contents of the displayed windows, not just their mode lines).
> 
> Can you tell me which flag (with-current-buffer (other-buffer)) sets?

windows_or_buffers_changed, AFAIR.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 29 Jan 2012 17:53:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 29 12:53:07 2012
Received: from localhost ([127.0.0.1]:44023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrYw6-0005Yz-Kr
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2012 12:53:07 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:50509)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rudalics@HIDDEN>) id 1RrYw3-0005YU-OX
	for 10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 12:53:04 -0500
Received: (qmail invoked by alias); 29 Jan 2012 17:52:51 -0000
Received: from 62-47-39-221.adsl.highway.telekom.at (EHLO [62.47.39.221])
	[62.47.39.221]
	by mail.gmx.net (mp029) with SMTP; 29 Jan 2012 18:52:51 +0100
X-Authenticated: #14592706
X-Provags-ID: V01U2FsdGVkX18sBxoDLmAsz1RSPXaTFz+Ob2uyNqSXl9g/Mqxr6+
	ZZLQzUZZdSH6MW
Message-ID: <4F25872E.9000803@HIDDEN>
Date: Sun, 29 Jan 2012 18:51:42 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN>
	<6162fwu92z.fsf@HIDDEN>	<83y5ssxlrx.fsf@HIDDEN>
	<mn7h0bmx5x.fsf@HIDDEN>	<838vkry3ju.fsf@HIDDEN>
	<cefweza6tx.fsf@HIDDEN> <837h0by0qu.fsf@HIDDEN>
In-Reply-To: <837h0by0qu.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, Glenn Morris <rgm@HIDDEN>, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

 > Calling force-mode-line-update with ALL non-nil forces a more thorough
 > redisplay (because it sets a flag which causes redisplay not to trust
 > the contents of the displayed windows, not just their mode lines).

Can you tell me which flag (with-current-buffer (other-buffer)) sets?

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 29 Jan 2012 17:14:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 29 12:14:14 2012
Received: from localhost ([127.0.0.1]:44006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrYKU-0004Zb-KZ
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2012 12:14:14 -0500
Received: from mtaout23.012.net.il ([80.179.55.175]:64610)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1RrYKS-0004ZP-Hi
	for 10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 12:14:13 -0500
Received: from conversion-daemon.a-mtaout23.012.net.il by
	a-mtaout23.012.net.il (HyperSendmail v2007.08) id
	<0LYK00100L5O0400@HIDDEN> for
	10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 19:14:01 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout23.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYK000YML7AXQ30@HIDDEN>;
	Sun, 29 Jan 2012 19:13:59 +0200 (IST)
Date: Sun, 29 Jan 2012 19:11:58 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <7cvcnv2g9v.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <83wr8awi01.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN> <7cvcnv2g9v.fsf@HIDDEN>
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.5 (/)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: michael_heerdegen@HIDDEN,  10539 <at> debbugs.gnu.org
> Date: Sun, 29 Jan 2012 01:07:24 -0500
> 
> Eli Zaretskii wrote:
> 
> > I think force-mode-line-update nowadays always forces update of all
> > visible mode lines, not just the one of the current buffer.
> >
> > Calling force-mode-line-update with ALL non-nil forces a more thorough
> > redisplay (because it sets a flag which causes redisplay not to trust
> > the contents of the displayed windows, not just their mode lines).
> >
> > IOW, (force-mode-line-update t) is a way to force the next redisplay
> > cycle do a more thorough job, it has nothing to do with mode lines per
> > se.
> 
> I think it would be good if you could document this, because it's
> basically impossible to figure out what this function actually does from
> looking at its lisp definition.

I don't mind, but I'd like Chong's and Stefan's opinion on this first.
The way the function is (was) implemented it exploits intimate
knowledge about redisplay's inner workings.  Maybe we should simply
expose to Lisp the corresponding internal variables instead, or
provide Lisp primitive functions to set them?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 29 Jan 2012 16:07:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 29 11:07:49 2012
Received: from localhost ([127.0.0.1]:43974 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrXID-0002Id-Mb
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2012 11:07:49 -0500
Received: from rcsinet15.oracle.com ([148.87.113.117]:37766)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <drew.adams@HIDDEN>) id 1RrXIB-0002IP-5z
	for 10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 11:07:47 -0500
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	q0TG7ZLh012216
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 29 Jan 2012 16:07:36 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	q0TG7Yla029961
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sun, 29 Jan 2012 16:07:34 GMT
Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	q0TG7XO8023564; Sun, 29 Jan 2012 10:07:33 -0600
Received: from dradamslap1 (/10.159.37.215)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Sun, 29 Jan 2012 08:07:33 -0800
From: "Drew Adams" <drew.adams@HIDDEN>
To: "'Glenn Morris'" <rgm@HIDDEN>, "'Eli Zaretskii'" <eliz@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN>
	<6162fwu92z.fsf@HIDDEN><83y5ssxlrx.fsf@HIDDEN>
	<mn7h0bmx5x.fsf@HIDDEN><838vkry3ju.fsf@HIDDEN>
	<cefweza6tx.fsf@HIDDEN><837h0by0qu.fsf@HIDDEN>
	<7cvcnv2g9v.fsf@HIDDEN>
Subject: RE: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
Date: Sun, 29 Jan 2012 08:07:24 -0800
Message-ID: <5F24D19ED0E9434D9D2C7A9800127695@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <7cvcnv2g9v.fsf@HIDDEN>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
Thread-Index: AczeTF8FJL2vgo8vQbOkBeAkfyVHrwAU6ePQ
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090207.4F256EC8.002B,ss=1,re=0.000,fgs=0
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)

> > IOW, (force-mode-line-update t) is a way to force the next redisplay
> > cycle do a more thorough job, it has nothing to do with mode lines per
> > se.
> 
> I think it would be good if you could document this, because it's
> basically impossible to figure out what this function 
> actually does from looking at its lisp definition.

+1





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 29 Jan 2012 06:07:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 29 01:07:32 2012
Received: from localhost ([127.0.0.1]:42836 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrNvH-0007B0-Qe
	for submit <at> debbugs.gnu.org; Sun, 29 Jan 2012 01:07:32 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:55408 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1RrNvF-0007At-2L
	for 10539 <at> debbugs.gnu.org; Sun, 29 Jan 2012 01:07:30 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RrNvA-0004M0-Qy; Sun, 29 Jan 2012 01:07:24 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
	<837h0by0qu.fsf@HIDDEN>
X-Spook: AIMSX Al Jazeera North Korea Elvis SSL Rumsfeld jihad AVN
X-Ran: rJ2,[;zzR<AdS*5r3e(K+J~xOwhp7{.S-e+wx<gJL*~Qta<DO]<ov.Cwz${2#t*gC4zs1R
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sun, 29 Jan 2012 01:07:24 -0500
In-Reply-To: <837h0by0qu.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 28 Jan
	2012 23:29:29 +0200")
Message-ID: <7cvcnv2g9v.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Eli Zaretskii wrote:

> I think force-mode-line-update nowadays always forces update of all
> visible mode lines, not just the one of the current buffer.
>
> Calling force-mode-line-update with ALL non-nil forces a more thorough
> redisplay (because it sets a flag which causes redisplay not to trust
> the contents of the displayed windows, not just their mode lines).
>
> IOW, (force-mode-line-update t) is a way to force the next redisplay
> cycle do a more thorough job, it has nothing to do with mode lines per
> se.

I think it would be good if you could document this, because it's
basically impossible to figure out what this function actually does from
looking at its lisp definition.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 21:31:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 16:31:44 2012
Received: from localhost ([127.0.0.1]:42452 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrFs7-0000Sl-Oj
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 16:31:44 -0500
Received: from mtaout23.012.net.il ([80.179.55.175]:61437)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1RrFs2-0000SV-Q6
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 16:31:41 -0500
Received: from conversion-daemon.a-mtaout23.012.net.il by
	a-mtaout23.012.net.il (HyperSendmail v2007.08) id
	<0LYJ00J002EYFT00@HIDDEN> for
	10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 23:31:31 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout23.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYJ00JC52GIBL70@HIDDEN>;
	Sat, 28 Jan 2012 23:31:31 +0200 (IST)
Date: Sat, 28 Jan 2012 23:29:29 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <cefweza6tx.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <837h0by0qu.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN> <cefweza6tx.fsf@HIDDEN>
X-Spam-Score: -0.5 (/)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -0.5 (/)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: michael_heerdegen@HIDDEN,  10539 <at> debbugs.gnu.org
> Date: Sat, 28 Jan 2012 15:51:54 -0500
> 
> Next question that occurs: the display-time stuff is a global
> indicator that, when it needs updating, should be updated in all visible
> mode-lines. So how does (force-mode-line-update) with no ALL argument do
> anything useful in this case?

I think force-mode-line-update nowadays always forces update of all
visible mode lines, not just the one of the current buffer.

Calling force-mode-line-update with ALL non-nil forces a more thorough
redisplay (because it sets a flag which causes redisplay not to trust
the contents of the displayed windows, not just their mode lines).

IOW, (force-mode-line-update t) is a way to force the next redisplay
cycle do a more thorough job, it has nothing to do with mode lines per
se.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 20:52:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 15:52:43 2012
Received: from localhost ([127.0.0.1]:48577 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrFGN-0005XH-3J
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 15:52:43 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:50105 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1RrFGL-0005XA-3L
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 15:52:42 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RrFFa-0007X6-NT; Sat, 28 Jan 2012 15:51:54 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
	<838vkry3ju.fsf@HIDDEN>
X-Spook: Zachawi top secret explosion mailbomb Nazi Area 51
X-Ran: -Hv=CW&*B=FnitH:_<JRCV_'/-//J/$H+:=Cv*ZYT@a[Q~49,r@)1nBV0YE}!KEQ8x[n3X
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 28 Jan 2012 15:51:54 -0500
In-Reply-To: <838vkry3ju.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 28 Jan
	2012 22:28:53 +0200")
Message-ID: <cefweza6tx.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Eli Zaretskii wrote:

>> So it doesn't actually "force redisplay", it just marks things to be
>> updated the next time redisplay happens to occur (?).
>
> Yes, exactly.

Thanks. Next question that occurs: the display-time stuff is a global
indicator that, when it needs updating, should be updated in all visible
mode-lines. So how does (force-mode-line-update) with no ALL argument do
anything useful in this case?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 20:31:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 15:31:54 2012
Received: from localhost ([127.0.0.1]:48567 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrEwE-00054h-7L
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 15:31:54 -0500
Received: from mtaout20.012.net.il ([80.179.55.166]:48819)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1RrEw8-00054M-AH
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 15:31:52 -0500
Received: from conversion-daemon.a-mtaout20.012.net.il by
	a-mtaout20.012.net.il (HyperSendmail v2007.08) id
	<0LYI00M00ZMZB100@HIDDEN> for
	10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 22:30:55 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout20.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYI00MK8ZNI2B50@HIDDEN>;
	Sat, 28 Jan 2012 22:30:55 +0200 (IST)
Date: Sat, 28 Jan 2012 22:28:53 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <mn7h0bmx5x.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <838vkry3ju.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <mn7h0bmx5x.fsf@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Glenn Morris <rgm@HIDDEN>
> Cc: michael_heerdegen@HIDDEN,  10539 <at> debbugs.gnu.org
> Date: Sat, 28 Jan 2012 14:42:18 -0500
> 
> Eli Zaretskii wrote:
> 
> > Would the following wording make it less confusing/contradictory?
> >
> >   Force next redisplay cycle to update the current buffer's mode line
> >   and header line, based on the latest values of all the relevant
> >   variables.
> 
> Yes thanks. Plus something similar for the function's doc-string.

Will do.

> So it doesn't actually "force redisplay", it just marks things to be
> updated the next time redisplay happens to occur (?).

Yes, exactly.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 19:44:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 14:44:39 2012
Received: from localhost ([127.0.0.1]:48550 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrECU-0003zs-Ao
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 14:44:39 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:49287 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1RrECS-0003zl-AE
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 14:44:36 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RrEBi-0006RI-LA; Sat, 28 Jan 2012 14:43:50 -0500
From: Glenn Morris <rgm@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN> <4F23D703.4080202@HIDDEN>
X-Spook: Qaddafi lock picking MP5K-SD North Korea Baranyi AMEMB
X-Ran: .}!58lqK<$SjvHsZ\uK7/3'Uzj?'ePm\d)\sDmcn|./RcP/{_&E)!5:C\Tfa*|?.~;-/9p
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 28 Jan 2012 14:43:50 -0500
In-Reply-To: <4F23D703.4080202@HIDDEN> (martin rudalics's message of "Sat, 28
	Jan 2012 12:07:47 +0100")
Message-ID: <ev39azmx3d.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, Eli Zaretskii <eliz@HIDDEN>,
	10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

martin rudalics wrote:

> indicates that this function exclusively relies on obscure side effects
> which are not documented anywhere.

Yes, that was basically my point. Which is presumably why it does other
stuff that has no obvious relation to mode-lines ("forces recomputation
of the menu bar menus and the frame title"). But this is probably
off-topic for this report.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 19:43:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 14:43:08 2012
Received: from localhost ([127.0.0.1]:48546 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RrEB1-0003xh-DS
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 14:43:08 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:49274 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1RrEAy-0003xa-AG
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 14:43:05 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RrEAE-0006PB-Vf; Sat, 28 Jan 2012 14:42:18 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN>
X-Spook: MDA AGT. AMME Sears Tower South Africa Uzbekistan Qaddafi
X-Ran: yM5$-/{@NDIJ:4\LP,CsMVk:iV;0T*`gNu#AmyotqmLaA2A3kas?z<ME\L2*yU5,popFIX
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 28 Jan 2012 14:42:18 -0500
In-Reply-To: <83y5ssxlrx.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 28 Jan
	2012 10:40:34 +0200")
Message-ID: <mn7h0bmx5x.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Eli Zaretskii wrote:

> Would the following wording make it less confusing/contradictory?
>
>   Force next redisplay cycle to update the current buffer's mode line
>   and header line, based on the latest values of all the relevant
>   variables.

Yes thanks. Plus something similar for the function's doc-string.
So it doesn't actually "force redisplay", it just marks things to be
updated the next time redisplay happens to occur (?).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 11:09:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 06:09:00 2012
Received: from localhost ([127.0.0.1]:47572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rr69T-0002ZK-Uz
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 06:09:00 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:34033)
	by debbugs.gnu.org with smtp (Exim 4.72)
	(envelope-from <rudalics@HIDDEN>) id 1Rr69S-0002Z7-BW
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 06:08:59 -0500
Received: (qmail invoked by alias); 28 Jan 2012 11:08:08 -0000
Received: from 62-47-59-112.adsl.highway.telekom.at (EHLO [62.47.59.112])
	[62.47.59.112]
	by mail.gmx.net (mp019) with SMTP; 28 Jan 2012 12:08:08 +0100
X-Authenticated: #14592706
X-Provags-ID: V01U2FsdGVkX18IjMgl19sI9ERZJ4MIlO/byrX6nsqKX/35Z40Rqf
	G39FVbQo1R48Ou
Message-ID: <4F23D703.4080202@HIDDEN>
Date: Sat, 28 Jan 2012 12:07:47 +0100
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
	<83y5ssxlrx.fsf@HIDDEN>
In-Reply-To: <83y5ssxlrx.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, Glenn Morris <rgm@HIDDEN>, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

 > Would the following wording make it less confusing/contradictory?
 >
 >   Force next redisplay cycle to update the current buffer's mode line

A buffer doesn't have a mode or header line.  And a body like

   (if all (with-current-buffer (other-buffer)))
   (set-buffer-modified-p (buffer-modified-p)))

indicates that this function exclusively relies on obscure side effects
which are not documented anywhere.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 28 Jan 2012 08:43:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 28 03:43:29 2012
Received: from localhost ([127.0.0.1]:47462 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Rr3sf-0005KD-Bu
	for submit <at> debbugs.gnu.org; Sat, 28 Jan 2012 03:43:29 -0500
Received: from mtaout21.012.net.il ([80.179.55.169]:39413)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eliz@HIDDEN>) id 1Rr3sc-0005Jx-C5
	for 10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 03:43:28 -0500
Received: from conversion-daemon.a-mtaout21.012.net.il by
	a-mtaout21.012.net.il (HyperSendmail v2007.08) id
	<0LYI00J002O6F400@HIDDEN> for
	10539 <at> debbugs.gnu.org; Sat, 28 Jan 2012 10:42:37 +0200 (IST)
Received: from HOME-C4E4A596F7 ([84.228.102.195]) by a-mtaout21.012.net.il
	(HyperSendmail v2007.08) with ESMTPA id
	<0LYI00JMI2V06790@HIDDEN>;
	Sat, 28 Jan 2012 10:42:37 +0200 (IST)
Date: Sat, 28 Jan 2012 10:40:34 +0200
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
In-reply-to: <6162fwu92z.fsf@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: Glenn Morris <rgm@HIDDEN>
Message-id: <83y5ssxlrx.fsf@HIDDEN>
References: <87zkdl93r0.fsf@HIDDEN> <6162fwu92z.fsf@HIDDEN>
X-Spam-Score: -1.2 (-)
X-Debbugs-Envelope-To: 10539
Cc: michael_heerdegen@HIDDEN, 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.2 (-)

> From: Glenn Morris <rgm@HIDDEN>
> Date: Fri, 27 Jan 2012 16:30:44 -0500
> Cc: 10539 <at> debbugs.gnu.org
> 
> Michael Heerdegen wrote:
> 
> > Second, the doc of `display-time-update' says
> >
> >   Update the display-time info for the mode line.
> >   However, don't redisplay right now.
> >
> > But it _does_ redisplay, it calls `force-mode-line-update' explicitly at
> > the end of the code!
> 
> Looking at the history, the code used to have a (sit-for 0.0) after the
> force-mode-line-update. The "don't redisplay" part was added when the
> sit-for was removed. I confess that I don't really understand
> force-mode-line-update [1]. The name makes sense, but not much else.

The discussion that you refer to was about the optional ALL argument.
It said nothing about force-mode-line-update itself or its effect,
apart of that.

> The manual says:
> 
>  -- Function: force-mode-line-update &optional all
>      Force redisplay of the current buffer's mode line and header line.
>      The next redisplay will update the mode line and header line based
>      on the latest values of all relevant variables.
> 
> which seems contradictory to me ("force redisplay" + "next redisplay").

Would the following wording make it less confusing/contradictory?

  Force next redisplay cycle to update the current buffer's mode line
  and header line, based on the latest values of all the relevant
  variables.

> Maybe the "don't redisplay" refers to the lack of the ALL argument?

No, it refers to the fact that force-mode-line-update does not trigger
redisplay, it just sets some internal variable that would force
recomputation and redisplay of the mode line during the next redisplay
cycle, whenever that happens.  IOW, it prevents Emacs from deciding
that nothing changed and therefore nothing on the screen should be
redrawn.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at 10539 <at> debbugs.gnu.org:


Received: (at 10539) by debbugs.gnu.org; 27 Jan 2012 21:31:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 27 16:31:28 2012
Received: from localhost ([127.0.0.1]:47090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RqtOJ-0005Ek-TR
	for submit <at> debbugs.gnu.org; Fri, 27 Jan 2012 16:31:28 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:32994 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1RqtOG-0005Ea-Eq
	for 10539 <at> debbugs.gnu.org; Fri, 27 Jan 2012 16:31:25 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RqtNc-0002wt-6n; Fri, 27 Jan 2012 16:30:44 -0500
From: Glenn Morris <rgm@HIDDEN>
To: michael_heerdegen@HIDDEN
Subject: Re: bug#10539: 24.0.92; low display-time-interval makes Emacs slow
References: <87zkdl93r0.fsf@HIDDEN>
X-Spook: wire transfer encryption Juiliett Class Submarine
X-Ran: fej<mb4N~^*w`\Qd^~h-tYs4E}e9!qPi!X'AV%$=+w26'd_e9J%;f&W4]R=#qy52!lH_Gy
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 27 Jan 2012 16:30:44 -0500
In-Reply-To: <87zkdl93r0.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 18
	Jan 2012 02:52:03 +0100")
Message-ID: <6162fwu92z.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 10539
Cc: 10539 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Michael Heerdegen wrote:

> Second, the doc of `display-time-update' says
>
>   Update the display-time info for the mode line.
>   However, don't redisplay right now.
>
> But it _does_ redisplay, it calls `force-mode-line-update' explicitly at
> the end of the code!

Looking at the history, the code used to have a (sit-for 0.0) after the
force-mode-line-update. The "don't redisplay" part was added when the
sit-for was removed. I confess that I don't really understand
force-mode-line-update [1]. The name makes sense, but not much else.
The manual says:

 -- Function: force-mode-line-update &optional all
     Force redisplay of the current buffer's mode line and header line.
     The next redisplay will update the mode line and header line based
     on the latest values of all relevant variables.

which seems contradictory to me ("force redisplay" + "next redisplay").

Maybe the "don't redisplay" refers to the lack of the ALL argument?


[1] eg http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00581.html




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jan 2012 01:51:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 17 20:51:58 2012
Received: from localhost ([127.0.0.1]:34017 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RnKgw-0002Dy-FX
	for submit <at> debbugs.gnu.org; Tue, 17 Jan 2012 20:51:58 -0500
Received: from eggs.gnu.org ([140.186.70.92]:51110)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RnKgu-0002Dp-7u
	for submit <at> debbugs.gnu.org; Tue, 17 Jan 2012 20:51:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RnKfs-00087J-5U
	for submit <at> debbugs.gnu.org; Tue, 17 Jan 2012 20:50:53 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,
	T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([140.186.70.17]:55842)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RnKfs-00087F-2f
	for submit <at> debbugs.gnu.org; Tue, 17 Jan 2012 20:50:52 -0500
Received: from eggs.gnu.org ([140.186.70.92]:48476)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RnKfq-0005sA-Jy
	for bug-gnu-emacs@HIDDEN; Tue, 17 Jan 2012 20:50:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RnKfp-00086m-F9
	for bug-gnu-emacs@HIDDEN; Tue, 17 Jan 2012 20:50:50 -0500
Received: from fmmailgate02.web.de ([217.72.192.227]:53219)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Michael_Heerdegen@HIDDEN>) id 1RnKfp-00086Z-2q
	for bug-gnu-emacs@HIDDEN; Tue, 17 Jan 2012 20:50:49 -0500
Received: from moweb001.kundenserver.de (moweb001.kundenserver.de
	[172.19.20.114])
	by fmmailgate02.web.de (Postfix) with ESMTP id D526E1BFDEB88
	for <bug-gnu-emacs@HIDDEN>; Wed, 18 Jan 2012 02:50:42 +0100 (CET)
Received: from snow ([89.204.138.21]) by smtp.web.de (mrweb001) with ESMTPA
	(Nemesis) id 0MV4xx-1SAlCO1dan-00ZC5s; Wed, 18 Jan 2012 02:50:41 +0100
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.0.92; low display-time-interval makes Emacs slow
Date: Wed, 18 Jan 2012 02:52:03 +0100
Message-ID: <87zkdl93r0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V02:K0:O8gU1XcodJPYWRT4kz09dHvmUGgvsm+5ULA581vifSt
	+1DE/DlfBcO8vJfw6ojZFmLfhQNuKOcKJ5q38t/cWFmr7U7y55
	AI4q6sJxdt030ZU2/+Q9224hNA9ZA8p05j3Aoq7nTbEAhSuKeX
	i461srpCH8VB03TnHsfwlrPNwYUoMmJ3SoYM+RUq+AJvSKOykH
	ttO8q0NcKzOmcVM7hOJQGc+bhgRfBbEb4rWP1WsEcM=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: michael_heerdegen@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Hello,

in emacs -Q, set `display-time-interval' to 1 and enable
`display-time-mode'.

The docstring of `display-time-interval' says "Seconds between updates
of time in the mode line.".  Ok, fine.  The doc of
`display-time-string-forms' includes an example which makes
`display-time-mode' show seconds.  So, the user may think setting
`display-time-interval' to 1 is a good idea.

But it is currently not, on the contrary.

First of all, `display-time-update' is a long, complex function.
Running only its calculations every second consumes some percent CPU by
itself.

Second, the doc of `display-time-update' says

  Update the display-time info for the mode line.
  However, don't redisplay right now.

But it _does_ redisplay, it calls `force-mode-line-update' explicitly at
the end of the code!

If I redefine `display-time-update' so that it doesn't call
`force-mode-line-update', the update of the time in the mode-line
surprisingly still works, I get an update every second.  So, maybe the
call to `force-mode-line-update' can be removed.

Now I disable global font lock and such CPU eating minor mode stuff.  I
visit my ~/.newsrc.eld which has 647k.  My CPU consumption gets nearly
100%, it takes several seconds until q (`View-quit') gets processed.  If
I visit that file with `display-time-mode' off, that doesn't happen.

So, at the end, you could try to make `display-time-mode' more
effective.  If `display-time-update' does redisplay, then the doc should
say so.  And if we can't improve things, then the docstring of
`display-time-interval' should say that low values are 
deprecated because they decrease Emacs' performance.


Thanks,

Michael.



In GNU Emacs 24.0.92.1 (i486-pc-linux-gnu, GTK+ Version 3.2.3)
 of 2012-01-11 on zelenka, modified by Debian
 (emacs-snapshot package, version 1:20120111-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11102902
configured using `configure  '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.92/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.92/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/i386-linux-gnu/' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-imagemagick=yes' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2''

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t





Acknowledgement sent to michael_heerdegen@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#10539; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.