From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Image file name extension not recognized Date: Fri, 02 Feb 2007 20:03:08 -0500 Message-ID: <87odoct5mb.fsf@stupidchicken.com> References: <45C3DC03.6010000@ig.com.br> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170464645 3937 80.91.229.12 (3 Feb 2007 01:04:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Feb 2007 01:04:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vinicius Jose Latorre Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 03 02:03:52 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 1HD9Jj-0001bL-Qr for ged-emacs-devel@m.gmane.org; Sat, 03 Feb 2007 02:03:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HD9Jj-0002EF-Fg for ged-emacs-devel@m.gmane.org; Fri, 02 Feb 2007 20:03:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HD9JX-0002C4-7J for emacs-devel@gnu.org; Fri, 02 Feb 2007 20:03:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HD9JW-0002Bh-Sf for emacs-devel@gnu.org; Fri, 02 Feb 2007 20:03:34 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HD9JW-0007vw-D3 for emacs-devel@gnu.org; Fri, 02 Feb 2007 20:03:34 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l1313UPY015877; Fri, 2 Feb 2007 20:03:33 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l1313Bli001509; Fri, 2 Feb 2007 20:03:11 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-TWO-TWENTY-SEVEN.MIT.EDU [18.19.5.227]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l13138FC004714; Fri, 2 Feb 2007 20:03:08 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HD9J6-0003yc-00; Fri, 02 Feb 2007 20:03:08 -0500 In-Reply-To: <45C3DC03.6010000@ig.com.br> (Vinicius Jose Latorre's message of "Fri\, 02 Feb 2007 22\:49\:07 -0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.1 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:65802 Archived-At: Vinicius Jose Latorre writes: > I have some image files with names like: > > IMG_0366.JPG > > When I try to open it, Emacs does not recognize it as an image file. > > But if I rename the file to: > > IMG_0366.jpg > > Then Emacs recognizes the file as an image file. > > Shouldn't Emacs recognize files with .JPG extension as an image file? Jpeg images are supposed to be autodetected using their contents, even if the file extension is JPG (see image-type-header-regexps). Apparently, that autodetection is failing in this case. Could you try to find out why?