From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Image autodetection Date: Tue, 30 Jan 2007 16:54:17 +0000 Message-ID: <45BF7839.6050400@gnu.org> References: <878xflr6vd.fsf@stupidchicken.com> <45BF0A1B.70202@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1170176094 23786 80.91.229.12 (30 Jan 2007 16:54:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2007 16:54:54 +0000 (UTC) Cc: Chong Yidong , Stefan Monnier , emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 30 17:54:43 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 1HBwFj-0000ZV-KU for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2007 17:54:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBwFj-0008Jj-C2 for ged-emacs-devel@m.gmane.org; Tue, 30 Jan 2007 11:54:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBwFZ-0008JU-KS for emacs-devel@gnu.org; Tue, 30 Jan 2007 11:54:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBwFX-0008JI-L7 for emacs-devel@gnu.org; Tue, 30 Jan 2007 11:54:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBwFX-0008JF-GC for emacs-devel@gnu.org; Tue, 30 Jan 2007 11:54:27 -0500 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HBwFX-0008TY-38 for emacs-devel@gnu.org; Tue, 30 Jan 2007 11:54:27 -0500 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id 3DAB151FC7; Tue, 30 Jan 2007 16:54:22 +0000 (GMT) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: 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:65643 Archived-At: Juanma Barranquero wrote: > That would be a different change. As it is now, if we just change > `image-mode' to `image-minor-mode' in `magic-mode-alist' (as was done > in a previous proposed patch, now rejected), image files would be > opened in fundamental mode + image minor mode, because as soon as a > non-nil mode is returned when searching in `magic-mode-alist' the > detection of major mode is finished (and so `auto-mode-alist' is > bypassed). At least, that's what I remember from a test I did. We have image-mode-maybe that uses image-mode for files that are unambiguously images, and image-minor-mode for files where there may be another appropriate mode. With some minor changes, it could be used in magic-mode-alist.