From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Wessman Newsgroups: gmane.emacs.help Subject: Re: 'initial-major-mode interaction with 'major-mode Date: Thu, 20 May 2010 03:33:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <5602dc29-464a-4ecd-8d5a-364283d479e7@o1g2000vbe.googlegroups.com> 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 1291833084 18086 80.91.229.12 (8 Dec 2010 18:31:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 18:31:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 19:31:19 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1PQOnK-0004cC-V6 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:31:16 +0100 Original-Received: from localhost ([127.0.0.1]:52582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQOnK-00036w-78 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 13:31:14 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!40g2000vbr.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 89.152.235.180 Original-X-Trace: posting.google.com 1274351622 6938 127.0.0.1 (20 May 2010 10:33:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 20 May 2010 10:33:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 40g2000vbr.googlegroups.com; posting-host=89.152.235.180; posting-account=wG1H1QoAAACHtUFAVnw-84TP3v9hG1d- User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178293 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75794 Archived-At: On May 20, 4:53=A0am, Stefan Monnier wrote: > > Thanks Stefan. Have you tested this on your machine (alternating > > between default-major-mode and major-mode)? > > Of course. =A0And I recently rewrote the way default-major-mode works > internally and am responsible for declaring it obsolete. > > > After reading your message I tried using major-mode again and > > *scratch* opens up in Fundamental mode. I switch it back to > > default-major-mode and *scratch* opens up in lisp-interaction-mode as > > specified in 'initial-major-mode. > > I'm noticing a difference in behavior between using 'default-major- > > mode and 'major-mode, and I'm not hallucinating it. Is it possible > > that some other setting is affecting the behavior of one or the other? > > Define "using". =A0I.e. show us the actual code you tried. I did put the code in the original message. > And don't forget that for `major-mode', you need to set it with > `setq-default' rather than with `setq'. The problem was that I wasn't using setq-default, I had not picked that detail up in your first message. Thanks. What is the rationale for switching from the use of setq to setq- default? Just curious. > > =A0 =A0 =A0 =A0 Stefan Lars