unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@cs.yale.edu>
Cc: "Kai Großjohann" <kai.grossjohann@gmx.net>, emacs-devel@gnu.org
Subject: define-derived-mode again (was: Emacs design question)
Date: Mon, 21 Jul 2003 10:51:19 -0400	[thread overview]
Message-ID: <200307211451.h6LEpJJH022123@rum.cs.yale.edu> (raw)
In-Reply-To: E19eNGe-00055n-Nz@fencepost.gnu.org

> That is a completely different kind of issue. I objected to use of
> define-derived-mode for a mode that was not derived.  I think that
> contradicts what the name says.

Well, other than the fact that fundamental-mode is interactive,
it is basically an alias for kill-all-local-variables, so the
coding-convention that says that a major mode should start by calling
kill-all-local-variables is pretty much the same as saying that
every major mode should derive from fundamental-mode.

Also the documentation of fundamental-mode mode says:

	Other major modes are defined by comparison with this one.

Many systems that offer inheritence take the view that there is
a single "root" and that you necessarily inherit from somewhere.
That's the reason why it doesn't bother me to say that every major
mode is derived from another.


	Stefan

  reply	other threads:[~2003-07-21 14:51 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         ` Stefan Monnier [this message]
2003-07-22  5:06           ` define-derived-mode again (was: Emacs design question) Miles Bader
2003-07-23  7:13             ` Richard Stallman
2003-07-23  7:36               ` Miles Bader
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=200307211451.h6LEpJJH022123@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@cs.yale.edu \
    --cc=emacs-devel@gnu.org \
    --cc=kai.grossjohann@gmx.net \
    /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).