From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: display word wrapping Date: Thu, 03 Jun 2004 08:49:46 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040602163704.AADE.JMBARRANQUERO@wke.es> <20040603003149.2313.LEKTU@mi.madritel.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1086249051 10480 80.91.224.253 (3 Jun 2004 07:50:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2004 07:50:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Jun 03 09:50:47 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 1BVmzv-0001ym-00 for ; Thu, 03 Jun 2004 09:50:47 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BVmzu-0008SA-00 for ; Thu, 03 Jun 2004 09:50:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVn0E-0007ss-Rs for emacs-devel@quimby.gnus.org; Thu, 03 Jun 2004 03:51:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BVn0D-0007sm-C5 for emacs-devel@gnu.org; Thu, 03 Jun 2004 03:51:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BVn0C-0007sa-Tj for emacs-devel@gnu.org; Thu, 03 Jun 2004 03:51:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BVn0C-0007sX-Pd for emacs-devel@gnu.org; Thu, 03 Jun 2004 03:51:04 -0400 Original-Received: from [194.106.33.237] (helo=outmail.freedom2surf.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BVmzN-0004i2-W6 for emacs-devel@gnu.org; Thu, 03 Jun 2004 03:50:14 -0400 Original-Received: from wanchan.jasonrumney.net (i-195-137-77-250.freedom2surf.net [195.137.77.250]) by outmail.freedom2surf.net (8.12.10/8.12.10) with ESMTP id i537oCU9010184; Thu, 3 Jun 2004 08:50:12 +0100 Original-Received: from NYAUMO (nyaumo.jasonrumney.net [10.0.0.27]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 4B8A4DDD41; Thu, 3 Jun 2004 08:50:12 +0100 (BST) Original-To: Juanma Barranquero In-Reply-To: <20040603003149.2313.LEKTU@mi.madritel.es> (Juanma Barranquero's message of "Thu, 03 Jun 2004 00:43:58 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) 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:24454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24454 Juanma Barranquero writes: > On Wed, 02 Jun 2004 23:17:21 +0100, Jason Rumney wrote: > >> There should be no need to do that. libpng and libtiff will load it >> as required. > > ?? AFAICS, it was you who introduced this code in rev 1.200 of w32fns.c: > > /* Ensure zlib is loaded. Try debug version first. */ > if (!LoadLibrary ("zlibd.dll")) > LoadLibrary ("zlib.dll"); What happens if libpng is in the PATH, but zlib is not? Does Emacs decide that png is available, then crash trying to use it? If that is the case, then we should check for it. But if the libpng load fails, then we do not need to check for it separately. > BTW, what do you think of the patch? Any idea where to run > init-image-libraries? It seems we will have to do it from startup.el, after loading the init files. > I was thinking of letting the user run it on .emacs if he wants (so he > can see the supported libraries by checking image-types after the > fact) Make sure that running it a second time has no bad effects. Ideally, it should try to load only those image libraries that are not already supported. But making it a no-op the second time through is OK if that is too difficult.