From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: Image mode Date: Wed, 7 Feb 2007 11:43:55 -0800 (PST) Message-ID: <39521.128.165.123.18.1170877435.squirrel@webmail.lanl.gov> References: <87k5yxeg19.fsf@jurta.org> <873b5h4vv7.fsf@stupidchicken.com> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1170877525 16532 80.91.229.12 (7 Feb 2007 19:45:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2007 19:45:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Chong Yidong" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 07 20:45:19 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 1HEsjG-0006ic-Qe for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2007 20:45:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEsjG-0002rL-E7 for ged-emacs-devel@m.gmane.org; Wed, 07 Feb 2007 14:45:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HEsi0-0001o2-4C for emacs-devel@gnu.org; Wed, 07 Feb 2007 14:44:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HEshy-0001nI-DS for emacs-devel@gnu.org; Wed, 07 Feb 2007 14:43:59 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HEshy-0001nD-B9 for emacs-devel@gnu.org; Wed, 07 Feb 2007 14:43:58 -0500 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HEshx-00012U-PP for emacs-devel@gnu.org; Wed, 07 Feb 2007 14:43:58 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l17Jhu8J028121 for ; Wed, 7 Feb 2007 12:43:56 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l17JhtlV015914; Wed, 7 Feb 2007 12:43:56 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l17JhtI9028750; Wed, 7 Feb 2007 12:43:55 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l17JhtF0028748; Wed, 7 Feb 2007 11:43:55 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 7 Feb 2007 11:43:55 -0800 (PST) In-Reply-To: <873b5h4vv7.fsf@stupidchicken.com> User-Agent: SquirrelMail/1.4.8-2.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-detected-kernel: Linux 2.4-2.6 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:66081 Archived-At: I like it, I think; it seems to cover everything, although the name `image-mode-maybe' is now a bit odd. However, one minor suggestion: > Thirdly, make the function image-type-auto-detected-p scan > auto-mode-alist for a non-image-mode match, and returns nil if one is > found. This should return nil unless auto-mode-alist suggests image mode, not just nil if it suggests something else. (The difference is files that would get Fundamental mode.) Even better would be to check that the filename implies the -same- kind of image as the content, but this would be slightly more involved, since auto-mode-alist doesn't store that information. The ease with which nil was returned could of course be controlled by user options and/or let-binding auto-mode-alist (for specialized things like thumbnails). Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.