From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: [mathias.dahl@gmail.com: Re: Tumme fails with default custom settings] Date: Wed, 25 Apr 2007 09:47:00 +0200 Message-ID: <7dbe73ed0704250047x19bebaf8s5dbb3ae5ac42073e@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1177487230 2727 80.91.229.12 (25 Apr 2007 07:47:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2007 07:47:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 25 09:47:09 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HgcDU-0006Gr-IH for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2007 09:47:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgcJ5-0006v6-Ap for ged-emacs-devel@m.gmane.org; Wed, 25 Apr 2007 03:52:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgcJ1-0006sL-IM for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:52:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgcJ0-0006qJ-F0 for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:52:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgcJ0-0006q3-8Q for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:52:50 -0400 Original-Received: from wr-out-0506.google.com ([64.233.184.231]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgcDO-0004oD-MG for emacs-devel@gnu.org; Wed, 25 Apr 2007 03:47:02 -0400 Original-Received: by wr-out-0506.google.com with SMTP id i23so139746wra for ; Wed, 25 Apr 2007 00:47:01 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dNF9+O+JeXMLX1bXN3wwCkCsd1y7kxQa1Nf0TBhhHNxnlcbYP5zjUnfGYIclfDgN53SSDmtX0Vv1ahP5r9RXPJ9SENiOH4kxSUjU0D8edrwDtxUYFAQAVqFMG3sTNl2sD7Lv80qyfitccU3Rq9wLHWCHKl+ia0QG9sXMqRFdo5A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HB+nbSHtbk+J1X22wo/4gBOUqMoFosAZBAOQufTtfgzvidsqKuPikCi8oWMpkTotya/b6CvYRfJnfaqFZ+pzO0aSJlMjswrWKu1x6t613sLj50LzujTjbDrK0KUeaBdEUUumi6+8rMQ1iscUFS5ZYmoGXFTvqWMEhOVrquPf4mc= Original-Received: by 10.78.166.7 with SMTP id o7mr69875hue.1177487220408; Wed, 25 Apr 2007 00:47:00 -0700 (PDT) Original-Received: by 10.78.12.3 with HTTP; Wed, 25 Apr 2007 00:47:00 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:70070 Archived-At: > Yes. The cause of the problem was that when displaying the image in > its original size, no conversion was needed, and therefore the image > format was not always JPEG (JPEG this was hardcoded in the previous > version of the defun below, now it is replaced by a variable). > > The new version below takes care of this case and uses > `image-type-from-file-name' to determine the image type. This solves > the problem for PNG and XPM files (the ones I could test that wasn't > JPEG) but GIF does not seem to be possible to insert. Is this on > purpose? Richard, can you comment on the GIF issue above? I am suspecting that the old patent on the LZW compression algorithm has something to do with it (http://www.gnu.org/philosophy/gif.html). Does it? When opening JPEG and PNG files from Dired, I automaticaly see the image, and this does not happen with GIF. I just want to have this verified so that I don't have to hunt for more bugs in image-dired (it feel strange not to type "tumme" anymore...). /Mathias