[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple major modes
From: |
Richard Stallman |
Subject: |
Re: Multiple major modes |
Date: |
Sun, 24 Jun 2007 10:41:18 -0400 |
Define all your variables with `defvar-mode-local'.
If changing a default value, use `setq-mode-local'
Does this mean we would have to go thru all of Emacs and put in
such definitions for all the variables that major modes can change?
Currently, the idea is that major modes can make any global variable
buffer-local. Are you suggesting we divide all variables into two
classes, those that can be and those that can't be? If so, what is
the benefit of that?
Would it make sense for `defvar' itself to do whatever you want
`defvar-mode-local' to do?
For a program, use `define-overload' to specify a function that
can have a mode specific override. Supply a default body for modes
that accept the default.
Since multiple major modes work (in different buffers) without this
feature, why would we need to add this feature merely to support
multiple major modes in one buffer?
The mode-local system will automatically assign buffer-local values
to mode-local defined variables.
I don't understand. Does this mean that everything defined with
`defvar-mode-local' gets buffer-local in all buffers? If so,
how is that different from `make-variable-buffer-local'?
I guess there must be parts of this explanation that are missing.
- Re: Should nXML be included, (continued)
- Re: Should nXML be included, Jason Rumney, 2007/06/12
- Multiple major modes (was: Should nXML be included), Stefan Monnier, 2007/06/12
- Re: Multiple major modes, Leo, 2007/06/12
- Re: Multiple major modes, Lennart Borgman (gmail), 2007/06/12
- Re[2]: Multiple major modes, Eric M. Ludlam, 2007/06/12
- Re: Multiple major modes, Lennart Borgman (gmail), 2007/06/12
- Re: Multiple major modes, Stefan Monnier, 2007/06/12
- Re: Multiple major modes, Richard Stallman, 2007/06/13
- Re: Multiple major modes, Richard Stallman, 2007/06/13
- Re[2]: Multiple major modes, Eric M. Ludlam, 2007/06/19
- Re: Multiple major modes,
Richard Stallman <=
- Re[2]: Multiple major modes, Eric M. Ludlam, 2007/06/25
Re: Should nXML be included, Stefan Monnier, 2007/06/12
Re: Should nXML be included, Peter Heslin, 2007/06/12
- Re: Should nXML be included, Leo, 2007/06/12
- Re: Should nXML be included, joakim, 2007/06/12
- Re: Should nXML be included, Peter Heslin, 2007/06/12
- Re: Should nXML be included, David Kastrup, 2007/06/12
- Re: Should nXML be included, Stefan Monnier, 2007/06/12
- Re: Should nXML be included, Richard Stallman, 2007/06/13
- Re: Should nXML be included, Claus, 2007/06/13