From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: image descriptors and defimage with :data Date: 08 Feb 2002 03:50:53 +0000 Message-ID: <87zo2kaaxu.fsf@tf1.tapsellferrier.co.uk> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: quimby2.netfonds.no 1013139717 20093 195.204.10.66 (8 Feb 2002 03:41:57 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 8 Feb 2002 03:41:57 GMT Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16Z1vA-0005Dz-00 for ; Fri, 08 Feb 2002 04:41:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16Z1mb-00069I-00; Thu, 07 Feb 2002 22:33:05 -0500 Original-Received: from tf1.tapsellferrier.co.uk ([195.7.242.226]) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16Z1ls-0005rC-00 for ; Thu, 07 Feb 2002 22:32:20 -0500 Original-Received: from nferrier by tf1.tapsellferrier.co.uk with local (Exim 3.12 #1 (Debian)) id 16Z23q-0002Ad-00; Fri, 08 Feb 2002 03:50:54 +0000 Original-To: emacs-devel@gnu.org Original-Lines: 28 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:874 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:874 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