From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: new buffer - should its mode reflect its name when the name matches auto-mode-alist? Date: Tue, 22 Sep 2009 08:07:11 -0700 Message-ID: <230CB35D6D9A419EB943F0A276A78B72@us.oracle.com> References: <7b501d5c0909220747m71565340m36be3026f91f5db8@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253632070 18687 80.91.229.12 (22 Sep 2009 15:07:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Sep 2009 15:07:50 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Deniz Dogan'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 22 17:07:40 2009 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 1Mq6xw-0001lt-9w for ged-emacs-devel@m.gmane.org; Tue, 22 Sep 2009 17:07:40 +0200 Original-Received: from localhost ([127.0.0.1]:58083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mq6xv-0006sy-ND for ged-emacs-devel@m.gmane.org; Tue, 22 Sep 2009 11:07:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mq6xi-0006pT-7N for emacs-devel@gnu.org; Tue, 22 Sep 2009 11:07:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mq6xd-0006nZ-OE for emacs-devel@gnu.org; Tue, 22 Sep 2009 11:07:25 -0400 Original-Received: from [199.232.76.173] (port=35739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mq6xd-0006nT-EX for emacs-devel@gnu.org; Tue, 22 Sep 2009 11:07:21 -0400 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:29310 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mq6xc-0006m4-Te for emacs-devel@gnu.org; Tue, 22 Sep 2009 11:07:21 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8MF6w7f001374 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Sep 2009 15:06:59 GMT Original-Received: from abhmt015.oracle.com (abhmt015.oracle.com [141.146.116.24]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n8MF7ETg025070; Tue, 22 Sep 2009 15:07:14 GMT Original-Received: from dradamslap1 (/141.144.169.188) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 22 Sep 2009 08:07:11 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Aco7k8jik72e/znxTMSYVerrW42bpAAAm3zQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 In-Reply-To: <7b501d5c0909220747m71565340m36be3026f91f5db8@mail.gmail.com> X-Source-IP: abhmt015.oracle.com [141.146.116.24] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4AB8E820.00F0:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 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:115523 Archived-At: > > Haven't thought about this before, but I wonder if the mode > > should respect auto-mode-alist when you create a new buffer? > > There's no doubt a good reason or > > two why we don't do this - just wondering. > > > > E.g. `C-x b foo.el', where there is no existing buffer > > foo.el. The mode is > > Fundamental; should it be Emacs-Lisp instead? > > > > (I realize that a new buffer need not be intended to be > > saved as a file.) > > > > As an end-user and not having contributed anything to Emacs myself, I > would expect the buffer to "respect" auto-mode-alist, i.e. set the > mode depending on the buffer name. However, I think the default > behavior when creating buffers non-interactively should *not* respect > auto-mode-alist. Yes, I meant interactively only, but should have made that clear. Thx.