From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Putting auto-image-file-mode in Options menu Date: Fri, 18 Mar 2005 09:37:27 +0900 Message-ID: References: <87acp8i6f1.fsf@jurta.org> <87wtsbbrlt.fsf-monnier+emacs@gnu.org> <87ll8qap2h.fsf@jurta.org> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111106453 2761 80.91.229.2 (18 Mar 2005 00:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2005 00:40:53 +0000 (UTC) Cc: juri@jurta.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 01:40:51 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DC5WR-0001cw-Ae for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2005 01:39:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DC5kj-0001VZ-8r for ged-emacs-devel@m.gmane.org; Thu, 17 Mar 2005 19:54:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DC5k6-0001Mn-74 for emacs-devel@gnu.org; Thu, 17 Mar 2005 19:53:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DC5jt-0001Ei-Cb for emacs-devel@gnu.org; Thu, 17 Mar 2005 19:53:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DC5jt-0001EY-8h for emacs-devel@gnu.org; Thu, 17 Mar 2005 19:53:21 -0500 Original-Received: from [64.233.184.193] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DC5UX-0006e5-BT for emacs-devel@gnu.org; Thu, 17 Mar 2005 19:37:29 -0500 Original-Received: by wproxy.gmail.com with SMTP id 40so220267wri for ; Thu, 17 Mar 2005 16:37:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=J9xVdmwzsB8oEMsEi1sXAAHKL4fKJqIQp186MWY7WgWcGBn95pDZA9uUnd7ej6PzKPFE+mw4+RqUOSPP4ZMtRGdtD+Kz2sPwKKstFJ2dZj+1BWHAZ1F9Ju5WPDfchx8zwIDdA0pmT0JGNCAJEWtnJVshZ7vGe7gfP4DO40IKxMo= Original-Received: by 10.54.17.70 with SMTP id 70mr3031396wrq; Thu, 17 Mar 2005 16:37:28 -0800 (PST) Original-Received: by 10.54.19.70 with HTTP; Thu, 17 Mar 2005 16:37:27 -0800 (PST) Original-To: rms@gnu.org In-Reply-To: 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34692 > What do people think? Here's the code to do it. > (But I wonder, was there some reason why Miles implemented > this feature using a file name handler instead of with a major mode?) There was an explicit reason, but I don't remember what it is anymore; perhaps some google searching would reveal something. [One thing is that it works with "insert-file" too, whereas obviously a major-mode doesn't; but I don't think that was the only reason.] -Miles -- Do not taunt Happy Fun Ball.