From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: major mode in new buffers Date: Tue, 30 Mar 2010 12:15:03 -0400 Message-ID: References: <2f8988ff1003300457w38ee4bf0h259cd7a7187298e0@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1269965793 29970 80.91.229.12 (30 Mar 2010 16:16:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2010 16:16:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?Ren=E9_Kyllingstad?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 30 18:16:29 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 1Nwe79-0005Tg-39 for ged-emacs-devel@m.gmane.org; Tue, 30 Mar 2010 18:16:27 +0200 Original-Received: from localhost ([127.0.0.1]:35586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwe78-0002Mb-HC for ged-emacs-devel@m.gmane.org; Tue, 30 Mar 2010 12:16:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwe60-0001pv-3z for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:15:16 -0400 Original-Received: from [140.186.70.92] (port=41411 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwe5v-0001o9-HW for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:15:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwe5u-0001Eb-Dg for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:15:11 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:64311) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwe5u-0001EU-85 for emacs-devel@gnu.org; Tue, 30 Mar 2010 12:15:10 -0400 Original-Received: by pvg2 with SMTP id 2so7499286pvg.0 for ; Tue, 30 Mar 2010 09:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=W/7/1GuwzU+Hm5oFEcpWfzdQABtgtbJq/0952P6Vp3E=; b=lnDcjASfUbf5B083EJ2WiPz6w0sqLar80lWZL4Pfd210Qeg3IaEEYVJilL0Kqq4fU4 Ut/RJyVSjIiP1vWWjqveW5xfMVIgueTfZjY3K6/jfF/erfT4QDvNfM9fo6FxjpIkufo2 Z3qdiqJqCz450gsWrqMXd8TVC0QGxAqum7Vlw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=ZIVY/7s0v8Q5jBzCq6cXvFghamkjhvlvNulm1KxmJvZy2yRUawvv0MH5Kr8i0QFPog 7SRoR2saBS3aliKeu+YozWh9gm0IKwtWow3sXuPrDYv1Y3EoOQJRcqOzOqY2bxUyrkcR 9csMfnd4Vnq58UT3zfHiPilpLBTXIpO/dCp6I= Original-Received: by 10.141.125.3 with SMTP id c3mr143388rvn.234.1269965709451; Tue, 30 Mar 2010 09:15:09 -0700 (PDT) Original-Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id p1sm2178644rvq.10.2010.03.30.09.15.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Mar 2010 09:15:07 -0700 (PDT) In-Reply-To: <2f8988ff1003300457w38ee4bf0h259cd7a7187298e0@mail.gmail.com> X-Mailer: Apple Mail (2.1078) 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:122919 Archived-At: On Mar 30, 2010, at 7:57 AM, Ren=E9 Kyllingstad wrote: > new buffers get default-major-mode. I would find it more convenient if > auto-mode-alist was used. Maybe not auto-mode-alist, but an extended form of magic-mode-alist. I often create "untitled" buffers to be saved later, and they start out = in my default mode.=20 Or, I edit some shell script that doesn't have a file name extension, so = the major mode isn't set initially. After the first few lines, wouldn't it be nice if magic-mode-alist was = applied (if reliable!) and changed the major mode? =20 We don't want an MS Word Paperclip ("You seem to be writing a letter!"), = but some major modes are recognized reliably.=