From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Recent attempts at standardizing major mode definitions. Date: Fri, 6 Sep 2002 21:47:49 -0500 (CDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200209070247.VAA05311@eel.dms.auburn.edu> 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> <200209062253.RAA04993@eel.dms.auburn.edu> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1031366955 25410 127.0.0.1 (7 Sep 2002 02:49:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 7 Sep 2002 02:49:15 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17nVes-0006bi-00 for ; Sat, 07 Sep 2002 04:49:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17nWDd-0002bV-00 for ; Sat, 07 Sep 2002 05:25:09 +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 17nVeo-0008SC-00; Fri, 06 Sep 2002 22:49:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nVdZ-0008RE-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 22:47:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nVdX-0008Qz-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 22:47:53 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nVdX-0008Qv-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 22:47:51 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) by manatee.dms.auburn.edu (8.9.1a/8.9.1) with ESMTP id VAA15137; Fri, 6 Sep 2002 21:47:48 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id VAA05311; Fri, 6 Sep 2002 21:47:49 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: teirllm@dms.auburn.edu In-Reply-To: <200209062253.RAA04993@eel.dms.auburn.edu> (message from Luc Teirlinck on Fri, 6 Sep 2002 17:53:22 -0500 (CDT)) 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:7661 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7661 To be more precise, I believe define-major-mode's arguments should include name (required), docstring (optional), :group, syntax-table (optional or keyword), abbrev-table (optional or keyword), some keyword inhibiting automatic inclusion of \\{...} in the docstring,and maybe :keymap and :mode-class keywords. The abbrev-table argument should accept a value requesting no abbrev-table. This is important for several modes. If define-derived-mode were redefined like that, it seems to me that it would be more logical to rename it define-major-mode and define define-derived-mode as a special case of it with an extra argument of parent and several keywords pre-plugged in. Sincerely, Luc.