From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.devel Subject: Re: Recent attempts at standardizing major mode definitions. Date: 06 Sep 2002 11:48:18 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200209020240.VAA26083@eel.dms.auburn.edu> <200209021651.g82Gpe007333@rum.cs.yale.edu> <200209040206.VAA28356@eel.dms.auburn.edu> <200209041540.g84FeAf19413@rum.cs.yale.edu> <200209042236.RAA00683@eel.dms.auburn.edu> <200209061803.g86I3N900442@rum.cs.yale.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031338883 29992 127.0.0.1 (6 Sep 2002 19:01:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 19:01:23 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17nOM3-0007nM-00 for ; Fri, 06 Sep 2002 21:01:19 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17nOwL-0008O0-00 for ; Fri, 06 Sep 2002 21:38:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nONg-00013F-00; Fri, 06 Sep 2002 15:03:00 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nOMc-000116-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 15:01:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nOMa-00010s-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 15:01:54 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nOMa-00010o-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 15:01:52 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17nOKs-0007iM-00 for ; Fri, 06 Sep 2002 21:00:06 +0200 Original-To: emacs-devel@gnu.org X-Injected-Via-Gmane: http://gmane.org/ Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 17nO7m-000724-00 for ; Fri, 06 Sep 2002 20:46:34 +0200 Original-Path: not-for-mail Original-Lines: 22 Original-NNTP-Posting-Host: us01-fw3-ext.synopsys.com Original-X-Trace: main.gmane.org 1031337994 25130 204.176.21.195 (6 Sep 2002 18:46:34 GMT) Original-X-Complaints-To: usenet@main.gmane.org Original-NNTP-Posting-Date: Fri, 6 Sep 2002 18:46:34 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7636 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7636 >>>>> Stefan Monnier writes: > What's a "true" derived mode ? > Is latex-mode a true derived mode of text-mode ? > Should c-mode be a true derived mode of prog-mode ? > Should dired-mode be a true derived mode of list-mode ? I'm jumping in a little bit here without knowing the whole thread, so forgive a possibly dumb question. The object-oriented answer to your first question would be that a "true" derived mode would be one that uses one or more other modes for "base" functionality and then adds to, or overrides some of, the base functionality with new functions. Done correctly, it could encourage encapsulation and reuse. Shouldn't the answer to your other three questions be "yes"? -- David Masterson David DOT Masterson AT synopsys DOT com Sr. R&D Engineer Synopsys, Inc. Software Engineering Sunnyvale, CA