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: Re: define-derived-mode again (was: Emacs design question) Date: Wed, 23 Jul 2003 09:27:22 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307231327.h6NDRNmS030080@rum.cs.yale.edu> References: <200307141341.h6EDfxEd006523@rum.cs.yale.edu> <84wuei7jye.fsf_-_@lucy.is.informatik.uni-duisburg.de> <200307211451.h6LEpJJH022123@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058967191 16128 80.91.224.249 (23 Jul 2003 13:33:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2003 13:33:11 +0000 (UTC) Cc: kai.grossjohann@gmx.net, emacs-devel@gnu.org, rms@gnu.org, monnier+gnu/emacs@cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jul 23 15:33:03 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 19fJff-0003np-00 for ; Wed, 23 Jul 2003 15:28:43 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19fJxI-000803-00 for ; Wed, 23 Jul 2003 15:46:56 +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 19fJfQ-0006lB-Dg for emacs-devel@quimby.gnus.org; Wed, 23 Jul 2003 09:28:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19fJf6-0006DD-MB for emacs-devel@gnu.org; Wed, 23 Jul 2003 09:28:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19fJey-0005xG-OG for emacs-devel@gnu.org; Wed, 23 Jul 2003 09:28:01 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19fJeW-0005EI-Le; Wed, 23 Jul 2003 09:27:32 -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 h6NDRQ4Z030082; Wed, 23 Jul 2003 09:27:26 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h6NDRNmS030080; Wed, 23 Jul 2003 09:27:23 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Miles Bader 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:15683 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15683 > > (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: As mentioned, in my view of the world, they all have a parent. But this aside, we can also make the PARENT argument optional (since it's always a symbol and the next arg (the mode's name) is always a string). Stefan