unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
Subject: image descriptors and defimage with :data
Date: 08 Feb 2002 03:50:53 +0000	[thread overview]
Message-ID: <87zo2kaaxu.fsf@tf1.tapsellferrier.co.uk> (raw)

I'm building an image from a part returned by an IMAP server.

Instead of saving the part to a file and opening it that way I
thought it would be fun to have no file caching and just open the
image directly from the imap server.

My code gets the part from the imap server as a string and then
constructs an image descriptor for it.

It then uses insert-image to get it into a buffer.

But the image doesn't get displayed. 


Emacs 21 manual says that defimage must have at least the following
properties in the props list:

  :type
  :file

But I don't want to specify the image as a file. Can (defimage ...)
cope with something like the following?

      (defimage content-image
	((:type jpeg :data content)))


Nic Ferrier

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


             reply	other threads:[~2002-02-08  3:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08  3:50 Nic Ferrier [this message]
2002-02-08 20:26 ` image descriptors and defimage with :data Pavel Janík
2002-02-10  5:18 ` Richard Stallman
2002-02-10 13:53   ` Nic Ferrier
2002-02-11 18:47     ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zo2kaaxu.fsf@tf1.tapsellferrier.co.uk \
    --to=nferrier@tapsellferrier.co.uk \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).