From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Valentin Plechinger Newsgroups: gmane.emacs.help Subject: Re: Major mode weirdness. Date: Wed, 13 Jul 2011 20:37:03 +0200 Message-ID: <87oc0y81tc.wl%v.plechinger@gmail.com> References: <87d3hejj8p.fsf@UlanBator.myhome.westell.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1310584232 29980 80.91.229.12 (13 Jul 2011 19:10:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 19:10:32 +0000 (UTC) To: Help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 21:10:28 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh4pE-0007wL-C2 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 21:10:24 +0200 Original-Received: from localhost ([::1]:58830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh4pC-00027O-T5 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 15:10:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh4J7-0002f1-L7 for Help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 14:37:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qh4J5-0005YX-Ha for Help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 14:37:13 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:50805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qh4J4-0005Y8-Vm for Help-gnu-emacs@gnu.org; Wed, 13 Jul 2011 14:37:11 -0400 Original-Received: by bwd14 with SMTP id 14so3064641bwd.0 for ; Wed, 13 Jul 2011 11:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:message-id:from:to:subject:in-reply-to:references:user-agent :mime-version:content-type; bh=+fGmpLhlOiNtcSxghPOl3kVPl9NNebnOAcgEdWTf8XU=; b=V2LckF1wvQHAKgwqYQf736Rea0Ge+Vv2+NCZX+ZnIvzd7DI3EQ9EkmpWCmC1j4WbCj 6il8HrdjqYrQI0ae3utdjN7kNjGWpWkcaKpqV3m41MXKqzMmNxX27RkURL+zbbP/mqTJ lbdJuYGsik7QyJwY5gOQwjXhNIQnSFS1j15Jc= Original-Received: by 10.204.32.207 with SMTP id e15mr615967bkd.60.1310582229041; Wed, 13 Jul 2011 11:37:09 -0700 (PDT) Original-Received: from voli.gmail.com (88-117-65-62.adsl.highway.telekom.at [88.117.65.62]) by mx.google.com with ESMTPS id s16sm395323fah.0.2011.07.13.11.37.07 (version=SSLv3 cipher=OTHER); Wed, 13 Jul 2011 11:37:08 -0700 (PDT) In-Reply-To: <87d3hejj8p.fsf@UlanBator.myhome.westell.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.3 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81572 Archived-At: use (setq default-major-mode 'text-mode) for all new buffers (initial *scratch* buffer is different though) R. Clayton wrote: > > I am running GNU Emacs 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3) of > 2011-04-10 on raven, modified by Debian on a debian testing system updated > weekly. > > I have noticed that the initial scratch buffer, the one you get when you just > run emacs with no command-line arguments, is in fundamental mode, even though > .emacs contains, in custom-set-variables, '(initial-major-mode (quote > text-mode)) and help-variable in *scratch* reports initial-major-mode's value > is text-mode. > > What is the error I'm making in trying to get the initial buffer to be in text > mode? > > I have also noticed that doing (setq major-mode 'text-mode) in .emacs has no > effect: new buffers are set to fundamental mode rather than text mode. The > help-variable documentation for major-mode indicates that setting help-mode > makes it buffer local, which seems like strange behavior for a variable that's > supposed to provide a global value. Setting major-mode in custom-set-variables > works as expected. > > Although I expect I know the answer to this one, I'll ask it anyway: why is it > that a "top-level" setq on major-mode in .emacs doesn't work? > > Also, top-level setqs on initial-major-mode and major-mode used to work as > expected up until a few weeks ago. What has changed since then? Searching > around in the /usr/share/doc/emacs23 change files doesn't produce anything I > can recognize as an explanation. > >