From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: redundant redisplay Date: 27 Apr 2004 22:56:00 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040427.105738.207586596.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083099768 7882 80.91.224.253 (27 Apr 2004 21:02:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2004 21:02:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 27 23:02:41 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIZiz-0001LN-00 for ; Tue, 27 Apr 2004 23:02:41 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIZiz-0005kV-00 for ; Tue, 27 Apr 2004 23:02:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIZdC-0008WG-2A for emacs-devel@quimby.gnus.org; Tue, 27 Apr 2004 16:56:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIZd4-0008Uh-Kk for emacs-devel@gnu.org; Tue, 27 Apr 2004 16:56:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIZcY-0008If-RK for emacs-devel@gnu.org; Tue, 27 Apr 2004 16:56:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIZcY-0008Ib-La for emacs-devel@gnu.org; Tue, 27 Apr 2004 16:56:02 -0400 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BIZaV-0007hh-ML; Tue, 27 Apr 2004 16:53:56 -0400 Original-To: Tak Ota In-Reply-To: <20040427.105738.207586596.Takaaki.Ota@am.sony.com> Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22266 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22266 Tak Ota writes: > Some recent change, which I cannot identify, affects the redisplay > mechanism so that set-buffer-modified-p redisplays window contents > redundantly. It creates occasional annoying partial screen flashing > as well as considerably slows down a buffer process which updates > modeline frequently. >>From the Elisp manual: - Function: set-buffer-modified-p flag This function marks the current buffer as modified if FLAG is non-`nil', or as unmodified if the flag is `nil'. Another effect of calling this function is to cause unconditional redisplay of the mode line for the current buffer. In fact, the function `force-mode-line-update' works by doing this: (set-buffer-modified-p (buffer-modified-p)) So it _should_ cause a redisplay, but only of the buffer line. Kim, are you taking a peek at the line height there, could that be it? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum