From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Potential redisplay problem [Re: Recursive load of mule-util.elc] Date: Fri, 08 Nov 2002 07:07:38 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: References: <20021105114339.0CED.LEKTU@terra.es> <200211060107.KAA26465@etlken.m17n.org> <20021106131931.66A2.LEKTU@terra.es> <200211061302.WAA07800@etlken.m17n.org> <200211070146.KAA08672@etlken.m17n.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036758330 3393 80.91.224.249 (8 Nov 2002 12:25:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 12:25:30 +0000 (UTC) Cc: emacs-devel@gnu.org, lektu@terra.es Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18A8CX-0000sb-00 for ; Fri, 08 Nov 2002 13:25:29 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18A8Lz-0005d1-00 for ; Fri, 08 Nov 2002 13:35:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18A8Aq-0006fA-00; Fri, 08 Nov 2002 07:23:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18A7vK-0003Ya-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 07:07:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18A7vG-0003Xe-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 07:07:40 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18A7vG-0003XY-00 for emacs-devel@gnu.org; Fri, 08 Nov 2002 07:07:38 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18A7vG-0007ov-00; Fri, 08 Nov 2002 07:07:38 -0500 Original-To: handa@m17n.org In-reply-to: <200211070146.KAA08672@etlken.m17n.org> (message from Kenichi Handa on Thu, 7 Nov 2002 10:46:08 +0900 (JST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9255 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9255 At first, tool-bar is being autoloaded. Then, Fload is called, and it calls message_with_string () to show "Loading XXX.." before starting to load a file. This leads to calling display_mode_element in this sequence. message_with_string -> message3 -> message3_nolog -> echo_area_display -> redisplay_mode_lines -> -> display_mode_lines -> display_mode_element In display_mode_element, `(mode-line-eol-desc)' is evaled, You need to make it safe to call mode-line-eol-desc. It should never try to autoload anything. When you moved coding-system-eol-type-mnemonic to mule.el, autoloading of mule-util in display_mode_element is avoided, thus the problem is fixed. Yes, exactly. However, this means that the current Emacs has a potential problem. Anything being autoloaded in display_mode_element cause the same error. We could put in code that gets an error if anything autoloaded is called from within display_mode_element.