From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: C file recoginzed as image file Date: Fri, 19 Jan 2007 17:14:44 +0100 Message-ID: References: <20070114025247.GB2401@kobe.laptop> <45AB9A3C.5030406@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169223316 1242 80.91.229.12 (19 Jan 2007 16:15:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 16:15:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 19 17:15:12 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7wOL-0005Ut-Bw for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2007 17:15:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7wOK-0000pf-QQ for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2007 11:15:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7wO9-0000pR-LJ for emacs-devel@gnu.org; Fri, 19 Jan 2007 11:14:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7wO7-0000oD-1Q for emacs-devel@gnu.org; Fri, 19 Jan 2007 11:14:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7wO6-0000o8-RW for emacs-devel@gnu.org; Fri, 19 Jan 2007 11:14:46 -0500 Original-Received: from [66.249.92.173] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7wO6-0001mP-DO for emacs-devel@gnu.org; Fri, 19 Jan 2007 11:14:46 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so547107ugf for ; Fri, 19 Jan 2007 08:14:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JCFhoJWjR4y7vcvS3m1Xdx5dwkrrvoQM95C+KPE61zl3Vo12ZHgskz3yaIpla1tdeb5WOSEiP4XrXr7h+9KYrHTbvRbHLpVJ0ePoS/8tYKman6d42+dRXRx/NUv/6R064enX9Zls4Y2XpBqDmlIuQLIOGHNKA26nPweVY6okX7Y= Original-Received: by 10.66.243.2 with SMTP id q2mr3190352ugh.1169223285033; Fri, 19 Jan 2007 08:14:45 -0800 (PST) Original-Received: by 10.67.105.7 with HTTP; Fri, 19 Jan 2007 08:14:44 -0800 (PST) Original-To: "Jason Rumney" In-Reply-To: <45AB9A3C.5030406@gnu.org> Content-Disposition: inline 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: news.gmane.org gmane.emacs.devel:65305 Archived-At: On 1/15/07, Jason Rumney wrote: > When I looked at image-minor-mode, it wasn't clear to me that you could > avoid any problems by simply delaying display of the image. It looked > like the image was parsed and cached immediately regardless of whether > it was displayed or not. At least on Windows, it would work. I put OutputDebugString calls in init_*_functions() from src/image.c, and then, after M-: (setq image-type-auto-detectable nil) RET C-x C-f image-file-without-extension RET M-x image-minor-mode RET no function from the corresponding image library has been called (because in fact the image library has not been loaded yet). Only after C-c C-c does the debug message appear in the output. /L/e/k/t/u