From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: fundamental-mode-hook Date: Thu, 08 Feb 2007 17:50:03 -0500 Message-ID: References: <45CA70FA.6020002@gmail.com> <877iutvu8v.fsf@floss.red-bean.com> <45CA7955.1020602@gmail.com> <45CBA462.8040801@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170975034 850 80.91.229.12 (8 Feb 2007 22:50:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Feb 2007 22:50:34 +0000 (UTC) Cc: kfogel@red-bean.com, rms@gnu.org, emacs-devel@gnu.org To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 08 23:50:28 2007 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 1HFI5x-0006l5-Tt for ged-emacs-devel@m.gmane.org; Thu, 08 Feb 2007 23:50:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFI5w-0004Ep-Ar for ged-emacs-devel@m.gmane.org; Thu, 08 Feb 2007 17:50:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HFI5l-0004Ej-D5 for emacs-devel@gnu.org; Thu, 08 Feb 2007 17:50:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HFI5i-0004EX-Tz for emacs-devel@gnu.org; Thu, 08 Feb 2007 17:50:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HFI5i-0004EU-Og for emacs-devel@gnu.org; Thu, 08 Feb 2007 17:50:10 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HFI5h-0000fa-LV; Thu, 08 Feb 2007 17:50:09 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 4D1652CF161; Thu, 8 Feb 2007 17:50:09 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 1C1163FE1; Thu, 8 Feb 2007 17:50:04 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 07E896C7F9; Thu, 8 Feb 2007 17:50:03 -0500 (EST) In-Reply-To: <45CBA462.8040801@gmail.com> (Lennart Borgman's message of "Thu\, 08 Feb 2007 23\:29\:54 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: 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:66140 Archived-At: > Yes, thanks, that is what I thought. What is the right way to find out if > a function is a major mode? - look at its doc - look at its code - try it - ... I tried to get all major modes to use a standard macro (define-derived-mode), but Richard didn't like some parts of it and it all dies. Still, all major modes defined with define-derived-mode have the `derived-mode-parent' property. Stefan