From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: Image file name extension not recognized Date: Sat, 03 Feb 2007 00:35:40 -0200 Message-ID: <45C3F4FC.2020605@ig.com.br> References: <45C3DC03.6010000@ig.com.br> <87odoct5mb.fsf@stupidchicken.com> <45C3E888.2090302@ig.com.br> <87hcu4au8t.fsf@stupidchicken.com> <45C3EFEA.8010800@ig.com.br> 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 1170470089 15445 80.91.229.12 (3 Feb 2007 02:34:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Feb 2007 02:34:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 03 03:34:42 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 1HDAjh-0001hs-2F for ged-emacs-devel@m.gmane.org; Sat, 03 Feb 2007 03:34:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HDAjg-0006FC-Ie for ged-emacs-devel@m.gmane.org; Fri, 02 Feb 2007 21:34:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HDAjW-0006Ex-3h for emacs-devel@gnu.org; Fri, 02 Feb 2007 21:34:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HDAjT-0006El-Oj for emacs-devel@gnu.org; Fri, 02 Feb 2007 21:34:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HDAjT-0006Ei-JY for emacs-devel@gnu.org; Fri, 02 Feb 2007 21:34:27 -0500 Original-Received: from smtpout7.uol.com.br ([200.221.4.198] helo=smtp.uol.com.br) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HDAjT-0000dX-4F for emacs-devel@gnu.org; Fri, 02 Feb 2007 21:34:27 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by socom1.uol.com.br (Postfix) with ESMTP id E163E1000F4E; Sat, 3 Feb 2007 00:34:25 -0200 (BRST) Original-Received: from [201.82.35.154] (unknown [201.82.35.154]) by socom1.uol.com.br (Postfix) with ESMTP id 8FFE81001655; Sat, 3 Feb 2007 00:34:24 -0200 (BRST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 In-Reply-To: <45C3EFEA.8010800@ig.com.br> X-SIG5: d262857f9a05a180259be56589017431 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:65811 Archived-At: Vinicius Jose Latorre wrote: > Chong Yidong wrote: >> Vinicius Jose Latorre writes: >> >>> The image-type-header-regexps variable has the value: >>> >>> '(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm) >>> ("\\`P[1-6]" . pbm) >>> ("\\`GIF8" . gif) >>> ("\\`\211PNG\r\n" . png) >>> ("\\`[\t\n\r ]*#define" . xbm) >>> ("\\`\\(MM\0\\*\\|II\\*\0\\)" . tiff) >>> ("\\`[\t\n\r ]*%!PS" . postscript) >>> ("\\`\xff\xd8" . (image-jpeg-p . jpeg))) >>> >>> Where image-jpeg-p is a function. >>> >>> I just type M-x debug-on-entry RET image-jpeg-p RET >>> >>> Then tried to open the file again and image-jpeg-p is not called. >> >> I cannot reproduce this. I also have files saved with extension .JPG, >> and image-jpeg-p does get called. Can you try rebuilding Emacs from >> the latest CVS sources and trying with "emacs -Q"? > > I've just downloaded via cvs the latest Emacs 22 version and rebuild it. > > emacs -Q > > The same result. I've just noticed the echo area and now has the following message: Type C-c C-c to view as an image. Typing C-c C-c, the image is ok. The behavior above is the same if the image file has .jpg or .JPG extension.