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: emacs hangs when loading image Date: Sun, 26 Dec 2004 23:09:41 -0500 Message-ID: References: <87zn02djst.fsf@confusibombus.emacswiki.org> <41CE8018.4030704@math.ku.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1104121056 2507 80.91.229.6 (27 Dec 2004 04:17:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Dec 2004 04:17:36 +0000 (UTC) Cc: storm@cua.dk, emacs-devel@gnu.org, alex@emacswiki.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 27 05:17:30 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CimK2-0006vd-00 for ; Mon, 27 Dec 2004 05:17:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CimUo-0005Gf-Pq for ged-emacs-devel@m.gmane.org; Sun, 26 Dec 2004 23:28:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CimSw-0004Ba-3M for emacs-devel@gnu.org; Sun, 26 Dec 2004 23:26:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CimSt-00048p-KC for emacs-devel@gnu.org; Sun, 26 Dec 2004 23:26:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CimSs-00047R-Ps for emacs-devel@gnu.org; Sun, 26 Dec 2004 23:26:38 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CimHu-0004WD-7B for emacs-devel@gnu.org; Sun, 26 Dec 2004 23:15:18 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CimCT-0003G4-DL; Sun, 26 Dec 2004 23:09:41 -0500 Original-To: Lars Hansen In-reply-to: <41CE8018.4030704@math.ku.dk> (message from Lars Hansen on Sun, 26 Dec 2004 10:10:48 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:31435 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31435 With gdb I found out that Emacs loops in the while loop in xdisp.c: back_to_previous_visible_line_start. It seems that the code searches for a completely visible line, but there is no such line because the image is larger than the window. I don't see anything in that function that tries to test the height of a line. However, I did see this if (handle_display_prop (&it2) == HANDLED_RETURN) visible_p = 0; which treats text containing certain kinds of `display' properties as if it were invisible. This seems to include images. I am not sure why it does that. It doesn't seem logical. We could try deleting those two lines. I don't know what it would break. Could you try deleting them and see if it fixes things?