From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Scratch buffer annoyance Date: Tue, 07 Aug 2007 08:13:57 +0200 Message-ID: <86sl6van2y.fsf@lola.quinscape.zz> References: <85ejinrqgk.fsf@lola.goethe.zz> <35917.128.165.123.18.1185998078.squirrel@webmail.lanl.gov> <85vebzq7vd.fsf@lola.goethe.zz> <87odhqethv.fsf@catnip.gol.com> <87zm18v7ug.fsf@jurta.org> <85abt7kck1.fsf@lola.goethe.zz> <87hcndc3zc.fsf@jurta.org> <86fy2wbujj.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186467276 9097 80.91.229.12 (7 Aug 2007 06:14:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2007 06:14:36 +0000 (UTC) Cc: juri@jurta.org, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 07 08:14:34 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 1IIIKs-0002JS-CS for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 08:14:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIIKc-0007qZ-QY for ged-emacs-devel@m.gmane.org; Tue, 07 Aug 2007 02:14:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IIIKY-0007qP-QW for emacs-devel@gnu.org; Tue, 07 Aug 2007 02:14:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IIIKW-0007q5-OQ for emacs-devel@gnu.org; Tue, 07 Aug 2007 02:14:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IIIKW-0007q2-KN for emacs-devel@gnu.org; Tue, 07 Aug 2007 02:14:08 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IIIKS-00051a-UF for emacs-devel@gnu.org; Tue, 07 Aug 2007 02:14:07 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id IAA32363 for ; Tue, 7 Aug 2007 08:13:52 +0200 X-Delivered-To: Original-Received: (qmail 30355 invoked from network); 7 Aug 2007 06:13:57 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 7 Aug 2007 06:13:57 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id 19A468FA2F; Tue, 7 Aug 2007 08:13:57 +0200 (CEST) In-Reply-To: (Richard Stallman's message of "Mon\, 06 Aug 2007 21\:22\:27 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-Detected-Kernel: Linux 2.4-2.6 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:76127 Archived-At: Richard Stallman writes: > In fact, people thought this so desirable that we have > > * Changes in Emacs 21.2 > > [...] > > ** When the *scratch* buffer is recreated, its mode is set from > initial-major-mode, which normally is lisp-interaction-mode, > instead of using default-major-mode. > > I would like to retain the ability to do this, though I agree that > "initial-major-mode" is a completely misleading name for it under the > new startup design and should become a deprecated alias (do we have > that?) for something more fitting. > > We could have something like auto-mode-alist > for buffer names. That was my first thought, too, and I looked for something like that in vain. auto-mode-buffer-alist or something. We could even misuse auto-mode-alist as a last-resort fallback here: buffer names corresponding to already checked file names won't match, anyway, and the buffer names not associated with files usually start with "*" or " *", and it is very unlikely we'll ever need to match a file name like that. And, after all, it is called auto-mode-alist and not auto-filename-mode-alist. -- David Kastrup