From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: define-derived-mode again (was: Emacs design question) Date: Mon, 21 Jul 2003 10:51:19 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307211451.h6LEpJJH022123@rum.cs.yale.edu> References: <200307141341.h6EDfxEd006523@rum.cs.yale.edu> <84wuei7jye.fsf_-_@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058799300 28481 80.91.224.249 (21 Jul 2003 14:55:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2003 14:55:00 +0000 (UTC) Cc: =?iso-8859-1?q?Kai_Gro=DFjohann?= , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 21 16:54:54 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ec3g-0007ND-00 for ; Mon, 21 Jul 2003 16:54:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ecKN-0002OB-00 for ; Mon, 21 Jul 2003 17:11:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ec3k-0000aN-FW for emacs-devel@quimby.gnus.org; Mon, 21 Jul 2003 10:54:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ec3d-0000Sd-Pe for emacs-devel@gnu.org; Mon, 21 Jul 2003 10:54:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ec3c-0000Pb-9x for emacs-devel@gnu.org; Mon, 21 Jul 2003 10:54:32 -0400 Original-Received: from gnuftp.gnu.org ([199.232.41.6]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ec3b-0000OY-7S; Mon, 21 Jul 2003 10:54:31 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by gnuftp.gnu.org with esmtp (Exim 4.20) id 19ec3a-0005LZ-Vl; Mon, 21 Jul 2003 10:54:31 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h6LEpJ4Z022125; Mon, 21 Jul 2003 10:51:19 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h6LEpJJH022123; Mon, 21 Jul 2003 10:51:19 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15657 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15657 > 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