[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'initial-major-mode interaction with 'major-mode
From: |
Lars Wessman |
Subject: |
Re: 'initial-major-mode interaction with 'major-mode |
Date: |
Wed, 08 Dec 2010 15:09:10 -0000 |
User-agent: |
G2/1.0 |
On May 20, 4:53 am, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > Thanks Stefan. Have you tested this on your machine (alternating
> > between default-major-mode and major-mode)?
>
> Of course. And 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". I.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.
>
> Stefan
Lars