From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10539: 24.0.92; low display-time-interval makes Emacs slow Date: Mon, 30 Jan 2012 17:01:53 -0500 Message-ID: References: <87zkdl93r0.fsf@web.de> <6162fwu92z.fsf@fencepost.gnu.org> <83y5ssxlrx.fsf@gnu.org> <838vkry3ju.fsf@gnu.org> <837h0by0qu.fsf@gnu.org> <7cvcnv2g9v.fsf@fencepost.gnu.org> <83wr8awi01.fsf@gnu.org> <8362ftrspq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327960990 22609 80.91.229.3 (30 Jan 2012 22:03:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2012 22:03:10 +0000 (UTC) Cc: michael_heerdegen@web.de, 10539@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 30 23:03:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrzJa-000647-3I for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jan 2012 23:03:06 +0100 Original-Received: from localhost ([::1]:44819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrzJZ-0007te-Mm for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jan 2012 17:03:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrzJS-0007m6-LL for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 17:03:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrzJK-0006Pu-SO for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 17:02:58 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrzJK-0006Pq-MR for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 17:02:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RrzJW-0006X8-7O for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2012 17:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2012 22:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10539 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10539-submit@debbugs.gnu.org id=B10539.132796093525036 (code B ref 10539); Mon, 30 Jan 2012 22:03:01 +0000 Original-Received: (at 10539) by debbugs.gnu.org; 30 Jan 2012 22:02:15 +0000 Original-Received: from localhost ([127.0.0.1]:45713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrzIg-0006Vf-5w for submit@debbugs.gnu.org; Mon, 30 Jan 2012 17:02:15 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:45420) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrzIc-0006VT-ME for 10539@debbugs.gnu.org; Mon, 30 Jan 2012 17:02:08 -0500 Original-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 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id F0F2EB4431; Mon, 30 Jan 2012 17:01:53 -0500 (EST) In-Reply-To: <8362ftrspq.fsf@gnu.org> (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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56261 Archived-At: >> > 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