* define-major-mode
@ 2010-10-01 4:13 Miles Bader
2010-10-01 22:56 ` define-major-mode Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Miles Bader @ 2010-10-01 4:13 UTC (permalink / raw)
To: emacs-devel
Somebody remind me why there's no define-major-mode macro...?
I know the same effect can be achieved with (define-derived-mode foo
fundamental-mode ...), but thought that Richard didn't people to do that
(I sort of agree that it looks kludgey)...
But why doesn't emacs have somethign like:
(defmacro define-major-mode (name &rest blah)
`(define-derived-mode ,name fundamental-mode ,@blah))
...?
-miles
--
Accord, n. Harmony.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: define-major-mode
2010-10-01 4:13 define-major-mode Miles Bader
@ 2010-10-01 22:56 ` Stefan Monnier
2010-10-01 23:30 ` define-major-mode Miles Bader
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2010-10-01 22:56 UTC (permalink / raw)
To: Miles Bader; +Cc: emacs-devel
> Somebody remind me why there's no define-major-mode macro...?
> I know the same effect can be achieved with (define-derived-mode foo
> fundamental-mode ...), but thought that Richard didn't people to do that
> (I sort of agree that it looks kludgey)...
Nowadays, most modes should derive from another: either special-mode,
text-mode or prog-mode. And fundamental-mode (aka nil) is a perfectly
valid parent mode, if none of those fit.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: define-major-mode
2010-10-01 22:56 ` define-major-mode Stefan Monnier
@ 2010-10-01 23:30 ` Miles Bader
2010-10-04 1:23 ` define-major-mode Stephen J. Turnbull
0 siblings, 1 reply; 4+ messages in thread
From: Miles Bader @ 2010-10-01 23:30 UTC (permalink / raw)
To: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Somebody remind me why there's no define-major-mode macro...?
>> I know the same effect can be achieved with (define-derived-mode foo
>> fundamental-mode ...), but thought that Richard didn't people to do that
>> (I sort of agree that it looks kludgey)...
>
> Nowadays, most modes should derive from another: either special-mode,
> text-mode or prog-mode. And fundamental-mode (aka nil) is a perfectly
> valid parent mode, if none of those fit.
hmm, I didn't know about `prog-mode' and `special-mode' -- when did
those appear? [I'm wondering if they'd be acceptable to external
maintainers supporting older emacs versions/xemacs.]
-Miles
--
Electricity, n. The cause of all natural phenomena not known to be caused by
something else.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: define-major-mode
2010-10-01 23:30 ` define-major-mode Miles Bader
@ 2010-10-04 1:23 ` Stephen J. Turnbull
0 siblings, 0 replies; 4+ messages in thread
From: Stephen J. Turnbull @ 2010-10-04 1:23 UTC (permalink / raw)
To: Miles Bader; +Cc: emacs-devel
Miles Bader writes:
> hmm, I didn't know about `prog-mode' and `special-mode' -- when did
> those appear? [I'm wondering if they'd be acceptable to external
> maintainers supporting older emacs versions/xemacs.]
You'll have to ask them, but I would suspect they'd not be real happy
about it since they'd have to emulate the functionality in older
XEmacsen, including currently stable 21.4 and trunk 21.5 (and I
presume older Emacsen, but I have no idea how old).
Just let time take its course with respect to the external
maintainers.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-04 1:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-01 4:13 define-major-mode Miles Bader
2010-10-01 22:56 ` define-major-mode Stefan Monnier
2010-10-01 23:30 ` define-major-mode Miles Bader
2010-10-04 1:23 ` define-major-mode Stephen J. Turnbull
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.