all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Moreton <andrewjmoreton@googlemail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Andy Moreton <andrewjmoreton@gmail.com>, 6837@debbugs.gnu.org
Subject: bug#6837: Cannot view PNG images
Date: Sat, 25 Sep 2010 19:40:48 +0100	[thread overview]
Message-ID: <AANLkTin1ze+SC=hmUtqhNth8N6DBRADF4p=x03UxARVS@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=k-v8isbe67k_hbgJZRtJDv-Yc8+HT=NQS8h2X@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2466 bytes --]

On 24 September 2010 22:19, Juanma Barranquero <lekktu@gmail.com> wrote:

> On Fri, Aug 13, 2010 at 11:12, Andy Moreton <andrewjmoreton@gmail.com>
> wrote:
>
> > I have also encountered this problem with the prebuilt Win32 binaries.
> > I've built libpng14.dll and zlib1.dll from upstream sources. To get
> > emacs to use the new DLLs, I had to update image-library-alist to
> > include the new DLL name.
>
> Having to set up `image-library-alist' is not a bug. That's what the
> variable is for.
>

I didn't imply it was a bug, but that some user configuration was required.
 It would be helpful to add the new DLL name to the list.

>
>
> > 2) Do not cache the results of the image DLL lookup. If the required
> > DLLs are copied to the emacs/bin directory after emacs is started, it
> > requires a restart to notice that the DLL is now available.
>
> For this to work correctly, Emacs on Windows would be forced to check
> (either unloading/loading the library or looking at the library's path
> and/or timestamp) on *every* access to one of the library's functions.
> It's much easier to live with this limitation (which is documented on
> nt/INSTALL). BTW, not that it is relevant, but note that the image
> libraries need not to be on the bin/ directory of Emacs, they could be
> anywhere in the PATH (which is not limited to the setting of the PATH
> environment variable; it's also affected by the App Paths registry
> entry, etc.), or even outside the PATH if the relevant
> image-library-alist entry has been added.
>

Sorry, I did not express myself clearly here. The case I considered was when
image DLL lookup fails, and emacs no longer bothers looking. It would be
helpful if emacs tried to locate the image DLL again the next time image
display is required.

> 3) Make the required image DLL version number available at the lisp
> > level alongside image-library-alist, so the user can determine which
> > version of the DLL they need to build.
>
[snipped]

>
> It could be possible to make available the version of each library
> used to compile the running binary, but again, that does not offer
> much information about which versions are compatible.
>
> This is exactly what I was suggesting. Once you know the versions of the
headers that emacs was built with, you can then search the web to discover
if the installed DLL is compatible. While this still may not solve the
problem, it help to know which version of the DLL to look for.

    AndyM

[-- Attachment #2: Type: text/html, Size: 3424 bytes --]

  parent reply	other threads:[~2010-09-25 18:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-10 21:46 bug#6837: Cannot view PNG images nyc4bos
2010-08-11  3:16 ` Jason Rumney
2010-08-13  9:12   ` Andy Moreton
     [not found]     ` <AANLkTi=k-v8isbe67k_hbgJZRtJDv-Yc8+HT=NQS8h2X@mail.gmail.com>
2010-09-25  0:23       ` Juanma Barranquero
2010-09-25 18:40       ` Andy Moreton [this message]
2010-09-25 20:51         ` Juanma Barranquero
     [not found] ` <handler.6837.D6837.128149659126415.notifdone@debbugs.gnu.org>
2010-08-11 23:09   ` bug#6837: closed (Re: bug#6837: Cannot view PNG images) nyc4bos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTin1ze+SC=hmUtqhNth8N6DBRADF4p=x03UxARVS@mail.gmail.com' \
    --to=andrewjmoreton@googlemail.com \
    --cc=6837@debbugs.gnu.org \
    --cc=andrewjmoreton@gmail.com \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.