From: Lars Wessman <lars.wessman@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: 'initial-major-mode interaction with 'major-mode
Date: Thu, 20 May 2010 03:33:42 -0700 (PDT) [thread overview]
Message-ID: <e23dc78d-e8c7-4243-b5c8-c8ce52061078@40g2000vbr.googlegroups.com> (raw)
In-Reply-To: jwvhbm3mdqt.fsf-monnier+gnu.emacs.help@gnu.org
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
prev parent reply other threads:[~2010-05-20 10:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5602dc29-464a-4ecd-8d5a-364283d479e7@o1g2000vbe.googlegroups.com>
2010-05-18 16:06 ` 'initial-major-mode interaction with 'major-mode Lars Wessman
2010-05-18 16:51 ` Stefan Monnier
2010-05-19 19:11 ` Lars Wessman
2010-05-20 3:53 ` Stefan Monnier
2010-05-20 9:44 ` Lars Wessman
2010-05-20 11:52 ` Cecil Westerhof
2010-05-20 9:46 ` Lars Wessman
2010-05-20 10:33 ` Lars Wessman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e23dc78d-e8c7-4243-b5c8-c8ce52061078@40g2000vbr.googlegroups.com \
--to=lars.wessman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.