From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: New special-mode parent Date: Sat, 14 Jun 2008 14:03:31 -0600 Message-ID: References: Reply-To: Tom Tromey NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213473837 11125 80.91.229.12 (14 Jun 2008 20:03:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2008 20:03:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 14 22:04:41 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K7bzJ-0004Jz-SZ for ged-emacs-devel@m.gmane.org; Sat, 14 Jun 2008 22:04:38 +0200 Original-Received: from localhost ([127.0.0.1]:51921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7byV-0002NL-WF for ged-emacs-devel@m.gmane.org; Sat, 14 Jun 2008 16:03:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K7byP-0002ID-VB for emacs-devel@gnu.org; Sat, 14 Jun 2008 16:03:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K7byO-0002F5-AE for emacs-devel@gnu.org; Sat, 14 Jun 2008 16:03:41 -0400 Original-Received: from [199.232.76.173] (port=52379 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K7byN-0002En-Ug for emacs-devel@gnu.org; Sat, 14 Jun 2008 16:03:40 -0400 Original-Received: from mx1.redhat.com ([66.187.233.31]:59823) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K7byN-00057H-Nx for emacs-devel@gnu.org; Sat, 14 Jun 2008 16:03:39 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m5EK3XfM008580; Sat, 14 Jun 2008 16:03:33 -0400 Original-Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5EK3Wmf004117; Sat, 14 Jun 2008 16:03:32 -0400 Original-Received: from opsy.redhat.com (vpn-10-33.bos.redhat.com [10.16.10.33]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m5EK3WNX012476; Sat, 14 Jun 2008 16:03:32 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 75AB4378182; Sat, 14 Jun 2008 14:03:31 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Fri\, 13 Jun 2008 13\:51\:25 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99212 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >> I think it would be nice is define-derived-mode automatically did this >> for modes derived from special-mode. Stefan> Your wish was granted several years ago already, Thanks, I did not realize that. Here's a patch to update the documentation. Tom 2008-06-14 Tom Tromey * modes.texi (Derived Modes): Document mode-class. *** modes.texi 30 Jan 2008 09:40:10 -0700 1.4 --- modes.texi 14 Jun 2008 14:02:24 -0600 *************** *** 779,784 **** --- 779,787 ---- the end of this docstring. If you omit @var{docstring}, @code{define-derived-mode} generates a documentation string. + If the parent mode has a @code{mode-class} property, the new mode's + @code{mode-class} property is given the same value. + The @var{keyword-args} are pairs of keywords and values. The values are evaluated. The following keywords are currently supported: