[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display word wrapping

From: Jason Rumney
Subject: Re: display word wrapping
Date: Thu, 03 Jun 2004 08:49:46 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (windows-nt)

Juanma Barranquero <address@hidden> writes:

> On Wed, 02 Jun 2004 23:17:21 +0100, Jason Rumney <address@hidden> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]