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: Image autodetection Date: Mon, 29 Jan 2007 14:05:26 -0500 Message-ID: <878xflr6vd.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170098201 3649 80.91.229.12 (29 Jan 2007 19:16:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2007 19:16:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 29 20:16:31 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 1HBbvH-0005Lf-UZ for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 20:12:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBbvE-0001bD-AV for ged-emacs-devel@m.gmane.org; Mon, 29 Jan 2007 14:12:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBbtZ-0000ge-LS for emacs-devel@gnu.org; Mon, 29 Jan 2007 14:10:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBbtZ-0000gP-87 for emacs-devel@gnu.org; Mon, 29 Jan 2007 14:10:25 -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 1HBbtY-0007Us-Vt for emacs-devel@gnu.org; Mon, 29 Jan 2007 14:10:25 -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 l0TJANgp023939 for ; Mon, 29 Jan 2007 14:10:23 -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 l0TJ5Rdg017723 for ; Mon, 29 Jan 2007 14:05:27 -0500 (EST) Original-Received: from localhost (MAIN-TWELVE-SIXTY-THREE.MIT.EDU [18.19.5.63]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l0TJ5Q1T013658 for ; Mon, 29 Jan 2007 14:05:26 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HBbok-00033K-00 for ; Mon, 29 Jan 2007 14:05:26 -0500 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:65598 Archived-At: I have tried to digest the long and confusing thread on this subject. I propose the following: 1. Make a new variable, auto-detect-image-type-p. If non-nil, the function image-type-auto-detected-p (called from magic-mode-alist) performs content detection. The default is nil. 2. Do not display images as images automatically in image-mode. Instead, the user sees "Type C-c C-c to view the image as an image". This additional step should not be a major inconvenience. The other changes proposed in that thread, such as using image-minor-mode by default, are probably unnecessary.