From: Miles Bader <miles@lsi.nec.co.jp>
Cc: kai.grossjohann@gmx.net, monnier+gnu/emacs@cs.yale.edu,
emacs-devel@gnu.org
Subject: Re: define-derived-mode again (was: Emacs design question)
Date: 23 Jul 2003 16:36:04 +0900 [thread overview]
Message-ID: <buon0f5u23f.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <E19fDol-000383-FU@fencepost.gnu.org>
Richard Stallman <rms@gnu.org> writes:
> (defalias 'define-major-mode 'define-derived-mode)
>
> The two macros should not have the same calling convention.
> define-major-mode should not have a parent argument.
Why? It's certainly the case that some major-modes have `parent' modes,
and some don't; really, the fact that they're major modes seems far more
significant than that particular detail, so I'd think it would be _good_
that they use the same macro, as long as:
(1) Its name is equally applicable in either case, and emphasizes
what's important (that they're major modes); `define-derived-mode'
falls down here because it emphasizes something that's (IMHO) a
minor detail in the derived case, and arguably _false_ in the
non-derived case. `define-major-mode' has neither of these problems.
(2) Using the same macro for both is not inconvenient for either case;
personally I think an extra `nil' is not much of an inconvenience...
-Miles
--
"Whatever you do will be insignificant, but it is very important that
you do it." Mahatma Ghandi
next prev parent reply other threads:[~2003-07-23 7:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E19c0Fd-0004sD-DC@fencepost.gnu.org>
[not found] ` <200307141341.h6EDfxEd006523@rum.cs.yale.edu>
2003-07-16 10:31 ` run-mode-hooks Richard Stallman
2003-07-16 12:08 ` Emacs design question (was: run-mode-hooks) Kai Großjohann
2003-07-20 23:07 ` Richard Stallman
2003-07-21 14:51 ` define-derived-mode again (was: Emacs design question) Stefan Monnier
2003-07-22 5:06 ` Miles Bader
2003-07-23 7:13 ` Richard Stallman
2003-07-23 7:36 ` Miles Bader [this message]
2003-07-23 13:27 ` Stefan Monnier
2003-07-24 2:31 ` Miles Bader
2003-07-25 8:00 ` Richard Stallman
2003-07-24 19:59 ` Richard Stallman
2003-07-24 19:58 ` Richard Stallman
2003-07-22 15:12 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buon0f5u23f.fsf@mcspd15.ucom.lsi.nec.co.jp \
--to=miles@lsi.nec.co.jp \
--cc=emacs-devel@gnu.org \
--cc=kai.grossjohann@gmx.net \
--cc=miles@gnu.org \
--cc=monnier+gnu/emacs@cs.yale.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).