From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Ren=E9_Kyllingstad?= Newsgroups: gmane.emacs.devel Subject: Re: major mode in new buffers Date: Tue, 30 Mar 2010 18:07:38 +0200 Message-ID: <2f8988ff1003300907o60709435n41ffc5176199736@mail.gmail.com> References: <2f8988ff1003300457w38ee4bf0h259cd7a7187298e0@mail.gmail.com> <20100330.111300.426382691.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1269965650 29348 80.91.229.12 (30 Mar 2010 16:14:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2010 16:14:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 30 18:14:06 2010 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.69) (envelope-from ) id 1Nwe4l-0004CE-3v for ged-emacs-devel@m.gmane.org; Tue, 30 Mar 2010 18:13:59 +0200 Original-Received: from localhost ([127.0.0.1]:34373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwe4k-0000IU-A8 for ged-emacs-devel@m.gmane.org; Tue, 30 Mar 2010 12:13:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwdz0-0003FP-PM for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:08:02 -0400 Original-Received: from [140.186.70.92] (port=36180 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwdyy-0003Do-Tz for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:08:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwdyx-0008B5-Fv for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:08:00 -0400 Original-Received: from mail-bw0-f219.google.com ([209.85.218.219]:61811) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwdyx-0008Ax-A5 for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:07:59 -0400 Original-Received: by bwz19 with SMTP id 19so56098bwz.26 for ; Tue, 30 Mar 2010 09:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:received:message-id :subject:to:content-type:content-transfer-encoding; bh=eASkQHHeETwrLRPKypzHK6ERwkwpQFXxVsiVYdTmT/Y=; b=LTQK4q5K2JEDlJRAabWUjQk8hBsGRBLEzhcRozhMGKLah1Nu8qaUsIFLSMhPZqN4Pq KB73e3VpoYgjIXsOKCmeLJo4abnYfgVScgOEx/GYVenHcLjycC+pZ+qLJShNl/aWbroq /x4xkR1vWcOY2WmNmYHTassfTCBlCnpD/Oy8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=KNf3hg495GApo6Vl60+KqoBSMC6EOrV3fSoDkRZKqz0x9jA+99G+l+5Phvkr9UyEMt Y4lQTW1zN6IM2IBUSuC36AcvikUEdczhFq/3dfSLEQIO1OlAWaKNLYlo3s5YVZu/s6ss MKiqABlnfbuvbh6mMA4xjdf5gtAM2AuZdZ6gE= Original-Received: by 10.204.103.204 with HTTP; Tue, 30 Mar 2010 09:07:38 -0700 (PDT) In-Reply-To: <20100330.111300.426382691.hanche@math.ntnu.no> X-Google-Sender-Auth: 4dc318475b221d99 Original-Received: by 10.204.130.211 with SMTP id u19mr1237081bks.41.1269965278145; Tue, 30 Mar 2010 09:07:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:122917 Archived-At: On Tue, Mar 30, 2010 at 5:13 PM, Harald Hanche-Olsen wrote: > Couldn't you just bind the global value of major-mode to a function > which picks the mode based on the buffer name? Yes, certainly. It just seemed like a needless difference. The automatically created buffers I encounter have names that wouldn't clash with auto-mode-alist, but your mileage might vary. -- Ren=E9