all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Andreas Schwab <schwab@suse.de>,
	emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: [PATCH] Delayed loading of image libraries
Date: 02 Jul 2004 10:11:52 +0200	[thread overview]
Message-ID: <x57jtmu8tz.fsf@lola.goethe.zz> (raw)
In-Reply-To: <20040702093521.CF34.JMBARRANQUERO@wke.es>

Juanma Barranquero <jmbarranquero@wke.es> writes:

> On 02 Jul 2004 09:10:55 +0200
> David Kastrup <dak@gnu.org> wrote:
> 
> > It is
> > not fine if an Emacs supporting PNG does not display a PNG.
> 
> Sure.  But currently, an Emacs supporting PNG *will* display a PNG if
> the library is made available (either statically or dynamically).  Miles
> thinks (or so I understand) that the responsability of making the
> library available rests on lookup_image_type.  I believe the proper
> thing to do is, at some point, calling `image-type-available-p'.

The way I understand this, the responsibility of making the library
available rests on the display code.  If I put the stuff into a
display property I saved just verbatim (without even taking a look at
what image formats would be in it), then after restarting an Emacs
session and restoring the display property, the PNG should display.
No calls to lookup_image_type or image-type-available-p or whatever
else by the user should be required.

> > > After loading, Emacs *must* ask at a moment or other whether the
> > > image type is available, mustn't it?
> > 
> > How about when displaying it?
> 
> And is not exactly that what I propose?

If it is, I have failed to get it.  It sounded to me like you were
proposing that the user has to something before the image cn be
displayed.

> > Why should image-type-available-p have been called?
> 
> Because, AFAICS, is the only documented way to know whether a given
> image type is supported.

What if a program does not care because it simply assumes that the
configuration is correct?  If a particular format is not supported,
we currently just get boxes.  That's ok.  It is not ok if we just get
boxes even _when_ a particular format is supported.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  parent reply	other threads:[~2004-07-02  8:11 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-10 12:38 [PATCH] Delayed loading of image libraries Juanma Barranquero
2004-06-30 10:15 ` Andreas Schwab
2004-06-30 11:13   ` Juanma Barranquero
2004-06-30 11:24     ` Andreas Schwab
2004-06-30 11:34       ` Juanma Barranquero
2004-06-30 11:41         ` Andreas Schwab
2004-06-30 13:00           ` Juanma Barranquero
2004-06-30 15:42         ` Miles Bader
2004-07-01  9:30           ` Juanma Barranquero
2004-07-01  9:48             ` Miles Bader
2004-07-01 10:13               ` Juanma Barranquero
2004-07-02  1:16                 ` Miles Bader
2004-07-02  7:02                   ` Juanma Barranquero
2004-07-02  7:10                     ` David Kastrup
2004-07-02  7:41                       ` Juanma Barranquero
2004-07-02  7:56                         ` Miles Bader
2004-07-02  8:10                           ` Juanma Barranquero
2004-07-02  8:20                             ` Miles Bader
2004-07-02  8:45                               ` Juanma Barranquero
2004-07-02  8:59                                 ` Miles Bader
2004-07-02  9:02                                   ` Miles Bader
2004-07-02  8:11                         ` David Kastrup [this message]
2004-07-02  8:34                           ` Juanma Barranquero
2004-07-03 18:21                     ` Richard Stallman
2004-06-30 14:19       ` Stefan

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=x57jtmu8tz.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=schwab@suse.de \
    /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.