From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.devel Subject: Re: display word wrapping Date: Fri, 28 May 2004 10:54:39 -0500 Organization: ~ Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040527095900.0842.JMBARRANQUERO@wke.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085767610 9751 80.91.224.253 (28 May 2004 18:06:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 May 2004 18:06:50 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 28 20:06:37 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 1BTlkb-0004KK-00 for ; Fri, 28 May 2004 20:06:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTlkb-0005mF-00 for ; Fri, 28 May 2004 20:06:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTlWd-0001IP-K5 for emacs-devel@quimby.gnus.org; Fri, 28 May 2004 13:52:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BTlVq-0001Dt-Fc for emacs-devel@gnu.org; Fri, 28 May 2004 13:51:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BTlVG-00017l-Th for emacs-devel@gnu.org; Fri, 28 May 2004 13:51:20 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTjik-0001Yb-RX for emacs-devel@gnu.org; Fri, 28 May 2004 11:56:35 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BTjii-0004Wi-00 for ; Fri, 28 May 2004 17:56:34 +0200 Original-Received: from 216.62.199.5 ([216.62.199.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 May 2004 17:56:32 +0200 Original-Received: from pete_lee by 216.62.199.5 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 28 May 2004 17:56:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 73 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 216.62.199.5 User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:p50xJoMFOKCHI8GENXjzPGVF2Y4= 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:24089 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24089 >>>> Juanma Barranquero writes: Juanma> On 26 May 2004 17:06:57 +0200 Juanma> storm@cua.dk (Kim F. Storm) wrote: Juanma> IMO the image support on Windows is still shaky. Current Juanma> problems with that (at least, these are the problems I'm Juanma> experiencing): Juanma> - There's no single, good, Windows version of the Juanma> relevant libraries, so we must try to load each library Juanma> with several names, hoping for the best (for example, we Juanma> try to load libjpeg.dll, jpeg-62.dll and jpeg.dll, in that Juanma> order). That seems fragile. Indeed. It took some digging before I discovered the LoadLibrary calls in image.c. Juanma> - The best-so-far libraries (that I know of) are the Juanma> GnuWin32 ones, but (relatively) recent upgrades in some of Juanma> them changed some names, so if you try to use them you end Juanma> loading several, differently named, zlib DLLs, for Juanma> example. After getting the latest version of the image libraries from gnuwin32, I had to rename the following files: jpeg62.dll to jpeg.dll libtiff3.dll to libtiff.dll libXpm-noX4.dll to libxpm.dll zlib1.dll to zlib.dll Juanma> - On MSVC optimized builds, several libraries (most Juanma> notably the TIFF one) crash on loading an image. I've Juanma> tried to debug it several times, with no success; I'm not Juanma> even sure whether is a real Emacs bug hidden somewhere, or Juanma> a bug in the MSVC optimizer. Worse, with newest GnuWin32 Juanma> releases the problem affect more libraries, and some of Juanma> them (libpng) don't seem to work at all. I had this same problem. I was never able to view images with msvc build. At best it would just show an empty box, but usually crashed. I always suspected msvc optimization, but I never tried a non-optimized build. I just started using mingw. Juanma> I'm not entirely sure what to do. Perhaps we could compile Juanma> our own graphics libs and distribute them with Emacs, Juanma> though that's quite a lot of additional work. But as I Juanma> stands, I'd add a section to nt/INSTALL saying: "Don't Juanma> compile with image support unless you know what you're Juanma> doing and are willing to do some debugging." I think it would be enough to put a link to gnuwin32 and explain what libraries are needed for image support. Which are: zlib xpm libtiff libjpeg libpng libungif liburt (needed by ungif) fdlibm (needed by ungif) libgw32c (needed by ungif) I'd also note in the nt/INSTALL that the dll's are expected to have certain names and list those names for each required library. Then just explain to the user that after downloading the image binaries they may need to rename some dll's as well as making sure those dll's are in the path. With mingw gcc build and the latest image libs from gnuwin32, I'm able to view all images supported and have had no real problems.